/* ============================================================
   DigiMotive — Design System v2
   Benchmarked against Teads, The Trade Desk, Moloco, PubMatic
   ============================================================ */

:root {
  /* Brand */
  --ink:        #0B1130;   /* Navy, matches "Digi" */
  --ink-2:      #1B2147;   /* Secondary dark */
  --brand:      #2B37EF;   /* Royal blue, matches "motive" pill */
  --brand-2:    #1C24C4;   /* Pressed state */
  --brand-tint: #E8EBFF;   /* Soft blue wash */
  --brand-50:   #F3F5FF;   /* Very soft blue section bg */

  /* Neutrals */
  --paper:      #FFFFFF;
  --paper-2:    #F7F8FC;   /* Section bg */
  --line:       #E5E7EF;   /* Borders */
  --mute:       #6B6F7F;   /* Secondary text */
  --mute-2:     #9AA0B4;   /* Tertiary text */

  /* Accents (sparing) */
  --accent-coral: #FF6B5A;
  --accent-mint:  #2FCBA5;
  --accent-gold:  #FFB342;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 17, 48, 0.06), 0 1px 1px rgba(11, 17, 48, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 17, 48, 0.08), 0 2px 6px rgba(11, 17, 48, 0.04);
  --shadow-lg: 0 24px 60px rgba(11, 17, 48, 0.12), 0 4px 12px rgba(11, 17, 48, 0.06);
  --shadow-brand: 0 16px 40px rgba(43, 55, 239, 0.25);

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-2); }
button { font-family: inherit; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); letter-spacing: -0.025em; }
h3 { font-size: 1.375rem; letter-spacing: -0.015em; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-2); }
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.muted { color: var(--mute); }

/* Layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink h1, .section-ink h2, .section-ink h3, .section-ink h4 { color: var(--paper); }
.section-ink p { color: rgba(255,255,255,0.78); }
.section-bg  { background: var(--paper-2); }
.section-tint{ background: var(--brand-50); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr);} .grid-3 { grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.005em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer; transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-2); color: #fff; transform: translateY(-1px); box-shadow: 0 20px 46px rgba(43,55,239,.32); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--paper-2); color: var(--ink); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-white:hover { background: #fff; color: var(--ink); }
.btn-arrow::after { content: "→"; transition: transform .18s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo img { height: 34px; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  color: var(--ink); font-weight: 500; font-size: 0.9375rem;
  padding: 10px 16px; border-radius: var(--r-pill);
  transition: background .18s ease;
}
.nav-links a:hover, .nav-links a.active { background: var(--brand-tint); color: var(--brand); }
.nav-cta .btn { padding: 11px 22px; font-size: 0.9375rem; }
.nav-links .nav-mobile-cta { display: none; }

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
}
.nav-toggle:hover { background: var(--paper-2); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .18s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    display: none; flex-direction: column; gap: 2px;
    background: #fff; border-top: 1px solid var(--line);
    padding: 14px 20px 20px; box-shadow: 0 14px 28px rgba(16, 24, 40, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 1rem; width: 100%; }
  .nav-links .nav-mobile-cta {
    margin-top: 10px; background: var(--brand); color: #fff; text-align: center;
    border-radius: var(--r-pill); font-weight: 600;
  }
  .nav-links .nav-mobile-cta:hover { background: var(--brand); color: #fff; opacity: 0.92; }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 90% -10%, rgba(43,55,239,0.18), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(43,55,239,0.12), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--brand-50) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { font-size: clamp(2.75rem, 6vw, 5rem); margin-bottom: 20px; }
.hero h1 .accent { color: var(--brand); }
.hero .lead { font-size: 1.25rem; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px; margin-left: auto;
}
.hero-visual .device {
  position: absolute; inset: 0;
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, #2B37EF 0%, #6E78FF 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-visual .device::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.22), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.12), transparent 40%);
}
.hero-visual .sparkles {
  position: absolute; inset: 0; color: rgba(255,255,255,0.85);
}
.tag-chip {
  padding: 10px 16px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.8125rem; font-weight: 600;
  box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}
a.tag-chip:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: var(--shadow-md);
}
.tag-chip .dot { width:8px; height:8px; border-radius:50%; background: var(--accent-mint); }
.hero-visual .tag-chip { position: absolute; }
.hero-visual .tag-1 { top: 8%; left: -6%; }
.hero-visual .tag-2 { bottom: 16%; right: -8%; }
.hero-visual .tag-3 { bottom: -4%; left: 12%; }

/* Trust bar */
.trustbar { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trustbar-title { text-align: center; font-size: 0.8125rem; font-weight: 600; color: var(--mute); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(24px, 5vw, 56px); }
.logo-row .logo-tile {
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
  color: var(--mute); letter-spacing: -0.02em;
  opacity: 0.7; transition: opacity .18s;
}
.logo-row .logo-tile:hover { opacity: 1; color: var(--ink); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr);} }
.stat { padding: 28px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.stat-number { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3vw, 2.75rem); letter-spacing: -0.03em; color: var(--brand); margin-bottom: 6px; line-height: 1; }
.stat-label { font-size: 0.9375rem; color: var(--ink-2); font-weight: 500; }

/* Section head */
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 12px; }

/* Product cards */
.pillar-card {
  padding: 32px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; height: 100%;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-tint); }
