@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

:root {
  /* Brand Colors */
  --color-primary: #0F2E50;
  --color-accent: #FF6B00;
  --color-text-main: #333333;
  --color-text-light: #666666;
  --color-bg-light: #F8F9FA;
  --color-white: #FFFFFF;
  --color-border: #E5E7EB;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-base: 1rem;
  --font-size-h1: 3.5rem;
  --font-size-h2: 2.5rem;
  --font-size-h3: 1.5rem;

  /* Spacing */
  --container-width: 1200px;
  --header-height: 140px;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 5rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-main);
  line-height: 1.6;
  background-color: var(--color-white);
  overflow-x: hidden;
  padding-top: var(--header-height);
  /* Prevent horizontal scroll */
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--color-accent);
  color: #051424;
}

.btn-primary:hover {
  background-color: #E65A00;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

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

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  background: radial-gradient(circle at center, #0F2E50 0%, #051424 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Futuristic Synthwave Grid Background */
.hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50%;
  width: 200%;
  height: calc(70% + 50px);
  background-image: 
    linear-gradient(rgba(255, 107, 0, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.15) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(600px) rotateX(75deg);
  transform-origin: bottom center;
  animation: synthGrid 3s linear infinite;
  will-change: transform;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

@keyframes synthGrid {
  0% { transform: perspective(600px) rotateX(75deg) translateY(0); }
  100% { transform: perspective(600px) rotateX(75deg) translateY(50px); }
}

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

.hero h1 {
  font-size: var(--font-size-h1);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: white;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #e0e0e0;
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
}

.hero-benefits {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.hero-benefits li {
  font-size: 1.1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

/* Animations (Reveal on Scroll) */
.reveal-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s forwards;
}

/* Futuristic Text Scramble */
.futuristic-wrapper {
  min-height: 1.55em;
  margin-top: 25px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.42em;
  flex-wrap: wrap;
  color: white;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
}

.futuristic-label {
  white-space: nowrap;
}

.futuristic-slot {
  min-width: 26ch;
  min-height: 1.4em;
  padding-right: 0.65ch;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  color: var(--color-accent);
  white-space: nowrap;
  isolation: isolate;
}

.futuristic-slot::after {
  content: '|';
  margin-left: 0.12em;
  color: #ffb47c;
  font-weight: 400;
  text-shadow: 0 0 14px rgba(255, 107, 0, 0.95);
  animation: blink 0.8s step-end infinite;
}

.futuristic-slot::before {
  content: '';
  height: 1px;
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.9), transparent);
  transform: scaleX(0.55);
  opacity: 0.55;
  animation: dataScan 2.8s ease-in-out infinite;
}

.futuristic-text {
  display: inline-block;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.015em;
  text-shadow: 0 0 15px rgba(255, 107, 0, 0.6);
  transition: filter 0.18s ease, text-shadow 0.18s ease;
}

.futuristic-text.is-scrambling {
  filter: brightness(1.22);
  text-shadow: 0 0 9px rgba(255, 255, 255, 0.38), 0 0 22px rgba(255, 107, 0, 0.9);
}

.dud {
  color: rgba(255, 198, 157, 0.72);
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes dataScan {
  0%, 100% { transform: scaleX(0.35); opacity: 0.2; }
  50% { transform: scaleX(1); opacity: 0.72; }
}

.reveal-section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

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

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

/* Problem Section */
.problem-section {
  padding: var(--spacing-xl) 0;
  background-color: #051424;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  text-align: center;
  color: white;
}

.problem-section .section-title h2 {
  color: white;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.problem-item {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px 24px;
  border-radius: 12px;
  font-weight: 600;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.problem-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #dc2626, transparent);
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.problem-item:hover {
  transform: translateY(-10px);
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 15px 40px rgba(220, 38, 38, 0.2);
  color: white;
}

.problem-item:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, #ff3b3b, transparent);
  box-shadow: 0 0 15px #ff3b3b;
}

.problem-item svg {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 0 2px rgba(220, 38, 38, 0.5));
}

.problem-item:hover svg {
  transform: scale(1.3) rotate(15deg);
  filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.9));
}

.problem-bridge {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
  margin-top: var(--spacing-lg);
}

.tech-graphic {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}
.tech-graphic:hover {
  transform: translateY(-10px) scale(1.02);
}

/* How It Works */
.methodology-section {
  padding: var(--spacing-xl) 0;
  background: white;
  text-align: center;
}

.method-card {
  padding: var(--spacing-lg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: white;
  position: relative;
  transition: var(--transition-smooth);
}

.method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

.method-card:hover .step-number {
  transform: scale(1.15) rotate(-10deg);
  background: var(--color-primary);
  box-shadow: 0 4px 10px rgba(15, 46, 80, 0.3);
}

.step-number {
  background: var(--color-accent);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto var(--spacing-md);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.method-cta {
  margin-top: var(--spacing-xl);
}

/* Services */
.services-preview {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-bg-light);
}

.section-title h2 {
  font-size: var(--font-size-h2);
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.section-title p {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.service-card {
  padding: var(--spacing-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 15px 35px rgba(255, 107, 0, 0.1);
  transform: translateY(-8px);
}

.service-card:hover h3 {
  color: var(--color-accent);
  transform: translateX(5px);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.service-desc {
  margin-bottom: var(--spacing-md);
  font-weight: 500;
}

.service-bullets li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Plans Section */
.plans-section {
  padding: var(--spacing-xl) 0;
  background-color: white;
}

.plan-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: var(--spacing-lg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.plan-card.featured {
  border: 2px solid var(--color-primary);
  background: #f8fbff;
}

.plan-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.plan-header h3 {
  color: var(--color-primary);
  font-weight: 900;
}

.plan-who {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary);
  margin: 10px 0;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.plan-result {
  font-weight: 600;
  color: var(--color-text-main);
}

.plan-features li {
  margin-bottom: 12px;
  display: flex;
  align-items: start;
  gap: 8px;
}

/* Principles */
.principles-section {
  padding: var(--spacing-lg) 0;
  background-color: var(--color-primary);
  color: white;
  text-align: center;
}

.principle-item {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.principle-item h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Contact Section */
.contact-section {
  padding: var(--spacing-xl) 0;
  background-color: #f8f9fa;
  /* Subtle background to make card stand out */
}

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form-container {
  background: var(--color-white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Services Timeline */
.timeline-section {
  background-color: #020a13;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
  transform: translateX(-50%);
  opacity: 0.3;
}
.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8rem;
  position: relative;
}
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}
.timeline-content {
  width: 45%;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.timeline-content:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 0, 0.5);
  box-shadow: 0 20px 50px rgba(255, 107, 0, 0.1);
}
.timeline-number {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: #051424;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-accent);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
  z-index: 2;
}
.timeline-graphic {
  width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
  }
  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
    margin-bottom: 5rem;
  }
  .timeline-content, .timeline-graphic {
    width: 100%;
    margin-left: 60px;
  }
  .timeline-content {
    width: calc(100% - 60px);
  }
  .timeline-number {
    left: 30px;
  }
  .timeline-graphic {
    margin-top: 30px;
    margin-left: 0;
  }
}

/* --- AMBIENT & CONTINUOUS MOVEMENT --- */

/* Background Glowing Orbs */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  animation: orbFloat 15s infinite alternate ease-in-out;
}
@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Continuous Floating for Cards */
.float-card {
  animation: floatCard 6s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.float-delay-1 { animation-delay: -2s; }
.float-delay-2 { animation-delay: -4s; }

@keyframes floatCard {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* Overriding hover for floating cards */
.float-card:hover {
  animation-play-state: paused;
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(255, 107, 0, 0.1) !important;
}

/* Pulsing Step Numbers */
.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  animation: pulseGlow 2.5s infinite ease-out;
  opacity: 0;
}
@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Interactive SVG in problems */
.problem-item svg {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.problem-item:hover svg {
  transform: rotate(90deg) scale(1.2);
}

/* Compact work proof on home */
.work-preview {
  padding: clamp(4rem, 7vw, 6rem) 0;
  color: var(--color-white);
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 107, 0, 0.11), transparent 30%),
    linear-gradient(150deg, #061522 0%, #0b2238 65%, #071725 100%);
}

.contact-form-container .status-pill {
  color: #7a2e00;
  border-color: rgba(122, 46, 0, 0.32);
}

.work-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.work-preview-copy h2 {
  max-width: 620px;
  margin-bottom: 1.25rem;
  color: var(--color-white);
  font-size: clamp(2.15rem, 4.4vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.work-preview-copy p {
  max-width: 620px;
  color: #bdc9d6;
  font-size: 1.02rem;
  line-height: 1.7;
}

.work-preview-link {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1.6rem;
  padding-bottom: 0.35rem;
  color: #ff9a52;
  border-bottom: 1px solid rgba(255, 154, 82, 0.55);
  font-weight: 800;
  transition: gap 180ms ease, color 180ms ease;
}

.work-preview-link:hover,
.work-preview-link:focus-visible {
  gap: 1rem;
  color: var(--color-white);
}

.work-preview-list {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.work-preview-list article {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.work-preview-list article > span {
  color: #ff9a52;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.work-preview-list div {
  display: grid;
  gap: 0.25rem;
}

.work-preview-list strong {
  color: var(--color-white);
  font-size: 1.08rem;
}

.work-preview-list small {
  color: #9fb0c0;
  font-size: 0.85rem;
  line-height: 1.45;
}

/* Client trust: a compact proof layer, separate from the project portfolio */
.client-trust {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  color: var(--color-white);
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 107, 0, 0.1), transparent 24rem),
    #040d16;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.client-trust::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
}

.client-trust-heading {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.client-trust-eyebrow {
  color: #ff9a52;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.client-trust-heading h2 {
  margin-top: 0.8rem;
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.client-trust-heading p {
  max-width: 680px;
  margin-top: 1rem;
  color: #9fb0c0;
  font-size: 0.98rem;
}

.client-trust-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 2.5rem;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}

.client-trust-track {
  display: flex;
  width: max-content;
  animation: clientTrustScroll 34s linear infinite;
}

.client-trust-viewport:hover .client-trust-track {
  animation-play-state: paused;
}

.client-trust-set {
  display: flex;
  gap: 1rem;
  padding-right: 1rem;
}

.client-brand {
  display: grid;
  width: clamp(168px, 18vw, 210px);
  min-height: 132px;
  grid-template-rows: 82px auto;
  place-items: center;
  padding: 1rem 1.2rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.client-brand:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 0, 0.45);
  background: rgba(255, 255, 255, 0.085);
}

.client-brand img {
  width: auto;
  max-width: 112px;
  height: 76px;
  object-fit: contain;
  filter: grayscale(1) saturate(0.75);
  transition: filter 180ms ease, transform 180ms ease;
}

.client-brand:hover img {
  filter: none;
  transform: scale(1.04);
}

.client-brand span {
  color: #dbe5ee;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.025em;
  text-align: center;
}

@keyframes clientTrustScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Selected work page */
.work-page-hero {
  padding: clamp(9rem, 15vw, 12rem) 0 clamp(4rem, 8vw, 6.5rem);
  color: var(--color-white);
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 107, 0, 0.16), transparent 27%),
    #061522;
}

.work-page-hero h1 {
  max-width: 920px;
  color: var(--color-white);
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.work-page-hero p {
  max-width: 670px;
  margin-top: 1.75rem;
  color: #bdc9d6;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.work-section--page {
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

/* Selected work cards */
.work-section {
  padding: clamp(5rem, 10vw, 8.5rem) 0;
  color: var(--color-white);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 107, 0, 0.12), transparent 30%),
    linear-gradient(150deg, #061522 0%, #0b2238 58%, #071725 100%);
  overflow: hidden;
}

.work-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.work-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #ff9a52;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-eyebrow::before {
  content: '';
  width: 2.5rem;
  height: 2px;
  background: var(--color-accent);
}

.work-heading h2 {
  max-width: 780px;
  color: var(--color-white);
  font-size: clamp(2.35rem, 5.5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.work-heading > p {
  max-width: 460px;
  color: #bdc9d6;
  font-size: 1.05rem;
  line-height: 1.75;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.work-card {
  grid-column: span 4;
  min-width: 0;
}

.work-card--wide {
  grid-column: span 7;
}

.work-card--compact {
  grid-column: span 5;
}

.work-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

a.work-card-link:hover,
a.work-card-link:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 0, 0.62);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

a.work-card-link:focus-visible {
  outline: 3px solid rgba(255, 107, 0, 0.42);
  outline-offset: 4px;
}

.work-visual {
  position: relative;
  display: grid;
  min-height: 300px;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.work-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 92%);
}

.work-visual img {
  width: auto;
  max-width: 56%;
  max-height: 66%;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.24));
  transition: transform 320ms ease;
}

a.work-card-link:hover .work-visual img {
  transform: scale(1.035);
}

.work-visual--quinta {
  background: radial-gradient(circle at 50% 35%, #39324f, #15151c 68%);
}

.work-visual--penca {
  background: radial-gradient(circle at 50% 35%, #173423, #030504 70%);
}

.work-visual--agenda {
  background: linear-gradient(145deg, #ede7f8, #f9f6f0 58%, #dbe9f4);
}

.work-visual--club {
  background: linear-gradient(145deg, #f4f0ec, #e5f2f4 54%, #e7dcfb);
}

.work-visual--juicio {
  background: radial-gradient(circle at 50% 40%, #3a2025, #100f12 70%);
}

.work-visual--agenda img,
.work-visual--club img {
  max-width: 54%;
  border-radius: 24%;
}

.work-visual--agenda img {
  max-width: 43%;
  transform: translateX(-42%);
}

a.work-card-link:hover .work-visual--agenda img {
  transform: translateX(-42%) scale(1.035);
}

.work-ui-preview {
  position: absolute;
  right: 7%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 43%;
  gap: 0.3rem;
  padding: 1rem;
  color: #102b46;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(15,46,80,0.12);
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(75,54,110,0.15);
  transform: translateY(-50%);
}

.work-ui-preview small {
  color: #6f608b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-ui-preview strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.work-ui-preview i {
  justify-self: start;
  padding: 0.26rem 0.46rem;
  color: #087353;
  background: #dff7ee;
  border-radius: 999px;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
}

.work-number,
.work-open,
.work-product-label {
  position: absolute;
  z-index: 2;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-number {
  top: 1.25rem;
  left: 1.25rem;
  color: rgba(255,255,255,0.68);
}

.work-open {
  right: 1.1rem;
  bottom: 1.1rem;
  padding: 0.55rem 0.72rem;
  color: #061522;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
}

.work-open--private {
  color: #d8e3ed;
  background: rgba(6,21,34,0.78);
  border: 1px solid rgba(255,255,255,0.16);
}

.work-product-label {
  top: 1.15rem;
  right: 1.15rem;
  color: #372063;
}

.work-visual--agenda .work-number,
.work-visual--club .work-number {
  color: rgba(15,46,80,0.7);
}

.work-copy {
  flex: 1;
  padding: 1.45rem 1.45rem 1.65rem;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  margin-bottom: 1rem;
  color: #8fa7bd;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-copy h3 {
  margin-bottom: 0.65rem;
  color: var(--color-white);
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.work-copy p {
  color: #bdc9d6;
  font-size: 1rem;
  line-height: 1.65;
}

.work-statement {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.13);
}

.work-statement span {
  color: #ff9a52;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.work-statement p {
  max-width: 820px;
  color: var(--color-white);
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

@media (max-width: 980px) {
  .work-preview-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .work-heading {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .work-heading > p {
    max-width: 680px;
  }

  .work-card,
  .work-card--wide,
  .work-card--compact {
    grid-column: span 6;
  }

  .work-card:last-child {
    grid-column: span 12;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  :root {
    --font-size-h1: 2.2rem;
    --font-size-h2: 1.8rem;
    --spacing-xl: 3rem;
  }

  .hero-benefits {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }



  .problem-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 6rem 0 4.5rem;
  }

  .futuristic-wrapper {
    min-height: 3.35em;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2em;
    font-size: clamp(1.16rem, 5.4vw, 1.42rem);
    line-height: 1.3;
  }

  .futuristic-slot {
    width: 100%;
    min-width: 0;
    min-height: 1.45em;
    padding-right: 0;
    justify-content: center;
  }

  .futuristic-slot::before {
    right: 10%;
    left: 10%;
  }

  .work-card,
  .work-card--wide,
  .work-card--compact,
  .work-card:last-child {
    grid-column: span 12;
  }

  .work-visual {
    min-height: 250px;
  }

  .work-statement {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .work-preview-list article {
    grid-template-columns: 2rem 1fr;
  }

  .client-trust-viewport {
    margin-top: 2rem;
    mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  }

  .client-brand {
    width: 166px;
    min-height: 122px;
    grid-template-rows: 74px auto;
  }

  .client-brand img {
    height: 68px;
  }

  .strong-cta {
    padding: 5rem 0 !important;
  }

  .strong-cta h2 {
    font-size: clamp(2rem, 9.5vw, 2.35rem) !important;
    line-height: 1.08;
  }

  .strong-cta p {
    font-size: 1.12rem !important;
  }

  .strong-cta .btn {
    width: min(100%, 320px);
    padding: 1rem 1.25rem !important;
    font-size: 1.05rem !important;
  }

}

@media (prefers-reduced-motion: reduce) {
  .client-trust-track {
    animation: none;
  }

  .client-trust-viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .client-trust-set[aria-hidden="true"] {
    display: none;
  }
}

/* Analytics consent */
.cookie-consent {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 10000;
  display: grid;
  width: min(560px, calc(100vw - 2.5rem));
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: end;
  padding: 1.35rem;
  color: #eef4f8;
  background: rgba(6, 21, 34, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.cookie-consent__copy strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 1.05rem;
}

.cookie-consent__copy p {
  margin: 0 0 0.55rem;
  color: #bdc9d6;
  font-size: 0.88rem;
  line-height: 1.5;
}

.cookie-consent__copy a {
  color: #ff9a52;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  display: flex;
  gap: 0.55rem;
}

.cookie-consent__button {
  padding: 0.72rem 0.9rem;
  color: #051424;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.cookie-consent__button--secondary {
  color: #dce5ed;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

@media (max-width: 640px) {
  .cookie-consent {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100vw - 1.5rem);
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-consent__button {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .futuristic-slot::after,
  .futuristic-slot::before {
    animation: none;
  }

  .work-card-link,
  .work-visual img {
    transition: none;
  }
}
