/* =========================================================
   BEYOND THE CALL — LIGHT v2
   Option C: Sky · Lavender · Periwinkle
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --canvas:        #F7F8FC;
  --canvas-soft:   #FDFDFE;
  --canvas-card:   #FFFFFF;
  --canvas-elev:   #EFF1F8;

  --ink-900:       #0F1428;
  --ink-700:       #1A1F33;
  --ink-500:       #3A4060;
  --ink-300:       #545A78;
  --ink-200:       #7C82A0;
  --ink-100:       #A8ADC4;

  --sky:           #4A5BC4;
  --sky-soft:      #DCE2FA;
  --sky-deep:      #2E3A8C;

  --lavender:      #8B7BD4;
  --lavender-soft: #E7DCFA;
  --lavender-deep: #4A2E8C;

  --peri:          #6B8FE0;
  --peri-soft:     #DCEEFA;
  --peri-deep:     #1A4A7C;

  --border:        #E2E5F0;
  --border-strong: #D0D4E2;
  --border-soft:   #EBEDF5;

  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

  --max:       1240px;
  --max-tight: 960px;
  --gutter:    clamp(20px, 4vw, 48px);
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  color-scheme: light only;
  background: var(--canvas);
}

body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink-700);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Force light mode — never inherit dark-mode from user OS */
@media (prefers-color-scheme: dark) {
  html, body {
    background: #F7F8FC !important;
    color: #1A1F33 !important;
  }
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* TYPOGRAPHY */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--sky);
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  letter-spacing: -0.028em;
  line-height: 1.05;
  color: var(--ink-900);
}
h1 { font-size: clamp(44px, 6.5vw, 88px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.0; }
h2 { font-size: clamp(34px, 4.5vw, 56px); font-weight: 500; }
h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
h4 { font-size: 18px;  font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

em, .italic-accent {
  font-style: italic;
  font-weight: 400;
  color: var(--sky);
}

p { color: var(--ink-300); }
p.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--ink-500);
  max-width: 56ch;
  line-height: 1.55;
}

/* LAYOUT */
.container       { max-width: var(--max);       margin: 0 auto; padding: 0 var(--gutter); }
.container-tight { max-width: var(--max-tight); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
section.compact { padding: clamp(60px, 7vw, 100px) 0; }

/* HEADER */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 248, 252, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}
.site-header .brand-logo { height: 40px; }
.footer .brand-logo { height: 48px; }

.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-500);
  transition: color 0.2s;
  position: relative;
}
.nav a:hover { color: var(--ink-900); }
.nav a.active { color: var(--sky); }
.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 1.5px;
  background: var(--sky);
  border-radius: 1px;
}

@media (max-width: 880px) { .nav { display: none; } }

.header-cta { display: flex; gap: 12px; align-items: center; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink-900);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--sky);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(74, 91, 196, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-700);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--sky);
  color: var(--sky);
  background: var(--canvas-soft);
}

.btn-link {
  color: var(--sky);
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s, color 0.2s;
}
.btn-link:hover { gap: 12px; color: var(--sky-deep); }
.btn-link::after { content: "→"; }

/* HERO */
.hero {
  position: relative;
  padding: 100px 24px 60px;
  background: #FFFFFF;
  overflow: visible;
}

/* Floating canvas — the rounded rectangle that holds the hero content */
.hero-canvas {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  padding: 90px 0 80px;
  isolation: isolate;
  box-shadow:
    0 50px 90px -40px rgba(15, 20, 40, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  background: #F7F8FC;
  border: 1px solid rgba(15, 20, 40, 0.04);
}

/* Animated hero mesh — now clipped to the canvas's rounded corners */
.hero-mesh {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-mesh::before,
.hero-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  filter: blur(60px);
}

/* Layer 1: cool blue + lavender — slow horizontal drift */
.hero-mesh::before {
  background:
    radial-gradient(at 20% 30%, rgba(178, 196, 255, 0.75) 0px, transparent 40%),
    radial-gradient(at 80% 20%, rgba(214, 196, 255, 0.65) 0px, transparent 45%),
    radial-gradient(at 60% 80%, rgba(196, 224, 255, 0.55) 0px, transparent 50%);
  animation: meshDriftA 28s ease-in-out infinite;
}

/* Layer 2: warmer lavender + soft pink — counter-drift for depth */
.hero-mesh::after {
  background:
    radial-gradient(at 70% 50%, rgba(232, 220, 255, 0.55) 0px, transparent 45%),
    radial-gradient(at 30% 70%, rgba(220, 226, 250, 0.50) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(196, 196, 240, 0.40) 0px, transparent 45%);
  animation: meshDriftB 36s ease-in-out infinite;
}

@keyframes meshDriftA {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(4%, -3%) scale(1.08) rotate(2deg); }
  50% { transform: translate(-3%, 4%) scale(0.95) rotate(-2deg); }
  75% { transform: translate(2%, 2%) scale(1.04) rotate(1deg); }
}
@keyframes meshDriftB {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(-4%, 3%) scale(1.06) rotate(-1.5deg); }
  66% { transform: translate(3%, -3%) scale(0.94) rotate(1.5deg); }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh::before, .hero-mesh::after { animation: none; }
}

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

