/* =============================================
   AMERIAN — STYLES
   Clean build, zero duplicates
============================================= */

/* 1. VARIABLES & RESET */
:root {
  --bg: #f8f7fb;
  --text: #17131f;
  --muted: #6f6a7c;
  --pink: #ff4f9f;
  --blue: #5b8cff;
  --line: rgba(23,19,31,0.08);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --container: 1240px;
  --nav-h: 80px;
  --shadow-sm: 0 6px 20px rgba(23,19,31,0.06);
  --shadow: 0 14px 38px rgba(23,19,31,0.09);
  --shadow-lg: 0 26px 58px rgba(23,19,31,0.13);
  --gradient: linear-gradient(135deg, var(--blue), var(--pink));
  --surface: #f5f4fa;
  --ink: #17131f;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* 2. SKIP LINK */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 10px 18px;
  background: var(--text);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  z-index: 100;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* 3. LAYOUT */
.container {
  width: min(calc(100% - 48px), var(--container));
  margin: auto;
}

.section { padding: 110px 0; }

/* 4. ORB BACKGROUNDS */
.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  opacity: .65;
}
.orb--pink {
  width: 340px; height: 340px;
  background: rgba(255,79,159,.15);
  top: 8%; right: -100px;
}
.orb--blue {
  width: 380px; height: 380px;
  background: rgba(91,140,255,.13);
  bottom: 6%; left: -120px;
}
.orb--mix {
  width: 300px; height: 300px;
  background: linear-gradient(135deg, rgba(91,140,255,.13), rgba(255,79,159,.13));
  top: 42%; right: 8%;
}

.page { position: relative; z-index: 1; }

/* 5. HEADER */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(248,247,251,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
  transition: box-shadow .3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-image { height: 36px; width: auto; object-fit: contain; display: block; }

.nav {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: .93rem;
  font-weight: 500;
  transition: color .25s ease;
  cursor: pointer;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  transition: width .3s ease;
}

.nav a:hover,
.nav a.active { color: var(--text); }

.nav a:hover::after,
.nav a.active::after { width: 100%; }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-toggle,
.mobile-lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(23,19,31,.05);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  transition: background .2s, border-color .2s;
}

.lang-toggle:hover,
.mobile-lang-toggle:hover {
  background: rgba(23,19,31,.08);
  border-color: rgba(23,19,31,.14);
}

.lang-opt {
  color: var(--muted);
  transition: color .2s;
}

.lang-opt.active {
  color: var(--text);
}

.lang-divider {
  color: var(--line);
  font-weight: 400;
}

.header-cta {
  background: linear-gradient(135deg, var(--pink), #ff7ab5);
  color: white;
  padding: 11px 22px;
  border-radius: 40px;
  border: none;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease;
  flex-shrink: 0;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255,79,159,.28);
}

/* Mobile menu button */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 10px;
  transition: background .2s;
}

.menu-btn:hover { background: var(--line); }

.menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform .3s ease, opacity .3s ease;
}

.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(248,247,251,0.97);
  backdrop-filter: blur(18px);
  z-index: 40;
  flex-direction: column;
  padding: 32px 24px;
  gap: 4px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
}

.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color .2s, transform .2s;
  cursor: pointer;
}

.mobile-nav a:hover { color: var(--text); transform: translateX(6px); }

.mobile-lang-toggle {
  margin-top: 20px;
  width: fit-content;
  font-size: .85rem;
  padding: 10px 18px;
}

.mobile-nav .mobile-cta {
  margin-top: 16px;
  background: linear-gradient(135deg, var(--pink), #ff7ab5);
  color: white;
  text-align: center;
  padding: 18px;
  border-radius: 16px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
}

.mobile-nav .mobile-cta:hover { color: white; }

/* 6. UTILITIES */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  flex-shrink: 0;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-blue { color: var(--blue); }
.accent-pink { color: var(--pink); }

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(.99);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered reveal for grid children */
.cards .reveal:nth-child(2) { transition-delay: .1s; }
.cards .reveal:nth-child(3) { transition-delay: .2s; }
.process-grid .reveal:nth-child(2) { transition-delay: .08s; }
.process-grid .reveal:nth-child(3) { transition-delay: .16s; }
.process-grid .reveal:nth-child(4) { transition-delay: .24s; }
.cases-list .reveal:nth-child(2) { transition-delay: .1s; }
.cases-list .reveal:nth-child(3) { transition-delay: .2s; }

/* 7. HERO */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(60px);
  opacity: .4;
}

