/* ==========================================================================
   Fanous — Landing v3
   Unified white body · Cohere peach as accent moments · dark Innovation
   Partners · Inter sans · documentary photo + dashboard mockups · subtle
   motion. Real Fanous logo + emblem integrated.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg:         #FFFFFF;            /* primary white surface */
  --bg-cream:   #EFE5D7;            /* Databricks cream — featured panels (hero) */
  --bg-soft:    #FAFAF7;            /* near-white cards */
  --bg-ink:     #0A1418;            /* deep navy — footer */
  --bg-ink-2:   #1B3139;            /* mid navy — secondary dark surfaces */

  --text:       #1B3139;            /* PRIMARY text — Databricks navy (NOT pure black) */
  --text-2:     #5A6671;
  --text-3:     #8A95A0;

  /* Brand red palette — Databricks-inspired, multiple shades for contextual use */
  --brand-red:       #FF3621;       /* PRIMARY — main accent, buttons, dots, bars */
  --brand-red-deep:  #BC1D14;       /* DEEP — pressed states, dark surface accents */
  --brand-red-hover: #E0291A;       /* HOVER — button/link hover */
  --brand-coral:     #FF6B47;       /* CORAL — gradients, secondary accent */
  --brand-salmon:    #FF8B6B;       /* SALMON — tertiary, light gradients */
  --brand-peach:     #FFB8A8;       /* PEACH — icon backgrounds, soft fills */
  --brand-blush:     #FFD3CC;       /* BLUSH — surface tints, hover bg */
  --brand-cream:     #FFF0EC;       /* CREAM — barely-there wash, subtle highlights */

  /* Dashboard-standard palette (Linear / Notion / Stripe vibe) */
  --blue-400:   #60A5FA;
  --blue-500:   #3B82F6;
  --blue-600:   #2563EB;
  --blue-700:   #1D4ED8;
  --violet-400: #A78BFA;
  --violet-500: #8B5CF6;
  --violet-600: #7C3AED;
  --violet-700: #6D28D9;
  --emerald-400:#34D399;
  --emerald-500:#10B981;
  --emerald-600:#059669;
  --emerald-700:#047857;
  --amber-400:  #FBBF24;
  --amber-500:  #F59E0B;
  --amber-600:  #D97706;
  --amber-700:  #B45309;
  --slate-300:  #CBD5E1;
  --slate-400:  #94A3B8;
  --slate-500:  #64748B;
  --slate-600:  #475569;
  --slate-700:  #334155;
  --slate-800:  #1E293B;
  --slate-900:  #0F172A;
  --plum-700:   #4A2438;
  --plum-800:   #3A1B2C;
  --plum-900:   #2C1A2E;
  --paper:      #F4ECD8;
  --paper-2:    #FBF8F1;
  --paper-line: #DCD2BB;

  /* Aliases (existing code) */
  --accent:      var(--brand-red);
  --accent-2:    var(--brand-red-hover);
  --accent-3:    var(--brand-blush);
  --accent-soft: var(--brand-peach);

  --border:    #ECECEC;             /* hairline */
  --border-2:  #E6E6E6;             /* slightly stronger hairline */
  --border-3:  rgba(255,255,255,.10);

  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --max-w:    1240px;
  --gutter:   24px;
  --section-y:112px;
  --radius:    10px;
  --radius-lg: 18px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 1, "cv11" 1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.022em; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
main > section { padding: var(--section-y) 0; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Logo (multi-color SVG via <img>) ---------- */
.logo {
  display: inline-block;
  vertical-align: middle;
}
.logo--nav    { height: 26px; width: auto; }
.logo--footer { height: 30px; width: auto; }

/* Standalone emblem (still mask-based for currentColor flexibility) */
.emblem {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url("assets/emblem.svg") no-repeat center / contain;
          mask: url("assets/emblem.svg") no-repeat center / contain;
}

/* ---------- Type primitives ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-coral);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.eyebrow--bar { gap: 14px; }
.eyebrow--bar .bar {
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-coral));
  display: inline-block;
}
.eyebrow--centered { justify-content: center; }
.eyebrow--on-dark  { color: rgba(255,255,255,0.65); }

.section-title {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
  max-width: 22ch;
}
.section-title--tight    { max-width: 28ch; }
.section-title--on-dark  { color: #fff; }

.section-head { margin-bottom: 72px; max-width: 760px; }
.section-head--dark { margin-bottom: 64px; }
.section-intro {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn--primary {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 14px -4px rgba(255,54,33,0.35);
}
.btn--primary:hover {
  background: var(--brand-red-hover);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 6px 18px -4px rgba(255,54,33,0.45);
  transform: translateY(-1px);
}
.btn--ghost {
  background: var(--bg-ink-2);
  color: #fff;
}
.btn--ghost:hover { background: var(--brand-red); }
.btn--lg { padding: 17px 28px; font-size: 16px; }

.link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link span { transition: transform .25s var(--ease); display: inline-block; }
.link--arrow:hover span { transform: translateX(4px); }
.link:hover { color: var(--accent-2); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border-2); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 72px;
}
.nav__logo { display: inline-flex; color: var(--text); }
.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
}
.nav__links a { transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__cta { padding: 10px 18px; font-size: 14px; }

/* Burger + brand wrapper — burger hidden on desktop, visible <= 880 */
.nav__brand { display: inline-flex; align-items: center; gap: 12px; }
.nav__burger {
  display: none;
  width: 36px;
  height: 36px;
  padding: 9px 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  border-radius: 8px;
}
.nav__burger:hover { background: rgba(0, 0, 0, 0.04); }
.nav__burger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav__burger[aria-expanded="true"] .nav__burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] .nav__burger-bar:nth-child(2) {
  opacity: 0;
}
.nav__burger[aria-expanded="true"] .nav__burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu dropdown (below the sticky nav) */
.nav__mobile {
  display: flex;
  flex-direction: column;
  padding: 6px 24px 18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-2);
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color .15s var(--ease);
}
.nav__mobile a:last-child { border-bottom: 0; }
.nav__mobile a:hover { color: var(--brand-red); }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  background: var(--bg);
  padding: 100px 0 128px;
  position: relative;
  overflow: hidden;
}

/* Massive emblem watermark in hero, very subtle */
.hero__emblem {
  position: absolute;
  width: 540px; height: 400px;
  bottom: -120px; left: -100px;
  background-color: rgba(255, 54, 33, 0.05);
  -webkit-mask: url("assets/emblem.svg") no-repeat center / contain;
          mask: url("assets/emblem.svg") no-repeat center / contain;
  pointer-events: none;
  transform: rotate(-12deg);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero__content { max-width: 580px; }

/* Hero brand picto — animated lamp + twinkling stars (timeline-driven) */
.picto-anim {
  width: 88px;
  height: 88px;
  margin: 0 0 28px;
  position: relative;
  pointer-events: none;
  opacity: 0;
  transform-origin: center;
}
.picto-anim__svg { width: 100%; height: 100%; display: block; overflow: visible; }
@media (prefers-reduced-motion: reduce) {
  .picto-anim { opacity: 1; }
}

.hero__title {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--text);
  margin: 0 0 28px;
}
.hero__title-brand {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-deep) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.hero__sub {
  font-size: 19px;
  line-height: 1.5;
  color: #2A2A2A;
  max-width: 560px;
  margin: 0 0 40px;
  font-weight: 400;
}
.hero__ctas {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__emblem { width: 360px; height: 280px; bottom: -80px; left: -60px; }
}

