/* =========================================================
   Capital Technology and Ventures Limited
   Design system: light editorial — ivory, soft mist, navy ink, crimson accent
   ========================================================= */

:root {
  /* Surfaces — light, warm, eye-friendly */
  --ivory-50:  #fbf8f2;
  --ivory-100: #f5efe3;
  --ivory-200: #ece4d1;
  --ivory-300: #d9ccab;

  --mist-50:   #f4f7fb;   /* very pale blue */
  --mist-100:  #e7eef6;
  --mist-200:  #d4dfee;

  --sage-50:   #f1f5f1;
  --sage-100:  #e1ebe2;

  /* Ink — navy text only, never used as a background */
  --navy-900:  #122541;
  --navy-700:  #1f3a63;
  --navy-500:  #496488;

  --crimson-700: #b8202a;
  --crimson-600: #d6202b;
  --crimson-500: #e63a44;
  --crimson-50:  #fbeceb;

  --ink-900: #1a2336;
  --ink-700: #4a5670;
  --ink-500: #6f7c95;
  --ink-400: #95a0b6;
  --ink-300: #c0c8d6;
  --line:    rgba(18, 37, 65, 0.10);
  --line-soft: rgba(18, 37, 65, 0.06);

  --color-bg: var(--ivory-50);
  --color-surface: #ffffff;
  --color-text: var(--ink-900);
  --color-muted: var(--ink-500);
  --color-accent: var(--crimson-600);
  --color-accent-ink: var(--crimson-700);

  --shadow-sm: 0 1px 2px rgba(18, 37, 65, 0.05), 0 1px 1px rgba(18, 37, 65, 0.03);
  --shadow-md: 0 14px 36px -16px rgba(18, 37, 65, 0.16), 0 3px 8px rgba(18, 37, 65, 0.05);
  --shadow-lg: 0 30px 60px -22px rgba(18, 37, 65, 0.18);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  font-feature-settings: 'ss01', 'cv11';
}

.display, h1, h2, h3, .h-display {
  font-family: 'Fraunces', 'Times New Roman', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--navy-900);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent-ink);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--color-accent); display: inline-block;
}
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: rgba(255, 255, 255, 0.85); }

.muted { color: var(--color-muted); }
.lede { font-size: var(--text-lg); color: var(--ink-700); line-height: 1.55; max-width: 60ch; }