.hero::before {
  width: 360px; height: 360px;
  top: 6%; left: -120px;
  background: rgba(91,140,255,.16);
  animation: heroFloatOne 9s ease-in-out infinite;
}

.hero::after {
  width: 320px; height: 320px;
  right: -90px; bottom: 8%;
  background: rgba(255,79,159,.18);
  animation: heroFloatTwo 11s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy { display: flex; flex-direction: column; }

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: .94;
  font-weight: 800;
  letter-spacing: -0.05em;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-line {
  display: block;
  overflow: visible;
  clip-path: inset(-20% -5% -20% -5%);
  transform: translateY(110%);
  opacity: 0;
  animation: heroLineIn .95s cubic-bezier(.2,.7,.2,1) forwards;
}

.hero-line:nth-child(1) { animation-delay: .08s; }
.hero-line:nth-child(2) { animation-delay: .22s; }
.hero-line:nth-child(3) { animation-delay: .36s; }

.hero-fade {
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeIn .8s ease forwards;
}

.hero-subtitle.hero-fade { animation-delay: .52s; }
.hero-actions.hero-fade  { animation-delay: .66s; }
.hero-note.hero-fade     { animation-delay: .80s; }
.hero-visual.hero-fade   { animation-delay: .30s; }

.hero-subtitle {
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 480px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: .88rem;
  margin-top: 24px;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .25s ease, color .25s ease;
  cursor: default;
}

.hero-note span:hover { transform: translateY(-2px); color: var(--text); }

.hero-note span::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  flex-shrink: 0;
}

/* Buttons */
.primary, .secondary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border-radius: 40px;
  font-weight: 600;
  font-size: .93rem;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}

.primary {
  background: linear-gradient(135deg, var(--pink), #ff7ab5);
  color: white;
}

.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(255,79,159,.28);
}

.secondary {
  border: 1px solid rgba(23,19,31,.12);
  color: var(--text);
}

.secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(91,140,255,.22);
  box-shadow: 0 14px 28px rgba(70,50,108,.08);
}

.primary::after, .secondary::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 80%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}

.primary:hover::after, .secondary:hover::after { left: 140%; }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; }
.hero-parallax-wrap { perspective: 1200px; width: 100%; }

.hero-parallax-card {
  will-change: transform;
  transition: transform .18s ease;
}

.hero-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto auto -60px -60px;
  width: 200px; height: 200px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(91,140,255,.12), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: -50px -55px auto auto;
  width: 200px; height: 200px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,79,159,.12), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}

.hero-card > * { position: relative; z-index: 1; }

.dashboard {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.panel {
  background: rgba(250,249,255,.92);
  border: 1px solid rgba(23,19,31,.05);
  border-radius: 16px;
  padding: 16px;
}

.panel.large {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.panel-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.stack-list { display: grid; gap: 8px; }

.stack-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  background: white;
  border: 1px solid rgba(23,19,31,.05);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
}

.stack-item strong { color: var(--text); font-size: .88rem; }

.mini-lines {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  min-height: 100px;
  padding-top: 12px;
}

.mini-lines span {
  flex: 1;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, rgba(91,140,255,.9), rgba(255,79,159,.7));
}

.mini-lines span:nth-child(1) { height: 38%; }
.mini-lines span:nth-child(2) { height: 62%; }
.mini-lines span:nth-child(3) { height: 48%; }
.mini-lines span:nth-child(4) { height: 82%; }
.mini-lines span:nth-child(5) { height: 64%; }
.mini-lines span:nth-child(6) { height: 92%; }

/* 8. MARQUEE */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.4);
}

.marquee {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 15px 0;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
}

.marquee span {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 500;
}

/* 8b. CLIENTS CAROUSEL */
.clients-section {
  padding: 48px 0 52px;
  position: relative;
  overflow: hidden;
}

.clients-label {
  text-align: center;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 28px;
  opacity: .7;
}

.clients-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    black 12%,
    black 88%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    black 12%,
    black 88%,
    transparent
  );
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: clientsScroll 28s linear infinite;
}

.clients-track:hover { animation-play-state: paused; }

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

.client-logo {
  display: flex;
  align-items: center;
  padding: 12px 52px;
  color: var(--text);
  opacity: .32;
  transition: opacity .35s ease, transform .35s ease;
  flex-shrink: 0;
  cursor: default;
}

.client-logo:hover {
  opacity: .9;
  transform: translateY(-3px);
}

.client-logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 1;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}

.client-logo:hover img {
  transform: scale(1.18);
}


.client-sep {
  width: 1px;
  height: 32px;
  background: var(--line);
  flex-shrink: 0;
}

