/* Upscale design tokens — cream + lime + Geist */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* palette — light (cream) */
  --bg: #F4F1EA;
  --bg-2: #ECE7DD;
  --paper: #FFFCF5;
  --ink: #1C1D1F;
  --ink-soft: #2A2B2E;
  --gray-1: #D9D4C8;
  --gray-2: #B8B2A4;
  --gray-3: #6F6B62;
  --gray-4: #4A463F;
  --line: rgba(28,29,31,0.08);
  --line-strong: rgba(28,29,31,0.16);

  /* accents */
  --accent: #E1FF6C;       /* lime */
  --accent-edge: #99BF06;
  --accent-on: #1C1D1F;
  --positive: #2D7D46;
  --warn: #C77B0A;

  /* typography */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --font-display: 'Instrument Serif', 'Geist', serif;

  /* radii & shadows */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-soft: 0 1px 0 rgba(28,29,31,0.04), 0 6px 24px -8px rgba(28,29,31,0.08);
  --shadow-strong: 0 1px 0 rgba(28,29,31,0.06), 0 18px 40px -16px rgba(28,29,31,0.18);

  /* densities */
  --gutter: 80px;
  --gap: 24px;
  --section-y: 120px;
}

/* dark mode */
:root[data-theme="dark"] {
  --bg: #131316;
  --bg-2: #1A1A1E;
  --paper: #1F2024;
  --ink: #F4F1EA;
  --ink-soft: #E5E1D6;
  --gray-1: #2D2E33;
  --gray-2: #4A4B52;
  --gray-3: #9A968D;
  --gray-4: #C5C0B5;
  --line: rgba(255,253,246,0.08);
  --line-strong: rgba(255,253,246,0.16);
}

/* density */
:root[data-density="compact"] {
  --gutter: 56px;
  --gap: 16px;
  --section-y: 80px;
}

/* alt accent variants */
:root[data-accent="cobalt"]   { --accent: #4F6BFF; --accent-edge: #2A47D8; --accent-on: #FFFFFF; }
:root[data-accent="coral"]    { --accent: #FF7A59; --accent-edge: #D8512E; --accent-on: #1C1D1F; }
:root[data-accent="butter"]   { --accent: #FFD66B; --accent-edge: #C99A1F; --accent-on: #1C1D1F; }
:root[data-accent="violet"]   { --accent: #B79CFF; --accent-edge: #6E4FE0; --accent-on: #1C1D1F; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01','cv11';
}

/* base utils */
.u-mono { font-family: var(--font-mono); }
.u-serif { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.u-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-3);
}
.u-divider { height: 1px; background: var(--line); border: none; }

.u-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 500;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.u-btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.u-btn-primary:hover { transform: translateY(-1px); }
.u-btn-accent {
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent-edge);
}
.u-btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.u-btn-ghost:hover { background: var(--bg-2); }

/* Ghost button on dark/ink backgrounds — hover stays legible */
.u-btn-ghost-dark {
  color: rgba(244, 241, 234, 0.85);
  border-color: rgba(244, 241, 234, 0.25);
}
.u-btn-ghost-dark:hover {
  background: rgba(244, 241, 234, 0.12);
  color: #F4F1EA;
}

.u-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
}
.u-chip-accent {
  background: var(--accent);
  border-color: var(--accent-edge);
  color: var(--accent-on);
}
.u-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink);
}

.u-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-edge); display: inline-block; }
.u-dot-live { background: var(--positive); animation: pulseDot 1.6s ease-in-out infinite; }

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,125,70,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(45,125,70,0); }
}

.u-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}

/* H scale — display uses serif italic for editorial accents */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: 88px; line-height: 0.96; letter-spacing: -0.035em; }
h2 { font-size: 56px; line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; }

/* underline brush */
.u-mark {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.u-mark::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.42em;
  background: var(--accent);
  border-radius: 4px;
  z-index: -1;
  transform: skewX(-6deg);
}

/* When the heading sits on a dark background, paint the brush as a real background
   on the span itself. Brush covers the full text area for legibility on dark sections. */
.u-mark-on-dark {
  background: var(--accent);
  padding: 0.04em 0.18em 0.08em;
  border-radius: 6px;
  color: var(--ink) !important;
  transform: skewX(-6deg);
  display: inline-block;
}
.u-mark-on-dark::after { display: none; }