/* ---- Layout primitives ---- */
.container {
  width: min(100% - 2 * var(--space-6), var(--container));
  margin-inline: auto;
}
.section { padding-block: clamp(72px, 9vw, 144px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--cream { background: var(--ivory-100); }
.section--paper { background: #fff; }
.section--mist  { background: var(--mist-50); }
.section--sage  { background: var(--sage-50); }

.divider-rule { width: 60px; height: 2px; background: var(--color-accent); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, 0.84);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.site-header.scrolled {
  background: rgba(251, 248, 242, 0.96);
  border-bottom-color: var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 38px; width: auto; }
.brand-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px; line-height: 1.15;
  font-weight: 700; letter-spacing: 0.04em;
  color: var(--navy-900); text-transform: uppercase;
}
.brand-text small {
  display: block; font-weight: 500; color: var(--color-muted); letter-spacing: 0.16em; font-size: 10px;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-700);
  position: relative; padding-block: 8px;
  transition: color .25s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-900); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-accent);
}
.nav-cta {
  background: var(--crimson-600); color: #fff;
  padding: 12px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  box-shadow: 0 6px 16px -8px rgba(214, 32, 43, 0.45);
  transition: background .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.nav-cta:hover { background: var(--crimson-700); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(184, 32, 42, 0.6); }

/* ============== COOKIE BANNER ============== */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  max-width: 980px;
  margin: 0 auto;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .4s var(--ease-out), opacity .4s var(--ease-out);
}
.cookie-banner.visible { transform: translateY(0); opacity: 1; }
.cookie-banner__text {
  flex: 1 1 320px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-700);
}
.cookie-banner__text strong { color: var(--navy-900); font-weight: 600; }
.cookie-banner__text a { color: var(--crimson-600); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner__btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s var(--ease-out);
}
.cookie-banner__btn--accept {
  background: var(--crimson-600); color: #fff;
}
.cookie-banner__btn--accept:hover { background: var(--crimson-700); transform: translateY(-1px); }
.cookie-banner__btn--decline {
  background: transparent; color: var(--ink-700);
  border-color: var(--line);
}
.cookie-banner__btn--decline:hover { background: var(--ivory-100); color: var(--navy-900); }
@media (max-width: 640px) {
  .cookie-banner { padding: 16px; gap: 12px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}

.menu-btn { display: none; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-btn {
    display: inline-flex; flex-direction: column; gap: 5px;
    width: 38px; height: 38px; align-items: center; justify-content: center;
    border-radius: 999px; border: 1px solid var(--line); background: #fff;
  }
  .menu-btn span { width: 16px; height: 1.5px; background: var(--navy-900); border-radius: 2px; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    background: var(--ivory-50); padding: 18px 24px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links.open .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }
}

/* ---- Hero (image-based, light overlay) ---- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(96px, 14vw, 180px);
  color: var(--navy-900);
  background: linear-gradient(180deg, var(--ivory-50) 0%, var(--mist-50) 100%);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('./assets/photos/hero.jpg');
  background-size: cover; background-position: center 30%;
  opacity: 0.22;
  filter: saturate(0.85);
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease-soft) forwards;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(214, 32, 43, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(251, 248, 242, 0.70) 0%, rgba(251, 248, 242, 0.95) 90%);
  pointer-events: none;
}
@keyframes heroZoom {
  to { transform: scale(1.0); }
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  color: var(--navy-900);
  font-size: var(--text-hero);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-top: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--navy-700);
  font-weight: 300;
}
.hero p.lede {
  margin-top: 28px;
  color: var(--ink-700);
  max-width: 56ch;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
}
.hero-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  transition: transform .25s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn-primary { background: var(--crimson-600); color: #fff; box-shadow: 0 10px 24px -12px rgba(214, 32, 43, 0.55); }
.btn-primary:hover { background: var(--crimson-700); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(214, 32, 43, 0.65); }
.btn-ghost { border: 1px solid var(--line); color: var(--navy-900); background: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: #fff; border-color: var(--navy-900); transform: translateY(-1px); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--crimson-700); transform: translateY(-1px); }
.btn-outline-navy { border: 1px solid var(--navy-900); color: var(--navy-900); }
.btn-outline-navy:hover { background: var(--navy-900); color: #fff; transform: translateY(-1px); }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* Hero visual card — light glass */
.hero-card {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}
.hero-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-accent-ink); margin-bottom: 18px;
}
.kpi-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  border-top: 1px solid var(--line-soft);
  padding-top: 22px; margin-top: 22px;
}
.kpi .num {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 1.4rem + 2vw, 2.6rem);
  color: var(--navy-900);
  font-weight: 400;
  line-height: 1;
}
.kpi .num small { font-size: 0.5em; color: var(--crimson-600); margin-left: 4px; font-family: 'Inter', sans-serif; font-weight: 600; }
.kpi .lbl { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-500); margin-top: 8px; }

.ticker-list { display: grid; gap: 12px; }
.ticker-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(244, 247, 251, 0.7);
  border: 1px solid var(--line-soft);
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.ticker-row:hover { background: #fff; transform: translateX(2px); }
.ticker-row .name { color: var(--navy-900); font-size: 14px; font-weight: 600; }
.ticker-row .meta { color: var(--ink-500); font-size: 12px; margin-top: 2px; }
.ticker-row .pill {
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  background: var(--crimson-50); color: var(--crimson-700);
  border: 1px solid rgba(214, 32, 43, 0.18);
  font-weight: 600; letter-spacing: 0.04em;
}

/* ---- Section heads ---- */
.section-head { max-width: 760px; }
.section-head h2 { margin-top: 18px; }
.section-head p { margin-top: 18px; color: var(--ink-700); }

.two-col {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

/* ---- Image figure (used across pages) ---- */
.figure {
  position: relative; overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.6s var(--ease-soft), filter .6s var(--ease-soft);
}
.figure:hover img { transform: scale(1.04); }
.figure--tall { aspect-ratio: 3 / 4; }
.figure--wide { aspect-ratio: 16 / 9; }
.figure-caption {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  color: #fff; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* ---- Cards ---- */
.card-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 56px;
}
.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 32px;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), border-color .45s var(--ease-soft);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--crimson-600); transform: scaleY(0); transform-origin: top;
  transition: transform .5s var(--ease-soft);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.card:hover::before { transform: scaleY(1); }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--crimson-50); color: var(--crimson-700);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: transform .4s var(--ease-soft), background .4s var(--ease-soft);
}
.card:hover .icon { transform: rotate(-4deg) scale(1.05); background: var(--crimson-600); color: #fff; }
.card h3 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.005em; color: var(--navy-900); }
.card p { margin-top: 12px; color: var(--ink-700); font-size: 15px; line-height: 1.6; }