/* 9. PROBLEM SECTION */
.problem { position: relative; }

.problem-lines {
  display: grid;
  gap: 0;
  max-width: 1120px;
  margin: auto;
}

.problem-line {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.06em;
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
  transition: transform .3s ease;
  cursor: default;
}

.problem-line:hover { transform: translateX(8px); }

.problem-line::before {
  content: "";
  position: absolute;
  left: -16px; top: 50%;
  transform: translateY(-50%) scale(.6);
  width: 8px; height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  opacity: 0;
  transition: .3s ease;
}

.problem-line:hover::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* 10. SERVICES */
.services-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 40px;
  align-items: flex-start;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.section-text {
  max-width: 400px;
  color: var(--muted);
  line-height: 1.75;
  font-size: .97rem;
  flex-shrink: 0;
}

#services { position: relative; overflow: hidden; }
#services .container { position: relative; }

.services-background-word {
  position: absolute;
  top: 100px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: clamp(5rem, 16vw, 13rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: .05;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity .45s ease, transform .6s cubic-bezier(.2,.7,.2,1), filter .45s ease;
}

.services-head, .cards { position: relative; z-index: 2; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: white;
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
  cursor: default;
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.service-card::before {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  left: var(--x, 50%); top: var(--y, 50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(91,140,255,.2), rgba(255,79,159,.16), transparent 70%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  z-index: 0;
}

.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }

.card-index {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 600;
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.card-body {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.72;
  font-size: .95rem;
}

.card-list { display: grid; gap: 8px; }

.card-list li {
  background: #faf9ff;
  padding: 12px 16px;
  border-radius: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .25s ease;
  cursor: pointer;
  font-size: .9rem;
}

.card-list li:hover {
  transform: translateX(5px);
  background: linear-gradient(90deg, rgba(91,140,255,.1), rgba(255,79,159,.1));
}

/* 11. STATEMENT */
.statement-box {
  padding: 60px 28px;
  background: rgba(255,255,255,.88);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.statement-box p:first-child {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
}

.statement-box h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  letter-spacing: -.06em;
  line-height: .96;
  font-weight: 800;
  max-width: 860px;
  margin: 0 auto;
}

/* 12. WORK / CASES */
.cases-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 56px;
}

.case-row {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  transition: box-shadow .35s ease, transform .35s ease;
  cursor: default;
}

.case-row:hover {
  box-shadow: 0 20px 60px rgba(16,10,28,.10);
  transform: translateY(-3px);
}

.case-row-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 300px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 48px 40px;
  position: relative;
}

.case-row-num {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
  opacity: .5;
  position: absolute;
  top: 24px; left: 28px;
}

.case-visual-logo {
  max-width: 200px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.case-row-body {
  padding: 38px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}


.case-row-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.case-industry {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  color: var(--muted);
}

.case-year {
  font-size: .72rem;
  color: var(--muted);
  opacity: .6;
  font-weight: 500;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.case-client {
  font-family: 'Inter', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}

.case-challenge {
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.72;
  max-width: 520px;
  margin: 0;
}

.case-metrics {
  display: flex;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-val {
  font-family: 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
}

.case-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-services span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
}

/* 13. PROCESS */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.process-step {
  background: white;
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: default;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.process-step::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  left: var(--mx, 50%); top: var(--my, 50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,79,159,.1) 0%, rgba(91,140,255,.07) 35%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 0;
}

.process-step:hover::before { opacity: 1; }
.process-step > * { position: relative; z-index: 1; }

.num {
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: white;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.process-step h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.process-step p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.72;
}

/* 14. FINAL CTA */
.cta-panel {
  background: linear-gradient(135deg, #110d1a, #1a1228);
  color: white;
  padding: 72px 60px;
  text-align: center;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 28% 40%, rgba(91,140,255,.18), transparent 50%),
    radial-gradient(circle at 72% 60%, rgba(255,79,159,.18), transparent 50%);
  pointer-events: none;
}

.cta-panel > * { position: relative; z-index: 1; }

.cta-panel p:first-child {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.45);
  margin-bottom: 20px;
  font-weight: 600;
}

.cta-panel h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -.06em;
  line-height: .95;
  font-weight: 800;
  max-width: 680px;
  margin: 0 auto 18px;
}

.cta-panel .sub {
  color: rgba(255,255,255,.5);
  font-size: .97rem;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 32px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--pink), #ff7ab5);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 16px 36px rgba(255,79,159,.28);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(255,79,159,.36);
}

/* 15. FOOTER */
.site-footer { padding: 40px 0; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .88rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: .95rem;
}