/* container */
.u-container { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

/* section */
.u-section { padding: var(--section-y) 0; }

/* shake on hover */
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes feedSlideIn {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(225,255,108,0.55); }
  70% { box-shadow: 0 0 0 14px rgba(225,255,108,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,255,108,0); }
}
@keyframes barGrow {
  from { height: 0; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* JARVIS orb */
@keyframes orbSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes orbSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.18); opacity: 1; }
}
@keyframes labelFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); opacity: 0.95; }
  50% { transform: translate(-50%, -50%) translateY(-3px); opacity: 1; }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(var(--baseY, 0)) rotate(var(--baseR, 0deg)); }
  50% { transform: translateY(calc(var(--baseY, 0px) - 8px)) rotate(var(--baseR, 0deg)); }
}

@keyframes ctaCardEnter {
  0%   { opacity: 0; transform: translateY(28px) rotate(0deg) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) rotate(var(--ctaR, 0deg)) scale(1); }
}

@keyframes ctaCardFloat {
  0%, 100% { transform: translateY(0) rotate(var(--ctaR, 0deg)); }
  50%      { transform: translateY(-9px) rotate(var(--ctaR, 0deg)); }
}

@keyframes intentSwap {
  0% { opacity: 0; transform: translateY(-6px); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes dashFlow {
  to { stroke-dashoffset: -18; }
}

@keyframes wordmarkBreathe {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.65; }
  100% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
}

/* Tools hub */
@keyframes hubScrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes hubScrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@keyframes hubPulse {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}
@keyframes tileEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Agent icon animations */
@keyframes iconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.18); opacity: 0.85; }
}
@keyframes iconSearch {
  0%, 100% { transform: rotate(-14deg) translate(0, 0); }
  50%       { transform: rotate(14deg) translate(1px, -1px); }
}
@keyframes iconWrite {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30%       { transform: translate(1.5px, -1.5px) rotate(-4deg); }
  70%       { transform: translate(-1px, 1px) rotate(3deg); }
}
@keyframes iconTrend {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-3px); }
  60%       { transform: translateY(-3px); }
}

/* dashboard small */
.u-spark { stroke: var(--accent-edge); fill: none; stroke-width: 1.6; }