/* ============================================================
   Mockups (shared)
   ============================================================ */
.mockup {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.02),
    0 30px 60px -30px rgba(20, 12, 0, 0.16),
    0 12px 32px -12px rgba(20, 12, 0, 0.08);
  overflow: hidden;
  font-family: var(--font-sans);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ============================================================
   Agent Panel — dark hero dashboard
   ============================================================ */
.agent-panel {
  --ap-bg:        #0A1418;
  --ap-bg-2:      #11212A;
  --ap-bg-3:      #17303B;
  --ap-line:      rgba(255,255,255,0.08);
  --ap-line-2:    rgba(255,255,255,0.14);
  --ap-text:      #E8EBED;
  --ap-text-2:    rgba(232,235,237,0.62);
  --ap-text-3:    rgba(232,235,237,0.40);

  background: var(--ap-bg);
  color: var(--ap-text);
  border-radius: 22px;
  border: 1px solid var(--ap-line);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 40px 80px -30px rgba(10, 20, 24, 0.50),
    0 18px 40px -16px rgba(10, 20, 24, 0.30);
  width: 100%;
  max-width: 620px;
  justify-self: end;
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}
.agent-panel::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 380px; height: 380px;
  background: radial-gradient(closest-side, rgba(255,54,33,0.18), transparent 70%);
  pointer-events: none;
}

/* Top bar */
.agent-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--ap-line);
  position: relative;
}
.agent-panel__id {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.agent-panel__avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-coral), var(--brand-red-deep));
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -4px rgba(255,54,33,0.45);
}
.agent-panel__avatar .agent-emblem {
  width: 18px; height: 14px;
}
.agent-panel__name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ap-text);
  letter-spacing: -0.005em;
}
.agent-panel__role {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ap-text-2);
  margin-top: 2px;
}
.agent-panel__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ap-text-2);
  background: rgba(255,255,255,0.04);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ap-line);
  flex-shrink: 0;
}

/* Connected systems */
.agent-panel__connected {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-bottom: 1px solid var(--ap-line);
  background: rgba(255,255,255,0.015);
}
.agent-panel__c-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-text-3);
  margin-right: 4px;
}
.agent-panel__pill {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ap-text-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ap-line);
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: -0.005em;
}
.agent-panel__pill--more {
  color: var(--brand-salmon);
  border-color: rgba(255,139,107,0.25);
  background: rgba(255,139,107,0.08);
}

/* Deliverable card */
.deliv {
  margin: 16px 20px 8px;
  background: var(--ap-bg-2);
  border: 1px solid var(--ap-line);
  border-radius: 14px;
  padding: 18px;
  position: relative;
}
.deliv__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.deliv__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.deliv__type {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-red);
  background: rgba(255,54,33,0.12);
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.deliv__sep { color: var(--ap-text-3); }
.deliv__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ap-text);
  letter-spacing: -0.01em;
}
.deliv__updated {
  font-size: 11px;
  color: var(--ap-text-3);
  font-weight: 500;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* Bar chart rows */
.deliv__chart {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
}
.bar-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
}
.bar-row__label {
  color: var(--ap-text-2);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.bar-row__track {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}
.bar-row__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: width 1.1s var(--ease);
}
/* Color per row — variety, not all red */
.bar-row:nth-child(1) .bar-row__fill { background: linear-gradient(90deg, var(--brand-coral), var(--brand-red)); }
.bar-row:nth-child(2) .bar-row__fill { background: linear-gradient(90deg, var(--amber-400), var(--amber-500)); }
.bar-row:nth-child(3) .bar-row__fill { background: linear-gradient(90deg, var(--emerald-400), var(--emerald-500)); }
.bar-row:nth-child(4) .bar-row__fill { background: linear-gradient(90deg, var(--slate-400), var(--slate-500)); }
/* Trigger on reveal */
.agent-panel.is-in .bar-row:nth-child(1) .bar-row__fill { width: var(--w); transition-delay: .25s; }
.agent-panel.is-in .bar-row:nth-child(2) .bar-row__fill { width: var(--w); transition-delay: .40s; }
.agent-panel.is-in .bar-row:nth-child(3) .bar-row__fill { width: var(--w); transition-delay: .55s; }
.agent-panel.is-in .bar-row:nth-child(4) .bar-row__fill { width: var(--w); transition-delay: .70s; }

.bar-row__val {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ap-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.delta {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 2px 6px;
  border-radius: 4px;
}
.delta--up   { color: #6BE0A6; background: rgba(107,224,166,0.10); }
.delta--down { color: var(--brand-salmon); background: rgba(255,139,107,0.10); }
.delta--flat { color: var(--ap-text-3); background: rgba(255,255,255,0.04); }

/* Insight callout */
.deliv__insight {
  background: linear-gradient(180deg, rgba(255,54,33,0.08), rgba(255,54,33,0.02));
  border: 1px solid rgba(255,54,33,0.18);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.deliv__insight-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-salmon);
  margin-bottom: 6px;
}
.deliv__insight p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ap-text);
}
.deliv__insight strong { color: #fff; font-weight: 600; }

/* Sources */
.deliv__sources {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.deliv__sources-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-text-3);
  margin-right: 4px;
}
.deliv__source {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ap-text-2);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--ap-line);
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: -0.005em;
}

