/* =========================================================
   Mindeon V4 — Liquid glass nav + premium polish overrides
   ========================================================= */

:root {
  --v4-ink: #0E0E0C;
  --v4-ink-soft: #3D3D38;
  --v4-ink-mute: #76746C;
  --v4-border: #E8E7E3;
  --v4-border-soft: #F0EFEB;
  --v4-bg-soft: #F8F7F4;
  --v4-bg-warm: #FBF7EE;
  --v4-accent: #FF4A1C;
  --v4-accent-soft: #FFE9DF;
  --v4-success: #18A957;
  --ff-display: "Fraunces", Georgia, serif;
  --ff-sans-v4: "Geist", -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", sans-serif;
  --ff-mono-v4: "Geist Mono", ui-monospace, monospace;
}

body {
  font-family: var(--ff-sans-v4) !important;
  font-feature-settings: "ss01", "ss03", "kern", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Liquid glass navigation ---------- */
header#navbar.liquid-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: saturate(180%) blur(14px) brightness(1.04);
  -webkit-backdrop-filter: saturate(180%) blur(14px) brightness(1.04);
  border-bottom: 1px solid rgba(232, 231, 227, 0.7);
  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    border-bottom-color 0.4s ease,
    padding 0.55s cubic-bezier(.2,.7,.2,1);
}
header#navbar.liquid-nav.scrolled {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent;
  padding: 12px 18px 0 !important;
}

.liquid-nav-inner {
  position: relative;
  width: 100%;
  max-width: 1320px;
  height: 80px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 28px;
  gap: 24px;
  background: transparent;
  border-radius: 0;
  border: 1px solid transparent;
  box-shadow: 0 0 0 transparent;
  transition:
    max-width 0.55s cubic-bezier(.2,.7,.2,1),
    height 0.55s cubic-bezier(.2,.7,.2,1),
    border-radius 0.55s cubic-bezier(.2,.7,.2,1),
    border-color 0.4s ease,
    box-shadow 0.55s cubic-bezier(.2,.7,.2,1),
    background 0.4s ease,
    padding 0.55s cubic-bezier(.2,.7,.2,1);
}
.liquid-nav.scrolled .liquid-nav-inner {
  max-width: 1020px;
  height: 56px;
  border-radius: 999px;
  border-color: rgba(232, 231, 227, 0.55);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(180%) blur(22px) brightness(1.06);
  -webkit-backdrop-filter: saturate(180%) blur(22px) brightness(1.06);
  box-shadow:
    0 18px 48px -16px rgba(14, 14, 12, 0.16),
    0 2px 8px rgba(14, 14, 12, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 0 10px 0 22px;
}
.liquid-nav-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.liquid-nav.scrolled .liquid-nav-inner::before { opacity: 1; }

.liquid-brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--ff-display);
  font-size: 32px;
  font-variation-settings: "opsz" 144, "wght" 500, "SOFT" 30;
  letter-spacing: -0.025em;
  color: var(--v4-ink);
  line-height: 1;
  text-decoration: none;
  transition: font-size 0.55s cubic-bezier(.2,.7,.2,1);
}
.liquid-nav.scrolled .liquid-brand { font-size: 24px; }
.liquid-brand .dot {
  color: var(--v4-accent);
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 100;
}

.liquid-menu {
  display: flex;
  justify-content: center;
  gap: 4px;
  transition: gap 0.4s ease;
}
.liquid-menu a {
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 450;
  color: var(--v4-ink-mute);
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, padding 0.4s ease, font-size 0.4s ease;
}
.liquid-menu a:hover { color: var(--v4-ink); background: rgba(14, 14, 12, 0.04); }
.liquid-menu a.active { color: var(--v4-ink); background: rgba(14, 14, 12, 0.05); }
.liquid-nav.scrolled .liquid-menu { gap: 2px; }
.liquid-nav.scrolled .liquid-menu a { padding: 7px 12px; font-size: 13px; }

.liquid-right {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: gap 0.4s ease;
}
.liquid-nav.scrolled .liquid-right { gap: 10px; }

.liquid-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--v4-border);
  border-radius: 999px;
  font-family: var(--ff-mono-v4);
  font-size: 11.5px;
  color: var(--v4-ink-soft);
  background: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.liquid-nav.scrolled .liquid-status {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  width: 0;
  padding: 0;
  border: 0;
  margin: 0;
  overflow: hidden;
}
.liquid-status-dot {
  width: 6px;
  height: 6px;
  background: var(--v4-success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--v4-success) 22%, transparent);
  animation: liquid-pulse 2.4s ease-in-out infinite;
}
@keyframes liquid-pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in oklab, var(--v4-success) 22%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in oklab, var(--v4-success) 6%,  transparent); }
}

.liquid-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: var(--v4-ink);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  transition: transform 0.18s cubic-bezier(.2,.7,.2,1), background 0.18s ease;
}
.liquid-cta:hover { background: var(--v4-accent); transform: translateY(-1px); }
.liquid-cta .arr {
  display: inline-block;
  font-family: var(--ff-display);
  font-style: italic;
  transition: transform 0.2s ease;
}
.liquid-cta:hover .arr { transform: translateX(3px); }
.liquid-nav.scrolled .liquid-cta { padding: 8px 16px; font-size: 13.5px; }

.liquid-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--v4-border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--v4-ink);
  cursor: pointer;
}
.liquid-burger svg { width: 20px; height: 20px; }

.liquid-mobile {
  position: absolute;
  top: 100%;
  left: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--v4-border);
  border-radius: 22px;
  margin-top: 8px;
  padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(14, 14, 12, 0.18);
}
.liquid-mobile.hidden { display: none; }
.liquid-mobile a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--v4-ink);
  text-decoration: none;
}
.liquid-mobile a:hover { background: var(--v4-bg-soft); color: var(--v4-ink); }
/* Make the Consultation gratuite CTA inside the mobile dropdown clearly visible */
.liquid-mobile .liquid-cta {
  display: flex !important;
  margin-top: 10px;
  padding: 14px 20px !important;
  background: var(--v4-ink) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 500;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px -10px rgba(14, 14, 12, 0.4);
}
.liquid-mobile .liquid-cta:hover {
  background: var(--v4-accent) !important;
  color: #fff !important;
}

@media (max-width: 960px) {
  .liquid-menu, .liquid-status { display: none; }
  .liquid-burger { display: inline-flex; }
  .liquid-nav.scrolled .liquid-nav-inner { max-width: calc(100% - 24px); }
}
@media (max-width: 720px) {
  .liquid-right > .liquid-cta { display: none; }
  .liquid-nav-inner {
    padding: 0 14px;
    height: 60px;
    gap: 10px;
    grid-template-columns: 1fr auto;
  }
  .liquid-right { justify-self: end; justify-content: flex-end; }
  .liquid-nav.scrolled .liquid-nav-inner {
    height: 48px;
    padding: 0 10px 0 16px;
    max-width: calc(100% - 16px);
    border-radius: 999px;
  }
  .liquid-brand { font-size: 26px; }
  .liquid-nav.scrolled .liquid-brand { font-size: 21px; }
  .liquid-burger {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
  }
  .liquid-burger svg { width: 16px; height: 16px; }
  body { padding-top: 64px; }

  /* Mobile dropdown — full-width sheet */
  .liquid-mobile {
    left: 8px;
    right: 8px;
    margin-top: 6px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
  }
  .liquid-mobile a {
    font-size: 16px;
    padding: 14px 14px;
  }
  .liquid-mobile .liquid-cta {
    padding: 14px 18px;
    font-size: 15px;
    margin-top: 4px;
  }
}

body { padding-top: 80px; }
@media (max-width: 960px) { body { padding-top: 72px; } }

/* ---------- Mobile: tighten gap between fixed header and first title ---------- */
@media (max-width: 768px) {
  /* Body padding-top already clears the navbar — the extra 80px spacer is redundant on mobile */
  body > div.h-20.md\:h-24 { display: none !important; }
  /* Tighten the top padding of the first content block on mobile */
  main > main.pt-28,
  main.pt-24.md\:pt-28 { padding-top: 1.25rem !important; }
  main > section:first-of-type.pt-16.md\:pt-24,
  main > section:first-of-type.pt-16,
  main > section:first-of-type.pt-24 { padding-top: 1.25rem !important; }
  .page-hero-v4 { padding-top: 1.5rem !important; }
}

/* Hide the default V2 navbar spacer (we set padding-top above) */
body > div.h-20.md\:h-24 { display: none !important; }

/* Soft ambient gradient behind the hero */
.agent-bg {
  position: absolute;
  inset: -10% -10% 0% -10%;
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.55;
  background:
    radial-gradient(40% 30% at 78% 22%, rgba(255, 74, 28, 0.20), transparent 70%),
    radial-gradient(30% 26% at 18% 78%, rgba(14, 14, 12, 0.06), transparent 70%);
}
section[aria-labelledby="hero-heading"] .hero-grid { position: relative; z-index: 1; }

