/* ============ Kalvi — DA minimaliste ============ */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #a1a1a6;
  --line: rgba(0, 0, 0, .08);
  --dark: #0b0b0c;
  --accent: #0071e3;
  --radius: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.muted { color: var(--ink-3); }
.muted-light { color: rgba(255,255,255,.45); }
.tiny { font-size: 12px; color: var(--ink-2); letter-spacing: .01em; }
.center { text-align: center; }
.eyebrow {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow.light { color: rgba(255,255,255,.55); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  transition: transform .4s var(--ease), background .3s, box-shadow .4s var(--ease);
  will-change: transform;
}
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { box-shadow: 0 10px 40px -10px rgba(255,255,255,.4); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 13px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 16px 16px auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1240px; margin: 0 auto; padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px -18px rgba(0,0,0,.25);
  transition: transform .5s var(--ease), background .3s;
}
.nav.hide { transform: translateY(-140%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.brand-mark { width: 24px; height: 24px; object-fit: contain; }
.nav-pill { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.04); }
.nav-pill a {
  font-size: 13px; padding: 7px 14px; border-radius: 999px; color: var(--ink-2);
  transition: background .25s, color .25s;
}
.nav-pill a:hover { background: #fff; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(100svh, 680px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 130px 24px 100px; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 58%, #ffffff 0%, rgba(255,255,255,0) 70%),
    var(--bg);
  --hw: max(440px, 54vw);   /* largeur d'une main */
  --gap: 2.4vw;                       /* écart entre les doigts (piloté en JS) */
  --cy: 58%;                          /* hauteur du point de contact */
}
.hero-copy { position: relative; z-index: 3; text-align: center; }
.hero-title {
  font-size: clamp(42px, min(7.2vw, 11.6vh), 108px); line-height: 1.02;
  font-weight: 600; letter-spacing: -.045em;
}

.hands { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hand {
  position: absolute; width: var(--hw); height: auto;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.10));
  transition: translate 1.8s var(--ease), opacity 1.2s var(--ease);
  opacity: 0;
}
.hand-human {
  left: calc(50% - var(--gap) / 2 - var(--hw) * .9572);
  top: calc(var(--cy) - var(--hw) * .2272);
  translate: -22vw 0;
}
.hand-robot {
  left: calc(50% + var(--gap) / 2 - var(--hw) * .0356);
  top: calc(var(--cy) - var(--hw) * .2417);
  translate: 22vw 0;
}
.is-loaded .hand { translate: 0 0; opacity: .3; }
/* mains stylisées noir et blanc, transparentes, fondu vers le bord de l'écran */
.hand { mix-blend-mode: multiply; }
.hand-human {
  filter: grayscale(1) contrast(1.55) brightness(1.08);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 14%, #000 42%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 14%, #000 42%);
}
.hand-robot {
  filter: grayscale(1) contrast(1.55) brightness(1.08);
  -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.35) 14%, #000 42%);
  mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.35) 14%, #000 42%);
}
.is-loaded .hand-human { animation: float-a 7s ease-in-out 1.8s infinite; }
.is-loaded .hand-robot { animation: float-b 7s ease-in-out 1.8s infinite; }
@keyframes float-a { 50% { transform: translate(-.25vw, -6px) rotate(-.4deg); } }
@keyframes float-b { 50% { transform: translate(.25vw, 6px) rotate(.4deg); } }

.spark {
  position: absolute; left: 50%; top: var(--cy);
  width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,29,31,.16) 0%, rgba(29,29,31,.05) 35%, transparent 70%);
  opacity: 0; transform: scale(.4);
  transition: opacity 1s ease 1.6s, transform 1.2s var(--ease) 1.6s;
}
.spark::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 12px 4px rgba(29,29,31,.35);
}
.is-loaded .spark { opacity: var(--spark, 1); transform: scale(1); animation: pulse 3.2s ease-in-out 2.8s infinite; }
@keyframes pulse { 50% { transform: scale(1.25); } }

.hero-foot {
  position: relative; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  max-width: 1240px; width: 100%; margin: 0 auto;
}
.hero-foot { justify-content: center; text-align: center; }
.hero-foot-left { max-width: 520px; display: flex; flex-direction: column; align-items: center; }
.hero-sub { font-size: 17px; line-height: 1.45; margin: 8px 0 22px; letter-spacing: -.01em; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; z-index: 3; translate: -50% 0;
  width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid var(--ink-3);
}
.scroll-hint span {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--ink-2); animation: wheel 2s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }

/* ---------- Manifeste (mots qui s'allument) ---------- */
.manifesto { padding: 160px 24px 120px; background: #fff; }
.manifesto-text {
  max-width: 1000px; margin: 0 auto;
  font-size: clamp(30px, 4.6vw, 64px); line-height: 1.12; font-weight: 600; letter-spacing: -.035em;
}
.manifesto-text .w { color: #d2d2d7; filter: blur(2px); transition: color .6s ease, filter .6s ease; }
.manifesto-text .w.on { color: var(--ink); filter: none; }

/* ---------- Logos ---------- */
.logos { background: #fff; padding: 20px 0 140px; }
.logos .tiny { margin-bottom: 40px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 96px; width: max-content; animation: marquee 70s linear infinite; }
.marquee-track img {
  height: 52px; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .75;
  transition: opacity .3s, filter .3s;
}
.marquee-track img:hover { opacity: 1; filter: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section-head { text-align: center; margin-bottom: 72px; }
.section-head h2, .final h2, .commit h2 {
  font-size: clamp(36px, 5.6vw, 76px); line-height: 1.04; font-weight: 600; letter-spacing: -.04em;
}

.solutions { padding: 140px 24px 60px; max-width: 1240px; margin: 0 auto; }
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 64px; margin-bottom: 24px;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.product:hover { box-shadow: 0 30px 80px -40px rgba(0,0,0,.25); }
.product-flip .product-copy { order: 2; }
.product-name { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.product-name h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.product-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--ink);
  display: grid; place-items: center;
}
.product-icon svg { width: 24px; height: 24px; stroke: #fff; }
.product-icon svg .fill { fill: #fff; }
.product-lead { font-size: 21px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 12px; }
.product-body { color: var(--ink-2); font-size: 16px; margin-bottom: 36px; max-width: 460px; }

svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 28px; }
.features li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 13px; line-height: 1.3; color: var(--ink); }
.features li + li { border-left: 1px solid var(--line); }
.features svg { width: 30px; height: 30px; transition: transform .5s var(--ease); }
.features li:hover svg { transform: translateY(-3px) scale(1.08); }

.product-visual { display: grid; place-items: center; min-height: 380px; border-radius: 22px; background: var(--bg); padding: 32px; }
.mock {
  width: 100%; max-width: 380px; background: #fff; border-radius: 20px; padding: 20px;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(0,0,0,.25);
}
.mock-label { font-size: 12px; color: var(--ink-2); font-weight: 500; margin-bottom: 12px; }

/* Notifs */
/* hauteur fixe : l'arrivée d'une notification ne change jamais la taille de la carte */
.notif-stack { display: flex; flex-direction: column; gap: 8px; height: 264px; overflow: hidden; contain: layout paint; }
.notif {
  display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px;
  background: var(--bg); animation: notif-in .7s var(--ease) both;
  flex: none; height: 60px; min-width: 0;
}
.notif > div { min-width: 0; }
.notif-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.notif-ic svg { width: 18px; height: 18px; }
.notif b, .notif small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif b { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.notif small { font-size: 12px; color: var(--ink-2); }
.notif time { margin-left: auto; align-self: flex-start; font-size: 11px; color: var(--ink-3); white-space: nowrap; flex: none; }
@keyframes notif-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.notif.out { animation: notif-out .5s var(--ease) both; }
@keyframes notif-out { to { opacity: 0; transform: translateY(10px) scale(.96); } }

/* Tâches */
.mock-tasks ul { display: flex; flex-direction: column; gap: 4px; }
.mock-tasks li {
  display: flex; align-items: center; gap: 12px; padding: 11px 6px; font-size: 14px; color: var(--ink-3);
  border-bottom: 1px solid var(--line); transition: color .4s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-tasks li:last-child { border-bottom: 0; }
.mock-tasks li i {
  flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #d2d2d7; position: relative;
  transition: background .4s var(--ease), border-color .4s, transform .4s var(--ease);
}
.mock-tasks li i::after {
  content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .35s var(--ease) .1s;
}
.mock-tasks li.done { color: var(--ink); }
.mock-tasks li.done i { background: var(--ink); border-color: var(--ink); transform: scale(1.08); }
.mock-tasks li.done i::after { transform: rotate(45deg) scale(1); }
.mock-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--ink-2); }
.mock-foot [data-counter] { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 0 rgba(48,209,88,.5); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(48,209,88,0); } 100% { box-shadow: 0 0 0 0 rgba(48,209,88,0); } }

/* Dashboard */
.dash-top { display: flex; justify-content: space-between; align-items: flex-start; }
.dash-kpi { font-size: 40px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.pill-soft { font-size: 11px; padding: 6px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; margin: 24px 0 18px; }
.bars span {
  flex: 1; height: var(--h); border-radius: 6px; background: #e8e8ed;
  transform-origin: bottom; transform: scaleY(0); transition: transform 1.1s var(--ease);
}
.bars span.hi { background: var(--ink); }
.mock-dash.play .bars span { transform: scaleY(1); }
.mock-dash.play .bars span:nth-child(n) { transition-delay: calc(var(--i, 0) * 70ms); }
.dash-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash-row div { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.dash-row b { display: block; font-size: 13px; }
.dash-row small { font-size: 11px; color: #248a3d; }

/* ---------- Méthode ---------- */
.method { padding: 140px 24px; max-width: 1240px; margin: 0 auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step {
  position: relative; padding: 40px 36px 44px; border-radius: var(--radius); background: #fff;
  box-shadow: 0 1px 0 var(--line); overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(0,0,0,.3); }
.step-n { display: block; font-size: 64px; font-weight: 600; letter-spacing: -.05em; line-height: 1; color: #e8e8ed; margin-bottom: 40px; transition: color .5s; }
.step:hover .step-n { color: var(--ink); }
.step h3 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; }
.method-punch { text-align: center; margin-top: 56px; font-size: 19px; color: var(--ink-2); letter-spacing: -.01em; }
.method-punch b { color: var(--ink); font-weight: 600; }

/* ---------- Engagement ---------- */
.commit {
  position: relative; overflow: hidden; margin: 0 16px; border-radius: 36px;
  background: var(--dark); color: #fff; padding: 160px 24px; text-align: center;
}
.commit-inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.commit-sub { font-size: 19px; color: rgba(255,255,255,.65); margin: 24px auto 40px; max-width: 520px; }
.commit-glow {
  position: absolute; left: 50%; top: 100%; width: 900px; height: 900px; margin: -450px 0 0 -450px;
  background: radial-gradient(circle, rgba(0,113,227,.35), transparent 60%);
  transition: transform 1.5s var(--ease);
  transform: translateY(calc(var(--glow, 0) * -1px));
}

/* ---------- Final ---------- */
.final { position: relative; text-align: center; padding: 180px 24px 160px; overflow: hidden; }
.final p { color: var(--ink-2); font-size: 19px; margin: 20px auto 36px; max-width: 480px; }
.final > *:not(.final-fx) { position: relative; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 24px 32px; font-size: 13px; }
.footer-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid .tiny { margin-top: 10px; }
.footer h4 { font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.footer-grid a:not(.brand) { display: block; color: var(--ink-2); padding: 4px 0; transition: color .2s; }
.footer-grid a:not(.brand):hover { color: var(--ink); }
.footer-bottom {
  max-width: 1240px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; color: var(--ink-3); font-size: 12px;
}

/* ---------- Apparitions ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.product.reveal { transform: translateY(48px) scale(.98); }
.product.reveal.in { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-pill { display: none; }
  .product { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; }
  .product-flip .product-copy { order: 0; }
  .product-visual { min-height: 0; padding: 20px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 110px 16px 32px; --hw: 82vw; --cy: 50%; }
    .scroll-hint { display: none; }
  .manifesto { padding: 110px 16px 80px; }
  .solutions, .method { padding-left: 16px; padding-right: 16px; }
  .solutions { padding-top: 100px; }
  .method { padding-top: 100px; padding-bottom: 100px; }
  .commit { margin: 0 8px; padding: 110px 20px; border-radius: 28px; }
  .final { padding: 130px 16px 110px; }
  .marquee-track { gap: 48px; }
  .marquee-track img { height: 26px; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Composants adaptés de React Bits ---------- */

/* BlurText : les mots sortent du flou un par un */
[data-blur] .bw {
  display: inline-block;
  filter: blur(12px); opacity: 0; transform: translateY(-.3em);
  transition: filter 1s var(--ease), opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--bd, 0s) + var(--i) * 85ms);
  will-change: filter, opacity, transform;
}
[data-blur].blur-in .bw { filter: none; opacity: 1; transform: none; }

/* ShinyText : un reflet traverse le texte */
.shiny {
  background: linear-gradient(110deg, var(--ink-2) 35%, #fff 50%, var(--ink-2) 65%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4.5s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes shine { 0% { background-position: 100% 0; } 60%, 100% { background-position: -50% 0; } }

/* SpotlightCard : une lumière suit le curseur, le bord s'allume */
[data-spotlight] { position: relative; isolation: isolate; }
.sl-light, .sl-edge {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .5s var(--ease);
}
.sl-light {
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0,113,227,.09), rgba(0,113,227,.03) 40%, transparent 70%);
}
.sl-edge {
  z-index: 1; padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(0,113,227,.55), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
[data-spotlight].lit .sl-light, [data-spotlight].lit .sl-edge { opacity: 1; }

/* Magnet : les boutons principaux attirés par le curseur */
[data-magnet] { translate: var(--tx, 0) var(--ty, 0); will-change: translate; }

@media (prefers-reduced-motion: reduce) {
  [data-blur] .bw { filter: none; opacity: 1; transform: none; }
  .manifesto-text .w { filter: none; }
  .shiny { -webkit-text-fill-color: currentColor; background: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hand { opacity: .3; translate: 0 0; }
  .bars span { transform: none; }
}

/* ============ V3 : textures et fonds animés (React Bits, sans React) ============ */

/* Noise : grain argentique sur toute la page */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07; mix-blend-mode: multiply;
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* Hero : Grainient derrière les mains */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg canvas { opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-bg.ready canvas { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(42% 36% at 50% 58%, rgba(255,255,255,.85), rgba(255,255,255,0) 70%),
              linear-gradient(to bottom, rgba(245,245,247,0) 70%, var(--bg));
}
.hero-copy, .hero-foot { position: relative; z-index: 3; }


/* DotGrid : champ de points qui s'allume sous le curseur */
.method { position: relative; }
.method > *:not(.dot-field) { position: relative; z-index: 1; }
.dot-field {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0; z-index: 0;
  background-image: radial-gradient(circle, #d2d2d7 1.1px, transparent 1.6px);
  background-size: 22px 22px; background-position: center;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(70% 60% at 50% 50%, #000 30%, transparent 85%);
}
.dot-lit {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--accent) 1.6px, transparent 2.2px);
  background-size: 22px 22px; background-position: center;
  -webkit-mask-image: radial-gradient(220px circle at var(--dx, -999px) var(--dy, -999px), #000, transparent 70%);
  mask-image: radial-gradient(220px circle at var(--dx, -999px) var(--dy, -999px), #000, transparent 70%);
}

/* DecryptedText */
[data-decrypt] .dc { color: var(--accent); }

/* Engagement : Dither */
.commit-fx { position: absolute; inset: 0; z-index: 0; opacity: .75; }
.commit-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(55% 55% at 50% 50%, rgba(11,11,12,.92), rgba(11,11,12,.55) 60%, rgba(11,11,12,.2));
}
.commit-glow { z-index: 1; }
.commit { padding: 180px 24px; max-width: 1192px; margin: 0 auto; }
@media (max-width: 1224px) { .commit { margin: 0 16px; } }

/* CTA final : Threads + RotatingText + StarBorder */
.final { background: var(--bg); padding: 200px 24px 180px; }
.final-title { font-size: clamp(36px, 5.6vw, 76px); line-height: 1.1; font-weight: 600; letter-spacing: -.04em; }
.rot {
  display: inline-flex; vertical-align: bottom; overflow: hidden;
  padding: .02em .32em .1em; margin: .08em 0; border-radius: .28em;
  background: var(--ink); color: #fff;
  transition: width .6s var(--ease);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.45);
}
.rot-word { display: inline-flex; white-space: pre; }
.rot-c { display: inline-block; transform: translateY(105%); transition: transform .7s var(--ease), opacity .5s; }
.rot-word.in .rot-c { transform: none; }
.rot-word.out { position: absolute; }
.rot-word.out .rot-c { transform: translateY(-115%); opacity: 0; }
.rot { position: relative; }

.star-border { position: relative; display: inline-block; padding: 1.5px; border-radius: 999px; overflow: hidden; background: rgba(0,0,0,.06); }
.star-border::before, .star-border::after {
  content: ""; position: absolute; width: 300%; height: 50%; opacity: .9; border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 12%);
}
.star-border::before { top: -12px; left: -250%; animation: star-top 5s linear infinite alternate; }
.star-border::after { bottom: -12px; right: -250%; animation: star-bottom 5s linear infinite alternate; }
.star-border .btn { position: relative; z-index: 1; }
@keyframes star-bottom { 0% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(-100%); opacity: 0; } }
@keyframes star-top { 0% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }

/* Pied de page : grand logotype */
.footer { overflow: hidden; }
.footer-mark {
  max-width: 1240px; margin: 48px auto -0.12em; text-align: center;
  font-size: clamp(110px, 26vw, 380px); font-weight: 700; letter-spacing: -.07em; line-height: .9;
  background: linear-gradient(180deg, #d9d9de 0%, rgba(245,245,247,0) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  translate: 0 var(--fm, 30%); transition: translate 1.4s var(--ease);
  user-select: none;
}
.footer-mark.in { --fm: 0%; }
.footer-bottom { position: relative; }




@media (max-width: 640px) {
  .commit { padding: 140px 20px; }
  .final { padding: 140px 20px 120px; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .rot-c { transform: none !important; }
  .footer-mark { translate: 0 0; }
}
@media (max-width: 640px) {
  .logos { padding: 10px 0 96px; }
  .marquee-track { gap: 56px; }
  .marquee-track img { height: 38px; max-width: 115px; }
}