/* ---- Pillars / numbered list ---- */
.pillars { display: grid; gap: 28px; margin-top: 48px; }
.pillar {
  display: grid; grid-template-columns: 80px 1fr; gap: 28px;
  padding: 28px 0; border-top: 1px solid var(--line-soft);
  transition: padding-left .4s var(--ease-soft);
}
.pillar:last-child { border-bottom: 1px solid var(--line-soft); }
.pillar:hover { padding-left: 8px; }
.pillar .num {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2.1rem);
  color: var(--crimson-600);
  font-weight: 400;
}
.pillar h3 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--navy-900); }
.pillar p { margin-top: 10px; color: var(--ink-700); max-width: 62ch; }
@media (max-width: 600px) {
  .pillar { grid-template-columns: 1fr; gap: 8px; }
  .pillar .num { font-size: 1.4rem; }
}

/* ---- Hubs ---- */
.hubs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px;
  border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; background: #fff;
}
.hub { padding: 32px; border-right: 1px solid var(--line-soft); transition: background .35s var(--ease-out); position: relative; }
.hub:last-child { border-right: 0; }
.hub:hover { background: var(--mist-50); }
.hub .tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--crimson-700); font-weight: 600; }
.hub h3 { font-family: 'Fraunces', serif; font-size: 1.6rem; margin-top: 10px; color: var(--navy-900); font-weight: 500; }
.hub p { color: var(--ink-700); margin-top: 12px; font-size: 14.5px; line-height: 1.6; }
@media (max-width: 880px) {
  .hubs { grid-template-columns: 1fr; }
  .hub { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .hub:last-child { border-bottom: 0; }
}

/* ---- Industries grid ---- */
.industry-grid {
  display: grid; gap: 1px; background: var(--line-soft);
  grid-template-columns: repeat(4, 1fr);
  margin-top: 56px; border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden;
}
.industry {
  background: #fff; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.industry:hover { background: var(--ivory-100); transform: translateY(-2px); }
.industry .ic { color: var(--crimson-700); transition: transform .35s var(--ease-soft); }
.industry:hover .ic { transform: scale(1.1) rotate(-3deg); }
.industry h4 { font-size: 15px; font-weight: 600; color: var(--navy-900); }
.industry p { font-size: 13.5px; color: var(--ink-500); line-height: 1.55; }
@media (max-width: 880px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .industry-grid { grid-template-columns: 1fr; } }

/* ---- Stats band (now on light cream) ---- */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 64px;
}
.stat { padding: 36px 24px; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat .n {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 400; color: var(--navy-900);
  line-height: 1;
}
.stat .n small { color: var(--crimson-600); font-family: 'Inter', sans-serif; font-size: 0.4em; font-weight: 600; margin-left: 4px;}
.stat .t { margin-top: 10px; color: var(--ink-500); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 700px) {
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
}

/* ---- CTA band (light, image accent) ---- */
.cta-band {
  background: linear-gradient(135deg, #fff 0%, var(--mist-100) 100%);
  border: 1px solid var(--line);
  color: var(--navy-900);
  border-radius: 20px;
  padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,32,43,0.10), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { color: var(--navy-900); }
.cta-band p { color: var(--ink-700); margin-top: 14px; max-width: 52ch; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---- Pull quote ---- */
.pull {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem);
  line-height: 1.3;
  color: var(--navy-900);
  font-weight: 400;
  border-left: 3px solid var(--crimson-600);
  padding: 10px 0 10px 28px;
  max-width: 60ch;
}
.pull cite {
  display: block; margin-top: 18px; font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--color-muted); font-style: normal;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---- Page hero (interior) — light with photo ---- */
.page-hero {
  background: linear-gradient(180deg, var(--ivory-50) 0%, var(--mist-50) 100%);
  color: var(--navy-900);
  padding-block: clamp(96px, 12vw, 160px);
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.18;
  filter: saturate(0.85);
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease-soft) forwards;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(251, 248, 242, 0.65) 0%, rgba(251, 248, 242, 0.95) 95%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--navy-900); font-size: var(--text-3xl); font-weight: 400; margin-top: 18px; }
.page-hero p {
  margin-top: 20px; max-width: 60ch;
  color: var(--ink-700);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
}
.breadcrumbs {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-500);
}
.breadcrumbs a { color: var(--ink-700); }
.breadcrumbs a:hover { color: var(--crimson-600); }
.breadcrumbs span { margin: 0 8px; opacity: 0.5; }