/* Consent shake */
@keyframes consentShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-5px); }
  40%       { transform: translateX(5px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

/* Nav dropdown */
@keyframes dropdownEnter {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* link reset */
a { color: inherit; text-decoration: none; }

/* selection */
::selection { background: var(--accent); color: var(--accent-on); }

/* ============================================================
   RESPONSIVE OVERRIDES
   The codebase uses heavy inline styles, so we override common
   patterns via attribute selectors + !important at breakpoints.
   Breakpoints: <=1100 (laptop) / <=860 (tablet) / <=560 (phone)
   ============================================================ */

/* Density tokens at each breakpoint */
@media (max-width: 1100px) {
  :root { --gutter: 48px; --section-y: 96px; }
}
@media (max-width: 860px) {
  :root { --gutter: 28px; --section-y: 72px; --gap: 18px; }
}
@media (max-width: 560px) {
  :root { --gutter: 18px; --section-y: 56px; --gap: 14px; }
  body { font-size: 15px; }
}

/* Container hard cap to prevent overflow */
.u-container { width: 100%; }

/* Headings: cap absolute font sizes via clamp */
@media (max-width: 1100px) {
  h1 { font-size: clamp(36px, 5.6vw, 64px) !important; line-height: 1.06 !important; }
  h2 { font-size: clamp(28px, 4.4vw, 48px) !important; line-height: 1.08 !important; }
  h3 { font-size: clamp(18px, 2.6vw, 26px) !important; }
}
@media (max-width: 560px) {
  h1 { font-size: 34px !important; }
  h2 { font-size: 26px !important; }
  h3 { font-size: 18px !important; }
}

/* Inline font-size overrides: cap large display sizes */
@media (max-width: 860px) {
  [style*="font-size: 76"] { font-size: 44px !important; }
  [style*="font-size: 72"] { font-size: 42px !important; }
  [style*="font-size: 64"] { font-size: 38px !important; }
  [style*="font-size: 56"] { font-size: 34px !important; }
  [style*="font-size: 48"] { font-size: 30px !important; }
  [style*="font-size: 44"] { font-size: 28px !important; }
}
@media (max-width: 560px) {
  [style*="font-size: 76"],
  [style*="font-size: 72"],
  [style*="font-size: 64"] { font-size: 32px !important; }
  [style*="font-size: 56"] { font-size: 28px !important; }
  [style*="font-size: 48"] { font-size: 26px !important; }
  [style*="font-size: 44"] { font-size: 24px !important; }
  [style*="font-size: 32"] { font-size: 22px !important; }
  [style*="font-size: 28"] { font-size: 20px !important; }
}

/* Grid column overrides (laptop -> tablet) */
@media (max-width: 1100px) {
  [style*="grid-template-columns: repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns: 1.4fr repeat(3, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr"] { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Grid column overrides (tablet — keep 2 cols where useful) */
@media (max-width: 860px) {
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1.1fr"],
  [style*="grid-template-columns: 1.05fr 1fr"],
  [style*="grid-template-columns: 1fr 1.4fr"],
  [style*="grid-template-columns: 0.7fr 1.5fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile-only / desktop-only utility */
@media (min-width: 641px) { .u-mobile-only { display: none !important; } }
@media (max-width: 640px)  { .u-desktop-only { display: none !important; } }

/* Meetings grid: only first card on mobile */
@media (max-width: 640px) {
  .u-meetings-grid > *:not(:first-child) { display: none !important; }
}

/* OSConverger — mobile fixes */
@media (max-width: 640px) {
  /* Center the single visible meeting card */
  .rdv-lead-card { left: 50% !important; margin-left: -150px !important; }
  /* More breathing room after the "pilier" note */
  .rdv-note { margin-bottom: 20px !important; }
  /* More breathing room before the caption */
  .rdv-caption { margin-top: 60px !important; }
  /* Slightly more top margin on the whole converger block */
  .rdv-converger { margin-top: 24px !important; }
}

/* Phone — single column for everything */
@media (max-width: 640px) {
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.4fr repeat(3, 1fr)"],
  [style*="grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Intent/signal cards: 2 columns — must come AFTER the global 1-col rule above */
@media (max-width: 640px) {
  .u-intent-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  /* Gap between signal cards and the AgentsCore grid on mobile */
  .agents-core-spacer { margin-top: 28px; }
}

/* Large gaps shrink on tablet/phone */
@media (max-width: 860px) {
  [style*="gap: 80px"], [style*="gap: 80"] { gap: 32px !important; }
  [style*="gap: 60px"], [style*="gap: 60"] { gap: 28px !important; }
  [style*="gap: 48px"], [style*="gap: 48"] { gap: 24px !important; }
  [style*="gap: 40px"], [style*="gap: 40"] { gap: 20px !important; }
  [style*="gap: 36px"], [style*="gap: 36"] { gap: 18px !important; }
  [style*="gap: 32px"], [style*="gap: 32"] { gap: 16px !important; }
  [style*="gap: 28px"], [style*="gap: 28"] { gap: 14px !important; }
}

/* Flex rows that should wrap on small screens */
@media (max-width: 860px) {
  [style*="display: flex"][style*="justify-content: space-between"][style*="align-items: flex-end"] {
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start !important;
  }
}

/* Padding overrides on big sections */
@media (max-width: 860px) {
  [style*="padding-top: 120"] { padding-top: 64px !important; }
  [style*="padding-bottom: 120"] { padding-bottom: 64px !important; }
  [style*="padding-top: 100"] { padding-top: 56px !important; }
  [style*="padding-bottom: 100"] { padding-bottom: 56px !important; }
}

/* Nav: hide nav links + desktop CTAs on tablet/phone, show hamburger */
@media (max-width: 860px) {
  header nav { display: none !important; }
  header .u-nav-desktop { display: none !important; }
  header .u-nav-hamburger { display: inline-flex !important; }
  header .u-container { gap: 12px !important; }
}
@media (min-width: 861px) {
  header .u-nav-hamburger { display: none !important; }
  header .u-nav-drawer { display: none !important; }
}

/* ----- Mobile drawer animation ----- */
.u-nav-drawer {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  height: calc(100dvh - 70px);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 24px 24px 32px;
  gap: 4px;
  z-index: 49;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  visibility: hidden;
  /* Closing transition (slower & softer) */
  transition:
    opacity .42s cubic-bezier(0.4, 0, 0.2, 1),
    transform .48s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear .48s;
}
.u-nav-drawer.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  /* Opening transition (slightly snappier) */
  transition:
    opacity .34s cubic-bezier(0.22, 0.9, 0.32, 1),
    transform .42s cubic-bezier(0.22, 0.9, 0.32, 1),
    visibility 0s linear 0s;
}

.u-nav-drawer-link {
  padding: 18px 4px;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(8px);
  /* Closing: stagger fade-out in reverse (last item fades first) */
  transition:
    opacity .32s ease,
    transform .36s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: calc((2 - var(--i, 0)) * 0.04s);
}
.u-nav-drawer.is-open .u-nav-drawer-link {
  opacity: 1;
  transform: translateY(0);
  /* Opening: stagger fade-in (first item appears first) */
  transition:
    opacity .36s ease,
    transform .42s cubic-bezier(0.22, 0.9, 0.32, 1);
  transition-delay: calc(0.08s + var(--i, 0) * 0.05s);
}

.u-nav-drawer-ctas {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity .32s ease,
    transform .36s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0s;
}
.u-nav-drawer.is-open .u-nav-drawer-ctas {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity .36s ease,
    transform .42s cubic-bezier(0.22, 0.9, 0.32, 1);
  transition-delay: calc(0.08s + var(--i, 0) * 0.05s);
}

/* ----- Floating dock (appears after scroll) ----- */
.u-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(24px);
  transition:
    opacity .35s ease,
    transform .45s cubic-bezier(0.22, 0.9, 0.32, 1),
    visibility 0s linear .45s;
}
.u-dock.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity .35s ease,
    transform .45s cubic-bezier(0.22, 0.9, 0.32, 1),
    visibility 0s linear 0s;
}

.u-dock-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(244, 241, 234, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow:
    0 14px 40px -16px rgba(28, 29, 31, 0.22),
    0 2px 8px rgba(28, 29, 31, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: dockFloat 5s ease-in-out infinite;
}
@keyframes dockFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.u-dock-item {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  transition: background .18s ease, transform .18s ease, color .18s ease;
}
.u-dock-item:hover {
  background: rgba(28, 29, 31, 0.06);
  transform: translateY(-2px);
}
.u-dock-item:active { transform: translateY(0) scale(0.96); }

.u-dock-item.is-primary:hover {
  background: var(--accent);
  border: 1px solid var(--accent-edge);
  transform: translateY(-2px);
}

.u-dock-icon { display: inline-flex; }
.u-dock-icon svg { width: 20px; height: 20px; }

.u-dock-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .2s cubic-bezier(0.22, 0.9, 0.32, 1);
}
.u-dock-item:hover .u-dock-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .u-dock { bottom: 16px; }
  .u-dock-item { width: 40px; height: 40px; }
}

/* ----- Case study big card responsive ----- */
@media (max-width: 600px) {
  .u-cs-card-head {
    grid-template-columns: 1fr !important;
    padding: 28px 24px 24px !important;
    align-items: flex-start !important;
  }
  .u-cs-card-head > a {
    justify-self: flex-start;
  }
  .u-cs-card-row {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 24px !important;
    gap: 24px !important;
  }
  .u-cs-card-row > div:last-child {
    justify-content: flex-start !important;
  }
}

/* ----- Mobile: leave room for floating dock ----- */
@media (max-width: 600px) {
  body { padding-bottom: 80px; }
}

/* ----- Case study sticky CTA (left, fixed) ----- */
.u-case-cta {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 320px;
  z-index: 55;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 20px 20px;
  box-shadow:
    0 1px 0 rgba(28,29,31,0.04),
    0 4px 12px rgba(28,29,31,0.06),
    0 26px 50px -22px rgba(28,29,31,0.20);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: ctaCardEnter 0.7s cubic-bezier(0.22, 0.9, 0.32, 1) 0.6s both;
}

/* Header row: avatar + close */
.u-case-cta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.u-case-cta-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  background: var(--bg-2);
  box-shadow: 0 4px 10px rgba(28,29,31,0.10);
}
.u-case-cta-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gray-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.u-case-cta-close:hover {
  background: var(--bg-2);
  color: var(--ink);
  border-color: var(--line-strong);
}
.u-case-cta-close svg { width: 14px; height: 14px; }

.u-case-cta-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.u-case-cta-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-4);
}

/* Logos marquee */
.u-case-cta-marquee {
  position: relative;
  overflow: hidden;
  height: 28px;
  margin: 6px -8px 4px;
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}
.u-case-cta-marquee-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: caseCtaMarquee 26s linear infinite;
  will-change: transform;
}
.u-case-cta-marquee:hover .u-case-cta-marquee-track {
  animation-play-state: paused;
}
.u-case-cta-marquee-track img {
  height: 22px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  filter: grayscale(0.4);
  opacity: 0.85;
  flex-shrink: 0;
}
@keyframes caseCtaMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.u-case-cta-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 18px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 4px;
}