/* 2-column hero layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-text { min-width: 0; }

.hero-title {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 0.98;
  max-width: 14ch;
  color: var(--ink-900);
}
.hero-title .rotator {
  color: var(--sky);
  font-style: italic;
  font-weight: 400;
  display: inline-block;
  margin-right: 0.08em;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.hero-sub {
  margin-top: 32px;
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--ink-500);
  max-width: 56ch;
  line-height: 1.55;
}

.hero-cta {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================================================
   HERO CHAT — Dark editorial glass panel
   ========================================================= */
.hero-chat {
  position: relative;
  background: rgba(15, 20, 40, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 26px 26px 22px;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 30px 60px -30px rgba(15, 20, 40, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

/* Subtle inner mesh — gives the dark surface depth */
.hero-chat-mesh {
  position: absolute;
  inset: -30%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(at 20% 30%, rgba(74, 91, 196, 0.28), transparent 50%),
    radial-gradient(at 80% 80%, rgba(139, 123, 212, 0.18), transparent 55%);
  filter: blur(40px);
  animation: meshDriftA 35s ease-in-out infinite;
}
.hero-chat-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

/* Header strip — status + meta */
.hero-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-chat-status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-chat-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6EE7B7;
  box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.18);
  animation: chatPulse 2.4s ease-in-out infinite;
}
@keyframes chatPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(110, 231, 183, 0.06); }
}
.hero-chat-status-text {
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  font-weight: 500;
}
#chat-scenario {
  color: #B5BEEC;
  font-style: italic;
  font-weight: 400;
  transition: opacity 0.3s ease;
}
.hero-chat-meta { display: flex; align-items: center; gap: 12px; }
.hero-chat-tag {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #9BA3C4;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Thread — the actual conversation */
.hero-chat-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: opacity 0.32s ease;
  min-height: 220px;
  justify-content: flex-start;
}

/* Individual message */
.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 88%;
  opacity: 0;
  animation: chatMsgIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes chatMsgIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.chat-msg-label {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7E85A8;
  font-weight: 600;
}

.chat-msg-bubble {
  font-size: 13.5px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  padding: 10px 14px;
  border-radius: 12px;
  word-wrap: break-word;
}