.footer-logo-img { width: 28px; height: 28px; object-fit: contain; }

/* 15b. CONTACT MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(16, 10, 28, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

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

.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 44px 48px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(16,10,28,.22);
  transform: translateY(24px) scale(.97);
  transition: transform .35s cubic-bezier(.34,1.2,.64,1);
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  transition: background .2s, color .2s;
}

.modal-close:hover {
  background: var(--ink);
  color: white;
}

.modal-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.modal-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 28px;
}

.modal-form { display: flex; flex-direction: column; gap: 18px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168,85,247,.12);
  background: white;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group textarea { resize: none; line-height: 1.6; }

.form-error {
  font-size: .82rem;
  color: #dc2626;
  font-weight: 500;
  min-height: 18px;
}

.form-submit {
  width: 100%;
  padding: 15px 24px;
  border-radius: 12px;
  background: var(--gradient);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .2s;
  margin-top: 4px;
}

.form-submit:hover { opacity: .9; transform: translateY(-1px); }
.form-submit:active { transform: translateY(0); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 0 8px;
  text-align: center;
}

.modal-success p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 520px) {
  .modal-box { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* 16. KEYFRAMES */
@keyframes heroLineIn {
  to { transform: translateY(0); opacity: 1; }
}

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

@keyframes heroFloatOne {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(24px,18px,0) scale(1.06); }
}

@keyframes heroFloatTwo {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-20px,-14px,0) scale(1.05); }
}

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

/* 17. RESPONSIVE */
@media (max-width: 1100px) {
  .case-row { grid-template-columns: 1fr; }
  .case-row-visual { min-height: 200px; border-right: none; border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .section { padding: 80px 0; }

  .nav { display: none; }
  .header-right { display: none; }
  .menu-btn { display: flex; }
  .mobile-nav { display: flex; }

  .hero { min-height: auto; padding: 60px 0 40px; }
  .hero::before, .hero::after { opacity: .28; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }

  .services-head { flex-direction: column; gap: 14px; }
  .section-text { max-width: 100%; }

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

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

  .services-background-word {
    top: 90px;
    font-size: clamp(3rem, 18vw, 6rem);
    opacity: .04;
  }

  .case-row { grid-template-columns: 1fr; }
  .case-row-body { padding: 28px 24px; }
  .case-metrics { gap: 18px; }
  .metric-val { font-size: 1.4rem; }

  .problem-line {
    font-size: clamp(2rem, 8vw, 3.2rem);
    padding: 28px 0;
  }
  .problem-line:hover { transform: none; }
  .problem-line::before { display: none; }

  .cta-panel { padding: 48px 28px; }

  .footer-inner { justify-content: center; text-align: center; }
  .footer-center { order: 1; width: 100%; text-align: center; }
  .footer-logo { order: 0; }
  .footer-right { order: 2; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 60px 0; }
  .process-grid { grid-template-columns: 1fr; }
  .case-metrics { flex-wrap: wrap; gap: 14px; }
  .hero-title { font-size: clamp(2.6rem, 10vw, 4rem); }
  .client-logo img { height: 40px; }
  .client-logo { padding: 8px 28px; }
}

/* =============================================
   PREMIUM ANIMATIONS
============================================= */

/* --- Scroll progress bar --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  z-index: 200;
  transition: width .08s linear;
  pointer-events: none;
}


/* --- Gradient text animated shimmer --- */
.gradient-text {
  background: linear-gradient(270deg, var(--blue), var(--pink), var(--blue));
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Problem lines staggered reveal --- */
.problem-line {
  opacity: 0;
  transform: translateX(-28px);
  transition:
    opacity .7s cubic-bezier(.2,.7,.2,1),
    transform .7s cubic-bezier(.2,.7,.2,1);
}

.problem-line.line-in {
  opacity: 1;
  transform: translateX(0);
}

/* keep hover translateX working after line-in */
.problem-line.line-in:hover {
  transform: translateX(8px);
}

/* --- Section title word split --- */
.title-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.title-word-inner {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  transition:
    transform .65s cubic-bezier(.2,.7,.2,1),
    opacity .5s ease;
}

.title-word.word-in .title-word-inner {
  transform: translateY(0);
  opacity: 1;
}

/* --- Magnetic buttons: allow transform override --- */
.primary, .secondary, .header-cta, .cta-button {
  transition:
    transform .3s cubic-bezier(.2,.7,.2,1),
    box-shadow .3s ease,
    border-color .3s ease;
}

/* --- Number badge pulse on process hover --- */
.process-step:hover .num {
  animation: numPulse .5s ease;
}

@keyframes numPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