/* Hide on tablet & mobile (avoids collision with FloatingDock) */
@media (max-width: 1100px) {
  .u-case-cta { display: none !important; }
}

/* Buttons: prevent overflow when stacked, cap CTA padding */
@media (max-width: 560px) {
  .u-btn { font-size: 14px; padding: 10px 16px; }
  [style*="padding: 14px 24px"] { padding: 12px 18px !important; }
  [style*="padding: 14px 22px"] { padding: 12px 18px !important; }
}

/* CTA meeting cards stack: convert absolute to flow on small screens */
.u-cta-stack { position: relative; }
@media (max-width: 860px) {
  .u-cta-stack { height: auto !important; perspective: none !important; padding-top: 8px; }
  .u-cta-stack > .u-cta-stack-card {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    max-width: 100% !important;
    margin-bottom: 16px;
    animation-name: ctaCardEnter !important;
    --ctaR: 0deg !important;
    transform: none !important;
  }
  .u-cta-stack > .u-cta-stack-card:last-child { margin-bottom: 0; }
}

/* Founders 2-card row: stack on phone */
.u-founders-grid { display: grid; gap: 18px; }
@media (max-width: 560px) {
  /* Keep side-by-side but compact */
  .u-founders-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
}

/* Hero illustration: prevent overflow */
@media (max-width: 860px) {
  img { max-width: 100%; height: auto; }
}