/* ---- Footer (warm cream, not dark) ---- */
.footer {
  background: var(--ivory-100);
  color: var(--ink-700);
  padding-block: 72px 36px;
  border-top: 1px solid var(--line-soft);
}
.footer-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy-900); margin-bottom: 18px; font-weight: 700;
}
.footer ul { display: grid; gap: 12px; }
.footer a { color: var(--ink-700); font-size: 14px; transition: color .25s var(--ease-out); }
.footer a:hover { color: var(--crimson-600); }
.footer .brand .brand-text { color: var(--navy-900); }
.footer .brand .brand-text small { color: var(--ink-500); }
.footer p.about { color: var(--ink-700); font-size: 14px; line-height: 1.65; margin-top: 18px; max-width: 32ch; }
.footer .global { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.footer .global span { font-size: 13px; color: var(--ink-700); }
.footer .global span::after { content: "·"; margin-left: 14px; color: var(--ink-300); }
.footer .global span:last-child::after { content: ""; }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  margin-top: 56px; padding-top: 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-size: 12px; color: var(--ink-500);
}
.footer-bottom a { color: var(--ink-500); }
.footer-bottom a:hover { color: var(--crimson-600); }
.footer-bottom .legal { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---- Contact ---- */
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 16px;
  padding: 36px; box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--navy-900); }
.contact-card .row {
  display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft);
}
.contact-card .row:last-of-type { border-bottom: 0; }
.contact-card .row .ico { color: var(--crimson-700); flex-shrink: 0; margin-top: 2px; }
.contact-card .row .label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted); }
.contact-card .row .value { color: var(--navy-900); font-size: 14.5px; margin-top: 2px; line-height: 1.55; }
.contact-card .row a.value:hover { color: var(--crimson-700); }

.offices {
  display: grid; gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden;
  margin-top: 56px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 880px) { .offices { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .offices { grid-template-columns: 1fr; } }
.office {
  background: #fff; padding: 0;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.office:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); z-index: 2; }
.office-photo {
  position: relative; overflow: hidden; aspect-ratio: 16/10;
}
.office-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.4s var(--ease-soft);
}
.office:hover .office-photo img { transform: scale(1.06); }
.office-body { padding: 24px 24px 28px; }
.office .flag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--crimson-700); font-weight: 600; }
.office h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.3rem; color: var(--navy-900); margin-top: 8px; }
.office p { font-size: 13.5px; color: var(--ink-700); margin-top: 10px; line-height: 1.6; }
.office .tier { font-size: 11px; color: var(--ink-500); margin-top: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---- Approach steps ---- */
.steps { display: grid; gap: 1px; background: var(--line-soft); border-radius: 16px; overflow: hidden; border: 1px solid var(--line-soft); margin-top: 56px; }
.step { background: #fff; padding: 36px; display: grid; grid-template-columns: 60px 1fr; gap: 24px; transition: background .3s var(--ease-out); }
.step:hover { background: var(--mist-50); }
.step .step-num {
  font-family: 'Fraunces', serif; color: var(--crimson-600); font-size: 1.6rem;
  border: 1px solid var(--crimson-600); width: 50px; height: 50px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  font-weight: 400;
  transition: background .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out);
}
.step:hover .step-num { background: var(--crimson-600); color: #fff; transform: scale(1.06); }
.step h3 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--navy-900); }
.step p { margin-top: 8px; color: var(--ink-700); max-width: 60ch; }