/* ---------- Hero layout: 2 columns ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 72px;
  }
}
.hero-copy { min-width: 0; max-width: 640px; }

/* ---------- Premium typography for hero ---------- */
.hero-title-v4 {
  font-family: var(--ff-sans-v4);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--v4-ink);
  font-size: clamp(1.7rem, 4.8vw, 4.2rem);
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}
@media (min-width: 1024px) {
  .hero-title-v4 { line-height: 1.02; letter-spacing: -0.045em; }
}
.hero-image { min-width: 0; }
.hero-trust { max-width: 100%; }
/* Prevent grid items from blowing out: set min-width:0 on direct grid children */
section[aria-labelledby="hero-heading"] > .max-w-7xl > * { min-width: 0; }
section[aria-labelledby="hero-heading"] .z-10 { min-width: 0; max-width: 100%; }
.hero-title-v4 em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
  color: var(--v4-accent);
  letter-spacing: -0.02em;
}
@media (max-width: 720px) {
  .hero-title-v4 em { display: block; margin-top: 8px; }
  .hero-title-v4 {
    font-size: clamp(2.5rem, 10.5vw, 3.6rem);
    letter-spacing: -0.04em;
    line-height: 1.02;
  }
  .hero-sub-v4 {
    font-size: 1.0625rem;
    line-height: 1.55;
  }
}
.hero-eyebrow-v4 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--v4-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  font-family: var(--ff-mono-v4);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--v4-ink-soft);
  text-transform: uppercase;
}
.hero-eyebrow-v4::before {
  content: "";
  width: 14px; height: 1px;
  background: var(--v4-accent);
}
.hero-sub-v4 {
  color: var(--v4-ink-soft);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 560px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.hero-copy { min-width: 0; max-width: 100%; }
.hero-trust { max-width: 100%; overflow-wrap: anywhere; }
.hero-cta-primary-v4 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--v4-ink);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(.2,.7,.2,1), background 0.18s ease;
}
.hero-cta-primary-v4:hover { background: var(--v4-accent); transform: translateY(-1px); }
.hero-cta-primary-v4 .arr { font-family: var(--ff-display); font-style: italic; transition: transform 0.2s ease; }
.hero-cta-primary-v4:hover .arr { transform: translateX(3px); }
.hero-cta-ghost-v4 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 999px;
  border: 1px solid var(--v4-border);
  background: #fff;
  color: var(--v4-ink);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.hero-cta-ghost-v4:hover { border-color: var(--v4-ink); background: var(--v4-bg-soft); }
.hero-meta-v4 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono-v4);
  font-size: 12px;
  color: var(--v4-ink-mute);
}
.hero-meta-v4::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--v4-success);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--v4-success) 22%, transparent);
}

/* ---------- Mobile-only tablet showcase (Last container-scroll style) ---------- */
.hero-mtab { display: none; }
@media (max-width: 1023px) {
  .hero-mtab {
    display: block;
    width: 100%;
    max-width: 460px;
    margin: 32px auto 0;
    perspective: 1400px;
    perspective-origin: 50% 40%;
  }
  /* Hide the heavy desktop tablet on mobile but keep its wrapper for the mtab to live in */
  .hero-tablet {
    min-height: 0 !important;
    perspective: none;
    display: block !important;
    /* No clip rectangle — let the tilted tablet float freely; body has overflow-x:clip already */
    overflow: visible !important;
    background: transparent;
  }
  .hero-tablet__device,
  .hero-tablet__halo,
  .hero-tablet__chip { display: none !important; }
}

/* iPhone-class: only tweak typography. No layout/rotation override (keep what works). */
@media (max-width: 480px) {
  .mtab-slide { padding: 22px 22px 22px; gap: 12px; }
  .mtab-slide__icon { width: 56px; height: 56px; border-radius: 16px; padding: 8px; }
  .mtab-slide__title { font-size: 19px; }
  .mtab-slide__hook { font-size: 13.5px; line-height: 1.45; max-width: 30ch; }
}
.hero-mtab__bezel {
  --mp: 0;
  position: relative;
  background: #1A1A1A;
  border: 0;
  border-radius: 28px;
  padding: 8px;
  /* Soft round halo (not a hard rectangular drop shadow) — feels like the tablet is floating */
  box-shadow:
    0 30px 50px -20px rgba(14, 14, 12, 0.35),
    0 12px 24px -8px rgba(14, 14, 12, 0.18);
  transform-style: preserve-3d;
  /* Dual-axis pivot driven by scroll (--mp) */
  transform:
    rotateX(calc(12deg + (var(--mp) * -20deg)))
    rotateY(calc((var(--mp) * 8deg) + (-5deg)))
    rotateZ(calc(var(--mp) * -1deg));
  will-change: transform;
}
.hero-mtab__bezel::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);
  z-index: 2;
}
.hero-mtab__screen {
  position: relative;
  aspect-ratio: 5 / 4;
  /* Bezel radius 28 minus padding 8 = 20 → screen inner radius matches exactly */
  border-radius: 20px;
  overflow: hidden;
  /* Deep ink fallback so a brief crossfade gap never reveals a stark white edge */
  background: #1A0D08;
}
.mtab-slide {
  position: absolute;
  inset: 0;
  padding: 28px 32px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transform: scale(1.02);
  /* Match the screen radius so the slide's own rounded corners never reveal the bezel underneath */
  border-radius: inherit;
  /* Out: smooth fade once the new slide is fully covering on top */
  transition: opacity 0.5s ease 0.15s, transform 0.6s ease 0.15s;
  z-index: 1;
}
.mtab-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
  /* In: instant opacity so the previous slide's text is never visible through a half-transparent new slide */
  transition: opacity 0s, transform 0.6s cubic-bezier(.4, .0, .2, 1);
}
/* iOS-app-icon style for the logo */
.mtab-slide__icon {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow:
    0 14px 30px -10px rgba(14, 14, 12, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.mtab-slide__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mtab-slide__title {
  font-family: var(--ff-sans-v4);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--v4-ink);
  margin: 4px 0 0;
}
.mtab-slide__title em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: var(--v4-accent);
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
}
.mtab-slide__hook {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.4;
  font-variation-settings: "opsz" 36, "wght" 400, "SOFT" 80;
  color: var(--v4-ink-soft);
  margin: 0;
  max-width: 36ch;
}

/* ---------- Hero tablet with cycling pages ---------- */
.hero-tablet {
  position: relative;
  width: 100%;
  min-height: 480px;
  perspective: 1600px;
  perspective-origin: 50% 30%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-tablet__halo {
  position: absolute;
  inset: -15%;
  z-index: 0;
  filter: blur(70px);
  opacity: 0.7;
  background:
    radial-gradient(50% 40% at 75% 25%, rgba(255, 74, 28, 0.25) 0%, transparent 70%),
    radial-gradient(40% 35% at 25% 75%, rgba(14, 14, 12, 0.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tablet { perspective: 1600px; perspective-origin: 50% 30%; }
.hero-tablet__device {
  --p: 0;
  position: relative;
  width: 100%;
  max-width: 620px;
  transform-style: preserve-3d;
  transform:
    rotateY(calc((-18deg) + (var(--p) * 28deg)))
    rotateX(calc((10deg) - (var(--p) * 14deg)))
    rotateZ(calc(var(--p) * -1.5deg));
  transition: transform 120ms linear;
  will-change: transform;
}
.hero-tablet__bezel {
  position: relative;
  background: linear-gradient(180deg, #1B1B19 0%, #0E0E0C 100%);
  border-radius: 24px;
  padding: 12px;
  box-shadow:
    0 60px 100px -40px rgba(14, 14, 12, 0.55),
    0 24px 50px -20px rgba(14, 14, 12, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.hero-tablet__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 10px;
}
.hero-tablet__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.hero-tablet__url {
  margin-left: 10px;
  font-family: var(--ff-mono-v4);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  transition: opacity 0.4s ease;
}
.hero-tablet__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(24, 169, 87, 0.15);
  color: #6BE89F;
  font-family: var(--ff-mono-v4);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-tablet__live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #18A957;
  box-shadow: 0 0 0 3px rgba(24, 169, 87, 0.22);
  animation: liquid-pulse 2.4s ease-in-out infinite;
}

.hero-tablet__screen {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #FAFAF7 100%);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  min-height: 320px;
}

/* Page cycling — 3 pages × 6s each = 18s loop */
.tab-page {
  position: absolute;
  inset: 0;
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  animation: tab-cycle 18s infinite cubic-bezier(.4,.0,.2,1);
}
.tab-page--1 { animation-delay: 0s; }
.tab-page--2 { animation-delay: -12s; }
.tab-page--3 { animation-delay: -6s; }
@keyframes tab-cycle {
  0%   { opacity: 0; transform: translateY(16px) scale(0.985); }
  3%   { opacity: 1; transform: translateY(0) scale(1); }
  30%  { opacity: 1; transform: translateY(0) scale(1); }
  34%  { opacity: 0; transform: translateY(-16px) scale(0.985); }
  100% { opacity: 0; transform: translateY(16px) scale(0.985); }
}

/* Shared in-page typography */
.tp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono-v4);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v4-ink-mute);
}
.tp-eyebrow::before {
  content: "";
  width: 14px; height: 1px;
  background: var(--v4-accent);
}
.tp-title {
  font-family: var(--ff-sans-v4);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--v4-ink);
  margin-top: 4px;
  line-height: 1.2;
}
.tp-title em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
  color: var(--v4-accent);
  margin-left: 2px;
}
.tp-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  font-family: var(--ff-mono-v4);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.tp-trend--up { color: var(--v4-success); }
.tp-pulse {
  width: 8px; height: 8px;
  background: var(--v4-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 74, 28, 0.18);
  animation: liquid-pulse-accent 1.6s ease-in-out infinite;
}
@keyframes liquid-pulse-accent {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 74, 28, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 74, 28, 0.04); }
}

/* ===== Workflow canvas (each tab-page hosts an n8n-style workflow) ===== */
.wf-canvas {
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(255, 74, 28, 0.07) 0%, transparent 60%),
    linear-gradient(180deg, #FBFBF8 0%, #F5F4EE 100%);
  padding: 0 !important;
  overflow: hidden;
}
.wf-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14, 14, 12, 0.10) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.4;
  mask-image: radial-gradient(80% 70% at 50% 50%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 50%, #000 60%, transparent 100%);
  pointer-events: none;
}
.wf-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.wf-path {
  fill: none;
  stroke: #FF4A1C;
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.85;
  stroke-dasharray: 3 4;
}
.wf-path--sub {
  stroke: rgba(255, 74, 28, 0.5);
  stroke-dasharray: 2 3;
}
.wf-pulse {
  fill: #FF4A1C;
  filter: drop-shadow(0 0 6px rgba(255, 74, 28, 0.6));
}

.wf-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 9px 11px 10px;
  background: #fff;
  border: 1px solid var(--v4-border);
  border-radius: 11px;
  box-shadow:
    0 8px 20px -10px rgba(14, 14, 12, 0.18),
    0 1px 2px rgba(14, 14, 12, 0.04);
  width: 100px;
}
.wf-node__hat {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.wf-node__title {
  font-family: var(--ff-sans-v4);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--v4-ink);
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.wf-node__type {
  font-family: var(--ff-mono-v4);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v4-ink-mute);
}
.wf-node--trigger { border-color: rgba(14, 14, 12, 0.12); }