/* Live thread */
.agent-panel__thread {
  padding: 14px 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ap-msg {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--ap-line);
  border-radius: 10px;
  padding: 10px 12px;
}
.ap-msg--bot {
  background: linear-gradient(180deg, rgba(255,54,33,0.06), rgba(255,54,33,0.015));
  border-color: rgba(255,54,33,0.18);
}
.ap-msg__who {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.ap-msg__name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ap-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ap-msg__title {
  font-size: 10px;
  font-weight: 500;
  color: var(--ap-text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ap-msg__tag {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: var(--brand-red);
  color: #fff;
  padding: 2px 5px;
  border-radius: 3px;
}
.ap-msg__time {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ap-text-3);
  font-variant-numeric: tabular-nums;
}
.ap-msg__body {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ap-text);
}
.ap-chan {
  color: var(--brand-salmon);
  font-weight: 500;
}

/* KPI strip */
.agent-panel__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 14px 20px 0;
  padding-top: 14px;
  border-top: 1px solid var(--ap-line);
}
.ap-kpi {
  padding: 0 14px;
  border-right: 1px solid var(--ap-line);
}
.ap-kpi:first-child { padding-left: 0; }
.ap-kpi:last-child  { padding-right: 0; border-right: 0; }
.ap-kpi__num {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
/* Vary KPI gradient per column */
.ap-kpi:nth-child(1) .ap-kpi__num { background-image: linear-gradient(135deg, #fff 0%, var(--amber-400) 110%); }
.ap-kpi:nth-child(2) .ap-kpi__num { background-image: linear-gradient(135deg, #fff 0%, var(--brand-salmon) 110%); }
.ap-kpi:nth-child(3) .ap-kpi__num { background-image: linear-gradient(135deg, #fff 0%, var(--emerald-400) 110%); }
.ap-kpi__unit {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-left: 1px;
}
.ap-kpi__label {
  display: block;
  font-size: 10.5px;
  color: var(--ap-text-2);
  margin-top: 8px;
  line-height: 1.35;
  letter-spacing: -0.003em;
}

/* Recent deliverables */
.agent-panel__recents {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px 18px;
  margin-top: 12px;
  border-top: 1px solid var(--ap-line);
  background: rgba(255,255,255,0.015);
}
.ap-recents__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-text-3);
  margin-right: 4px;
}
.ap-recents__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ap-text-2);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--ap-line);
  padding: 5px 9px;
  border-radius: 999px;
  letter-spacing: -0.005em;
}
.ap-recents__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-coral);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .agent-panel { max-width: 100%; justify-self: stretch; }
}
@media (max-width: 560px) {
  .agent-panel__connected { padding: 10px 16px; }
  .deliv { margin: 14px 16px 8px; padding: 14px; }
  .agent-panel__thread { padding: 12px 16px 4px; }
  .agent-panel__kpis { margin: 12px 16px 0; gap: 12px; }
  .ap-kpi { padding: 0 8px; }
  .ap-kpi__num { font-size: 22px; }
  .agent-panel__recents { padding: 14px 16px 16px; }
  .bar-row { grid-template-columns: 64px 1fr auto; gap: 8px; font-size: 11px; }
}

.mockup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #FAFAFA;
}
.mockup__crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-3);
  font-weight: 500;
}
.mockup__crumb--active { color: var(--text); font-weight: 600; }
.mockup__sep { color: var(--text-3); }
.mockup__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.03em;
}
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.dot--live {
  position: relative;
  box-shadow: 0 0 0 0 rgba(255,54,33,0.55);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,54,33,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(255,54,33,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,54,33,0); }
}

.mockup__body { padding: 22px 22px 18px; }
.mockup__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 10px;
}
.mockup__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text);
  margin: 0 0 18px;
}

.mockup__thread { display: flex; flex-direction: column; gap: 12px; }
.mockup__thread li {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #2C2C2C;
  padding-left: 14px;
  border-left: 2px solid var(--border-2);
}
.mockup__thread li.ok { border-left-color: var(--accent); color: var(--text); font-weight: 500; }
.mockup__thread .t {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  flex-shrink: 0;
  font-weight: 500;
}

.mockup__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-2);
  background: #FAFAFA;
}
.mockup__check {
  width: 20px; height: 20px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-coral), var(--brand-red));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(255, 54, 33, 0.25);
}

/* Thread mockup (for Shift section) */
.mockup--thread { width: 100%; }
.mockup__body--thread {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}
.msg {
  display: flex;
  gap: 12px;
  padding: 8px 14px;
  margin: 0 -14px;
  border-radius: 12px;
  align-items: flex-start;
}
.msg--agent {
  background: rgba(255, 54, 33, 0.025);
}
.msg__avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B8C5CC, #8FA3AC);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin-top: 1px;
}
.msg__avatar::before { content: attr(data-init); }
/* Avatar Davis : même fond gris, juste accent coral fin pour suggérer agent */
.msg--agent .msg__avatar {
  background: linear-gradient(135deg, #8FA3AC, #6A7E87);
}

.msg__content { flex: 1; min-width: 0; }
.msg__name {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
}
.msg__title {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.005em;
}
.msg__tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-coral);
}
.msg__content p {
  font-size: 13px;
  line-height: 1.55;
  color: #3A3A3A;
  margin: 0;
  letter-spacing: -0.003em;
}
.msg__content p strong {
  font-weight: 600;
  color: var(--text);
}
.msg__content p + .msg__file {
  margin-top: 10px;
}
.msg__link {
  color: var(--accent-2);
  font-weight: 600;
  border-bottom: 1px solid var(--accent-3);
}
.msg__link:hover { color: var(--accent); }

/* ----- Pièce jointe inline dans un message (PPTX, PDF) ----- */
.msg__file {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  max-width: 290px;
}
.msg__file-icon {
  flex: none;
  width: 28px;
  height: 34px;
  border-radius: 4px;
  background: linear-gradient(180deg, #F4ECD8 0%, #E6DCC4 100%);
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.msg__file-icon::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.10) 50%);
  border-bottom-left-radius: 3px;
}
.msg__file-tag {
  font-family: var(--font-sans);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #D24726;
  margin-top: 6px;
}
.msg__file-name {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.003em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msg__file-action {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-2);
  display: inline-grid;
  place-items: center;
}

/* ============================================================
   3. THE SHIFT  (white bg, two-column with thread mockup)
   ============================================================ */
.shift { background: var(--bg); }
.shift__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.shift__col { max-width: 620px; }
.shift__title {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
  margin-top: 8px;
}
.shift__body { margin-top: 36px; }
.shift__body p {
  font-size: 19px;
  line-height: 1.6;
  color: #1F1F1F;
  margin-bottom: 24px;
  font-weight: 400;
}
.shift__signature {
  margin-top: 36px !important;
  font-family: var(--font-serif);
  font-size: 26px !important;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  letter-spacing: -0.01em;
}

@media (max-width: 980px) {
  .shift__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================================
   4. PRINCIPLES — mixed text + photo grid
   ============================================================ */
.principles { background: var(--bg); }
.principles__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .principles__grid { grid-template-columns: 1fr; } }

/* Cards (shared) */
.card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 44px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: var(--brand-peach); background: var(--brand-cream); }

.card .bar {
  display: inline-block;
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-coral));
  margin-bottom: 20px;
}

.card__eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 16px;
}

.card__title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.18;
  color: var(--text);
  margin: 0 0 16px;
}
.card__title--why { font-size: 22px; line-height: 1.22; }

.card__body {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-2);
  margin-top: auto;
}

/* Subtle emblem watermark inside text cards */
.card__emblem {
  position: absolute;
  right: -40px; bottom: -40px;
  width: 200px; height: 150px;
  background-color: rgba(255, 54, 33, 0.05);
  -webkit-mask: url("assets/emblem.svg") no-repeat center / contain;
          mask: url("assets/emblem.svg") no-repeat center / contain;
  pointer-events: none;
  transform: rotate(-8deg);
}
.card__emblem--sm {
  width: 130px; height: 100px;
  right: -28px; bottom: -28px;
}