.pillar-icon {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 30px; line-height: 1;
}
.pillar-icon i[class*="ph-"] { display: block; line-height: 1; }
/* Phosphor duotone: boost secondary layer opacity for visibility on tinted tiles */
.pillar-icon i.ph-duotone::after { opacity: 0.4; }
.pillar-card h3 { margin-bottom: 8px; }
.pillar-card p { color: var(--mute); margin-bottom: 20px; flex-grow: 1; }
.pillar-card .products-inline { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.pillar-card .products-inline span {
  font-size: 0.75rem; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--paper-2); color: var(--ink-2); font-weight: 500;
}
.pillar-card .link-arrow { color: var(--brand); font-weight: 600; font-size: 0.9375rem; }
.pillar-card .link-arrow::after { content: " →"; transition: margin .18s; }
.pillar-card:hover .link-arrow::after { margin-left: 4px; }

/* Feature product row (products page) */
.product-row {
  display: grid; grid-template-columns: 280px 1fr auto; gap: 32px; align-items: start;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.product-row:last-child { border-bottom: none; }
.product-row .product-mock {
  aspect-ratio: 4 / 3; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand-tint), var(--brand-50));
  display:flex; align-items:center; justify-content:center; color: var(--brand); font-size: 40px;
}
.product-row h4 { font-size: 1.25rem; margin-bottom: 8px; }
.product-row p { color: var(--mute); margin-bottom: 12px; }
.chip { display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); background: var(--paper-2); color: var(--ink-2); font-size: 0.75rem; font-weight: 600; margin-right: 6px; margin-bottom: 6px; }
.chip-brand { background: var(--brand-tint); color: var(--brand); }
@media (max-width: 860px) { .product-row { grid-template-columns: 1fr; } .product-row .product-mock { max-width: 280px; } }

/* Case study card */
.case-card {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-media {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #C2A07A, #4A3020);
}
.case-media .case-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.95); color: var(--ink);
  padding: 6px 12px; border-radius: var(--r-pill);
  font-size: 0.75rem; font-weight: 600;
}
.case-body { padding: 24px; }
.case-meta { font-size: 0.8125rem; color: var(--mute); margin-bottom: 8px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.case-title { font-size: 1.375rem; margin-bottom: 12px; }
.case-metrics { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.case-metric .n { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--brand); letter-spacing: -0.02em; line-height: 1; }
.case-metric .l { font-size: 0.75rem; color: var(--mute); margin-top: 4px; }

/* Filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.filter-bar .chip-btn {
  padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all .18s;
}
.filter-bar .chip-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-bar .chip-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Case detail hero */
.case-hero {
  position: relative; padding: 80px 0 120px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #3a2515, #1a0d06);
}
.case-hero::before {
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 70% 40%, rgba(194, 160, 122, 0.35), transparent 50%),
    radial-gradient(800px 400px at 10% 80%, rgba(255, 107, 90, 0.18), transparent 50%);
}
.case-hero-body { position: relative; z-index: 1; }
.case-hero .case-pill {
  display: inline-block; padding: 8px 16px; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 0.8125rem;
  border-radius: var(--r-pill); margin-bottom: 20px; backdrop-filter: blur(8px);
}
.case-hero h1 { color: #fff; font-size: clamp(2.75rem, 6vw, 4.5rem); margin-bottom: 16px; }
.case-hero .lead { color: rgba(255,255,255,0.85); max-width: 680px; }

/* Photo-backed case hero (opt-in via .case-hero.has-photo + data-hero attr) */
.case-hero.has-photo { background: #0a0500; }
.case-hero.has-photo::before {
  content:""; position: absolute; inset: 0;
  background-image: var(--hero-photo);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.85;
}
.case-hero.has-photo::after {
  content:""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(95deg, rgba(11,17,48,0.78) 0%, rgba(11,17,48,0.45) 45%, rgba(11,17,48,0.15) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 100%);
}
.case-hero.has-photo .case-hero-body { position: relative; z-index: 2; }

.case-detail-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.case-detail-meta .cell { background: rgba(255,255,255,0.08); padding: 20px; border-radius: var(--r-md); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.12); }
.case-detail-meta .k { font-size: 0.75rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.case-detail-meta .v { color: #fff; font-weight: 600; font-size: 0.9375rem; }
@media (max-width: 860px) { .case-detail-meta { grid-template-columns: repeat(2, 1fr); } }

.case-section { padding: 72px 0; }
.case-section + .case-section { border-top: 1px solid var(--line); }
.case-section h2 { margin-bottom: 16px; }
.case-results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.case-result-card { padding: 28px; border-radius: var(--r-lg); background: var(--brand-50); border: 1px solid var(--brand-tint); }
.case-result-card .big { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; color: var(--brand); letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.case-result-card .lbl { font-size: 0.875rem; color: var(--ink-2); font-weight: 500; }
.case-result-card .sub { font-size: 0.75rem; color: var(--mute); margin-top: 2px; }
@media (max-width: 860px) { .case-results-grid { grid-template-columns: repeat(2, 1fr);} }

/* Partners / logo wall */
.partner-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1024px){ .partner-wall { grid-template-columns: repeat(4, 1fr);} }
@media (max-width: 640px) { .partner-wall { grid-template-columns: repeat(2, 1fr);} }
.partner-cell {
  height: 96px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-md);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--mute-2); background: #fff;
  transition: all .18s; padding: 0 16px; text-align: center;
}
.partner-cell:hover { color: var(--ink); border-color: var(--brand); box-shadow: var(--shadow-sm); }

/* Clients composite — single-image real-logo wall */
.clients-composite-wrap {
  display: flex;
  justify-content: center;
}
.clients-composite {
  display: block;
  width: 100%;
  max-width: 1040px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--r-lg);
  background: #fff;
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.clients-composite-strip {
  display: block;
  width: 100%;
  max-width: 880px;
  height: auto;
  margin: 0 auto;
  opacity: 0.95;
}
@media (max-width: 640px) {
  .clients-composite { padding: 12px; }
}

/* Testimonial */
.quote {
  padding: 48px; border-radius: var(--r-xl); background: var(--brand-50);
  position: relative;
}
.quote::before {
  content: "\201C"; position: absolute; top: 12px; left: 28px;
  font-family: Georgia, serif; font-size: 96px; color: var(--brand-tint); line-height: 1;
}
.quote p { font-size: 1.375rem; line-height: 1.5; color: var(--ink); font-weight: 500; position: relative; z-index: 1; margin-bottom: 24px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--ink)); }
.quote .who-name { font-weight: 600; color: var(--ink); font-size: 0.9375rem; }
.quote .who-role { color: var(--mute); font-size: 0.875rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, #1C24C4 100%);
  color: #fff; padding: 80px 0; border-radius: var(--r-xl);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.14), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,0.10), transparent 40%);
}
.cta-band .inner { position: relative; z-index:1; text-align: center; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.125rem; margin-bottom: 28px; }
.cta-band .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.8125rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); letter-spacing: 0.02em; }
.form-field input, .form-field select, .form-field textarea {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md);
  font: inherit; font-size: 0.9375rem; color: var(--ink); background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(43,55,239,0.12);
}
.form-field textarea { resize: vertical; min-height: 140px; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.8); padding: 72px 0 32px; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand img { height: 28px; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,0.66); font-size: 0.9375rem; max-width: 32ch; }
.footer-col h5 { color: #fff; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.9375rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8125rem; color: rgba(255,255,255,0.55); flex-wrap: wrap; gap: 16px;
}

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-s { margin-bottom: 12px; }
.mb-m { margin-bottom: 24px; }
.mb-l { margin-bottom: 48px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ========== PILLAR CARD LINK (clickable tile) ========== */
.pillar-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pillar-card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
  color: inherit;
}
.pillar-card-link .link-arrow {
  margin-top: auto;
  padding-top: 8px;
}