/* Featured AI Agent node */
.wf-agent {
  position: absolute;
  background: #fff;
  border: 1.5px solid rgba(255, 74, 28, 0.55);
  border-radius: 13px;
  width: 168px;
  box-shadow:
    0 0 0 4px rgba(255, 74, 28, 0.08),
    0 16px 36px -14px rgba(255, 74, 28, 0.4),
    0 4px 12px rgba(14, 14, 12, 0.06);
  overflow: hidden;
}
.wf-agent__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 10px 7px;
}
.wf-agent__icon {
  width: 25px; height: 25px;
  border-radius: 6px;
  background: linear-gradient(135deg, #FF4A1C 0%, #C53A14 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wf-agent__meta { min-width: 0; }
.wf-agent__title {
  font-family: var(--ff-sans-v4);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--v4-ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wf-agent__sub {
  font-family: var(--ff-mono-v4);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  color: var(--v4-ink-mute);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wf-agent__ports {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--v4-bg-soft);
  border-top: 1px solid var(--v4-border);
  padding: 6px 10px 7px;
  gap: 4px;
}
.wf-agent__port {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--ff-mono-v4);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--v4-ink-mute);
  text-transform: uppercase;
  text-align: center;
}
.wf-agent__port-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--v4-accent);
  box-shadow: 0 0 0 2px rgba(255, 74, 28, 0.12);
}

/* Sub-nodes attached below the agent (Chat Model / Memory / Tools) */
.wf-sub {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid var(--v4-border);
  border-radius: 9px;
  box-shadow: 0 5px 14px -7px rgba(14, 14, 12, 0.16);
  width: 100px;
}
.wf-sub__icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono-v4);
  font-weight: 600;
  font-size: 9.5px;
  flex-shrink: 0;
}
.wf-sub__meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.wf-sub__meta b {
  font-family: var(--ff-sans-v4);
  font-size: 9.5px;
  font-weight: 500;
  color: var(--v4-ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wf-sub__meta small {
  font-family: var(--ff-mono-v4);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--v4-ink-mute);
}

/* Floating chips around the tablet */
.hero-tablet__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--v4-border);
  border-radius: 999px;
  padding: 8px 13px;
  font-family: var(--ff-mono-v4);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--v4-ink);
  box-shadow: 0 18px 38px -14px rgba(14, 14, 12, 0.22);
  z-index: 3;
  animation: chip-float 5.5s ease-in-out infinite;
}
.hero-tablet__chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--v4-success);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--v4-success) 22%, transparent);
  animation: liquid-pulse 2.4s ease-in-out infinite;
}
.hero-tablet__chip--left {
  top: 14%;
  left: -14px;
  animation-delay: -1s;
}
.hero-tablet__chip--right {
  bottom: 14%;
  right: -16px;
}
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@media (max-width: 1023px) {
  .hero-tablet__device { transform: none; max-width: 540px; margin: 0 auto; }
  .hero-tablet { min-height: 420px; }
}
@media (max-width: 720px) {
  .hero-tablet { min-height: 380px; }
  .hero-tablet__device { max-width: 100%; }
  .hero-tablet__bezel { padding: 8px; border-radius: 18px; }
  .hero-tablet__screen { border-radius: 11px; aspect-ratio: 16 / 12; min-height: 280px; }
  .tab-page { padding: 14px 14px 12px; gap: 10px; }
  .tp-title { font-size: 15px; }
  .tp1-kpis { grid-template-columns: 1fr 1fr; }
  .tp-kpi-num { font-size: 18px; }
  .tp1-chart { min-height: 60px; }
  .tp2-cols { gap: 6px; }
  .tp2-col { padding: 8px; }
  .hero-tablet__chip { font-size: 10px; padding: 6px 10px; }
  .hero-tablet__chip--left { left: -6px; }
  .hero-tablet__chip--right { right: -6px; }
}

/* ---------- Section heading polish (subsequent sections) ---------- */
h2 {
  font-family: var(--ff-sans-v4);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h2 em, h2 .ital {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
  color: var(--v4-accent);
  letter-spacing: -0.02em;
}
section[aria-labelledby] h2:not([id]),
section h2 {
  font-feature-settings: "ss01", "kern", "calt";
}

/* Soften the V2 blue gradient accents into a quieter neutral */
.bg-gradient-to-br.from-primary\/10.to-primary\/5 {
  background: radial-gradient(60% 60% at 70% 30%, rgba(255, 74, 28, 0.10), transparent 70%),
              radial-gradient(50% 50% at 30% 70%, rgba(14, 14, 12, 0.04), transparent 70%) !important;
}

/* Refined trust indicator strip */
.hero-trust strong { color: var(--v4-ink) !important; font-weight: 600; }

/* Marquee section tightening */
section[aria-label="Nos outils phares"] { padding-top: 32px !important; padding-bottom: 32px !important; }
section[aria-label="Nos outils phares"] p { font-family: var(--ff-mono-v4); letter-spacing: 0.06em; }

/* ---------- Premium polish utilities ---------- */
.section-soft-grain {
  position: relative;
}
.section-soft-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(14,14,12,0.025) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.4;
  mix-blend-mode: multiply;
}

/* ---------- Pricing — 3 offers grid ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}
@media (min-width: 880px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--v4-border);
  border-radius: 22px;
  padding: 28px 26px 26px;
  box-shadow: 0 10px 30px -12px rgba(14, 14, 12, 0.08), 0 2px 6px rgba(14, 14, 12, 0.04);
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: 0 28px 60px -22px rgba(14, 14, 12, 0.18); }
.pricing-card--ghost { background: var(--v4-bg-soft); }
.pricing-card--popular {
  background: #fff;
  border: 1.5px solid rgba(255, 74, 28, 0.5);
  box-shadow:
    0 0 0 4px rgba(255, 74, 28, 0.07),
    0 26px 60px -20px rgba(255, 74, 28, 0.25),
    0 4px 12px rgba(14, 14, 12, 0.06);
}
.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--v4-accent);
  color: #fff;
  font-family: var(--ff-mono-v4);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 6px 16px -6px rgba(255, 74, 28, 0.5);
}
.pricing-card__tag {
  display: inline-block;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid var(--v4-border);
  font-family: var(--ff-mono-v4);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v4-ink-soft);
  border-radius: 999px;
  margin-bottom: 14px;
  width: fit-content;
}
.pricing-card__tag--dark { background: var(--v4-ink); color: #fff; border-color: var(--v4-ink); }
.pricing-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pricing-card__head h3 {
  font-family: var(--ff-sans-v4);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--v4-ink);
  line-height: 1.25;
  margin: 0 0 8px;
}
.pricing-card__head p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--v4-ink-soft);
  margin: 0 0 22px;
}
.pricing-card__price {
  margin: 6px 0 18px;
  padding: 18px 0;
  border-top: 1px solid var(--v4-border);
  border-bottom: 1px solid var(--v4-border);
}
.pricing-card__amount {
  display: block;
  font-family: var(--ff-sans-v4);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--v4-ink);
  line-height: 1.1;
}
.pricing-card--popular .pricing-card__amount { color: var(--v4-accent); }
.pricing-card__unit {
  display: block;
  margin-top: 4px;
  font-family: var(--ff-mono-v4);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--v4-ink-mute);
}
.pricing-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pricing-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--v4-ink-soft);
}
.pricing-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 8px;
  border-left: 1.5px solid var(--v4-accent);
  border-bottom: 1.5px solid var(--v4-accent);
  transform: rotate(-45deg);
}
.pricing-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--v4-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.18s, background 0.18s;
}
.pricing-card__cta:hover { background: var(--v4-accent); transform: translateY(-1px); }
.pricing-card__cta--accent { background: var(--v4-accent); }
.pricing-card__cta--accent:hover { background: var(--v4-ink); }
.pricing-card__cta--ghost {
  background: transparent;
  color: var(--v4-ink);
  border: 1px solid var(--v4-ink);
}
.pricing-card__cta--ghost:hover { background: var(--v4-ink); color: #fff; }
.pricing-card__cta .arr {
  font-family: var(--ff-display);
  font-style: italic;
  transition: transform 0.2s;
}
.pricing-card__cta:hover .arr { transform: translateX(3px); }

/* Consulting card — big square below */
.pricing-consult {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #0E0E0C 0%, #1A1A18 100%);
  color: #fff;
  isolation: isolate;
}
.pricing-consult__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(50% 50% at 80% 30%, rgba(255, 74, 28, 0.25), transparent 70%),
    radial-gradient(40% 40% at 20% 90%, rgba(255, 74, 28, 0.12), transparent 70%),
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}
.pricing-consult__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  mask-image: radial-gradient(80% 70% at 50% 50%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 50%, #000 60%, transparent 100%);
}
.pricing-consult__inner {
  position: relative;
  z-index: 1;
  padding: 60px 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}
@media (min-width: 880px) {
  .pricing-consult__inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    padding: 64px 56px;
    gap: 40px;
  }
}
.pricing-consult__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono-v4);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.pricing-consult__eyebrow::before {
  content: "";
  width: 16px; height: 1px;
  background: var(--v4-accent);
}
.pricing-consult__title {
  font-family: var(--ff-sans-v4);
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #fff !important;
  line-height: 1.1;
  margin: 14px 0 14px;
}
.pricing-consult__title em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
  color: var(--v4-accent);
}
.pricing-consult__lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 28px;
  max-width: 560px;
}
.pricing-consult__price {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  width: fit-content;
}
.pricing-consult__amount {
  font-family: var(--ff-sans-v4);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.005em;
}
.pricing-consult__amount strong {
  font-family: var(--ff-sans-v4);
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.03em;
  margin-left: 2px;
}
.pricing-consult__unit {
  font-family: var(--ff-mono-v4);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}