/* Principle cards — visual on top + text below */
.card--principle {
  padding: 0;
  overflow: hidden;
  min-height: 540px;
}
.card--principle:hover { background: var(--bg); border-color: var(--brand-peach); }
.card--principle .bar { margin: 0 0 16px; }
.card--principle .card__eyebrow,
.card--principle .card__title,
.card--principle .card__body { padding-left: 36px; padding-right: 36px; }
.card--principle .card__title { font-size: 22px; line-height: 1.22; }
.card--principle .card__body  { padding-bottom: 36px; margin-top: 16px; }
.card--principle .bar { margin-left: 36px; margin-top: 28px; }

/* Visual block — sits on top, soft cream wash */
.prin {
  background: linear-gradient(180deg, #FFF6F2 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border);
  padding: 22px 24px 24px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.prin::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 220px; height: 220px;
  background: radial-gradient(closest-side, rgba(255,54,33,0.10), transparent 70%);
  pointer-events: none;
}

/* Header chip inside visual */
.prin__chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.prin__chip-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.prin__chip-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--brand-red-deep);
  background: rgba(255,54,33,0.10);
  border: 1px solid rgba(255,54,33,0.18);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.prin__chip-tag--live { color: var(--brand-red); display: inline-flex; align-items: center; gap: 6px; }
.prin__live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 0 0 rgba(255,54,33,0.55);
  animation: pulse 2s infinite;
}