/* ---- Service detail rows ---- */
.svc-list { display: grid; gap: 32px; margin-top: 56px; }
.svc {
  display: grid; grid-template-columns: 1.1fr 2fr; gap: 48px;
  padding: 40px 0; border-top: 1px solid var(--line-soft);
  align-items: start;
}
.svc:last-child { border-bottom: 1px solid var(--line-soft); }
.svc .tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--crimson-700); font-weight: 600; }
.svc h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-top: 10px; }
.svc p { color: var(--ink-700); }
.svc ul { margin-top: 18px; display: grid; gap: 10px; }
.svc ul li {
  display: grid; grid-template-columns: 18px 1fr; gap: 14px;
  color: var(--ink-700); font-size: 14.5px; line-height: 1.55;
}
.svc ul li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--crimson-600); margin-top: 8px;
}
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; gap: 20px; } }

/* ---- Mini decorative chart ---- */
.minichart { margin-top: 28px; border-top: 1px solid var(--line-soft); padding-top: 22px; }
.minichart svg { width: 100%; height: 60px; }

/* ---- Photo strip (band of 3 images) ---- */
.photo-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 56px;
}
.photo-strip .figure { aspect-ratio: 4/5; }
.photo-strip .figure:nth-child(2) { margin-top: 36px; }
.photo-strip .figure:nth-child(3) { margin-top: 18px; }
@media (max-width: 760px) {
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip .figure:nth-child(3) { display: none; }
}

/* ---- Scroll reveal — staggered fade-up ---- */
.js-ready .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft);
}
.js-ready .reveal.in { opacity: 1; transform: none; }
.js-ready .reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease-soft), transform 1.1s var(--ease-soft); }
.js-ready .reveal-up.in { opacity: 1; transform: none; }
.js-ready .reveal-fade { opacity: 0; transition: opacity 1.2s var(--ease-soft); }
.js-ready .reveal-fade.in { opacity: 1; }
.js-ready .reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft); }
.js-ready .reveal-scale.in { opacity: 1; transform: scale(1); }

/* Staggered child reveals on grids */
.js-ready .stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); }
.js-ready .stagger.in > * { opacity: 1; transform: none; }
.js-ready .stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.js-ready .stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.js-ready .stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.js-ready .stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.js-ready .stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.js-ready .stagger.in > *:nth-child(6) { transition-delay: 400ms; }
.js-ready .stagger.in > *:nth-child(7) { transition-delay: 480ms; }
.js-ready .stagger.in > *:nth-child(8) { transition-delay: 560ms; }
.js-ready .stagger.in > *:nth-child(9) { transition-delay: 640ms; }
.js-ready .stagger.in > *:nth-child(10) { transition-delay: 720ms; }
.js-ready .stagger.in > *:nth-child(11) { transition-delay: 800ms; }
.js-ready .stagger.in > *:nth-child(12) { transition-delay: 880ms; }