.pricing-consult__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.pricing-consult__cta .hero-cta-primary-v4 {
  background: #fff;
  color: var(--v4-ink);
  font-weight: 500;
}
.pricing-consult__cta .hero-cta-primary-v4:hover {
  background: var(--v4-accent);
  color: #fff;
}
.pricing-consult__meta {
  font-family: var(--ff-mono-v4);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

/* === Features layout variant (Application Web) === */
.pricing-consult__inner--features {
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .pricing-consult__inner--features {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: stretch;
  }
}
.pricing-consult__col-main { min-width: 0; display: flex; flex-direction: column; }
.pricing-consult__col-side { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.pricing-consult__features {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}
@media (min-width: 600px) {
  .pricing-consult__features { grid-template-columns: 1fr 1fr; gap: 11px 24px; }
}
.pricing-consult__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--ff-sans-v4);
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}
.pricing-consult__features li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--v4-accent);
}
.pricing-consult__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pricing-consult__stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}
.pricing-consult__stat b {
  display: block;
  font-family: var(--ff-sans-v4);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.025em;
  color: var(--v4-accent);
  line-height: 1.1;
}
.pricing-consult__stat span {
  display: block;
  margin-top: 4px;
  font-family: var(--ff-mono-v4);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Premium hero for subpages ---------- */
.page-hero-v4 {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.page-hero-v4__bg {
  position: absolute;
  inset: -10% -10% 0 -10%;
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.55;
  background:
    radial-gradient(35% 30% at 72% 25%, rgba(255, 74, 28, 0.20), transparent 70%),
    radial-gradient(28% 25% at 18% 80%, rgba(14, 14, 12, 0.06), transparent 70%);
}
.page-hero-v4__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .page-hero-v4__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 64px;
  }
}
.page-hero-v4__title {
  font-family: var(--ff-sans-v4);
  font-weight: 600;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--v4-ink);
  text-wrap: balance;
  max-width: 760px;
}
.page-hero-v4__title em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
  color: var(--v4-accent);
  letter-spacing: -0.02em;
}
.page-hero-v4__lead {
  color: var(--v4-ink-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 560px;
}
.page-hero-v4__meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-mono-v4);
  font-size: 12px;
  color: var(--v4-ink-mute);
}
.page-hero-v4__meta .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--v4-success);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--v4-success) 22%, transparent);
  margin-right: 8px;
  animation: liquid-pulse 2.4s ease-in-out infinite;
}
.page-hero-v4__meta .sep {
  width: 18px;
  height: 1px;
  background: var(--v4-border);
}
.page-hero-v4__side {
  position: relative;
}
.page-hero-v4__card {
  background: #fff;
  border: 1px solid var(--v4-border);
  border-radius: 22px;
  padding: 28px;
  box-shadow:
    0 30px 60px -20px rgba(14, 14, 12, 0.18),
    0 4px 12px rgba(14, 14, 12, 0.04);
  position: relative;
  overflow: hidden;
}
.page-hero-v4__card::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto auto;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 74, 28, 0.18) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.page-hero-v4__card-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--v4-accent-soft);
  color: var(--v4-accent);
  font-family: var(--ff-mono-v4);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  font-weight: 500;
}
.page-hero-v4__card h3 {
  font-family: var(--ff-sans-v4);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 14px 0 8px;
  color: var(--v4-ink);
  line-height: 1.25;
}
.page-hero-v4__card p {
  font-size: 14px;
  color: var(--v4-ink-soft);
  line-height: 1.55;
  margin-bottom: 18px;
}
.page-hero-v4__card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--v4-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--v4-ink);
  padding-bottom: 2px;
  transition: color 0.15s;
}
.page-hero-v4__card-link:hover { color: var(--v4-accent); border-color: var(--v4-accent); }
.page-hero-v4__card-link .arr {
  font-family: var(--ff-display);
  font-style: italic;
  transition: transform 0.2s ease;
}
.page-hero-v4__card-link:hover .arr { transform: translateX(3px); }

/* ===========================================================
   Nos solutions — premium bento redesign (homepage)
   Targets the existing legacy markup with class overrides
   =========================================================== */
section[aria-labelledby="solutions-heading"] {
  background: #fff !important;
  padding-top: 90px !important;
  padding-bottom: 90px !important;
}
section[aria-labelledby="solutions-heading"] > .max-w-6xl,
section[aria-labelledby="solutions-heading"] > div {
  max-width: 1320px !important;
}

/* Section header redesign — left-aligned, simple vertical stack */
section[aria-labelledby="solutions-heading"] .mb-16.text-center {
  text-align: left !important;
  display: block !important;
  margin-bottom: 56px !important;
  max-width: 820px;
}
section[aria-labelledby="solutions-heading"] .mb-16.text-center span.bg-primary-light {
  display: inline-flex !important;
  width: auto !important;
  align-self: flex-start;
  margin: 0 0 18px !important;
}
section[aria-labelledby="solutions-heading"] h2 {
  font-family: var(--ff-sans-v4) !important;
  font-weight: 600 !important;
  font-size: clamp(2rem, 4.4vw, 3.4rem) !important;
  letter-spacing: -0.04em !important;
  line-height: 1.02 !important;
  margin: 0 0 16px !important;
  text-wrap: balance;
  color: var(--v4-ink);
}
section[aria-labelledby="solutions-heading"] h2 strong,
section[aria-labelledby="solutions-heading"] h2 b,
section[aria-labelledby="solutions-heading"] h2 i {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: var(--v4-accent);
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
}
section[aria-labelledby="solutions-heading"] .mb-16.text-center > p {
  margin: 0 !important;
  max-width: 560px !important;
  color: var(--v4-ink-soft) !important;
  font-size: 1.0625rem !important;
  line-height: 1.55 !important;
}

/* Cards bento layout */
section[aria-labelledby="solutions-heading"] .grid {
  gap: 16px !important;
  counter-reset: sol-card;
}
@media (min-width: 1024px) {
  section[aria-labelledby="solutions-heading"] .grid.md\:grid-cols-3 {
    grid-template-columns: 1.4fr 1fr 1fr !important;
    grid-auto-rows: 1fr;
  }
  section[aria-labelledby="solutions-heading"] .grid.md\:grid-cols-3 > div:first-child {
    grid-row: span 2;
  }
}

/* Individual service card override */
section[aria-labelledby="solutions-heading"] .reveal.bg-slate-50 {
  position: relative;
  counter-increment: sol-card;
  background: #fff !important;
  border: 1px solid var(--v4-border);
  border-radius: 22px !important;
  padding: 32px 28px 26px !important;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s, border-color 0.25s;
  box-shadow: 0 10px 30px -16px rgba(14, 14, 12, 0.06);
}
section[aria-labelledby="solutions-heading"] .reveal.bg-slate-50:hover {
  transform: translateY(-4px);
  border-color: var(--v4-ink);
  box-shadow: 0 30px 60px -22px rgba(14, 14, 12, 0.16);
}

/* Numbered counter — top right */
section[aria-labelledby="solutions-heading"] .reveal.bg-slate-50::before {
  content: counter(sol-card, decimal-leading-zero);
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--ff-mono-v4);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--v4-ink-mute);
  z-index: 2;
}

/* Decorative gradient blob — bottom right */
section[aria-labelledby="solutions-heading"] .reveal.bg-slate-50::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 74, 28, 0.10) 0%, transparent 60%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
  transition: transform 0.5s, opacity 0.3s;
}
section[aria-labelledby="solutions-heading"] .reveal.bg-slate-50:hover::after {
  transform: scale(1.4);
  opacity: 1.4;
}

/* First card (Voice Bots) gets a special dark cover styling */
@media (min-width: 1024px) {
  section[aria-labelledby="solutions-heading"] .grid.md\:grid-cols-3 > .reveal.bg-slate-50:first-child {
    background: linear-gradient(165deg, #1A0D08 0%, #2A1410 60%, #4E1F0E 100%) !important;
    border-color: transparent !important;
    color: #fff;
    padding: 40px 36px !important;
  }
  section[aria-labelledby="solutions-heading"] .grid.md\:grid-cols-3 > .reveal.bg-slate-50:first-child::after {
    background: radial-gradient(circle, rgba(255, 74, 28, 0.4) 0%, transparent 60%);
    opacity: 1;
  }
  section[aria-labelledby="solutions-heading"] .grid.md\:grid-cols-3 > .reveal.bg-slate-50:first-child::before {
    color: rgba(255, 255, 255, 0.5);
  }
  section[aria-labelledby="solutions-heading"] .grid.md\:grid-cols-3 > .reveal.bg-slate-50:first-child h3,
  section[aria-labelledby="solutions-heading"] .grid.md\:grid-cols-3 > .reveal.bg-slate-50:first-child .text-slate-900 {
    color: #fff !important;
  }
  section[aria-labelledby="solutions-heading"] .grid.md\:grid-cols-3 > .reveal.bg-slate-50:first-child p,
  section[aria-labelledby="solutions-heading"] .grid.md\:grid-cols-3 > .reveal.bg-slate-50:first-child .text-slate-500 {
    color: rgba(255, 255, 255, 0.7) !important;
  }
  section[aria-labelledby="solutions-heading"] .grid.md\:grid-cols-3 > .reveal.bg-slate-50:first-child .bg-white {
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
  }
  section[aria-labelledby="solutions-heading"] .grid.md\:grid-cols-3 > .reveal.bg-slate-50:first-child h3 {
    font-size: 2rem !important;
  }
}

/* Service card icon container — refine */
section[aria-labelledby="solutions-heading"] .reveal.bg-slate-50 .w-16.h-16 {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
  background: var(--v4-accent-soft) !important;
  color: #C53A14 !important;
  box-shadow: none !important;
  margin-bottom: 20px !important;
  position: relative;
  z-index: 1;
}

/* Title typography */
section[aria-labelledby="solutions-heading"] .reveal.bg-slate-50 h3 {
  font-family: var(--ff-sans-v4) !important;
  font-weight: 600 !important;
  font-size: 1.5rem !important;
  letter-spacing: -0.025em !important;
  line-height: 1.15 !important;
  margin-bottom: 12px !important;
  color: var(--v4-ink) !important;
  position: relative;
  z-index: 1;
}

/* Body text */
section[aria-labelledby="solutions-heading"] .reveal.bg-slate-50 p {
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  position: relative;
  z-index: 1;
}

/* Bottom link */
section[aria-labelledby="solutions-heading"] .reveal.bg-slate-50 a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px !important;
  padding-top: 18px;
  border-top: 1px solid var(--v4-border-soft);
  font-family: var(--ff-mono-v4) !important;
  font-size: 11.5px !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v4-ink) !important;
  font-weight: 500 !important;
  position: relative;
  z-index: 1;
  text-decoration: none;
}
section[aria-labelledby="solutions-heading"] .reveal.bg-slate-50 a:hover { color: var(--v4-accent) !important; }
@media (min-width: 1024px) {
  section[aria-labelledby="solutions-heading"] .grid.md\:grid-cols-3 > .reveal.bg-slate-50:first-child a {
    border-top-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
  }
}