/* === 01 Custom — node graph === */
.prin__graph {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}
.prin__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prin__node {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 8px 10px;
  letter-spacing: -0.005em;
  text-align: left;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.prin__wires { width: 100%; height: 100%; min-height: 110px; align-self: stretch; }
.prin__core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-deep) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 14px 12px;
  box-shadow: 0 8px 18px -8px rgba(255,54,33,0.50);
  min-width: 120px;
}
.prin__core-emblem {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.prin__core-emblem .agent-emblem { width: 18px; height: 14px; }
.prin__core-emblem svg { width: 26px; height: 26px; display: block; }
.prin__core-label {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}
.prin__core-label span {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.75;
  display: inline-block;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* === 02 Embedded — team roster === */
.prin__roster {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.prin__row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 8px 10px;
}
.prin__row--agent {
  background: linear-gradient(180deg, rgba(255,54,33,0.06), rgba(255,54,33,0.015));
  border-color: rgba(255,54,33,0.25);
}
.prin__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B8C5CC, #8FA3AC);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}
.prin__avatar::before { content: attr(data-init); }
.prin__avatar--agent {
  background: linear-gradient(135deg, var(--brand-coral), var(--brand-red-deep));
}
.prin__avatar--agent::before { content: ""; }
.prin__avatar--agent .agent-emblem { width: 14px; height: 11px; }
.prin__who {
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.prin__who strong { color: var(--text); font-weight: 600; }
.prin__tag {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: var(--brand-red);
  color: #fff;
  padding: 2px 5px;
  border-radius: 3px;
}
.prin__role-chip {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-3);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.prin__role-chip--on {
  color: #fff;
  background: var(--brand-red);
  border-color: transparent;
}

/* === 03 Autonomous — outcome metric === */
.prin__metric {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 16px;
  row-gap: 4px;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  z-index: 1;
}
.prin__metric-name {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.prin__metric-num {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--amber-400) 0%, var(--amber-700) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.prin__metric-unit {
  font-size: 22px;
  margin-left: 1px;
}
.prin__metric-spark {
  width: 88px; height: 28px;
  align-self: end;
}
.prin__metric-spark svg { width: 100%; height: 100%; }

.prin__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.prin__pair-item {
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 10px 12px;
}
.prin__pair-num {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.prin__pair-label {
  display: block;
  font-size: 10.5px;
  color: var(--text-2);
  margin-top: 6px;
  line-height: 1.3;
}

/* === 04 Compounding — accuracy curve === */
.prin__curve {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 14px 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prin__curve svg {
  width: 100%;
  height: 90px;
  display: block;
}
.prin__curve-marks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.prin__curve-marks > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.prin__curve-marks > span:last-child { text-align: right; align-items: flex-end; }
.prin__curve-marks > span:nth-child(2) { text-align: center; align-items: center; }
.prin__cm-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.prin__cm--start .prin__cm-num { color: var(--emerald-500); }
.prin__cm--mid   .prin__cm-num { color: var(--amber-700); }
.prin__cm--end .prin__cm-num {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-deep) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.prin__cm-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   Principle themes — alternating dark/light per card
   ============================================================ */

/* Theme: paper (01 Custom) */
.prin--paper {
  background: var(--paper-2);
  background-image: radial-gradient(circle at 1px 1px, rgba(15,23,42,0.06) 1px, transparent 0);
  background-size: 14px 14px;
  border-bottom-color: var(--paper-line);
}
.prin--paper::after { background: radial-gradient(closest-side, rgba(255,54,33,0.10), transparent 70%); }
.prin--paper .prin__chip-label { color: var(--slate-700); }
.prin__chip-tag--paper {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--slate-700);
  background: rgba(15,23,42,0.04);
  border-color: rgba(15,23,42,0.10);
}
.prin--paper .prin__node {
  background: #fff;
  border: 1px dashed var(--paper-line);
  color: var(--slate-700);
}
.prin__paper-stamp {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border: 2px solid var(--brand-red-deep);
  border-radius: 4px;
  align-self: flex-start;
  transform: rotate(-3deg);
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.5);
  box-shadow: 0 2px 6px rgba(188,29,20,0.10);
}
.prin__paper-stamp-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-red-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.prin__paper-stamp-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-red-deep);
}

/* Theme: navy (02 Embedded) */
.prin--navy {
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  border-bottom-color: rgba(255,255,255,0.08);
}
.prin--navy::after { background: radial-gradient(closest-side, rgba(255,54,33,0.18), transparent 70%); }
.prin--navy .prin__chip-label { color: var(--slate-400); }
.prin__chip-tag--navy {
  color: var(--slate-300);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.prin--navy .prin__row {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.prin--navy .prin__row .prin__who { color: var(--slate-400); }
.prin--navy .prin__row .prin__who strong { color: #fff; }
.prin--navy .prin__row--agent {
  background: linear-gradient(180deg, rgba(255,54,33,0.14), rgba(255,54,33,0.04));
  border-color: rgba(255,54,33,0.36);
  box-shadow: 0 0 22px -8px rgba(255,54,33,0.40);
}
.prin--navy .prin__role-chip {
  color: var(--slate-400);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.prin--navy .prin__role-chip--on {
  color: #fff;
  background: var(--brand-red);
  border-color: transparent;
  box-shadow: 0 4px 10px -3px rgba(255,54,33,0.50);
}
.prin__navy-foot {
  margin-top: auto;
  padding: 10px 12px;
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  font-size: 11px;
  color: var(--slate-300);
  position: relative;
  z-index: 1;
}
.prin__navy-status { display: inline-flex; align-items: center; gap: 8px; }
.prin__navy-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.55);
  animation: pulseEm 2s infinite;
  flex-shrink: 0;
}
@keyframes pulseEm {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* Theme: slate (03 Autonomous) */
.prin--slate {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  border-bottom-color: rgba(255,255,255,0.08);
}
.prin--slate::after { background: radial-gradient(closest-side, rgba(59,130,246,0.20), transparent 70%); }
.prin--slate .prin__chip-label { color: var(--slate-400); }
.prin__chip-tag--slate {
  color: var(--blue-400);
  background: rgba(59,130,246,0.10);
  border-color: rgba(59,130,246,0.28);
}
.prin__live-dot--blue {
  background: var(--blue-500);
  box-shadow: 0 0 0 0 rgba(59,130,246,0.55);
  animation: pulseBlue 2s infinite;
}
@keyframes pulseBlue {
  0%   { box-shadow: 0 0 0 0 rgba(59,130,246,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(59,130,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}
.prin__metric--slate {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.prin__metric--slate .prin__metric-name { color: var(--slate-400); }
.prin__metric-num--blue {
  background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-700) 100%) !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
          color: transparent !important;
}
.prin__pair--slate .prin__pair-item {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.prin__pair--slate .prin__pair-label { color: var(--slate-400); }
.prin__pair-num--blue  { color: var(--blue-400); }
.prin__pair-num--amber { color: var(--amber-400); }
.prin__slate-feed {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  font-size: 10.5px;
  color: var(--slate-300);
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  position: relative;
  z-index: 1;
  margin-top: auto;
  letter-spacing: -0.005em;
}
.prin__feed-tag {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  background: var(--emerald-500);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Theme: plum (04 Compounding) */
.prin--plum {
  background: linear-gradient(180deg, #2C1A2E 0%, #3A1B2C 100%);
  border-bottom-color: rgba(255,255,255,0.08);
}
.prin--plum::after { background: radial-gradient(closest-side, rgba(167,139,250,0.20), transparent 70%); }
.prin--plum .prin__chip-label { color: rgba(255,255,255,0.55); }
.prin__chip-tag--plum {
  color: var(--violet-400);
  background: rgba(167,139,250,0.12);
  border-color: rgba(167,139,250,0.30);
}
.prin__curve--plum {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.prin--plum .prin__cm-label { color: rgba(255,255,255,0.50); }
.prin--plum .prin__cm--start .prin__cm-num { color: var(--violet-400); }
.prin--plum .prin__cm--mid   .prin__cm-num { color: var(--amber-400); }
.prin--plum .prin__cm--end   .prin__cm-num {
  background: linear-gradient(135deg, var(--brand-red) 0%, #FF8B6B 100%) !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
          color: transparent !important;
}
.prin__milestone {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}

/* Animation initial states for anime.js targets */
.anim-pop   { opacity: 0; transform: translateY(8px); }
.anim-row   { opacity: 0; transform: translateX(24px); }
.anim-tile  { opacity: 0; transform: translateY(10px); }
.anim-scale { opacity: 0; transform: scale(0.85); }
@media (prefers-reduced-motion: reduce) {
  .anim-pop, .anim-row, .anim-tile, .anim-scale { opacity: 1; transform: none; }
  .prin__milestone { opacity: 1; }
}

/* Card outer hover (per theme) */
.card--theme-paper:hover { background: var(--bg); border-color: var(--paper-line); }
.card--theme-navy:hover  { background: var(--bg); border-color: var(--slate-300); }
.card--theme-slate:hover { background: var(--bg); border-color: var(--slate-300); }
.card--theme-plum:hover  { background: var(--bg); border-color: rgba(167,139,250,0.40); }

/* Photo cards (kept for legacy use elsewhere) */
.card--photo {
  padding: 0;
  min-height: 420px;
  border: 0;
  background: #1A1A1A;
}
.card--photo .card__photo {
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  filter: brightness(0.78) saturate(1.05);
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.card--photo:hover .card__photo {
  transform: scale(1.04);
  filter: brightness(0.72) saturate(1.1);
}
.card--photo .card__overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55) 100%);
}
.card__eyebrow--on-photo { color: rgba(255,255,255,0.85); }
.card__title--on-photo  { color: #fff; }
.card__body--on-photo   { color: rgba(255,255,255,0.88); }

/* ============================================================
   5. INDUSTRIES — photographic carousel
   ============================================================ */
.industries {
  background: var(--bg);
  padding-bottom: calc(var(--section-y) - 32px);
}
.industries__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
}
.carousel__nav { display: flex; gap: 10px; flex-shrink: 0; }
.carousel__btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: #fff;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.carousel__btn:hover { background: var(--text); color: #fff; border-color: var(--text); }

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 1fr);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.carousel::-webkit-scrollbar { display: none; }

.industry {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  background: #1a1a1a;
  cursor: pointer;
  transition: transform .35s var(--ease);
}
.industry:hover { transform: translateY(-4px); }
.industry img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.82) saturate(1.05);
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.industry:hover img { transform: scale(1.05); filter: brightness(0.78); }
.industry::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%);
}
.industry__num {
  position: absolute; top: 24px; left: 28px; z-index: 2;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.9);
}
.industry__name {
  position: absolute; bottom: 28px; left: 28px; right: 28px; z-index: 2;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.carousel__progress {
  margin-top: 28px;
  height: 2px;
  background: var(--border-2);
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.carousel__bar {
  position: absolute; top: 0; left: 0;
  width: 30%; height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0.16);
  transition: transform .25s var(--ease);
}

@media (max-width: 880px) {
  .industries__head { flex-direction: column; align-items: flex-start; }
  .carousel { grid-auto-columns: 80%; }
}


/* ============================================================
   8. INNOVATION PARTNERS (light, Accenture-style)
   ============================================================ */
.partners { background: var(--bg); }

.partners__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 32px;
  align-items: center;
  justify-items: center;
  padding: 48px 0 24px;
}
.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 100%;
  filter: grayscale(100%) brightness(0.35);
  opacity: 0.85;
  transition: filter .25s var(--ease), opacity .25s var(--ease), transform .25s var(--ease);
}
.partner img {
  max-height: 100%;
  max-width: 80%;
  object-fit: contain;
}
.partner--text {
  filter: none;
  opacity: 1;
}
.partner--text span {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1A1A1A;
  font-family: var(--font-sans);
  text-transform: lowercase;
}
.partner:hover { filter: grayscale(0%) brightness(1); opacity: 1; transform: translateY(-2px); }
.partner--text:hover { transform: translateY(-2px); }

@media (max-width: 1024px) { .partners__grid { grid-template-columns: repeat(3, 1fr); gap: 48px 24px; } }
@media (max-width: 640px)  { .partners__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; } }

/* ============================================================
   9. FINAL CTA
   ============================================================ */
.cta {
  background: var(--bg);
  text-align: center;
  padding: 128px 0 !important;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta__emblem {
  position: absolute;
  width: 720px; height: 540px;
  bottom: -160px; right: -140px;
  background-color: rgba(255, 54, 33, 0.04);
  -webkit-mask: url("assets/emblem.svg") no-repeat center / contain;
          mask: url("assets/emblem.svg") no-repeat center / contain;
  pointer-events: none;
  transform: rotate(8deg);
}
.cta__inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta .eyebrow { justify-content: center; margin-bottom: 24px; }
.cta__title {
  font-size: clamp(36px, 4.8vw, 60px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin: 0 auto 28px;
  max-width: 22ch;
}
.cta__body {
  font-size: 19px;
  color: #2A2A2A;
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.55;
}
.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta__email {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s var(--ease);
}
.cta__email:hover { color: var(--accent-2); }

/* Contact form (inline) — appears when "Book a discovery call" is clicked */
.cta__form {
  margin: 16px auto 0;
  max-width: 720px;
  text-align: left;
  display: grid;
  gap: 18px;
  animation: ctaFormIn 360ms cubic-bezier(.2,.7,.2,1) both;
}
.cta__form[hidden] { display: none; }
@keyframes ctaFormIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.cta__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.cta__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cta__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.01em;
}
.cta__req { color: var(--brand-coral); margin-left: 2px; }
.cta__field input,
.cta__field select,
.cta__field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.cta__field textarea {
  resize: vertical;
  min-height: 96px;
}
.cta__field input::placeholder,
.cta__field textarea::placeholder { color: var(--text-3); }
.cta__field input:focus,
.cta__field textarea:focus {
  outline: none;
  border-color: var(--brand-coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 71, 0.16);
}
.cta__field.is-invalid input,
.cta__field.is-invalid textarea,
.cta__field.is-invalid .cta__select {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(255, 54, 33, 0.10);
}

/* Custom select — Company size */
.cta__field--select { position: relative; }
.cta__select {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.4;
  cursor: pointer;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.cta__select:focus,
.cta__select.is-open {
  border-color: var(--brand-coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 71, 0.16);
}
.cta__select-value { flex: 1; color: var(--text-3); }
.cta__select-value.is-filled { color: var(--text); }
.cta__select-arrow {
  color: var(--text-2);
  flex: none;
  transition: transform 200ms ease;
}
.cta__select.is-open .cta__select-arrow { transform: rotate(180deg); }
.cta__select-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 14px 32px -16px rgba(27, 49, 57, 0.18), 0 2px 6px rgba(27, 49, 57, 0.06);
  z-index: 20;
  animation: ctaSelectListIn 180ms cubic-bezier(.2,.7,.2,1) both;
}
.cta__select-list[hidden] { display: none; }
@keyframes ctaSelectListIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.cta__select-list li {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: background 120ms ease, color 120ms ease;
}
.cta__select-list li:hover,
.cta__select-list li:focus { background: rgba(255, 107, 71, 0.10); color: var(--brand-red-deep); }
.cta__form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
}
.cta__cancel {
  background: none;
  border: 0;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 160ms ease, background 160ms ease;
}
.cta__cancel:hover { color: var(--text); background: rgba(0,0,0,0.04); }
.cta__form-error {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--brand-red);
}
.cta__form.is-submitting .cta__submit {
  opacity: 0.7;
  cursor: progress;
}
.cta__success {
  margin: 16px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: var(--text);
  font-size: 15px;
  animation: ctaFormIn 420ms cubic-bezier(.2,.7,.2,1) both;
  transition: opacity 320ms ease, transform 320ms ease;
}
.cta__success[hidden] { display: none; }
.cta__success.is-leaving {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}
.cta__success-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10B981;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 640px) {
  .cta__form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-ink);
  color: rgba(255,255,255,0.65);
  padding: 100px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border-3);
}
.footer__brand { color: #fff; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__tag {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin-top: 4px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 0 0 18px;
}
.footer__col ul li { margin-bottom: 10px; }
.footer__col a {
  font-size: 14.5px;
  color: rgba(255,255,255,0.85);
  transition: color .2s var(--ease);
}
.footer__col a:hover { color: var(--accent); }
.footer__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}
.footer__bottom a {
  color: rgba(255,255,255,0.65);
  transition: color .2s var(--ease);
}
.footer__bottom a:hover { color: var(--accent); }