/* Customer messages — left, neutral gray-blue */
.chat-msg-customer {
  align-self: flex-start;
}
.chat-msg-customer .chat-msg-bubble {
  background: rgba(255, 255, 255, 0.06);
  color: #E4E7F0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* AI messages — right, lavender with hairline border */
.chat-msg-ai {
  align-self: flex-end;
  align-items: flex-end;
}
.chat-msg-ai .chat-msg-label { color: #B5BEEC; }
.chat-msg-ai .chat-msg-bubble {
  background: rgba(139, 123, 212, 0.12);
  color: #E8E4FA;
  border: 1px solid rgba(181, 190, 236, 0.22);
}

/* Human messages — right, distinct from AI: solid lavender */
.chat-msg-human {
  align-self: flex-end;
  align-items: flex-end;
}
.chat-msg-human .chat-msg-label { color: #A8B0E0; }
.chat-msg-human .chat-msg-bubble {
  background: linear-gradient(135deg, #4A5BC4 0%, #6B5DC4 100%);
  color: #FFFFFF;
  border: 1px solid rgba(181, 190, 236, 0.35);
}

/* System messages (health score alerts, etc.) — centered, all-caps tag style */
.chat-msg-system {
  align-self: center;
  max-width: 100%;
  align-items: center;
}
.chat-msg-system .chat-msg-label {
  color: #F0B95A;
}
.chat-msg-system .chat-msg-bubble {
  background: rgba(240, 185, 90, 0.08);
  color: #F0D5A0;
  border: 1px solid rgba(240, 185, 90, 0.20);
  font-size: 12px;
  text-align: center;
}

/* Footer — outcome strip */
.hero-chat-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-chat-outcome {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #9BA3C4;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero-chat-outcome-label {
  text-transform: uppercase;
  color: #7E85A8;
}
.hero-chat-outcome-by {
  color: #FFFFFF;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
}
.hero-chat-outcome-csat {
  margin-left: auto;
  color: #6EE7B7;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  background: rgba(110, 231, 183, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  border: 1px solid rgba(110, 231, 183, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .hero-chat-mesh, .hero-chat-pulse { animation: none; }
  .chat-msg { animation-duration: 0.01ms; }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(64px, 8vw, 100px);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.hero-stat {
  padding: 28px 4px 0;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat-num small {
  font-size: 0.55em;
  color: var(--sky);
  margin-left: 2px;
  font-style: italic;
  font-weight: 400;
}
.hero-stat-label {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-200);
  font-weight: 500;
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(1), .hero-stat:nth-child(2) { border-bottom: 1px solid var(--border); padding-bottom: 24px; }
}

/* PAGE HERO (non-home) */
.page-hero {
  position: relative;
  padding-top: 200px;
  padding-bottom: 100px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(at 80% 0%, rgba(178, 196, 255, 0.5) 0px, transparent 50%),
    radial-gradient(at 10% 50%, rgba(214, 196, 255, 0.35) 0px, transparent 45%),
    radial-gradient(at 60% 80%, rgba(196, 224, 255, 0.40) 0px, transparent 50%);
  pointer-events: none;
  filter: blur(40px);
  animation: meshDriftA 32s ease-in-out infinite;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(at 50% 60%, rgba(232, 220, 255, 0.40) 0px, transparent 45%),
    radial-gradient(at 90% 70%, rgba(220, 226, 250, 0.45) 0px, transparent 50%);
  pointer-events: none;
  filter: blur(40px);
  animation: meshDriftB 40s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .page-hero::before, .page-hero::after { animation: none; }
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; margin-top: 24px; }
.page-hero .lead { margin-top: 28px; }

/* DARK SECTION — for visual rhythm break between light sections */
.section.dark {
  background: var(--ink-900);
  color: #FFFFFF;
  border-top: none;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
.section.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 20% 30%, rgba(74, 91, 196, 0.25), transparent 50%),
    radial-gradient(at 80% 70%, rgba(139, 123, 212, 0.18), transparent 55%);
  filter: blur(40px);
  animation: meshDriftA 35s ease-in-out infinite;
  pointer-events: none;
}
.section.dark > .container,
.section.dark > .container-tight {
  position: relative;
  z-index: 1;
}
.section.dark h2,
.section.dark h3,
.section.dark h4 { color: #FFFFFF !important; }
.section.dark p,
.section.dark .lead { color: #C8CDE5 !important; }
.section.dark .eyebrow { color: #B5BEEC !important; }
.section.dark .eyebrow::before { background: #B5BEEC; }
.section.dark em { color: #B5BEEC !important; }

/* Dark stat band — 4-col grid with white text on navy */
.section.dark .dark-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.section.dark .dark-stat {
  padding: 32px 24px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.section.dark .dark-stat:last-child { border-right: none; }
.section.dark .dark-stat-num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1;
}
.section.dark .dark-stat-num em {
  font-size: 0.55em;
  color: #B5BEEC !important;
  margin-left: 2px;
  font-style: italic;
  font-weight: 400;
}
.section.dark .dark-stat-label {
  margin-top: 14px;
  font-size: 13px;
  color: #9BA3C4;
  font-weight: 500;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .section.dark .dark-stats { grid-template-columns: repeat(2, 1fr); }
  .section.dark .dark-stat:nth-child(2) { border-right: none; }
  .section.dark .dark-stat:nth-child(1), .section.dark .dark-stat:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 32px;
  }
}

/* Dark CTA band variant — replaces the white .cta-band for end-of-page CTAs */
.cta-band.dark {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #FFFFFF;
}
.cta-band.dark::before {
  background:
    radial-gradient(at 20% 50%, rgba(74, 91, 196, 0.35), transparent 50%),
    radial-gradient(at 85% 50%, rgba(139, 123, 212, 0.30), transparent 55%);
  animation: meshDriftB 32s ease-in-out infinite;
}
.cta-band.dark,
.cta-band.dark .cta-band-inner,
.cta-band.dark h1,
.cta-band.dark h2,
.cta-band.dark h3,
.cta-band.dark h4 {
  color: #FFFFFF !important;
}
.cta-band.dark p,
.cta-band.dark .lead,
.cta-band.dark span {
  color: #C8CDE5 !important;
}
.cta-band.dark .eyebrow { color: #B5BEEC !important; }
.cta-band.dark .eyebrow::before { background: #B5BEEC !important; }
.cta-band.dark em { color: #B5BEEC !important; }

/* CTA rotating word — lavender accent, italic, slight glow */
.cta-rotator {
  color: #B5BEEC !important;
  font-style: italic;
  font-weight: 400;
  display: inline-block;
  margin-right: 0.08em;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

/* Invert primary button inside dark CTA so it stands out against the dark bg */
.cta-band.dark .btn-primary {
  background: #FFFFFF !important;
  color: #0F1428 !important;
  border-color: #FFFFFF;
}
.cta-band.dark .btn-primary:hover {
  background: #B5BEEC !important;
  color: #0F1428 !important;
}
.cta-band.dark .btn-ghost {
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: transparent;
}
.cta-band.dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #FFFFFF !important;
}

/* Override the dark-mode media query for dark-CTA contents specifically */
@media (prefers-color-scheme: dark) {
  .cta-band.dark h2,
  .cta-band.dark h1,
  .cta-band.dark h3 { color: #FFFFFF !important; }
}

/* LOGO STRIP — infinite marquee */
.logo-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 40px 0 44px;
  background: var(--canvas-soft);
  overflow: hidden;
}
.logo-strip-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-200);
  font-weight: 600;
  margin-bottom: 32px;
}

/* Marquee viewport — full bleed, fades at edges */
.logo-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

/* Inline marquee — used inside existing sections, no border/background of its own */
.logo-marquee.inline {
  margin-top: 28px;
  padding: 8px 0;
}

/* The track contains 2 copies of all logos for seamless loop */
.logo-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: logoScroll 60s linear infinite;
}

/* Speed variants */
.logo-track.speed-fast { animation-duration: 40s; }
.logo-track.speed-slow { animation-duration: 75s; }

/* Reverse direction variant (for two-row layouts later if needed) */
.logo-track.reverse { animation-direction: reverse; }

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

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

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

.logo-slide {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}
.logo-slide img {
  height: 100%;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  /* Subtle grayscale + opacity treatment for a unified look across multicolor logos */
  filter: grayscale(20%);
  opacity: 0.85;
  transition: filter 0.3s, opacity 0.3s;
}
.logo-slide:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Fallback placeholder if a logo image fails to load */
.logo-slide img[alt]:not([alt=""])::before {
  content: attr(alt);
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-200);
  letter-spacing: -0.02em;
}

/* SECTION HEADS / GRIDS */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.section-head h2 { max-width: 18ch; }
.section-head p { max-width: 48ch; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* CARD */
.card {
  background: linear-gradient(135deg, #EEEAFF 0%, #E4ECFC 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  /* When used as <a>, strip the default link styles */
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -20px rgba(74, 91, 196, 0.28);
}
.card-num { display: none; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--ink-500); }

/* Tighter card variant for 4-column grids */
.grid-4 .card { padding: 26px 24px; }
.grid-4 .card h3 { font-size: 19px; }
.grid-4 .card p { font-size: 14px; line-height: 1.55; }

/* Special "ghost" tile that contrasts with the lavender cards */
.card.ghost {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #FFFFFF;
}
.card.ghost h3 { color: #FFFFFF; }
.card.ghost p { color: #C8CDE5; }
.card.ghost .card-link { color: #B5BEEC; }
.card.ghost:hover {
  background: linear-gradient(135deg, #1A1F33 0%, #2E3A8C 100%);
  border-color: var(--sky);
  box-shadow: 0 14px 40px -20px rgba(74, 91, 196, 0.5);
}
.card-link {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sky);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.card:hover .card-link { gap: 12px; }

/* SPLIT */
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}
.split-sticky { position: sticky; top: 120px; }

/* APPROACH STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--canvas-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.step-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--sky);
  letter-spacing: 0.14em;
  margin-bottom: 24px;
}
.step h4 { margin-bottom: 12px; color: var(--ink-900); }
.step p { font-size: 15px; color: var(--ink-300); line-height: 1.6; }

/* INDUSTRY CHIPS */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1024px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .industry-grid { grid-template-columns: repeat(2, 1fr); } }

.industry-chip {
  background: linear-gradient(135deg, #EEEAFF 0%, #E4ECFC 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: background 0.25s ease, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 110px;
  position: relative;
}
.industry-chip:hover {
  background: linear-gradient(135deg, #4A5BC4 0%, #6B5DC4 100%);
  border-color: var(--sky);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -14px rgba(74, 91, 196, 0.4);
}
.industry-chip-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  line-height: 1.2;
  transition: color 0.25s ease;
}
.industry-chip:hover .industry-chip-name { color: #FFFFFF; }

/* Dark "See all" variant — solid navy, lavender on hover */
.industry-chip.dark {
  background: var(--ink-900);
  border-color: var(--ink-900);
}
.industry-chip.dark .industry-chip-name { color: #FFFFFF; }
.industry-chip.dark:hover {
  background: linear-gradient(135deg, #4A5BC4 0%, #6B5DC4 100%);
  border-color: var(--sky);
}

/* Hide the old number/arrow elements site-wide */
.industry-chip-arrow { display: none; }

/* QUOTE */
.quote-block {
  border-left: 2px solid var(--sky);
  padding: 20px 0 20px 36px;
  max-width: 800px;
}
.quote-block blockquote {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink-900);
  letter-spacing: -0.015em;
}
.quote-attr {
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-200);
  text-transform: uppercase;
  font-weight: 500;
}
.quote-attr strong { color: var(--ink-700); font-weight: 600; }

/* LOCATIONS */
.locations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--canvas-card);
}
@media (max-width: 900px) { .locations { grid-template-columns: repeat(2, 1fr); } }
.location {
  padding: 28px 24px;
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.location:nth-child(4n) { border-right: none; }
.location:nth-last-child(-n+4) { border-bottom: none; }
@media (max-width: 900px) {
  .location { border-right: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
  .location:nth-child(2n) { border-right: none; }
  .location:nth-last-child(-n+2) { border-bottom: none; }
}
.location-city {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.location-country {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-200);
  text-transform: uppercase;
}

/* CTA BAND */
.cta-band {
  position: relative;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  overflow: hidden;
  margin: 0 var(--gutter) 80px;
  background: var(--canvas-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 20% 50%, rgba(178, 196, 255, 0.45), transparent 50%),
    radial-gradient(at 85% 50%, rgba(214, 196, 255, 0.40), transparent 50%);
  filter: blur(30px);
}
.cta-band-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.cta-band h2 { max-width: 18ch; margin: 0 auto 24px; }
.cta-band p { max-width: 52ch; margin: 0 auto; color: var(--ink-500); }
.cta-band-buttons {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* FOOTER */
.footer {
  background: var(--canvas);
  border-top: 1px solid var(--border-soft);
  padding: 80px var(--gutter) 32px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-inner { grid-template-columns: 1fr; } }

.footer h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-200);
  margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul a {
  color: var(--ink-500);
  font-size: 14px;
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--sky); }

.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p {
  font-size: 14px;
  color: var(--ink-300);
  max-width: 34ch;
}
.footer-tagline {
  font-size: 15px;
  font-style: italic;
  color: var(--sky);
  margin-top: 16px;
  font-weight: 400;
}

.footer-bottom {
  max-width: var(--max);
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-200);
  font-weight: 500;
  flex-wrap: wrap;
  gap: 14px;
}

/* ANIMATION */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.18s; }
.delay-3 { animation-delay: 0.28s; }
.delay-4 { animation-delay: 0.38s; }

.divider { height: 1px; background: var(--border); }
.text-center { text-align: center; }
.mt-8 { margin-top: 80px; }

::selection { background: var(--sky-soft); color: var(--ink-900); }