/* ===========================================================
   Footer (Last-style)
   =========================================================== */
.footer-v4 {
  background: #fff;
  border-top: 1px solid var(--v4-border);
  padding: 80px 0 36px;
  color: var(--v4-ink);
}
.footer-v4__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 700px) { .footer-v4__container { padding: 0 20px; } }
.footer-v4__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 72px;
}
.footer-v4__brand-block { display: flex; flex-direction: column; }
.footer-v4__brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--ff-display);
  font-size: 56px;
  font-variation-settings: "opsz" 144, "wght" 500, "SOFT" 30;
  letter-spacing: -0.025em;
  color: var(--v4-ink);
  line-height: 1;
  text-decoration: none;
  margin-bottom: 24px;
}
.footer-v4__brand .dot {
  color: var(--v4-accent);
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 100;
}
.footer-v4__tag {
  font-family: var(--ff-sans-v4);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--v4-ink-soft);
  max-width: 36ch;
  margin: 0 0 28px;
}
.footer-v4__social {
  display: flex;
  gap: 8px;
}
.footer-v4__social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--v4-border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--v4-ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.footer-v4__social a:hover {
  border-color: var(--v4-ink);
  color: #fff;
  background: var(--v4-ink);
}
.footer-v4__social svg { width: 16px; height: 16px; }

.footer-v4__col h4,
.footer-v4__news h4 {
  font-family: var(--ff-mono-v4);
  font-size: 11.5px;
  color: var(--v4-ink-mute);
  margin: 0 0 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-v4__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-v4__col li {
  margin-bottom: 12px;
  font-size: 15px;
}
.footer-v4__col a {
  color: var(--v4-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-v4__col a:hover { color: var(--v4-accent); }

.footer-v4__news {
  background: var(--v4-bg-soft);
  border: 1px solid var(--v4-border);
  border-radius: 14px;
  padding: 24px;
}
.footer-v4__news h4 {
  color: var(--v4-ink);
  font-family: var(--ff-sans-v4);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-transform: none;
  margin: 0 0 8px;
}
.footer-v4__news p {
  font-size: 13.5px;
  color: var(--v4-ink-soft);
  line-height: 1.5;
  margin: 0 0 18px;
}
.footer-v4__news form {
  display: flex;
  border: 1px solid var(--v4-border);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.footer-v4__news input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 11px 16px;
  font-size: 13.5px;
  font-family: var(--ff-sans-v4);
  outline: none;
  color: var(--v4-ink);
  min-width: 0;
}
.footer-v4__news input::placeholder { color: var(--v4-ink-mute); }
.footer-v4__news button {
  background: var(--v4-ink);
  color: #fff;
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: var(--ff-sans-v4);
  white-space: nowrap;
}
.footer-v4__news button:hover { background: var(--v4-accent); }

.footer-v4__bot {
  border-top: 1px solid var(--v4-border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-family: var(--ff-mono-v4);
  font-size: 11.5px;
  color: var(--v4-ink-mute);
  letter-spacing: 0.02em;
}
.footer-v4__baseline {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-v4__baseline a {
  color: var(--v4-ink-mute);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-v4__baseline a:hover { color: var(--v4-ink); }

@media (max-width: 1000px) {
  .footer-v4__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-v4__brand-block { grid-column: span 2; }
}
@media (max-width: 600px) {
  .footer-v4__top { grid-template-columns: 1fr; }
  .footer-v4__brand-block { grid-column: 1; }
  .footer-v4__brand { font-size: 44px; }
}

/* ===========================================================
   Scroll-pinned project showcase (homepage)
   =========================================================== */
.pin-section {
  position: relative;
  background: var(--v4-bg-soft);
}
.pin-section-head { padding: 100px 0 56px; }
.pin-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.pin-track {
  display: flex;
  gap: 28px;
  padding: 0 10vw;
  will-change: transform;
  align-items: stretch;
}
.pin-card {
  flex-shrink: 0;
  width: min(640px, 80vw);
  background: #fff;
  border: 1px solid var(--v4-border);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 56% auto;
  box-shadow: 0 24px 60px -28px rgba(14, 14, 12, 0.18);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.pin-cover {
  position: relative;
  overflow: hidden;
}
.pin-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 8px 8px;
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}
.pin-cover-meta {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
  gap: 12px;
}
.pin-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  font-family: var(--ff-mono-v4);
  font-size: 11px;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pin-tag.pin-tag-accent { background: var(--v4-accent); }
.pin-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 88px;
  color: #fff;
  font-variation-settings: "opsz" 144, "wght" 320, "SOFT" 100;
  line-height: 1;
  letter-spacing: -0.03em;
  position: absolute;
  bottom: 18px;
  right: 28px;
  z-index: 2;
  opacity: 0.92;
}
.pin-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
}
.pin-client {
  font-family: var(--ff-mono-v4);
  font-size: 11.5px;
  color: var(--v4-accent);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pin-card h3 {
  font-family: var(--ff-sans-v4);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: var(--v4-ink);
}
.pin-card h3 em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: var(--v4-accent);
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
}
.pin-card p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--v4-ink-soft);
  margin: 0 0 18px;
  flex-grow: 1;
}
.pin-results {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--v4-border-soft);
  flex-wrap: wrap;
}
.pin-results div { display: flex; flex-direction: column; gap: 2px; }
.pin-results b {
  font-family: var(--ff-sans-v4);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--v4-accent);
}
.pin-results span {
  font-family: var(--ff-mono-v4);
  font-size: 11px;
  color: var(--v4-ink-mute);
  letter-spacing: 0.02em;
}
.pin-card--end {
  grid-template-rows: 1fr;
  background: var(--v4-ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px;
  border-color: var(--v4-ink);
}
.pin-card--end h3 {
  font-size: 40px;
  color: #fff;
  margin: 0 0 18px;
}
.pin-card--end h3 em { color: var(--v4-accent); }
.pin-card--end p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  margin: 0 0 28px;
  line-height: 1.55;
}

.pin-progress-wrap {
  position: absolute;
  left: 5vw;
  right: 5vw;
  bottom: 38px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.pin-progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-mono-v4);
  font-size: 11.5px;
  color: var(--v4-ink-mute);
  letter-spacing: 0.04em;
}
.pin-progress-bar {
  height: 2px;
  background: var(--v4-border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.pin-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--v4-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s linear;
}
.pin-hint {
  position: absolute;
  top: 28px;
  right: 5vw;
  font-family: var(--ff-mono-v4);
  font-size: 11px;
  color: var(--v4-ink-mute);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--v4-border);
  padding: 7px 12px;
  border-radius: 999px;
  z-index: 3;
}
.pin-hint .scroll-icon {
  width: 14px;
  height: 14px;
  color: var(--v4-accent);
  animation: scroll-nudge 1.8s ease-in-out infinite;
}
@keyframes scroll-nudge {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50%      { transform: translateX(4px); opacity: 1; }
}

@media (max-width: 900px) {
  .pin-section { height: auto !important; }
  .pin-sticky { position: relative; height: auto; padding: 30px 0 50px; }
  .pin-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    transform: none !important;
  }
  .pin-card { scroll-snap-align: center; width: 85vw; }
  .pin-progress-wrap, .pin-hint { display: none; }
}