@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}

/* ============================================================
   Smaller screens
   ============================================================ */
@media (max-width: 880px) {
  :root { --section-y: 96px; }
  .card { padding: 32px; min-height: 280px; }
  .card--photo { min-height: 360px; }
  .card--photo .card__overlay { padding: 32px; }
}

/* ============================================================
   V6 — Hero panel "Dossier" (Strategic Pricing brief)
   Overrides .agent-panel base with a dossier/cabinet feel.
   ============================================================ */

.agent-panel--dossier {
  --doss-bg-1:     #0B1620;
  --doss-bg-2:     #0F1F2A;
  --doss-bg-3:     #142A38;
  --doss-line:     rgba(255,255,255,0.07);
  --doss-line-2:   rgba(255,255,255,0.12);
  --doss-text:     #E8ECEF;
  --doss-text-2:   rgba(232,236,239,0.62);
  --doss-text-3:   rgba(232,236,239,0.40);
  --doss-accent:   #FF3621;
  --doss-accent-2: #F4C0B5;
  --doss-paper:    #F4ECD8;

  background:
    radial-gradient(95% 65% at 0% 0%, rgba(244, 192, 181, 0.035), transparent 55%),
    radial-gradient(70% 50% at 100% 100%, rgba(255, 54, 33, 0.03), transparent 60%),
    #121D24;
  border: 1px solid var(--doss-line);
  padding: 0;
  font-family: var(--font-sans);
  max-width: 720px;
}

/* Neutralise le radial rouge hérité du .agent-panel de base */
.agent-panel--dossier::before { display: none; }

/* ----- Échange : Marc → Davis ----- */
.dossier__exchange {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 20px;
  border-bottom: 1px solid var(--doss-line);
}
.msg-bubble {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  max-width: 92%;
  border: 1px solid var(--doss-line-2);
  background: rgba(255, 255, 255, 0.022);
  opacity: 0;
  position: relative;
}
.msg-bubble--human {
  align-self: flex-start;
  border-top-left-radius: 4px;
}
.msg-bubble--agent {
  align-self: flex-end;
  border-top-right-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 54, 33, 0.08), rgba(255, 54, 33, 0.03));
  border-color: rgba(255, 54, 33, 0.28);
}
.msg-bubble--small {
  max-width: 36%;
}
.msg-bubble--with-attachment {
  max-width: 96%;
  gap: 10px;
}
.msg-bubble__who {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}
.msg-bubble__name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--doss-text);
  letter-spacing: 0;
}
.msg-bubble__title {
  font-size: 10px;
  color: var(--doss-text-3);
  letter-spacing: 0.01em;
}
.msg-bubble__tag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-coral);
}
.msg-bubble__body {
  margin: 0;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--doss-text);
  letter-spacing: 0.003em;
}