/* ========== AWARDS ========== */
.awards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 768px) { .awards-row { grid-template-columns: 1fr; } }
.award-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.award-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.award-badge {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent-gold), #E89624);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
}
.award-badge .ph-duotone { font-size: 1.75rem; }
.award-body { flex: 1; }
.award-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}
.award-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.award-card p { font-size: 0.9375rem; margin-bottom: 12px; }

/* ========== MEASUREMENT PAGE — methodology steps ========== */
.method-steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}
.method-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  align-items: start;
}
.method-step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.375rem;
  box-shadow: var(--shadow-brand);
}
.method-step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.method-step p { margin-bottom: 0; color: var(--ink-2); }

/* ========== BENCHMARK TABLE ========== */
.bench-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
}
.bench-table thead {
  background: var(--brand-50);
}
.bench-table th, .bench-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.bench-table th {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.bench-table tbody tr:last-child td { border-bottom: none; }
.bench-table tbody tr:hover { background: var(--paper-2); }
.bench-table td strong { color: var(--brand); font-weight: 700; }

/* ========== DASHBOARD MOCKUP ========== */
.dash-wrap {
  background: linear-gradient(135deg, #0B1130, #1B2147);
  border-radius: var(--r-xl);
  padding: 32px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.dash-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(43,55,239,0.35), transparent 50%);
  pointer-events: none;
}
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; position: relative; z-index: 1; }
.dash-title { font-weight: 700; font-size: 1.125rem; color: #fff; margin: 0; display: flex; align-items: center; gap: 10px; }
.dash-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: #2FCBA5; background: rgba(47,203,165,0.12); padding: 6px 12px; border-radius: var(--r-pill); }
.dash-status .pulse { width: 8px; height: 8px; border-radius: 50%; background: #2FCBA5; box-shadow: 0 0 0 0 rgba(47,203,165,0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,203,165,0.7); } 70% { box-shadow: 0 0 0 10px rgba(47,203,165,0); } 100% { box-shadow: 0 0 0 0 rgba(47,203,165,0); } }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; position: relative; z-index: 1; }
.dash-tile {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.dash-tile-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.65); margin-bottom: 6px; }
.dash-tile-value { font-size: 1.75rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.1; }
.dash-tile-delta { font-size: 0.8125rem; color: #2FCBA5; margin-top: 4px; font-weight: 600; }
.dash-tile-delta.neg { color: #FF8F7E; }

/* ========== PRODUCT DETAIL BLOCKS (products page expansion) ========== */
.prod-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
.prod-detail-block {
  background: var(--paper-2);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 22px;
}
.prod-detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 8px;
}
.prod-detail-block p { margin: 0; font-size: 0.9375rem; }
.prod-detail-block ul { margin: 0; padding-left: 18px; font-size: 0.9375rem; color: var(--ink-2); }
.prod-detail-block ul li { margin-bottom: 4px; }
@media (min-width: 900px) {
  .prod-detail { grid-template-columns: 1fr 1fr; }
}

/* ========== AUDIENCE INSIGHT CARD (retailer pages) ========== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.audience-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  text-align: center;
}
.audience-card-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.audience-card-label {
  font-size: 0.875rem;
  color: var(--mute);
  line-height: 1.4;
}

/* ============================================================
   WAVE 5 — VISUAL LIFT
   Animated hero, metric-hero case cards, scroll counters,
   measurement diagram, live dashboard bars, footer social
   ============================================================ */

/* ----- Animated hero dashboard mock (right column) ----- */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-split .hero-cta { justify-content: center; }
  .hero-split .lead { margin-left: auto; margin-right: auto; }
}
.hero-mock {
  position: relative;
  background: linear-gradient(135deg, #0B1130 0%, #1B2147 60%, #2B37EF 140%);
  border-radius: var(--r-xl);
  padding: 28px;
  color: #fff;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(43,55,239,0.18);
  overflow: hidden;
  isolation: isolate;
}
.hero-mock::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 110% -10%, rgba(43,55,239,0.5), transparent 50%),
    radial-gradient(400px 300px at -10% 110%, rgba(47,203,165,0.18), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero-mock > * { position: relative; z-index: 1; }
.hero-mock-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
  font-size: 0.875rem;
}
.hero-mock-title {
  font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px;
}
.hero-mock-title i { color: var(--accent-mint); font-size: 18px; }
.hero-mock-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--accent-mint);
  background: rgba(47,203,165,0.14);
  padding: 5px 11px; border-radius: var(--r-pill);
  font-weight: 600;
}
.hero-mock-live .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-mint);
  animation: pulse 2s infinite;
}
.hero-mock-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.hero-mock-kpi {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.hero-mock-kpi-label {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6); margin-bottom: 4px;
}
.hero-mock-kpi-value {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: #fff;
}
.hero-mock-kpi-delta {
  font-size: 0.75rem; color: var(--accent-mint); font-weight: 600; margin-top: 2px;
}