/* Cover gradients */
.cover-1 {
  background:
    radial-gradient(ellipse at 30% 35%, #FFD1A8 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, #FF7A4D 0%, transparent 50%),
    linear-gradient(135deg, #2A1410 0%, #4E1F0E 70%);
}
.cover-2 {
  background:
    conic-gradient(from 220deg at 70% 30%, var(--v4-accent), #FFB199, var(--v4-accent), #2A0F08, var(--v4-accent));
}
.cover-3 {
  background:
    radial-gradient(circle at 50% 60%, #FFE9DF 0%, transparent 25%),
    radial-gradient(circle at 50% 60%, transparent 25%, var(--v4-accent) 26%, transparent 28%),
    radial-gradient(circle at 50% 60%, transparent 38%, rgba(255, 255, 255, 0.2) 39%, transparent 41%),
    linear-gradient(135deg, #0E0E0C, #2A1410);
}
.cover-4 { background: linear-gradient(135deg, #1A0D08 0%, #FF4A1C 65%, #FFB199 100%); }
.cover-5 {
  background:
    radial-gradient(circle at 30% 50%, #FFE9DF 0%, transparent 35%),
    radial-gradient(circle at 70% 50%, var(--v4-accent) 0%, transparent 40%),
    linear-gradient(135deg, #0E0E0C, #2A1410);
}
.cover-6 { background: conic-gradient(from 45deg at 50% 50%, #FFE9DF, #FFB199, #FF7A4D, #C53A14, #FF7A4D, #FFB199, #FFE9DF); }
.cover-7 {
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(255, 74, 28, 0.4) 7px 8px),
    linear-gradient(135deg, #0E0E0C, #2A1410);
}
.cover-8 {
  background:
    radial-gradient(circle at 30% 30%, var(--v4-accent) 0%, transparent 22%),
    radial-gradient(circle at 70% 70%, #FFB199 0%, transparent 28%),
    radial-gradient(circle at 50% 50%, #FF7A4D 0%, transparent 18%),
    #1A0D08;
}
.cover-9 { background: linear-gradient(135deg, #FFE9DF 0%, #FFE9DF 50%, var(--v4-ink) 50%, var(--v4-ink) 100%); }

/* ===========================================================
   Team page — Founders, values, careers, circular testimonials
   =========================================================== */

/* Sections shared layout */
.section-v4 { padding: 100px 0; }
.section-v4--soft { background: var(--v4-bg-soft); }
@media (max-width: 720px) { .section-v4 { padding: 60px 0; } }
.section-head-v4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 48px;
}
@media (min-width: 900px) {
  .section-head-v4 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; }
}
.section-h2-v4 {
  font-family: var(--ff-sans-v4);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--v4-ink);
  text-wrap: balance;
}
.section-h2-v4 em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
  color: var(--v4-accent);
  letter-spacing: -0.02em;
}
.section-lead-v4 {
  color: var(--v4-ink-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 480px;
}

/* Team hero — wider grid */
.page-hero-v4__grid--team {
  align-items: stretch;
}
@media (min-width: 900px) {
  .page-hero-v4__grid--team {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
  }
}

/* ===== Circular testimonials (transparent, big photos + caption below) ===== */
.circ-testi {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.circ-testi__stage {
  position: relative;
  height: 380px;
  perspective: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fine orange micro-particles around the photos */
.circ-testi__molecules {
  position: absolute;
  inset: -8%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.micro {
  position: absolute;
  display: block;
  width: var(--s, 2px);
  height: var(--s, 2px);
  top: var(--t, 50%);
  left: var(--l, 50%);
  border-radius: 50%;
  opacity: var(--o, 0.7);
  filter: var(--b, none);
  box-shadow: 0 0 4px currentColor;
  will-change: transform, opacity;
  animation: micro-drift var(--du, 8s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes micro-drift {
  0%   { transform: translate(0, 0); opacity: var(--o, 0.7); }
  25%  { transform: translate(calc(var(--dx) * 0.5), calc(var(--dy) * 0.5)); }
  50%  { transform: translate(var(--dx), var(--dy)); opacity: calc(var(--o, 0.7) * 1.3); }
  75%  { transform: translate(calc(var(--dx) * 0.5), calc(var(--dy) * -0.3)); }
  100% { transform: translate(0, 0); opacity: var(--o, 0.7); }
}
.circ-testi__img {
  position: absolute;
  width: 280px;
  height: 360px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-radius: 22px;
  box-shadow:
    0 30px 60px -20px rgba(14, 14, 12, 0.35),
    0 6px 18px rgba(14, 14, 12, 0.10);
  opacity: 0;
  pointer-events: none;
  transform: translateX(0) translateY(0) scale(0.7) rotateY(0deg);
  transition: transform 0.75s cubic-bezier(.4, 1.4, .3, 1), opacity 0.65s ease, box-shadow 0.25s ease;
  z-index: 1;
  display: block;
  text-decoration: none;
}
.circ-testi__img.is-active {
  cursor: pointer;
}
.circ-testi__img.is-active:hover {
  box-shadow:
    0 36px 70px -20px rgba(14, 14, 12, 0.45),
    0 0 0 4px rgba(255, 74, 28, 0.2);
}
.circ-testi__img.is-active {
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
  transform: translateX(0) translateY(0) scale(1) rotateY(0deg) rotateZ(0deg);
  animation: circ-active-wobble 6s ease-in-out infinite;
}
.circ-testi__img.is-prev {
  opacity: 0.55;
  z-index: 2;
  pointer-events: auto;
  transform: translateX(-130px) translateY(-14px) scale(0.82) rotateY(20deg) rotateZ(-6deg);
  filter: brightness(0.78);
  animation: circ-side-wobble-l 7s ease-in-out infinite;
}
.circ-testi__img.is-next {
  opacity: 0.55;
  z-index: 2;
  pointer-events: auto;
  transform: translateX(130px) translateY(-14px) scale(0.82) rotateY(-20deg) rotateZ(6deg);
  filter: brightness(0.78);
  animation: circ-side-wobble-r 7s ease-in-out infinite -2s;
}
@keyframes circ-active-wobble {
  0%, 100% { transform: translateX(0) translateY(0) scale(1) rotateY(0deg) rotateZ(0deg); }
  50%      { transform: translateX(0) translateY(-4px) scale(1) rotateY(0deg) rotateZ(-1.2deg); }
}
@keyframes circ-side-wobble-l {
  0%, 100% { transform: translateX(-130px) translateY(-14px) scale(0.82) rotateY(20deg) rotateZ(-6deg); }
  50%      { transform: translateX(-126px) translateY(-22px) scale(0.84) rotateY(18deg) rotateZ(-9deg); }
}
@keyframes circ-side-wobble-r {
  0%, 100% { transform: translateX(130px) translateY(-14px) scale(0.82) rotateY(-20deg) rotateZ(6deg); }
  50%      { transform: translateX(126px) translateY(-22px) scale(0.84) rotateY(-18deg) rotateZ(9deg); }
}

.circ-testi__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.circ-testi__line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: opacity 0.18s ease;
}
.circ-testi__name {
  font-family: var(--ff-sans-v4);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--v4-ink);
  margin: 0;
  line-height: 1.05;
}
.circ-testi__name.is-changing,
.circ-testi__phrase.is-changing { opacity: 0; }
.circ-testi__phrase {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: var(--v4-ink-soft);
  font-variation-settings: "opsz" 36, "wght" 380, "SOFT" 100;
  margin: 0;
  max-width: 38ch;
  transition: opacity 0.18s ease;
}
.circ-testi__nav {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.circ-testi__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--v4-ink);
  border: 1px solid var(--v4-border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.2s;
}
.circ-testi__btn:hover {
  background: var(--v4-ink);
  color: #fff;
  border-color: var(--v4-ink);
  transform: translateY(-1px);
}
.circ-testi__count {
  font-family: var(--ff-mono-v4);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--v4-ink-mute);
  text-transform: uppercase;
}

@media (max-width: 1023px) {
  .circ-testi__stage { height: 320px; }
  .circ-testi__img { width: 220px; height: 300px; }
  .circ-testi__img.is-prev { transform: translateX(-100px) translateY(-12px) scale(0.82) rotateY(20deg); }
  .circ-testi__img.is-next { transform: translateX(100px) translateY(-12px) scale(0.82) rotateY(-20deg); }
}
@media (max-width: 720px) {
  .circ-testi__stage { height: 280px; }
  .circ-testi__img { width: 180px; height: 260px; }
  .circ-testi__img.is-prev { transform: translateX(-72px) translateY(-10px) scale(0.78) rotateY(18deg); }
  .circ-testi__img.is-next { transform: translateX(72px) translateY(-10px) scale(0.78) rotateY(-18deg); }
  .circ-testi__name { font-size: 22px; }
  .circ-testi__phrase { font-size: 15.5px; }
}

/* ===== Lead cards (founders) ===== */
.leads-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lead-card {
  background: #fff;
  border: 1px solid var(--v4-border);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  box-shadow: 0 10px 30px -16px rgba(14, 14, 12, 0.08);
}
.lead-card:hover {
  box-shadow: 0 30px 60px -22px rgba(14, 14, 12, 0.16);
  transform: translateY(-2px);
}
.lead-card--reverse { grid-template-columns: 1.4fr 1fr; }
.lead-card--reverse .lead-photo { order: 2; }

.lead-photo {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  background: var(--v4-ink);
  min-height: 340px;
}
.lead-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 8px 8px;
  mix-blend-mode: overlay;
  opacity: 0.7;
}
.lead-photo-1 { background: linear-gradient(165deg, #2A1410 0%, #1A0D08 100%); }
.lead-photo-2 { background: linear-gradient(195deg, var(--v4-accent) 0%, #4E1F0E 60%, #1A0D08 100%); }
.lead-photo-3 { background: linear-gradient(155deg, #FFB199 0%, #C53A14 60%, #1A0D08 100%); }

/* Floating photo frame on top of the gradient — translates Y + tilts with scroll */
.lead-photo__frame {
  --py: 0px;
  --pr: 0deg;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56%;
  aspect-ratio: 4 / 5;
  transform: translate(-50%, calc(-50% + var(--py))) rotate(var(--pr));
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 24px 50px -18px rgba(14, 14, 12, 0.55),
    0 0 0 5px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 2;
  will-change: transform;
  /* No CSS transition — JS already updates via requestAnimationFrame; a transition here
     would chase a constantly-moving target and create the visible "jiggle". */
}
.lead-photo__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,14,12,0) 60%, rgba(14,14,12,0.35) 100%);
  pointer-events: none;
}
.lead-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
[data-parallax] {
  transition: transform 60ms linear;
}
.lead-photo__num {
  position: absolute;
  top: 22px;
  left: 22px;
  font-family: var(--ff-mono-v4);
  font-size: 11.5px;
  color: #fff;
  opacity: 0.7;
  z-index: 2;
  letter-spacing: 0.04em;
}
.lead-photo__init {
  position: absolute;
  bottom: 26px;
  right: 28px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 88px;
  color: #fff;
  font-variation-settings: "opsz" 144, "wght" 360, "SOFT" 100;
  z-index: 2;
  line-height: 1;
  opacity: 0.95;
  letter-spacing: -0.02em;
}

.lead-info {
  padding: 48px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lead-role {
  font-family: var(--ff-mono-v4);
  font-size: 11px;
  color: var(--v4-accent);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.lead-info h3 {
  font-family: var(--ff-sans-v4);
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  color: var(--v4-ink);
}
.lead-info h3 em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: var(--v4-accent);
  font-variation-settings: "opsz" 144, "wght" 380, "SOFT" 100;
}
.lead-info p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--v4-ink-soft);
  margin: 0 0 24px;
  max-width: 50ch;
}
.lead-info blockquote {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.35;
  color: var(--v4-ink);
  padding-left: 18px;
  border-left: 2px solid var(--v4-accent);
  margin: 0 0 26px;
  max-width: 44ch;
  font-variation-settings: "opsz" 36, "wght" 380, "SOFT" 100;
}
.lead-info blockquote em { color: var(--v4-accent); }
.lead-links { display: flex; gap: 8px; flex-wrap: wrap; }
.lead-links a {
  font-family: var(--ff-mono-v4);
  font-size: 11.5px;
  padding: 6px 12px;
  border: 1px solid var(--v4-border);
  border-radius: 999px;
  color: var(--v4-ink-soft);
  text-decoration: none;
  transition: all 0.18s ease;
}
.lead-links a:hover {
  border-color: var(--v4-ink);
  color: var(--v4-ink);
  background: var(--v4-bg-soft);
}
@media (max-width: 900px) {
  .lead-card, .lead-card--reverse { grid-template-columns: 1fr; }
  .lead-card--reverse .lead-photo { order: -1; }
  .lead-info { padding: 32px 28px; }
  .lead-photo { min-height: 280px; }
  .lead-photo__init { font-size: 64px; }
}

/* ===== Values grid ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  background: #fff;
  border: 1px solid var(--v4-border);
  border-radius: 24px;
  padding: 36px 32px;
  transition: transform 0.3s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--v4-ink);
  box-shadow: 0 30px 60px -22px rgba(14, 14, 12, 0.14);
}
.value-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--v4-accent-soft);
  color: #C53A14;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.value-icon svg { width: 22px; height: 22px; }
.value-card h3 {
  font-family: var(--ff-sans-v4);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--v4-ink);
}
.value-card h3 em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: var(--v4-accent);
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
}
.value-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--v4-ink-soft);
  margin: 0;
}

/* ===== Careers / Contact direct ===== */
.careers-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .careers-block { grid-template-columns: 1fr 1.4fr; gap: 60px; }
  .careers-left { position: sticky; top: 110px; }
}
.careers-h2 {
  font-family: var(--ff-sans-v4);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  color: var(--v4-ink);
}
.careers-h2 em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: var(--v4-accent);
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
}
.careers-left p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--v4-ink-soft);
  max-width: 42ch;
  margin-bottom: 28px;
}
.careers-meta {
  display: flex;
  gap: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--v4-border);
}
.careers-meta div { display: flex; flex-direction: column; gap: 4px; }
.careers-meta b {
  font-family: var(--ff-sans-v4);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.025em;
  color: var(--v4-ink);
}
.careers-meta span {
  font-family: var(--ff-mono-v4);
  font-size: 11.5px;
  color: var(--v4-ink-mute);
  letter-spacing: 0.04em;
}
.careers-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.career-card {
  background: #fff;
  border: 1px solid var(--v4-border);
  border-radius: 20px;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  transition: transform 0.3s ease, border-color 0.25s ease, background 0.25s ease;
  text-decoration: none;
}
.career-card:hover {
  background: var(--v4-bg-warm);
  border-color: var(--v4-accent);
  transform: translateY(-2px);
}
.career-tag {
  font-family: var(--ff-mono-v4);
  font-size: 10.5px;
  color: var(--v4-accent);
  margin-bottom: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.career-card h4 {
  font-family: var(--ff-sans-v4);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--v4-ink);
}
.career-card h4 em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: var(--v4-accent);
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
}
.career-meta-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.career-meta-row span {
  font-family: var(--ff-mono-v4);
  font-size: 11px;
  color: var(--v4-ink-soft);
  padding: 4px 10px;
  background: var(--v4-bg-soft);
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.career-arr {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--v4-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 18px;
  color: var(--v4-ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.career-card:hover .career-arr {
  background: var(--v4-accent);
  color: #fff;
  border-color: var(--v4-accent);
}

/* ===========================================================
   Global DA — applies across all pages (articles, guides, ...)
   =========================================================== */

/* Headings on every page use the same display rhythm.
   IMPORTANT: don't force color here — pages explicitly use text-white on dark sections. */
h1, h2, h3, h4 {
  font-family: var(--ff-sans-v4);
  letter-spacing: -0.025em;
}
h1 { letter-spacing: -0.04em; }
/* Default ink color only when the heading has no explicit text-color class */
h1:not([class*="text-"]):not([style*="color"]),
h2:not([class*="text-"]):not([style*="color"]),
h3:not([class*="text-"]):not([style*="color"]),
h4:not([class*="text-"]):not([style*="color"]) {
  color: var(--v4-ink);
}

/* Hide the default disclosure triangle on <details><summary> across every browser */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
details > summary { cursor: pointer; }

/* ===========================================================
   UNIFIED PAGE TITLES — every subpage hero h1 looks the same
   =========================================================== */
/* Catch legacy V2 hero h1 patterns (text-5xl/6xl/7xl + font-extrabold + slate-900)
   and the new .page-hero-v4__title, .hero-title-v4 already created. */
main h1[class*="font-extra"],
main h1[class*="text-5xl"],
main h1[class*="text-6xl"],
main h1[class*="text-7xl"],
main > header h1,
main > section:first-of-type:not([aria-labelledby="hero-heading"]) h1 {
  font-family: var(--ff-sans-v4) !important;
  font-weight: 600 !important;
  font-size: clamp(2.2rem, 8vw, 3.4rem) !important;
  letter-spacing: -0.04em !important;
  line-height: 1.04 !important;
  text-wrap: balance;
  text-transform: none !important;
  margin-bottom: 18px !important;
}
@media (max-width: 720px) {
  main h1[class*="font-extra"],
  main h1[class*="text-5xl"],
  main h1[class*="text-6xl"],
  main h1[class*="text-7xl"],
  main > header h1,
  main > section:first-of-type:not([aria-labelledby="hero-heading"]) h1,
  .page-hero-v4__title,
  .section-h2-v4 {
    font-size: clamp(2.1rem, 9vw, 3rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.035em !important;
  }
}

/* Force consistent LEFT alignment on subpage heroes (override Tailwind text-center) */
main > header.text-center,
main > header[class*="text-center"],
main > section:first-of-type[class*="text-center"] {
  text-align: left !important;
}
main > header.text-center > div,
main > header[class*="text-center"] > div,
main > header.text-center .max-w-2xl,
main > header.text-center .max-w-4xl,
main > header[class*="text-center"] .mx-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
}
/* The header itself should still have its inner max-width via Tailwind, just left aligned */
main > header.text-center > .max-w-7xl,
main > header.text-center > .max-w-6xl,
main > header.text-center > .max-w-5xl,
main > header.text-center > .max-w-4xl {
  text-align: left !important;
}
/* When sitting on a light/white background, force ink color */
main > header.bg-white h1,
main > header:not([class*="bg-"]) h1,
main > section:first-of-type:not([aria-labelledby="hero-heading"]):not([class*="bg-slate-9"]):not([class*="bg-dark"]) h1 {
  color: var(--v4-ink) !important;
}

/* Italic / accented span inside page titles — always Fraunces orange */
main h1 .text-primary,
main h1 em,
main h1 i,
main h1 span.text-primary {
  font-family: var(--ff-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: var(--v4-accent) !important;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
  letter-spacing: -0.02em;
}

/* Subpage hero subtitle paragraphs — softer slate, larger leading */
main > header p,
main > section:first-of-type:not([aria-labelledby="hero-heading"]) > .max-w-7xl > p,
main > section:first-of-type:not([aria-labelledby="hero-heading"]) > .max-w-4xl > p,
main > section:first-of-type:not([aria-labelledby="hero-heading"]) > .max-w-5xl > p {
  font-family: var(--ff-sans-v4) !important;
  font-size: 1.0625rem !important;
  line-height: 1.6 !important;
  color: var(--v4-ink-soft) !important;
}

/* Unified eyebrow pill — when a subpage uses Tailwind eyebrow with bg-blue-50/text-primary */
main > header .bg-blue-50,
main > header .bg-primary-light,
main > section:first-of-type:not([aria-labelledby="hero-heading"]) .bg-blue-50,
main > section:first-of-type:not([aria-labelledby="hero-heading"]) .bg-primary-light {
  background: rgba(255, 74, 28, 0.10) !important;
  border: 1px solid rgba(255, 74, 28, 0.22) !important;
}
main > header .bg-blue-50 .text-primary,
main > header .bg-primary-light .text-primary {
  color: #8a2406 !important;
  letter-spacing: 0.08em;
}
h1 em, h2 em, h3 em, h4 em,
h1 .text-primary, h2 .text-primary,
h1 i, h2 i, h3 i {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
  color: var(--v4-accent);
  letter-spacing: -0.02em;
}

/* Tailwind v2 utility classes — re-tune for orange + premium feel */
.text-primary { color: var(--v4-accent) !important; }
.bg-primary  { background-color: var(--v4-accent) !important; }
.bg-primary-light { background-color: var(--v4-accent-soft) !important; }
.bg-primary-dark, .hover\:bg-primary-dark:hover {
  background-color: #C53A14 !important;
}
.border-primary { border-color: var(--v4-accent) !important; }
.hover\:text-primary:hover { color: var(--v4-accent) !important; }
.hover\:border-primary:hover { border-color: var(--v4-accent) !important; }
.hover\:bg-primary-light:hover { background-color: var(--v4-accent-soft) !important; }
.from-primary { --tw-gradient-from: var(--v4-accent) !important; }
.to-primary-dark { --tw-gradient-to: #C53A14 !important; }

/* Refined primary buttons */
.bg-primary.text-white,
a.bg-primary,
button.bg-primary {
  box-shadow: 0 10px 24px -10px rgba(255, 74, 28, 0.35), 0 1px 2px rgba(14,14,12,0.04);
}

/* Subpage hero block (page-hero in V2 templates) */
.page-hero, [class*="pt-32"][class*="pb-24"] {
  background: linear-gradient(180deg, #fff 0%, #FBFAF6 100%);
}

/* Article / guide prose styling — quieter, more editorial */
article.prose h1,
article.prose h2,
article.prose h3,
main h1,
main h2 {
  text-wrap: balance;
}
article p, .prose p, [class*="prose"] p {
  color: var(--v4-ink-soft);
}
article a, .prose a {
  color: var(--v4-accent);
  text-underline-offset: 3px;
}

/* Card surfaces (services, testimonials, etc.) get a slight warm cream */
.bg-slate-50 { background-color: #F8F7F4 !important; }
.bg-slate-100 { background-color: #F1F0EB !important; }

/* Eyebrow pills (Tailwind v2 used bg-primary-light text-primary) — readable on light bg */
.bg-primary-light.text-primary,
span.bg-primary-light.text-primary {
  background-color: var(--v4-accent-soft) !important;
  color: #8a2406 !important;
  border: 1px solid rgba(255, 74, 28, 0.22);
  letter-spacing: 0.06em;
}

/* === Contrast fixes for badges & buttons === */
/* Translucent primary on light backgrounds — darken text */
.bg-primary\/10.text-primary,
.bg-primary\/20.text-primary,
.bg-primary-light .text-primary {
  color: #8a2406 !important;
}
/* Translucent primary on dark backgrounds (e.g. the 8000€ block) — keep light text */
.bg-slate-900 .bg-primary\/20 .text-blue-300,
.bg-slate-900 .bg-primary\/20 span,
[class*="bg-slate-9"] .text-primary {
  color: #FFB59A !important;
}
/* Big bg-primary buttons — use white text always (overrides Tailwind text-white that should already be white but sometimes wins through specificity) */
a.bg-primary, button.bg-primary, .bg-primary.text-white {
  color: #fff !important;
}
a.bg-primary:hover, button.bg-primary:hover {
  background-color: #C53A14 !important;
  color: #fff !important;
}
/* Buttons that say "hover:bg-blue-700" in the legacy V2 markup — re-target to dark orange */
.hover\:bg-blue-700:hover {
  background-color: #C53A14 !important;
}

/* Footer / dark sections still use ink */
.bg-slate-900 { background-color: var(--v4-ink) !important; }
.bg-slate-800 { background-color: #1A1A18 !important; }

/* Links in body text */
main a:not(.btn):not([class*="bg-"]):not(.liquid-cta):not(.liquid-brand):not(.liquid-menu a):hover {
  color: var(--v4-accent);
}

/* Decorative blue blobs in subpage heroes — recolor to subtle orange */
[class*="bg-blue-"], [class*="bg-indigo-"] {
  background-color: rgba(255, 74, 28, 0.08) !important;
}
[class*="text-blue-"], [class*="text-indigo-"] {
  color: var(--v4-accent) !important;
}
[class*="bg-violet-"] { background-color: rgba(255, 74, 28, 0.06) !important; }
[class*="text-violet-"] { color: var(--v4-accent) !important; }

/* Smooth out the page-hero blob shadows */
.absolute.bg-primary\/5,
.absolute.bg-primary\/3 {
  background-color: rgba(255, 74, 28, 0.06) !important;
}

/* =========================================================
   Solution cards — redesign (Voice bots, Agents, CRM, n8n…)
   ========================================================= */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 18px;
}
@media (min-width: 720px) {
  .solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.solution-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--v4-border);
  border-radius: 24px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s cubic-bezier(.2,.7,.2,1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}
.solution-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(255, 74, 28, 0.05), transparent 55%),
    linear-gradient(180deg, rgba(255, 247, 240, 0.55), transparent 30%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.solution-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--v4-accent), transparent);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.solution-card:hover {
  border-color: rgba(255, 74, 28, 0.22);
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -24px rgba(14, 14, 12, 0.16);
}
.solution-card:hover::before { opacity: 1; }
.solution-card:hover::after { opacity: 1; transform: translateY(0); }

.solution-card__icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 74, 28, 0.10), rgba(255, 74, 28, 0.02));
  border: 1px solid rgba(255, 74, 28, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--v4-accent);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.solution-card__icon::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 6px 16px -8px rgba(255, 74, 28, 0.4);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.solution-card:hover .solution-card__icon {
  transform: scale(1.06) rotate(-3deg);
}
.solution-card:hover .solution-card__icon::after { opacity: 1; }

.solution-card__title {
  font-family: var(--ff-sans-v4);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--v4-ink);
  margin: 0 0 10px;
}
.solution-card__desc {
  color: var(--v4-ink-mute);
  font-size: 14.5px;
  line-height: 1.6;
  flex: 1;
  margin: 0 0 20px;
}
.solution-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--v4-accent);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  margin-top: auto;
}
.solution-card__link .arr {
  display: inline-flex;
  transition: transform 0.2s ease;
}
.solution-card__link:hover .arr { transform: translateX(3px); }

/* =========================================================
   Highlights — featured case studies (editorial v2)
   ========================================================= */
.highlights {
  background: #FBFAF7;
  padding: 110px 0 120px;
  position: relative;
  overflow: hidden;
}
.highlights__bg {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(36% 28% at 82% 12%, rgba(255, 74, 28, 0.06), transparent 70%),
    radial-gradient(32% 26% at 12% 90%, rgba(14, 14, 12, 0.03), transparent 70%);
  filter: blur(50px);
}
.highlights__inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.highlights__head {
  margin-bottom: 56px;
  max-width: 760px;
}
.highlights__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-sans-v4);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--v4-accent);
  margin-bottom: 20px;
}
.highlights__eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--v4-accent);
}
.highlights__title {
  font-family: var(--ff-sans-v4);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--v4-ink);
  margin: 0 0 16px;
}
.highlights__title em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
  color: var(--v4-accent);
  letter-spacing: -0.02em;
}
.highlights__sub {
  color: var(--v4-ink-soft);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  max-width: 600px;
}
.highlights__grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Big case card — project info (left) + testimonial (right) */
.case {
  position: relative;
  background: #fff;
  border: 1px solid var(--v4-border);
  border-radius: 24px;
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(.2,.7,.2,1);
  isolation: isolate;
  overflow: hidden;
}
@media (min-width: 900px) {
  .case {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 56px;
    padding: 50px 56px;
  }
}
.case::before {
  content: "";
  position: absolute;
  top: 0;
  left: 48px;
  right: 48px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--v4-accent), rgba(255, 74, 28, 0.4));
}
.case:hover {
  border-color: rgba(14, 14, 12, 0.16);
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -28px rgba(14, 14, 12, 0.16);
}

.case__main { display: flex; flex-direction: column; min-width: 0; }
.case__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
@media (min-width: 900px) {
  .case__side { border-left: 1px solid var(--v4-border-soft); padding-left: 56px; }
}

/* Project context (eyebrow) — small caps, accent */
.case__client {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-sans-v4);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--v4-ink-soft);
  margin: 4px 0 18px;
}
.case__client-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v4-accent);
}