/* ----- Travail réalisé : chaque étape alignée avec son résultat ----- */
.dossier__work {
  position: relative;
  z-index: 2;
  padding: 18px 24px 20px;
  border-bottom: 1px solid var(--doss-line);
}
.dossier__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
/* Trait vertical reliant les étapes */
.dossier__steps::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 1px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0.08) 100%);
}
.dstep {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 26px;
}
.dstep__head {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  opacity: 0;
  margin-left: -26px;
}
.dstep__check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.30);
  display: inline-grid;
  place-items: center;
  flex: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.025);
  position: relative;
  opacity: 0;
  transition: background 112ms ease, border-color 112ms ease, box-shadow 112ms ease;
}
/* État "en cours" : petit dot blanc pulsant */
.dstep__check::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%);
  animation: dstepCheckPulse 0.56s ease-in-out infinite;
  transition: opacity 80ms ease;
}
/* État "terminé" : checkmark blanc */
.dstep__check::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 7px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: translate(-50%, -65%) rotate(45deg);
  opacity: 0;
  transition: opacity 88ms ease 24ms;
}
@keyframes dstepCheckPulse {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(0.8); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.1); }
}
/* Bascule vers "terminé" au moment où le résultat apparaît */
.dstep.is-done .dstep__check {
  background: #10B981;
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.dstep.is-done .dstep__check::before {
  opacity: 0;
  animation: none;
}
.dstep.is-done .dstep__check::after {
  opacity: 1;
}
.dstep__label {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.dstep__transition {
  position: relative;
}
.dstep__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--doss-text-3);
  letter-spacing: 0.005em;
  opacity: 0;
}
.dstep__result {
  margin: 0;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(232, 236, 239, 0.78);
  letter-spacing: -0.003em;
  opacity: 0;
}
.dstep__result strong {
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
}
.dstep__note {
  margin: 0;
  font-size: 10.5px;
  color: var(--doss-text-3);
  letter-spacing: 0.01em;
  opacity: 0;
  font-style: italic;
}

/* ----- Livraison finale : Davis envoie le PDF ----- */
/* ----- Livraison finale : 2 compartiments côte à côte (bulle Davis + carte PDF) ----- */
.dossier__delivery {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 200px;
  align-items: stretch;
  gap: 14px;
  padding: 20px 24px 22px;
}
.dossier__delivery .msg-bubble {
  max-width: 100%;
  align-self: stretch;
}

/* Carte PDF autonome (compartiment droit) */
.attachment-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  column-gap: 11px;
  row-gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--doss-line-2);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  opacity: 0;
}
.attachment-card__icon {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
  width: 32px;
  height: 38px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f6f3ec 0%, #ece6d5 100%);
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.attachment-card__icon::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.10) 50%);
  border-bottom-left-radius: 3px;
}
.attachment-card__icon-tag {
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--doss-accent);
  margin-top: 6px;
}
.attachment-card__name {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--doss-text);
  line-height: 1.35;
  letter-spacing: -0.003em;
}
.attachment-card__action {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-self: end;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--doss-line-2);
  color: var(--doss-text-2);
  display: inline-grid;
  place-items: center;
}

/* ----- Responsive ----- */
@media (max-width: 1080px) {
  .dossier__exchange, .dossier__work, .dossier__delivery { padding-left: 20px; padding-right: 20px; }
  .msg-bubble { max-width: 96%; }
  .msg-bubble--small { max-width: 42%; }
}
@media (max-width: 880px) {
  .msg-bubble { max-width: 100%; }
  .msg-bubble--small { max-width: 60%; }
  .dossier__delivery { grid-template-columns: 1fr; gap: 10px; }
  .attachment-card__name { font-size: 12px; }
}


/* ============================================================
   V6 — Card 03 Autonomous : "July marketing campaign" stages
   Inspired by an iteration-log card : tagged rows, done + pending.
   ============================================================ */
.prin--stages {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 26px 22px;
}
.prin--stages .prin__chip-label {
  color: var(--brand-coral);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.prin__stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stage-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  opacity: 0;
}
.stage-row__tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}
.stage-row__label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.003em;
}
.stage-row__result {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: -0.002em;
  text-align: right;
  white-space: nowrap;
}
.stage-row__status {
  flex: none;
}
.stage-row__status--done {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10B981;
  display: inline-grid;
  place-items: center;
  position: relative;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.stage-row__status--done::after {
  content: "";
  width: 4px;
  height: 8px;
  border-right: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  transform: translateY(-1px) rotate(45deg);
}

/* Étape pending — highlight coral */
.stage-row--pending {
  background: rgba(255, 107, 71, 0.06);
  border-color: rgba(255, 107, 71, 0.38);
  box-shadow:
    0 0 0 1px rgba(255, 107, 71, 0.10),
    0 10px 26px -8px rgba(255, 107, 71, 0.18);
}
.stage-row--pending .stage-row__tag {
  background: rgba(255, 107, 71, 0.20);
  color: var(--brand-coral);
}
.stage-row--pending .stage-row__label {
  grid-column: 2 / 4;
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
}
.stage-row__status--pending {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 107, 71, 0.16);
  color: var(--brand-coral);
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: stagePendingPulse 2.2s ease-in-out infinite;
}
@keyframes stagePendingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 71, 0.20); }
  50%      { box-shadow: 0 0 0 4px rgba(255, 107, 71, 0.06); }
}

.prin__stages-foot {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: -0.003em;
}

/* ============================================================
   V6 — Card 04 Compounding (refonte) : barres VERTICALES sur fond paper
   ============================================================ */
.prin--vbars {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 28px 24px;
}
.prin__vbars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: end;
  /* Hauteur fixe + suffisante pour contenir le vbar max sans débordement, sinon la grille
     s'étire pendant l'animation et le panel grandit visuellement. */
  height: 255px;
}
.prin__vbar {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.prin__vbar-track {
  width: 100%;
  max-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* num + sub + fill empilés ; le tout se cale en bas du conteneur grid grâce à align-items:end sur .prin__vbars */
}
.prin__vbar-num {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.022em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  opacity: 0;
}
.prin__vbar-sub {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-top: 4px;
  margin-bottom: 10px;
  white-space: nowrap;
  opacity: 0;
}
.prin__vbar-fill {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--brand-coral) 0%, var(--brand-red) 100%);
  border-radius: 10px 10px 4px 4px;
  box-shadow:
    0 8px 18px -8px rgba(255, 54, 33, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.prin__vbar-label {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
}
.prin__vbars-caption {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--paper-line);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.012em;
  text-align: center;
}

/* ============================================================
   V6 — Card 02 Embedded (refonte) : organigramme hiérarchique
   Manager → 3 membres dont Davis (AI agent) intégré naturellement.
   ============================================================ */
.prin--org {
  gap: 18px;
}
.prin--org .prin__chip-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-coral);
}
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.org-top {
  display: flex;
  justify-content: center;
  width: 100%;
}
.org-lines {
  width: 100%;
  height: 56px;
  display: block;
}
.org-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