/* Long single-line text shouldn't force overflow */
body { overflow-x: hidden; }
.u-container > * { min-width: 0; }

/* Tickers/marquees: shrink on mobile */
@media (max-width: 560px) {
  [style*="height: 80px"] { height: auto !important; }
}

/* Newsletter card: mobile layout */
@media (max-width: 640px) {
  .u-newsletter-panel {
    padding: 24px 20px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(244,241,234,0.08);
  }
  .u-newsletter-form {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  .u-newsletter-form input {
    flex: none !important;
    width: 100% !important;
    height: 46px !important;
    box-sizing: border-box;
  }
  .u-newsletter-btn {
    width: 100% !important;
    justify-content: center;
  }
}

/* AgentsHeroSection: tighter header margin on mobile */
@media (max-width: 640px) {
  .u-agents-hero-header {
    margin-bottom: 28px !important;
  }
}

/* Team founder photos: much smaller on mobile */
@media (max-width: 560px) {
  .u-founder-photo-wrap {
    aspect-ratio: 1 / 1 !important;
    margin-bottom: 10px !important;
  }
  /* Reduce card padding and text sizes in the founders grid */
  .u-founders-grid > div {
    padding: 10px !important;
  }
  .u-founders-grid h3 {
    font-size: 14px !important;
    margin-bottom: 4px !important;
  }
  .u-founders-grid p {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }
}

/* CTA meetings stack: only first card on mobile */
@media (max-width: 640px) {
  .u-cta-mobile-hide {
    display: none !important;
  }
}

/* CTA Final: rounded corners on mobile */
@media (max-width: 640px) {
  .cta-final-section {
    border-radius: 20px !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    overflow: hidden;
  }
}