/* Project title — Geist 600, no italic, accent on em */
.case__title {
  font-family: var(--ff-sans-v4);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--v4-ink);
  margin: 0 0 14px;
}
.case__title em {
  font-family: var(--ff-sans-v4);
  font-style: normal;
  font-weight: 600;
  font-variation-settings: normal;
  color: var(--v4-accent);
  letter-spacing: -0.02em;
}

/* Lede paragraph */
.case__lede {
  color: var(--v4-ink-soft);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 26px;
  max-width: 58ch;
  font-weight: 400;
}

/* Stats */
.case__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 22px 0;
  margin: 0 0 26px;
  border-top: 1px solid var(--v4-border-soft);
  border-bottom: 1px solid var(--v4-border-soft);
}
@media (min-width: 520px) {
  .case__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}
.case__stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.case__stat-num {
  font-family: var(--ff-sans-v4);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1;
  letter-spacing: -0.022em;
  color: var(--v4-ink);
  font-feature-settings: "tnum", "lnum";
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case__stat-num em {
  font-family: var(--ff-sans-v4);
  font-style: normal;
  font-weight: 600;
  font-variation-settings: normal;
  color: var(--v4-accent);
}
.case__stat-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--v4-ink-mute);
  line-height: 1.4;
}

/* Link */
.case__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--v4-ink);
  font-family: var(--ff-sans-v4);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  border-bottom: 1px solid currentColor;
  padding: 0 0 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.case__link:hover { color: var(--v4-accent); border-color: var(--v4-accent); }