@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal,
  .js-ready .reveal-up,
  .js-ready .reveal-fade,
  .js-ready .reveal-scale,
  .js-ready .stagger > * {
    opacity: 1; transform: none; transition: none;
  }
  .hero-bg, .page-hero-bg { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   BLOG — Index + Article pages
   ========================================================= */

/* ---- Blog index grid ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.blog-card-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mist-50);
}
.blog-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-soft);
}
.blog-card:hover .blog-card-thumb img { transform: scale(1.05); }

.blog-card-category {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson-700);
}

.blog-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}
.blog-card-meta .sep { color: var(--ink-300); }

.blog-card-body h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy-900);
  line-height: 1.25;
  margin-top: 12px;
  letter-spacing: -0.01em;
}
.blog-card-body h3 a {
  color: inherit;
  transition: color .25s var(--ease-out);
}
.blog-card-body h3 a:hover { color: var(--crimson-600); }

.blog-card-body p {
  margin-top: 10px;
  color: var(--ink-700);
  font-size: 14.5px;
  line-height: 1.6;
  flex: 1;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--crimson-700);
  letter-spacing: 0.02em;
  transition: gap .25s var(--ease-out), color .25s var(--ease-out);
}
.blog-read-link .arrow { transition: transform .25s var(--ease-out); }
.blog-read-link:hover { color: var(--crimson-600); }
.blog-read-link:hover .arrow { transform: translateX(4px); }

/* ---- Article hero variant ---- */
.article-hero { padding-block: clamp(80px, 10vw, 140px); }
.article-hero h1 { font-size: clamp(2.2rem, 1.8rem + 2vw, 3.4rem); }

.article-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson-700);
  margin-top: 18px;
  margin-bottom: 0;
}
.article-category-tag::before {
  content: ""; width: 28px; height: 1px; background: var(--crimson-600);
}

.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-500);
}
.byline-author {
  font-weight: 600;
  color: var(--ink-700);
}
.byline-sep { color: var(--ink-300); }

/* ---- Article body ---- */
.article-wrap {
  background: #fff;
  padding-block: 72px;
}

.article-body {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 0px);
}

.article-lede {
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.3rem);
  color: var(--ink-700);
  line-height: 1.65;
  margin-bottom: 40px;
  font-weight: 400;
}
/* Drop cap on lede */
.article-lede::first-letter {
  font-family: 'Fraunces', serif;
  font-size: 3.6em;
  line-height: 0.82;
  float: left;
  margin-right: 0.08em;
  margin-top: 0.05em;
  color: var(--navy-900);
  font-weight: 300;
}

.article-body h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 500;
  color: var(--navy-900);
  margin-top: 48px;
  margin-bottom: 18px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.article-body p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-700);
  margin-top: 0;
  margin-bottom: 22px;
  max-width: 68ch;
}

.article-body strong {
  color: var(--navy-900);
  font-weight: 600;
}

.article-body em {
  font-style: italic;
}

/* ---- Pull quote (article inline) ---- */
.pull-quote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.45;
  color: var(--navy-900);
  font-weight: 400;
  font-style: italic;
  border-left: 3px solid var(--crimson-600);
  padding: 18px 0 18px 28px;
  margin: 40px 0;
  max-width: 58ch;
  background: none;
  quotes: none;
}
.pull-quote::before, .pull-quote::after { content: none; }

/* ---- Continue reading ---- */
.article-continue {
  max-width: 720px;
  margin-inline: auto;
  padding: 48px clamp(20px, 4vw, 0px) 0;
  border-top: 1px solid var(--line-soft);
  margin-top: 64px;
}
.article-continue h3 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 700;
  margin-bottom: 24px;
}

.article-continue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) { .article-continue-grid { grid-template-columns: 1fr; } }

.article-mini-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--ivory-50);
  transition: background .3s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.article-mini-card:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.article-mini-thumb {
  width: 72px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.article-mini-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

.article-mini-body { flex: 1; min-width: 0; }
.article-mini-cat {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson-700);
  font-weight: 600;
  margin-bottom: 6px;
}
.article-mini-body h4 {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy-900);
  line-height: 1.3;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.article-mini-read {
  font-size: 12px;
  color: var(--crimson-700);
  font-weight: 600;
}
/* Book a Call secondary CTA */
.btn-outline {
  background: transparent;
  color: var(--crimson-600);
  border: 1.5px solid var(--crimson-600);
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .25s var(--ease-out);
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--crimson-600);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(214, 32, 43, 0.5);
}
.btn-outline .arrow { transition: transform .25s var(--ease-out); }
.btn-outline:hover .arrow { transform: translateX(3px); }

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}


/* =========================================================
   Chat widget — fynix.cash matched style
   ========================================================= */