/* Animated SVG bar chart inside hero mock */
.hero-mock-chart {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 14px;
}
.hero-mock-chart-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.hero-mock-chart-label {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
}
.hero-mock-chart-meta { font-size: 0.75rem; color: var(--accent-mint); font-weight: 600; }
.hero-mock-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 80px;
}
.hero-mock-bar {
  flex: 1;
  background: linear-gradient(180deg, #6E78FF 0%, #2B37EF 100%);
  border-radius: 4px 4px 2px 2px;
  height: 20%;
  animation: bar-grow 1.4s cubic-bezier(.2,.8,.2,1) forwards;
  transform-origin: bottom;
}
@keyframes bar-grow {
  0% { height: 5%; opacity: 0.3; }
  100% { height: var(--h, 60%); opacity: 1; }
}
.hero-mock-bar:nth-child(1)  { --h: 38%; animation-delay: 0.05s; }
.hero-mock-bar:nth-child(2)  { --h: 52%; animation-delay: 0.10s; }
.hero-mock-bar:nth-child(3)  { --h: 44%; animation-delay: 0.15s; }
.hero-mock-bar:nth-child(4)  { --h: 68%; animation-delay: 0.20s; }
.hero-mock-bar:nth-child(5)  { --h: 56%; animation-delay: 0.25s; }
.hero-mock-bar:nth-child(6)  { --h: 78%; animation-delay: 0.30s; }
.hero-mock-bar:nth-child(7)  { --h: 64%; animation-delay: 0.35s; }
.hero-mock-bar:nth-child(8)  { --h: 86%; animation-delay: 0.40s; }
.hero-mock-bar:nth-child(9)  { --h: 72%; animation-delay: 0.45s; }
.hero-mock-bar:nth-child(10) { --h: 94%; animation-delay: 0.50s; }
.hero-mock-bar.brand-2 { background: linear-gradient(180deg, #2FCBA5 0%, #1AA384 100%); }
.hero-mock-bar:nth-child(10) { background: linear-gradient(180deg, #2FCBA5 0%, #1AA384 100%); }

.hero-mock-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
}
.hero-mock-channels { display: flex; gap: 8px; }
.hero-mock-pill {
  font-size: 0.6875rem; color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 4px 9px; border-radius: var(--r-pill); font-weight: 500;
}
.hero-mock-foot-time { color: rgba(255,255,255,0.5); font-variant-numeric: tabular-nums; }

/* Floating chips around the hero mock */
.hero-mock-float {
  position: absolute;
  background: #fff; color: var(--ink);
  padding: 10px 14px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 600;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.hero-mock-float .badge {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.hero-mock-float-1 { top: 6%; left: -10%; animation-delay: 0s; }
.hero-mock-float-2 { bottom: 14%; right: -6%; animation-delay: 1.5s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
@media (max-width: 980px) {
  .hero-mock-float-1 { left: 6%; }
  .hero-mock-float-2 { right: 6%; }
}

/* ----- Animated stats (count-up triggered by IntersectionObserver) ----- */
.stat[data-counter] .stat-number {
  display: inline-block;
  position: relative;
}
.stat .stat-spark {
  display: block;
  margin-top: 10px;
  height: 22px;
  width: 100%;
}
.stat .stat-spark path {
  stroke: var(--brand);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1);
}
.stat.is-visible .stat-spark path { stroke-dashoffset: 0; }
.stat .stat-spark .area {
  fill: var(--brand);
  opacity: 0;
  transition: opacity 1.4s ease;
}
.stat.is-visible .stat-spark .area { opacity: 0.08; }

/* ----- Case study cards — metric-as-hero treatment ----- */
.case-card-v2 {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.case-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-tint);
}
.case-card-v2 .case-hero {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--ink) 0%, var(--brand) 140%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.case-card-v2 .case-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 300px at 110% 110%, rgba(43,55,239,0.55), transparent 55%),
    radial-gradient(400px 250px at -10% -10%, rgba(47,203,165,0.18), transparent 55%);
  pointer-events: none; z-index: 0;
}
.case-card-v2 .case-hero > * { position: relative; z-index: 1; }
.case-card-v2 .case-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: rgba(255,255,255,0.75);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.case-card-v2 .case-pill {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 0.6875rem; font-weight: 700;
  padding: 4px 10px; border-radius: var(--r-pill);
  letter-spacing: 0.06em;
}
.case-card-v2 .case-metric {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 4.6vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 0 6px;
}
.case-card-v2 .case-metric-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  line-height: 1.35;
}
.case-card-v2 .case-body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; flex-grow: 1;
}
.case-card-v2 .case-body h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  line-height: 1.35;
}
.case-card-v2 .case-body p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--mute);
  flex-grow: 1;
}
.case-card-v2 .case-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-weight: 600; font-size: 0.9375rem;
  margin-top: 14px;
}
.case-card-v2:hover .case-link { gap: 10px; }