.case__link .arr { display: inline-flex; transition: transform 0.2s ease; }
.case__link:hover .arr { transform: translateX(4px); }

/* Testimonial block (right column) */
.case__quote { position: relative; margin: 0; padding: 0; }
.case__quote-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 74, 28, 0.10);
  color: var(--v4-accent);
  margin-bottom: 18px;
  user-select: none;
}
.case__quote-mark svg { width: 15px; height: 15px; }
.case__quote blockquote {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  font-family: var(--ff-sans-v4);
  font-style: normal;
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1.6;
  letter-spacing: -0.002em;
  color: var(--v4-ink);
}
.case__quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--v4-border-soft);
  flex-wrap: wrap;
}
.case__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--v4-ink);
  color: #fff;
  font-family: var(--ff-sans-v4);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.case--olympia .case__avatar { background: #FF4A1C; }
.case--jlb .case__avatar { background: #0E0E0C; }
.case--smart .case__avatar {
  background: #1a1815;
  color: #FF4A1C;
  border: 1px solid rgba(255, 74, 28, 0.5);
}
.case__author {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.case__author strong {
  font-family: var(--ff-sans-v4);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--v4-ink);
}
.case__author small {
  font-family: var(--ff-sans-v4);
  font-size: 12.5px;
  color: var(--v4-ink-mute);
  font-weight: 400;
}
.case__source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-family: var(--ff-sans-v4);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--v4-ink-mute);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.case__source:hover { color: var(--v4-ink); }
.case__source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #FC4F37;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 720px) {
  .highlights { padding: 72px 0 80px; }
  .highlights__head { margin-bottom: 40px; }
  .case { padding: 30px 24px; border-radius: 20px; gap: 26px; }
  .case::before { left: 24px; right: 24px; }
  .case__lede { margin-bottom: 22px; font-size: 14.5px; }
  .case__stats { padding: 18px 0; margin-bottom: 22px; gap: 14px; }
  .case__stat-num { font-size: 18px; }
  .case__quote blockquote { font-size: 15px; }
}