/* ---- Closed launcher button ---- */
.ctv-chat-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  border: none;
  background: var(--crimson-600);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(214, 32, 43, 0.35), 0 4px 10px rgba(0,0,0,0.15);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), opacity .25s var(--ease-out);
}
.ctv-chat-trigger:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(214, 32, 43, 0.42), 0 6px 12px rgba(0,0,0,0.18); }
.ctv-chat-trigger svg { flex-shrink: 0; }
.ctv-chat-trigger.is-hidden { opacity: 0; pointer-events: none; transform: translateY(8px) scale(0.94); }

/* ---- Chat panel ---- */
.ctv-chat-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 41;
  width: 380px;
  height: 540px;
  max-height: calc(100vh - 48px);
  background: #fbf8f2;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;

  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.ctv-chat-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
@media (max-width: 640px) {
  .ctv-chat-panel {
    width: calc(100vw - 24px);
    right: 12px;
    left: 12px;
    bottom: 12px;
    height: min(640px, calc(100vh - 24px));
  }
  .ctv-chat-trigger { right: 16px; bottom: 16px; }
}

/* ---- Header ---- */
.ctv-chat-header {
  background: linear-gradient(135deg, #d6202b 0%, #a6151f 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ctv-chat-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.ctv-chat-header-text { flex: 1; min-width: 0; }
.ctv-chat-header-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  line-height: 1.2;
}
.ctv-chat-header-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin-top: 2px;
}
.ctv-chat-header-sub .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  animation: ctvPulse 1.8s ease infinite;
  flex-shrink: 0;
}
@keyframes ctvPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(74,222,128,0); }
}
.ctv-chat-close {
  width: 24px; height: 24px;
  border: none; background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity .2s;
}
.ctv-chat-close:hover { opacity: 1; }

/* ---- Message body ---- */
.ctv-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 16px 20px;
  background: #fbf8f2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.ctv-chat-body::-webkit-scrollbar { width: 4px; }
.ctv-chat-body::-webkit-scrollbar-track { background: transparent; }
.ctv-chat-body::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 2px; }

.ctv-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: ctvMsgIn .25s var(--ease-out) both;
}
.ctv-msg-row.user { align-self: flex-end; align-items: flex-end; margin-left: auto; }
.ctv-msg-row.assistant { align-self: flex-start; align-items: flex-start; }
@keyframes ctvMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ctv-bubble {
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  line-height: 1.55;
  max-width: 100%;
  word-break: break-word;
}
.ctv-msg-row.assistant .ctv-bubble {
  background: #fff;
  color: #122541;
  border: 1px solid #e5e7eb;
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
}
.ctv-msg-row.user .ctv-bubble {
  background: var(--crimson-600);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
}

/* ---- Suggestion / related chips ---- */
.ctv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.ctv-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #1f2937;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.ctv-chip:hover { border-color: var(--crimson-600); color: var(--crimson-600); }

/* ---- Sources ---- */
.ctv-sources-label,
.ctv-related-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: 600;
}
.ctv-sources {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ctv-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f4f7fb;
  border: 1px solid #e5e7eb;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #1f2937;
  text-decoration: none;
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.ctv-source-pill:hover { border-color: var(--crimson-600); color: var(--crimson-600); }
.ctv-source-pill svg { flex-shrink: 0; color: #9ca3af; }
.ctv-source-pill:hover svg { color: var(--crimson-600); }

/* ---- Input area ---- */
.ctv-chat-input-row {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ctv-chat-input {
  flex: 1;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d1d5db;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #122541;
  outline: none;
  transition: border-color .2s var(--ease-out);
}
.ctv-chat-input:focus { border-color: var(--crimson-600); }
.ctv-chat-input::placeholder { color: #9ca3af; }

.ctv-chat-send {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--crimson-600);
  border: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, transform .2s var(--ease-out), opacity .2s;
}
.ctv-chat-send:hover:not(:disabled) { background: var(--crimson-700); transform: scale(1.06); }
.ctv-chat-send:disabled { opacity: 0.5; cursor: default; transform: none; }

/* ---- Footer strip ---- */
.ctv-chat-footer-strip {
  background: #fff;
  padding: 8px 14px;
  text-align: center;
  font-size: 11px;
  color: #6b7280;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ctv-chat-panel, .ctv-chat-trigger { transition: none; }
  .ctv-msg-row { animation: none; }
  .ctv-chat-header-sub .dot { animation: none; }
}