/* Variant tints for the hero gradient (use modifier classes) */
.case-card-v2 .case-hero.hero-coral { background: linear-gradient(135deg, #6b1d12 0%, #FF6B5A 140%); }
.case-card-v2 .case-hero.hero-mint  { background: linear-gradient(135deg, #0d3a30 0%, #2FCBA5 140%); }
.case-card-v2 .case-hero.hero-gold  { background: linear-gradient(135deg, #4a3000 0%, #FFB342 140%); }
.case-card-v2 .case-hero.hero-violet{ background: linear-gradient(135deg, #1a0b3d 0%, #6E78FF 140%); }
.case-card-v2 .case-hero.hero-blue  { background: linear-gradient(135deg, #0B1130 0%, #2B37EF 140%); }
.case-card-v2 .case-hero.hero-rose  { background: linear-gradient(135deg, #4a0f2a 0%, #ff5a8a 140%); }

/* Case study DETAIL page hero — large metric column */
.case-detail-hero {
  padding: clamp(72px, 10vw, 128px) 0 clamp(40px, 6vw, 80px);
  background: linear-gradient(135deg, var(--ink) 0%, var(--brand) 150%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.case-detail-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 600px at 100% -10%, rgba(43,55,239,0.45), transparent 55%),
    radial-gradient(700px 500px at -10% 110%, rgba(47,203,165,0.18), transparent 55%);
  pointer-events: none;
}
.case-detail-hero > .container { position: relative; z-index: 1; }
.case-detail-hero h1 { color: #fff; }
.case-detail-hero .lead { color: rgba(255,255,255,0.82); }
.case-detail-hero .case-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 36px;
}
.case-detail-hero .case-meta-tile {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  padding: 14px 18px;
}
.case-detail-hero .case-meta-tile-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.case-detail-hero .case-meta-tile-value {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

/* ----- Measurement page right-column diagram ----- */
.measure-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 980px) {
  .measure-hero-grid { grid-template-columns: 1fr; }
}
.measure-stack {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.measure-stack-step {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--brand-50) 0%, #fff 100%);
  border-left: 4px solid var(--brand);
  position: relative;
}
.measure-stack-step .step-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.measure-stack-step .step-icon i { line-height: 1; }
.measure-stack-step.tone-mint .step-icon { background: var(--accent-mint); }
.measure-stack-step.tone-mint { border-left-color: var(--accent-mint); }
.measure-stack-step.tone-gold .step-icon { background: var(--accent-gold); }
.measure-stack-step.tone-gold { border-left-color: var(--accent-gold); }
.measure-stack-step.tone-coral .step-icon { background: var(--accent-coral); }
.measure-stack-step.tone-coral { border-left-color: var(--accent-coral); }
.measure-stack-step .step-content { flex-grow: 1; }
.measure-stack-step .step-title {
  font-weight: 700; font-size: 0.9375rem; color: var(--ink); margin-bottom: 2px;
}
.measure-stack-step .step-desc {
  font-size: 0.8125rem; color: var(--mute); line-height: 1.4;
}
.measure-stack-step::after {
  content: "";
  position: absolute;
  bottom: -10px; left: 38px;
  width: 2px; height: 10px;
  background: var(--brand-tint);
}
.measure-stack-step:last-child::after { display: none; }

/* ----- Footer social links ----- */
.footer-social {
  display: flex; gap: 10px; margin-top: 18px;
}
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 18px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.footer-social a:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
}

/* ----- Reveal on scroll (intersection observer toggle) ----- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ----- Live Dashboard section: animated bar chart inside ----- */
.dash-chart {
  grid-column: 1 / -1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-top: 4px;
}
.dash-chart-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
}
.dash-chart-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 100px;
}
.dash-chart-bar {
  flex: 1;
  background: linear-gradient(180deg, #6E78FF 0%, #2B37EF 100%);
  border-radius: 4px 4px 2px 2px;
  height: var(--h, 50%);
  opacity: 0.92;
}
.dash-chart-bar.peak { background: linear-gradient(180deg, #2FCBA5 0%, #1AA384 100%); }

/* ============================================================
   WAVE 6 — PRODUCTS PAGE REBUILD
   Hero split visual, redesigned product mock with UI scaffolding
   ============================================================ */

/* Products hero — split layout with format stack on the right */
.products-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 980px) {
  .products-hero-grid { grid-template-columns: 1fr; }
}

/* Format stack — overlapping cards showing all 8 pillars */
.format-stack {
  position: relative;
  height: 460px;
}
.format-stack-card {
  position: absolute;
  width: 260px;
  border-radius: var(--r-md);
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9375rem; font-weight: 600;
  color: var(--ink);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.format-stack-card:hover { transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.04); z-index: 5; }
.format-stack-card .fs-icon {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--brand-tint); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.format-stack-card .fs-meta {
  display: block; font-size: 0.6875rem; color: var(--mute);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 2px;
}
/* Each card gets a gentle floating animation with staggered delays */
.format-stack-card { animation: fs-bob 6s ease-in-out infinite; }
@keyframes fs-bob {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50%      { transform: rotate(var(--rot, 0deg)) translateY(-6px); }
}
.format-stack-card.fs-1 { top: 0;    left: 0;   --rot: -3deg;   animation-delay: 0s;    }
.format-stack-card.fs-2 { top: 50px; left: 90px; --rot: 2deg;    animation-delay: 0.4s;  }
.format-stack-card.fs-3 { top: 110px; left: 0;   --rot: -1.5deg; animation-delay: 0.8s;  }
.format-stack-card.fs-4 { top: 170px; left: 110px; --rot: 1deg;  animation-delay: 1.2s;  }
.format-stack-card.fs-5 { top: 230px; left: 10px; --rot: -2deg;  animation-delay: 1.6s;  }
.format-stack-card.fs-6 { top: 290px; left: 100px; --rot: 2deg;  animation-delay: 2.0s;  }
.format-stack-card.fs-7 { top: 350px; left: 0;    --rot: -1deg;  animation-delay: 2.4s;  }
.format-stack-card.fs-8 {
  top: 400px; left: 60px; --rot: 0deg; animation-delay: 2.8s;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; border: none;
  box-shadow: var(--shadow-brand);
  width: 240px;
}
.format-stack-card.fs-8 .fs-icon { background: rgba(255,255,255,0.18); color: #fff; }
.format-stack-card.fs-8 .fs-meta { color: rgba(255,255,255,0.7); }

@media (max-width: 980px) {
  .format-stack { height: 380px; max-width: 380px; margin: 0 auto; }
  .format-stack-card { width: 220px; font-size: 0.875rem; }
  .format-stack-card.fs-8 { width: 220px; left: 40px; }
}
@media (max-width: 480px) {
  .format-stack { height: 360px; }
  .format-stack-card { width: 200px; padding: 12px 14px; }
}

/* Redesigned product mock — looks like a real campaign card, not a placeholder */
.product-row .product-mock {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #fff 0%, var(--brand-50) 100%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 40px;
  transition: transform .25s ease, box-shadow .25s ease;
  isolation: isolate;
}
.product-row:hover .product-mock {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
/* Scaffolding background — abstract product-UI lines */
.product-row .product-mock::before {
  content: "";
  position: absolute;
  top: 18px; left: 18px; right: 18px;
  height: 4px;
  background: var(--brand-tint);
  border-radius: 2px;
  opacity: 0.7;
}
.product-row .product-mock::after {
  content: "";
  position: absolute;
  bottom: 18px; left: 18px;
  width: 50%; height: 4px;
  background: var(--brand-tint);
  border-radius: 2px;
  opacity: 0.5;
}
.product-row .product-mock i {
  position: relative; z-index: 1;
  font-size: 56px;
}
/* Brand-fill variant — the headline product row in each pillar */
.product-row .product-mock.brand-fill {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 80%, #6E78FF 130%);
  border-color: var(--brand-2);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.product-row .product-mock.brand-fill::before { background: rgba(255,255,255,0.22); opacity: 1; }
.product-row .product-mock.brand-fill::after  { background: rgba(255,255,255,0.14); opacity: 1; }
.product-row .product-mock.brand-fill i { color: #fff; }
.product-row .product-mock.brand-fill .mock-tag {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-size: 0.6875rem; font-weight: 700;
  color: var(--accent-mint);
  background: rgba(47,203,165,0.18);
  padding: 3px 8px; border-radius: var(--r-pill);
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* Section variants — tint backgrounds for visual rhythm */
.product-row.row-alt { background: linear-gradient(180deg, var(--paper-2) 0%, transparent 100%); }

/* DGM Data Pool callout — fix emoji icons */
.data-pool-cell {
  display: flex; align-items: flex-start; gap: 10px;
}
.data-pool-cell .dp-icon {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-tint); color: var(--brand);
  border-radius: 6px; font-size: 14px;
  flex-shrink: 0;
}

/* Surface card — products-page intro cards with a colored top accent */
.pillar-card.surface-card {
  position: relative;
  padding-top: 36px;
  overflow: hidden;
}
.pillar-card.surface-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, #6E78FF 100%);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  transform: scaleX(0.45);
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.pillar-card.surface-card:hover::before { transform: scaleX(1); }
.pillar-card.surface-card.tone-mint::before  { background: linear-gradient(90deg, var(--accent-mint) 0%, #1AA384 100%); }
.pillar-card.surface-card.tone-gold::before  { background: linear-gradient(90deg, var(--accent-gold) 0%, #E89320 100%); }
.pillar-card.surface-card.tone-coral::before { background: linear-gradient(90deg, var(--accent-coral) 0%, #D94A3B 100%); }

/* ============================================================
   WAVE 7 — FULL SITE FINISH PASS
   Rich Media phone, Partners network, About offices, case-detail
   SVG mocks, reveal observer, sticky nav, focus states, 404 bg,
   scroll progress, back-to-top, testimonial, related cases
   ============================================================ */

/* ---------- a11y / global polish ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff;
  padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700; z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(43,55,239,0.45);
  outline-offset: 2px;
}

/* Better form focus glow */
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px rgba(43,55,239,0.15);
  transition: border-color .15s, box-shadow .15s;
}

/* Section-target offset for sticky nav */
section[id] { scroll-margin-top: 80px; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent-mint) 100%);
  z-index: 10000;
  transition: width .1s linear;
  pointer-events: none;
}

/* ---------- Back-to-top floating button ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  border: none; cursor: pointer;
  z-index: 999;
  font-size: 18px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .2s ease, transform .2s ease, background .15s;
  pointer-events: none;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--brand-2); transform: translateY(-2px); }

/* ---------- Sticky pillar nav on Products page ---------- */
.pillar-jump-sticky {
  position: sticky; top: 64px;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--line);
}

/* ---------- Rich Media hero — animated phone frame ---------- */
.rm-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px,5vw,64px); align-items: center; }
@media (max-width: 980px) { .rm-hero-grid { grid-template-columns: 1fr; } }

.phone-mock {
  position: relative;
  width: 280px;
  height: 540px;
  background: linear-gradient(135deg, #0B1130 0%, #1B2147 100%);
  border-radius: 36px;
  padding: 14px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(43,55,239,0.18);
  border: 8px solid #1B2147;
}
.phone-mock::before {
  content: ""; position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 22px;
  background: #0B1130; border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  background: #fff;
  border-radius: 22px;
  width: 100%; height: 100%;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}
.phone-screen-status {
  padding: 32px 16px 8px;
  display: flex; justify-content: space-between;
  font-size: 0.6875rem; color: var(--mute);
  font-weight: 600;
}
.phone-ad {
  flex: 1;
  background: linear-gradient(135deg, var(--brand) 0%, #6E78FF 100%);
  margin: 8px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px;
}
.phone-ad::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.25), transparent 50%);
  pointer-events: none;
}
.phone-ad-tag {
  font-size: 0.625rem; font-weight: 700;
  background: rgba(255,255,255,0.18);
  padding: 3px 8px; border-radius: var(--r-pill);
  align-self: flex-start;
  letter-spacing: 0.08em;
}
.phone-ad-title { font-size: 1.125rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.phone-ad-cta {
  background: #fff; color: var(--ink);
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 0.75rem; font-weight: 700;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 4px;
}
.phone-ad-swipe {
  position: absolute; right: 14px; bottom: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  animation: phone-swipe 2.5s ease-in-out infinite;
}
@keyframes phone-swipe {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50%      { transform: translateX(-10px); opacity: 1; }
}
.phone-floats { position: absolute; inset: 0; pointer-events: none; }
.phone-float {
  position: absolute;
  background: #fff; color: var(--ink);
  padding: 8px 12px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  font-size: 0.75rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  animation: float 6s ease-in-out infinite;
}
.phone-float .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-mint); }
.phone-float-1 { top: 8%; left: -32%; animation-delay: 0s; }
.phone-float-2 { bottom: 18%; right: -28%; animation-delay: 2s; }

/* ---------- Partners hero — supply network diagram ---------- */
.partners-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px,5vw,64px); align-items: center; }
@media (max-width: 980px) { .partners-hero-grid { grid-template-columns: 1fr; } }

.supply-network {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
}
.supply-network svg { width: 100%; height: 100%; overflow: visible; }
.sn-line {
  stroke: var(--brand-tint);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 6 6;
  animation: sn-flow 3s linear infinite;
}
@keyframes sn-flow {
  from { stroke-dashoffset: 12; }
  to   { stroke-dashoffset: 0; }
}
.sn-node {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 14px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  transition: transform .25s;
}
.sn-node:hover { transform: scale(1.06); z-index: 10; }
.sn-node .sn-icon {
  width: 26px; height: 26px;
  background: var(--brand-tint); color: var(--brand);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.sn-node.tone-mint .sn-icon { background: rgba(47,203,165,0.16); color: var(--accent-mint); }
.sn-node.tone-gold .sn-icon { background: rgba(255,179,66,0.18); color: var(--accent-gold); }
.sn-node.tone-coral .sn-icon { background: rgba(255,107,90,0.18); color: var(--accent-coral); }
.sn-center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-brand);
  z-index: 5;
  animation: sn-pulse 3s ease-in-out infinite;
}
@keyframes sn-pulse {
  0%, 100% { box-shadow: var(--shadow-brand), 0 0 0 0 rgba(43,55,239,0.4); }
  50%      { box-shadow: var(--shadow-brand), 0 0 0 14px rgba(43,55,239,0); }
}
.sn-pos-1 { top: 4%;   left: 12%;  }
.sn-pos-2 { top: 4%;   right: 8%;  }
.sn-pos-3 { top: 44%;  left: -2%;  }
.sn-pos-4 { top: 44%;  right: -2%; }
.sn-pos-5 { bottom: 4%; left: 8%;  }
.sn-pos-6 { bottom: 4%; right: 4%; }
@media (max-width: 540px) {
  .sn-node { font-size: 0.6875rem; padding: 7px 10px; }
  .sn-node .sn-icon { width: 22px; height: 22px; font-size: 12px; }
}

/* ---------- About hero — offices visual ---------- */
.about-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px,5vw,64px); align-items: center; }
@media (max-width: 980px) { .about-hero-grid { grid-template-columns: 1fr; } }
.office-stack {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 420px; margin: 0 auto;
}
.office-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.office-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand) 0%, #6E78FF 100%);
}
.office-card.tone-mint::before  { background: linear-gradient(180deg, var(--accent-mint) 0%, #1AA384 100%); }
.office-card.tone-gold::before  { background: linear-gradient(180deg, var(--accent-gold) 0%, #E89320 100%); }
.office-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.office-flag {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--brand-tint); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.office-card.tone-mint .office-flag { background: rgba(47,203,165,0.16); color: var(--accent-mint); }
.office-card.tone-gold .office-flag { background: rgba(255,179,66,0.18); color: var(--accent-gold); }
.office-info { flex-grow: 1; }
.office-info .city { font-weight: 700; font-size: 1rem; color: var(--ink); }
.office-info .role { font-size: 0.8125rem; color: var(--mute); margin-top: 2px; }
.office-info .stat { font-family: var(--font-display); font-weight: 700; color: var(--brand); font-size: 1.125rem; }
.office-card.tone-mint .office-info .stat { color: var(--accent-mint); }
.office-card.tone-gold .office-info .stat { color: var(--accent-gold); }

/* ---------- Case study detail page — visual hero treatment ---------- */
.cs-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px,5vw,56px); align-items: center;
  margin-top: 32px;
}
@media (max-width: 880px) { .cs-hero-grid { grid-template-columns: 1fr; } }
.cs-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 24px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.cs-visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(400px 280px at 100% 0%, rgba(255,255,255,0.15), transparent 60%),
    radial-gradient(300px 200px at 0% 100%, rgba(47,203,165,0.18), transparent 60%);
  pointer-events: none;
}
.cs-visual > * { position: relative; z-index: 1; }
.cs-visual-head {
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(255,255,255,0.85); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.cs-visual-tag {
  background: rgba(255,255,255,0.16);
  padding: 4px 10px; border-radius: var(--r-pill);
  font-weight: 700;
}
.cs-visual-metric {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.cs-visual-label {
  color: rgba(255,255,255,0.82);
  font-size: 0.9375rem; font-weight: 500;
}
.cs-visual-bars {
  display: flex; align-items: flex-end; gap: 5px; height: 60px;
}
.cs-visual-bars .b {
  flex: 1; background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.25) 100%);
  border-radius: 3px;
  animation: bar-grow 1.4s cubic-bezier(.2,.8,.2,1) forwards;
  height: 30%;
}
.cs-visual-bars .b:nth-child(1) { --h: 38%; animation-delay: 0.05s; }
.cs-visual-bars .b:nth-child(2) { --h: 52%; animation-delay: 0.10s; }
.cs-visual-bars .b:nth-child(3) { --h: 62%; animation-delay: 0.15s; }
.cs-visual-bars .b:nth-child(4) { --h: 78%; animation-delay: 0.20s; }
.cs-visual-bars .b:nth-child(5) { --h: 92%; animation-delay: 0.25s; }
.cs-visual-bars .b.peak { background: linear-gradient(180deg, var(--accent-mint) 0%, rgba(47,203,165,0.55) 100%); }

/* ---------- Related case studies (bottom of detail pages) ---------- */
.related-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .related-cases-grid { grid-template-columns: 1fr; } }

/* ---------- 404 page animated bg ---------- */
.fourohfour-bg {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
}
.fourohfour-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  animation: float-shape 12s ease-in-out infinite;
}
.fourohfour-shape:nth-child(1) { width: 320px; height: 320px; background: var(--brand); top: -100px; left: -80px; animation-delay: 0s; }
.fourohfour-shape:nth-child(2) { width: 240px; height: 240px; background: var(--accent-mint); top: 20%; right: -60px; animation-delay: 3s; }
.fourohfour-shape:nth-child(3) { width: 280px; height: 280px; background: #6E78FF; bottom: 0; left: 30%; animation-delay: 6s; }
@keyframes float-shape {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(40px,-30px) scale(1.08); }
}

/* ---------- Testimonial section (homepage) ---------- */
.testimonial-quote {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 40px clamp(24px, 6vw, 64px);
  text-align: center;
}
.testimonial-quote::before {
  content: "\201C";
  position: absolute;
  top: -32px; left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  font-size: 120px;
  color: var(--brand-tint);
  line-height: 1;
  pointer-events: none;
}
.testimonial-quote q {
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 24px;
  quotes: none;
}
.testimonial-quote q::before, .testimonial-quote q::after { content: ""; }
.testimonial-attribution {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.9375rem;
  color: var(--mute);
}
.testimonial-attribution .avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--brand) 0%, #6E78FF 100%);
  color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
}
.testimonial-attribution strong { color: var(--ink); font-weight: 600; }

/* ---------- Privacy + Terms typography pass ---------- */
.legal-doc { max-width: 760px; margin: 0 auto; }
.legal-doc h2 { margin-top: 40px; font-size: 1.5rem; }
.legal-doc h3 { margin-top: 28px; font-size: 1.125rem; }
.legal-doc p, .legal-doc li { color: var(--ink-2); line-height: 1.7; }
.legal-doc ul, .legal-doc ol { padding-left: 22px; margin-bottom: 16px; }
.legal-doc strong { color: var(--ink); }
.legal-toc {
  background: var(--paper-2);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 22px;
  margin-bottom: 32px;
}
.legal-toc-label {
  font-size: 0.6875rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--brand);
  font-weight: 700; margin-bottom: 10px;
}
.legal-toc ol { margin: 0; padding-left: 18px; columns: 2; column-gap: 24px; }
.legal-toc li { padding: 3px 0; font-size: 0.9375rem; break-inside: avoid; }
.legal-toc a { color: var(--ink-2); }
.legal-toc a:hover { color: var(--brand); }

/* Print stylesheet for case-study pages */
@media print {
  .site-header, .site-footer, .nav, .nav-cta, .case-detail-hero a.btn,
  .scroll-progress, .back-to-top, .cta-band, .footer-social { display: none !important; }
  body { font-size: 11pt; line-height: 1.5; color: #000; }
  .container { padding: 0; }
  .case-hero { background: none !important; color: #000 !important; padding: 20px 0 !important; }
  .case-hero h1, .case-hero .lead { color: #000 !important; }
  a { color: #000 !important; text-decoration: underline; }
}