/* Carte d'un membre */
.org-node {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  min-width: 0;
}
.org-node--manager {
  padding: 13px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  /* Manager card un peu plus petite en largeur pour rester équilibrée */
  min-width: 180px;
}

/* Avatar circulaire avec dégradé unique par personne */
.org-node__avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}
.org-node--manager .org-node__avatar {
  width: 36px;
  height: 36px;
}
.org-node__avatar--BT { background: linear-gradient(135deg, #94A3B8 0%, #475569 100%); }
.org-node__avatar--SK { background: linear-gradient(135deg, #B8C5CC 0%, #6E7C84 100%); }
.org-node__avatar--CV { background: linear-gradient(135deg, #A8B4BC 0%, #5E6A72 100%); }
.org-node__avatar--agent {
  background: linear-gradient(135deg, #FFB2A5 0%, #FF3621 100%);
  box-shadow: 0 4px 12px -3px rgba(255, 54, 33, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
.org-node__initials {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.org-node--manager .org-node__initials { font-size: 12px; }

.org-node__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.org-node__name {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.003em;
  line-height: 1.2;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.org-node--manager .org-node__name {
  font-size: 13.5px;
  font-weight: 700;
}
.org-node__role {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Davis : rôle en accent coral pour signaler "AI agent" */
.org-node__role--agent {
  color: var(--brand-coral);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.org-node__tag {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-coral);
}

/* Carte Davis : accent coral très discret pour le différencier sans le sortir du groupe */
.org-node--agent {
  background: linear-gradient(180deg, rgba(255, 54, 33, 0.05) 0%, rgba(255, 54, 33, 0.015) 100%);
  border-color: rgba(255, 54, 33, 0.28);
  box-shadow: 0 6px 18px -8px rgba(255, 54, 33, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Gradient unique pour l'avatar de Kate D. */
.org-node__avatar--KD { background: linear-gradient(135deg, #B0BDC4 0%, #5E6A72 100%); }


/* ============================================================
   MOBILE @ 480 — Responsive fixes for narrow viewports (375+)
   ============================================================ */
@media (max-width: 480px) {

  /* ----- Hero — tighten paddings + scale typo for narrow viewport ----- */
  .hero {
    padding: 48px 0 80px;
  }
  .picto-anim {
    margin: 0 0 20px;
  }
  .hero__title {
    font-size: 36px;
    line-height: 1.04;
    margin: 0 0 18px;
  }
  .hero__grid {
    gap: 36px;
  }

  /* ----- Unified section hierarchy on mobile ----- */
  .section-title,
  .cta__title {
    font-size: 28px;
    line-height: 1.06;
  }
  .section-head,
  .section-head--dark {
    margin-bottom: 40px;
  }
  .industries__head {
    margin-bottom: 40px;
  }
  /* Body paragraphs — uniform across hero / shift / cta / section-intro */
  .hero__sub,
  .shift__body p,
  .cta__body,
  .section-intro {
    font-size: 16px;
    line-height: 1.55;
  }
  .hero__sub {
    margin: 0 0 28px;
  }
  .shift__body p {
    margin-bottom: 20px;
  }
  .cta__body {
    margin: 0 auto 28px;
  }

  /* ----- Hero CTA — hidden on mobile (sticky "Book a call" in nav covers it) ----- */
  .hero__ctas {
    display: none;
  }

  /* ----- Technologies — compact logos + tighter spacing ----- */
  .partners__grid {
    padding: 16px 0 8px;
    gap: 24px 16px;
  }
  .partner {
    height: 40px;
  }
  .partner img {
    max-width: 70%;
  }

  /* ----- Section vertical padding tighter at narrow widths ----- */
  :root { --section-y: 64px; }

  /* Card padding tighter on mobile to give artefacts more room */
  .card--principle {
    padding: 30px 22px 34px;
  }

  /* ----- 01 Custom — stack vertical ----- */
  .prin__graph--four {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .prin__col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .prin__node {
    text-align: center;
    font-size: 11px;
    padding: 8px 8px;
  }
  /* SVG horizontal wires hidden — meaning shifted to vertical flow */
  .prin__wires {
    display: none;
  }
  .prin__core {
    flex-direction: row;
    gap: 12px;
    min-width: 0;
    width: max-content;
    margin: 0 auto;
    padding: 12px 18px;
  }
  .prin__core-emblem {
    width: 30px;
    height: 30px;
  }
  .prin__core-emblem svg {
    width: 20px;
    height: 20px;
  }
  .prin__core-label {
    text-align: left;
    font-size: 12px;
  }
  .prin__core-label span {
    font-size: 9.5px;
  }

  /* ----- 03 Autonomous — stack label + description vertically ----- */
  .stage-row {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    padding: 10px 12px;
  }
  .stage-row__tag {
    grid-row: 1 / 3;
    align-self: center;
  }
  .stage-row__label {
    grid-column: 2;
    grid-row: 1;
    font-size: 12.5px;
  }
  .stage-row__result {
    grid-column: 2;
    grid-row: 2;
    white-space: normal;
    text-align: left;
    font-size: 11.5px;
    line-height: 1.4;
  }
  .stage-row__status {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
  }
  /* Pending row — label full-width on row 1, PENDING tag on row 2 below */
  .stage-row--pending {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    row-gap: 8px;
  }
  .stage-row--pending .stage-row__label {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
    line-height: 1.35;
  }
  .stage-row--pending .stage-row__status--pending {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    font-size: 9px;
    padding: 4px 10px;
    letter-spacing: 0.14em;
  }

  /* ----- 04 Compounding — allow "Missions completed" to wrap ----- */
  .prin--vbars {
    padding: 24px 18px 22px;
  }
  .prin__vbars {
    gap: 14px;
  }
  .prin__vbar-track {
    max-width: 78px;
  }
  .prin__vbar-num {
    font-size: 19px;
  }
  .prin__vbar-sub {
    white-space: normal;
    font-size: 8px;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 8px;
  }
  .prin__vbar-label {
    font-size: 9.5px;
    letter-spacing: 0.10em;
    margin-top: 10px;
  }

  /* ----- 02 Embedded — vertical stack per collaborator ----- */
  .prin--org {
    gap: 12px;
  }
  .prin--org.prin--navy {
    padding: 20px 14px 22px;
  }
  .org-node--manager {
    min-width: 0;
    padding: 11px 14px;
  }
  .org-lines {
    height: 40px;
  }
  .org-row {
    gap: 6px;
  }
  /* Collaborator cards: avatar on top, name + role centered below */
  .org-row .org-node {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 10px 4px 12px;
  }
  .org-row .org-node__avatar {
    width: 30px;
    height: 30px;
  }
  .org-row .org-node__info {
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 1px;
  }
  .org-row .org-node__name {
    display: block;
    font-size: 10.5px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    text-align: center;
    line-height: 1.2;
  }
  .org-row .org-node__role {
    font-size: 8.5px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    text-align: center;
    line-height: 1.25;
  }
}

