/* ============================================================
   AMBRISSE AI — Creative AI Studio
   Premium cartoon-meets-3D design system
   ============================================================ */

:root {
  /* Palette */
  --purple: #8B5CF6;
  --purple-deep: #6D28D9;
  --blue: #4CC9F0;
  --yellow: #FFD93D;
  --coral: #FF6B6B;
  --orange: #FF9F43;
  --pink: #FF8FB1;
  --mint: #2EE6A8;
  --teal: #2EC4B6;
  --white: #FFFFFF;
  --navy: #171040;
  --ink: #241A5E;
  --body: #4A4173;
  --bg: #FBF9FF;
  --bg-soft: #F4F0FF;

  /* Gradients */
  --grad-brand: linear-gradient(120deg, #6D28D9, #8B5CF6 35%, #4CC9F0 75%, #2EE6A8);
  --grad-warm: linear-gradient(120deg, #FFD93D, #FF9F43 45%, #FF6B6B 80%, #FF8FB1);
  --grad-hero-fallback: linear-gradient(135deg, #6D28D9 0%, #8B5CF6 30%, #4CC9F0 65%, #FF8FB1 100%);

  /* Type */
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  /* Rhythm */
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow-soft: 0 18px 50px -18px rgba(36, 26, 94, 0.22);
  --shadow-pop: 0 26px 70px -20px rgba(36, 26, 94, 0.35);
  --nav-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  overflow-x: clip;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 3000;
  background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: 999px; text-decoration: none; font-weight: 700;
  transition: top .25s ease;
}
.skip-link:focus-visible { top: 14px; }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.section { padding: clamp(84px, 10vw, 140px) 0; position: relative; }

/* ---------- Section headers ---------- */
.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-eyebrow {
  font-weight: 800; font-size: .85rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--purple); margin-bottom: 14px;
}
.section-eyebrow.on-dark { color: var(--yellow); }
.section-title {
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 800;
}
.section-title.on-dark { color: #fff; }
.section-sub { font-size: 1.15rem; max-width: 560px; }
.section-sub.on-dark { color: rgba(255, 255, 255, 0.78); }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-text-warm {
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  text-decoration: none; border: none; border-radius: 999px;
  position: relative; overflow: hidden; white-space: nowrap;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, background-color .3s ease, color .3s ease;
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform .6s ease;
  pointer-events: none;
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(110%); }
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-lg { padding: 18px 34px; font-size: 1.08rem; }
.btn-sm { padding: 11px 22px; font-size: .95rem; }
.btn-mini { padding: 9px 18px; font-size: .88rem; }

.btn-primary {
  background: linear-gradient(120deg, var(--purple-deep), var(--purple) 55%, var(--blue));
  color: #fff;
  box-shadow: 0 14px 34px -12px rgba(109, 40, 217, 0.55);
}
.btn-primary:hover { box-shadow: 0 20px 44px -12px rgba(109, 40, 217, 0.65); }

.btn-warm {
  background: linear-gradient(120deg, var(--yellow), var(--orange) 60%, var(--coral));
  color: var(--ink);
  box-shadow: 0 14px 34px -12px rgba(255, 107, 107, 0.55);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.26); }

.btn-glass {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.28); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 5000;
  display: grid; place-items: center;
  background: var(--grad-hero-fallback);
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-bot { width: 96px; margin-inline: auto; animation: loaderBounce 1.1s cubic-bezier(.34,1.56,.64,1) infinite alternate; }
.loader-bot-eye { animation: blink 2.6s infinite; transform-origin: center; }
.loader-bot-bulb { animation: bulbPulse 1.2s ease-in-out infinite; }
.loader-word {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.4rem); color: #fff;
  letter-spacing: .12em; margin: 18px 0 6px;
}
.loader-word span { display: inline-block; animation: letterHop 1.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 1s); }
.loader-word span:nth-child(1) { --i: 0.00; } .loader-word span:nth-child(2) { --i: 0.07; }
.loader-word span:nth-child(3) { --i: 0.14; } .loader-word span:nth-child(4) { --i: 0.21; }
.loader-word span:nth-child(5) { --i: 0.28; } .loader-word span:nth-child(6) { --i: 0.35; }
.loader-word span:nth-child(7) { --i: 0.42; } .loader-word span:nth-child(8) { --i: 0.49; }
.loader-word .loader-ai { color: var(--yellow); }
.loader-hint { color: rgba(255,255,255,.85); font-weight: 600; font-size: .95rem; }

@keyframes loaderBounce { from { transform: translateY(0); } to { transform: translateY(-14px); } }
@keyframes letterHop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }
@keyframes blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
@keyframes bulbPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 100%;
  background: var(--grad-warm); transform-origin: 0 50%;
  transform: scaleX(0); z-index: 2500; pointer-events: none;
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-blob { display: none; }
@media (pointer: fine) {
  body.custom-cursor, body.custom-cursor a, body.custom-cursor button { cursor: none; }
  .cursor-dot {
    display: block; position: fixed; z-index: 4000; pointer-events: none;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--ink); top: 0; left: 0;
    transform: translate(-50%, -50%);
  }
  .cursor-blob {
    display: block; position: fixed; z-index: 3999; pointer-events: none;
    width: 44px; height: 44px; border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35), rgba(76, 201, 240, 0.12) 70%);
    top: 0; left: 0; transform: translate(-50%, -50%);
    transition: width .3s ease, height .3s ease, background .3s ease;
  }
  body.cursor-hovering .cursor-blob {
    width: 72px; height: 72px;
    background: radial-gradient(circle, rgba(255, 217, 61, 0.45), rgba(255, 107, 107, 0.15) 70%);
  }
}
.cursor-spark {
  position: fixed; z-index: 3998; pointer-events: none;
  font-size: 14px; line-height: 1; top: 0; left: 0;
  animation: sparkFloat .9s ease-out forwards;
}
@keyframes sparkFloat {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  to   { opacity: 0; transform: translate(-50%, -140%) scale(.4) rotate(40deg); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
  transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.nav-inner {
  width: min(1240px, calc(100% - 40px)); margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}
.nav.is-scrolled {
  background: rgba(251, 249, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 40px -18px rgba(36, 26, 94, 0.25);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  color: var(--ink); margin-right: auto;
}
.nav.on-hero:not(.is-scrolled) .nav-logo, .nav.on-hero:not(.is-scrolled) .nav-links a { color: #fff; }
.nav-logo-mark { width: 40px; height: 40px; flex: none; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.nav-logo-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(23, 16, 64, 0.28)); }
.nav-logo:hover .nav-logo-mark { transform: rotate(14deg) scale(1.1); }
.nav-logo-text em { font-style: normal; color: var(--purple); }
.nav.on-hero:not(.is-scrolled) .nav-logo-text em { color: var(--yellow); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  text-decoration: none; font-weight: 700; font-size: .98rem; color: var(--ink);
  position: relative; padding: 6px 2px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  border-radius: 3px; background: var(--grad-warm);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s ease;
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 48px; height: 48px; padding: 12px;
  background: rgba(255,255,255,.85); border: none; border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
.nav-burger span {
  display: block; height: 3px; border-radius: 3px; background: var(--ink);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1900;
  background: linear-gradient(150deg, var(--navy), var(--purple-deep));
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 100px 32px 48px;
  opacity: 0; visibility: hidden; transform: translateY(-4%);
  transition: opacity .4s ease, visibility .4s ease, transform .4s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu-links { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu-links a {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 9vw, 3rem); color: #fff; text-decoration: none;
  display: flex; align-items: baseline; gap: 16px; padding: 8px 0;
  opacity: 0; transform: translateY(20px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.34,1.56,.64,1), color .3s ease;
}
.mobile-menu.is-open .mobile-menu-links a { opacity: 1; transform: translateY(0); }
.mobile-menu.is-open .mobile-menu-links a:nth-child(1) { transition-delay: .08s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(2) { transition-delay: .14s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(3) { transition-delay: .20s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(4) { transition-delay: .26s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(5) { transition-delay: .32s; }
.mobile-menu-links a:hover { color: var(--yellow); }
.mobile-menu-links a em {
  font-style: normal; font-size: 1rem; color: var(--yellow);
  font-family: var(--font-body); font-weight: 700;
}
.mobile-menu-foot { color: rgba(255,255,255,.75); }
.mobile-menu-foot a { color: var(--yellow); font-weight: 800; text-decoration: none; font-size: 1.1rem; }
.mobile-menu-foot p { margin: 8px 0 0; font-size: .92rem; }

/* ---------- Video shells (lazy video + gradient fallback) ---------- */
.video-shell {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--grad-hero-fallback);
  background-size: 300% 300%;
  animation: gradientDrift 14s ease-in-out infinite;
}
.video-shell .bg-video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s ease;
}
.video-shell.is-playing .bg-video { opacity: 1; }
.video-shell.video-failed .bg-video { display: none; }
@keyframes gradientDrift {
  0%, 100% { background-position: 0% 30%; }
  50% { background-position: 100% 70%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: calc(var(--nav-h) + 40px) 24px 90px;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(23, 16, 64, 0.55), transparent 60%),
    linear-gradient(180deg, rgba(23, 16, 64, 0.5) 0%, rgba(23, 16, 64, 0.32) 45%, rgba(23, 16, 64, 0.62) 100%);
}
.hero-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.hero-content {
  position: relative; z-index: 3; text-align: center; max-width: 900px;
}
[data-hero-item] {
  opacity: 0; transform: translateY(34px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.22,1,.36,1);
}
.hero.is-ready [data-hero-item] { opacity: 1; transform: translateY(0); }
.hero.is-ready [data-hero-item]:nth-of-type(1) { transition-delay: .05s; }
.hero.is-ready .hero-title { transition-delay: .16s; }
.hero.is-ready .hero-sub { transition-delay: .3s; }
.hero.is-ready .hero-ctas { transition-delay: .44s; }
.hero.is-ready .hero-chips { transition-delay: .56s; }
.hero-badges .hero-badge { opacity: 0; }
.hero.is-ready .hero-badge { opacity: 1; transition: opacity .8s ease .7s; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .82rem;
  color: #fff; background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 10px 20px; border-radius: 999px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-eyebrow span { color: var(--yellow); }
.hero-title {
  color: #fff; font-size: clamp(2.5rem, 6.2vw, 4.9rem); font-weight: 800;
  margin: 26px 0 18px;
  text-shadow: 0 6px 40px rgba(23, 16, 64, 0.45);
}
.rotator {
  display: block; position: relative; height: 1.18em; overflow: hidden; margin-top: .08em;
}
.rotator-word {
  position: absolute; left: 0; right: 0; top: 0;
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  transform: translateY(110%); opacity: 0;
  transition: transform .55s cubic-bezier(.34,1.56,.64,1), opacity .4s ease;
}
.rotator-word.is-active { transform: translateY(0); opacity: 1; }
.rotator-word.is-leaving { transform: translateY(-110%); opacity: 0; }

.hero-sub {
  color: rgba(255, 255, 255, 0.92); font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  max-width: 640px; margin: 0 auto 34px; font-weight: 500;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-chips { display: none; }

.hero-badges { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-badge {
  position: absolute; left: var(--bx); top: var(--by);
  transform: rotate(var(--br));
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink); font-weight: 800; font-size: .88rem;
  padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(23, 16, 64, 0.45);
  animation: badgeFloat 4.5s ease-in-out infinite; animation-delay: var(--bd);
  will-change: transform;
}
@keyframes badgeFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

.hero-scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none;
}
.hero-scroll-cue-track {
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7);
  border-radius: 999px; display: flex; justify-content: center; padding-top: 7px;
}
.hero-scroll-cue-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--yellow);
  animation: cueDrop 1.6s ease-in-out infinite;
}
.hero-scroll-cue-label {
  color: rgba(255,255,255,.8); font-size: .78rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
}
@keyframes cueDrop { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--navy); overflow: hidden;
  padding: 38px 0; position: relative; z-index: 5;
  margin-top: -1px;
}
.marquee-band {
  transform: rotate(-1.5deg) scale(1.04);
  background: var(--grad-hero-fallback);
  background-size: 300% 300%;
  animation: gradientDrift 12s ease-in-out infinite;
  padding: 18px 0 16px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 20px 60px -18px rgba(109, 40, 217, 0.7);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marqueeScroll 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track-rev { animation: marqueeScroll 40s linear infinite reverse; }
.marquee-chunk {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--font-display);
}
.marquee-chunk b, .marquee-chunk em {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 800; font-style: normal;
  letter-spacing: .01em; padding: 0 6px;
}
.marquee-chunk b { color: #fff; text-shadow: 0 2px 16px rgba(23, 16, 64, 0.4); }
.marquee-chunk em {
  color: transparent;
  -webkit-text-stroke: 1.6px rgba(255, 255, 255, 0.92);
}
.mq-star {
  font-style: normal; font-size: 1.25rem; padding: 0 14px;
  display: inline-block;
  animation: mqSpin 4.5s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
}
.mq-star.s1 { color: var(--yellow); }
.mq-star.s2 { color: var(--mint); }
.mq-star.s3 { color: #FFB3C6; }
.mq-star.s4 { color: #A5E8FF; }
@keyframes mqSpin { to { transform: rotate(360deg); } }
.marquee-chunk.chips { gap: 12px; padding: 0 6px; }
.mq-chip {
  font-family: var(--font-body); font-weight: 800; font-size: .88rem;
  color: #fff; background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  padding: 8px 18px; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 18px -8px rgba(23, 16, 64, 0.45);
}
.mq-chip.c1 { border-color: rgba(255, 217, 61, 0.85); }
.mq-chip.c2 { border-color: rgba(46, 230, 168, 0.85); }
.mq-chip.c3 { border-color: rgba(255, 143, 177, 0.9); }
.mq-chip.c4 { border-color: rgba(165, 232, 255, 0.9); }
.mq-chip.c5 { border-color: rgba(255, 159, 67, 0.9); }
.mq-chip.c6 { border-color: rgba(255, 255, 255, 0.85); }
.mq-chip.c7 { border-color: rgba(255, 107, 107, 0.9); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { position: relative; }
.manifesto-pin {
  position: relative;
  min-height: 100svh; display: grid; place-items: center;
  background: #171040; transition: background-color .5s ease;
  overflow: hidden; padding: 80px 24px;
}
.manifesto-count {
  position: absolute; top: calc(var(--nav-h) + 20px); left: 50%; transform: translateX(-50%);
  font-weight: 800; letter-spacing: .3em; font-size: .85rem;
  color: rgba(255,255,255,.6); margin: 0;
}
.manifesto-stage { position: relative; width: min(1000px, 100%); min-height: 40vh; display: grid; place-items: center; }
.manifesto-line {
  grid-area: 1 / 1;
  font-size: clamp(2.1rem, 5.6vw, 4.4rem); font-weight: 800; text-align: center;
  color: #fff; margin: 0; line-height: 1.12;
  opacity: 0; transform: translateY(60px) scale(.94) rotate(-1deg);
  transition: opacity .55s ease, transform .6s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.manifesto-line.is-active { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
.manifesto-line em { font-style: normal; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }
.manifesto-doodles .doodle {
  position: absolute; font-size: 2rem; opacity: .35; color: var(--doodle, #fff);
  transition: color .5s ease;
  animation: doodleSpin 9s linear infinite;
}
.doodle.d1 { top: 18%; left: 10%; } .doodle.d2 { top: 68%; left: 14%; font-size: 3rem; animation-duration: 13s; }
.doodle.d3 { top: 24%; right: 12%; } .doodle.d4 { top: 74%; right: 10%; font-size: 2.6rem; animation-duration: 11s; }
.doodle.d5 { top: 48%; right: 22%; font-size: 1.6rem; }
@keyframes doodleSpin { from { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(180deg) translateY(-16px); } to { transform: rotate(360deg) translateY(0); } }

/* ---------- Reveal (IntersectionObserver) ---------- */
[data-reveal] { opacity: 0; transform: translateY(42px); transition: opacity .7s ease, transform .8s cubic-bezier(.22,1,.36,1); }
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Services ---------- */
.services { background: var(--bg); }
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.service-card {
  position: relative; border-radius: var(--radius-lg);
  padding: 30px 26px 66px; background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease;
  overflow: hidden; cursor: pointer;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--borderAngle, 0deg), var(--purple), var(--blue), var(--mint), var(--yellow), var(--coral), var(--purple));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s ease;
  animation: borderSpin 5s linear infinite paused;
  pointer-events: none;
}
.service-card:hover::before, .service-card:focus-visible::before { opacity: 1; animation-play-state: running; }
@property --borderAngle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes borderSpin { to { --borderAngle: 360deg; } }

.service-card:hover, .service-card:focus-visible {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-pop);
}
.tint-purple { background: linear-gradient(165deg, #F3EEFF, #fff 65%); }
.tint-blue   { background: linear-gradient(165deg, #E8F7FD, #fff 65%); }
.tint-mint   { background: linear-gradient(165deg, #E5FBF2, #fff 65%); }
.tint-pink   { background: linear-gradient(165deg, #FFEFF5, #fff 65%); }
.tint-coral  { background: linear-gradient(165deg, #FFF0E8, #fff 65%); }
.tint-yellow { background: linear-gradient(165deg, #FFF9E0, #fff 65%); }

.service-icon {
  width: 64px; height: 64px; margin-bottom: 18px;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
}
.service-card:hover .service-icon, .service-card:focus-visible .service-icon { transform: translateY(-4px) rotate(-4deg) scale(1.08); }
.service-card h3 { font-size: 1.32rem; margin-bottom: 8px; }
.service-card p { font-size: .96rem; margin: 0; }

.service-stickers { position: absolute; top: 18px; right: 16px; pointer-events: none; }
.service-stickers i {
  font-style: normal; position: absolute; right: 0; font-size: 1.15rem;
  opacity: 0; transform: translateY(10px) scale(.5) rotate(20deg);
  transition: opacity .35s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.service-stickers i:nth-child(1) { right: 0; }
.service-stickers i:nth-child(2) { right: 28px; top: 14px; }
.service-stickers i:nth-child(3) { right: 10px; top: 34px; }
.service-card:hover .service-stickers i, .service-card:focus-visible .service-stickers i { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
.service-card:hover .service-stickers i:nth-child(2), .service-card:focus-visible .service-stickers i:nth-child(2) { transition-delay: .07s; }
.service-card:hover .service-stickers i:nth-child(3), .service-card:focus-visible .service-stickers i:nth-child(3) { transition-delay: .14s; }

.service-cta {
  position: absolute; left: 26px; bottom: 22px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--purple);
  opacity: 0; transform: translateY(12px);
  transition: opacity .35s ease, transform .4s cubic-bezier(.34,1.56,.64,1);
}
.service-cta b { display: inline-block; transition: transform .3s ease; }
.service-card:hover .service-cta, .service-card:focus-visible .service-cta { opacity: 1; transform: translateY(0); }
.service-card:hover .service-cta b { transform: translateX(4px); }

/* Service icon micro-animations */
.i-bar { animation: barGrow 2.2s ease-in-out infinite; transform-origin: left center; }
@keyframes barGrow { 0%, 100% { transform: scaleX(.5); } 50% { transform: scaleX(1); } }
.i-cursor { animation: cursorNudge 2.2s ease-in-out infinite; }
@keyframes cursorNudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-5px, 4px); } }
.i-app { animation: appPop 2.4s ease-in-out infinite; transform-origin: center; }
.i-app.a2 { animation-delay: .3s; } .i-app.a3 { animation-delay: .6s; } .i-app.a4 { animation-delay: .9s; }
@keyframes appPop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.i-seo-bar { animation: seoRise 2.6s ease-in-out infinite; transform-origin: bottom center; }
.i-seo-bar.b2 { animation-delay: .2s; } .i-seo-bar.b3 { animation-delay: .4s; }
@keyframes seoRise { 0%, 100% { transform: scaleY(.72); } 50% { transform: scaleY(1); } }
.i-heart { animation: heartBeat 1.8s ease-in-out infinite; transform-origin: 26px 27px; }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.2); } 24% { transform: scale(1); } 36% { transform: scale(1.15); } 48% { transform: scale(1); } }
.i-pop { animation: popFloat 2.4s ease-in-out infinite; }
.i-pop.p2 { animation-delay: .4s; } .i-pop.p3 { animation-delay: .8s; }
@keyframes popFloat { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-6px); opacity: .5; } }
.i-ring { animation: ringPulse 2s ease-out infinite; transform-origin: 32px 32px; }
.i-ring.r2 { animation-delay: .5s; }
@keyframes ringPulse { 0% { transform: scale(.8); opacity: .7; } 100% { transform: scale(1.25); opacity: 0; } }
.i-eye { animation: blink 3.4s infinite; transform-origin: center; }
.i-bulb { animation: bulbPulse 1.6s ease-in-out infinite; }
.i-gear { animation: gearSpin 5s linear infinite; transform-origin: 52px 44px; }
@keyframes gearSpin { to { transform: rotate(360deg); } }
.i-swatch { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.service-card:hover .i-swatch.s1 { transform: rotate(-30deg); }
.service-card:hover .i-swatch.s3 { transform: rotate(20deg); }
.i-bolt { animation: boltJolt 2.6s ease-in-out infinite; transform-origin: center; }
@keyframes boltJolt { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-6deg) scale(1.06); } 96% { transform: rotate(4deg); } }
.i-spark { animation: bulbPulse 1.3s ease-in-out infinite; }

/* ---------- Media band ---------- */
.media-band {
  position: relative; margin-top: clamp(48px, 6vw, 80px);
  border-radius: var(--radius-lg); overflow: hidden;
  width: 100%; aspect-ratio: 21 / 9; min-height: 280px;
  box-shadow: var(--shadow-pop);
}
.media-band .video-shell { position: absolute; inset: 0; }
.media-band-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(180deg, transparent 40%, rgba(23, 16, 64, 0.72));
}
.media-band-eyebrow {
  color: var(--yellow); font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; font-size: .8rem; margin: 0 0 6px;
}
.media-band-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); color: #fff; margin: 0;
}

/* ---------- Process ---------- */
.process { background: linear-gradient(170deg, var(--navy), #241A5E 60%, #2A1B6B); overflow: hidden; }
.timeline { position: relative; max-width: 760px; margin-inline: auto; }
.timeline-track {
  position: absolute; top: 0; bottom: 0; left: 31px; width: 6px;
}
.timeline-track::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.14); border-radius: 3px;
}
.timeline-line {
  position: absolute; inset: 0; border-radius: 3px;
  background: linear-gradient(180deg, var(--purple), var(--blue), var(--mint), var(--yellow));
  transform-origin: top center; transform: scaleY(0);
}
.timeline-walker {
  position: absolute; left: 50%; top: 0;
  width: 58px; height: 58px; transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}
.timeline-walker svg { animation: walkerWobble 1.4s ease-in-out infinite; }
@keyframes walkerWobble { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

.timeline-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.timeline-step { display: flex; gap: 28px; align-items: flex-start; }
.timeline-num {
  flex: none; width: 68px; height: 68px; border-radius: 22px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  background: var(--stepc); color: var(--navy);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.4);
  transform: rotate(-4deg); transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  position: relative; z-index: 2;
}
.timeline-step:nth-child(even) .timeline-num { transform: rotate(4deg); }
.timeline-step:hover .timeline-num { transform: rotate(0) scale(1.12); }
.timeline-body h3 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.timeline-body p { color: rgba(255, 255, 255, 0.75); margin: 0; max-width: 480px; }

/* ---------- Work ---------- */
.work { background: var(--bg-soft); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.case-card {
  border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .4s ease;
  transform-style: preserve-3d; will-change: transform;
  cursor: pointer;
}
.case-card:hover, .case-card:focus-visible { box-shadow: var(--shadow-pop); }
.case-media {
  position: relative; aspect-ratio: 16 / 8; overflow: hidden;
}
.case-bloomcart .case-media { background: linear-gradient(130deg, #10B981, #A7F3D0); }
.case-skillnest .case-media { background: linear-gradient(130deg, #6D28D9, #4CC9F0); }
.case-urbanbite .case-media { background: linear-gradient(130deg, #FF6B6B, #FFD93D); }
.case-mediflow .case-media { background: linear-gradient(130deg, #0EA5E9, #2EE6A8); }
.case-shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  transition: transform .65s cubic-bezier(.22,1,.36,1);
}
.case-card:hover .case-shot, .case-card:focus-visible .case-shot { transform: scale(1.06); }
.case-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.32) 50%, transparent 60%);
  transform: translateX(-130%);
}
.case-card:hover .case-media::after, .case-card:focus-visible .case-media::after {
  transition: transform .8s ease; transform: translateX(130%);
}
.case-body { padding: 26px 28px 28px; }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.case-top h3 { font-size: 1.5rem; margin: 0; }
.case-tag {
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--bg-soft); color: var(--purple); padding: 6px 14px; border-radius: 999px;
}
.case-line { font-size: .95rem; margin-bottom: 8px; }
.case-line b { color: var(--ink); }
.case-result { color: var(--ink); font-weight: 600; }
.case-view {
  margin-top: 14px;
  background: var(--ink); color: #fff; border-radius: 999px;
  opacity: .92; transform: translateY(4px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.34,1.56,.64,1), background-color .3s ease;
}
.case-card:hover .case-view, .case-card:focus-visible .case-view { opacity: 1; transform: translateY(0); background: var(--purple-deep); }

/* ---------- Case dialogs ---------- */
.case-dialog {
  border: none; border-radius: var(--radius-lg); padding: 0;
  width: min(560px, calc(100vw - 40px));
  box-shadow: var(--shadow-pop);
}
.case-dialog::backdrop { background: rgba(23, 16, 64, 0.6); backdrop-filter: blur(6px); }
.case-dialog-head {
  padding: 30px 32px 22px; color: #fff; display: flex; flex-direction: column; gap: 2px;
}
.case-dialog-head span { font-size: 2.4rem; }
.case-dialog-head h3 { color: #fff; font-size: 1.8rem; margin: 6px 0 2px; }
.case-dialog-head p { margin: 0; font-weight: 700; opacity: .85; font-size: .9rem; }
.head-bloomcart { background: linear-gradient(130deg, #0d9165, #2EC4B6); }
.head-skillnest { background: linear-gradient(130deg, #6D28D9, #4361EE); }
.head-urbanbite { background: linear-gradient(130deg, #E85555, #FF9F43); }
.head-mediflow  { background: linear-gradient(130deg, #0284C7, #2EC4B6); }
.case-dialog-body { padding: 26px 32px 8px; }
.case-dialog-body p { font-size: .98rem; }
.case-dialog-body b { color: var(--ink); }
.case-dialog-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.case-dialog-chips span {
  font-size: .8rem; font-weight: 800; background: var(--bg-soft); color: var(--ink);
  padding: 7px 14px; border-radius: 999px;
}
.case-dialog-note { font-size: .82rem; opacity: .65; font-style: italic; }
.case-dialog form { padding: 0 32px 26px; }
.case-dialog-close { background: var(--ink); color: #fff; }

/* ---------- Bots ---------- */
.bots { background: linear-gradient(180deg, var(--bg), #F0EAFF 55%, var(--bg)); }
.bots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.bot-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg); padding: 28px 24px;
  text-align: center; box-shadow: var(--shadow-soft);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease;
}
.bot-card:hover, .bot-card:focus-visible { transform: translateY(-10px) rotate(-1deg); box-shadow: var(--shadow-pop); }
.bot-avatar { width: 130px; margin: 0 auto 10px; animation: botFloat 4s ease-in-out infinite; }
.bot-card:nth-child(2) .bot-avatar { animation-delay: .5s; }
.bot-card:nth-child(3) .bot-avatar { animation-delay: 1s; }
.bot-card:nth-child(4) .bot-avatar { animation-delay: 1.5s; }
@keyframes botFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.bot-eyes { animation: blink 3.8s infinite; transform-origin: center; }
.bot-bulb { animation: bulbPulse 1.8s ease-in-out infinite; }
.bot-ring { animation: ringTilt 6s ease-in-out infinite; transform-origin: center; }
@keyframes ringTilt { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.bot-sat { animation: satOrbit 5s ease-in-out infinite; }
.bot-sat2 { animation: satOrbit 6s ease-in-out infinite reverse; }
@keyframes satOrbit { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6px, -10px); } }
.bot-ant { animation: bulbPulse 1.5s ease-in-out infinite; }
.bot-ant.a2 { animation-delay: .6s; }
.bot-mega { transform-origin: 108px 82px; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.bot-card:hover .bot-mega { transform: rotate(-14deg) scale(1.1); }
.bot-tool { transform-origin: 132px 51px; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.bot-card:hover .bot-tool { transform: rotate(24deg) scale(1.15); }
.bot-lens { transition: transform .4s ease; transform-origin: 112px 46px; }
.bot-card:hover .bot-lens { transform: scale(1.15); }
.bot-chartline { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1s ease .2s; }
.bot-card:hover .bot-chartline, .bot-card.is-revealed .bot-chartline { stroke-dashoffset: 0; }
.bot-card h3 { font-size: 1.45rem; margin-bottom: 2px; }
.bot-role { color: var(--purple); font-weight: 800; font-size: .88rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.bot-quote { font-size: .94rem; font-style: italic; min-height: 3.2em; }
.bot-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.bot-chips span {
  font-size: .76rem; font-weight: 800; background: var(--bg-soft); color: var(--ink);
  padding: 5px 12px; border-radius: 999px;
}

/* ---------- Why ---------- */
.why { background: var(--bg); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card {
  background: #fff; border-radius: var(--radius-md); padding: 30px 28px;
  box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease;
}
.why-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--wc, var(--purple)); border-radius: 0 4px 4px 0;
  transform: scaleY(.3); transform-origin: top; transition: transform .4s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }
.why-card:hover::after { transform: scaleY(1); }
.why-num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem;
  color: var(--wc, var(--purple)); opacity: .9; line-height: 1; display: block; margin-bottom: 12px;
}
.why-card h3 { font-size: 1.22rem; margin-bottom: 6px; }
.why-card p { font-size: .95rem; margin: 0; }

/* ---------- Brand Machine ---------- */
.machine-section {
  background: linear-gradient(160deg, #2A1B6B, var(--purple-deep) 55%, #4331A8);
  overflow: hidden;
}
.machine-blobs span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .4; pointer-events: none;
}
.machine-blobs span:nth-child(1) { width: 380px; height: 380px; background: var(--coral); top: -80px; right: -100px; }
.machine-blobs span:nth-child(2) { width: 320px; height: 320px; background: var(--blue); bottom: -60px; left: -80px; }
.machine-blobs span:nth-child(3) { width: 260px; height: 260px; background: var(--yellow); top: 40%; left: 60%; opacity: .22; }

.machine-layout {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 60px);
  align-items: center; position: relative; z-index: 2;
}
.machine-chips { display: flex; flex-wrap: wrap; gap: 12px; align-content: flex-start; }
.machine-chip {
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1); color: #fff;
  font-weight: 800; font-size: .98rem; padding: 13px 22px; border-radius: 999px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.machine-chip:hover { transform: translateY(-3px) scale(1.05); border-color: var(--chipc); }
.machine-chip.is-active {
  background: var(--chipc); border-color: var(--chipc); color: var(--navy);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.4);
}

.machine {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-pop);
}
.machine.is-shaking { animation: machineShake .5s ease; }
@keyframes machineShake {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-5px) rotate(-.6deg); }
  50% { transform: translateX(5px) rotate(.6deg); }
  75% { transform: translateX(-3px) rotate(-.3deg); }
}
.machine-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.machine-light { width: 12px; height: 12px; border-radius: 50%; }
.machine-light.l1 { background: var(--coral); animation: bulbPulse 1.4s ease-in-out infinite; }
.machine-light.l2 { background: var(--yellow); animation: bulbPulse 1.4s ease-in-out infinite .3s; }
.machine-light.l3 { background: var(--mint); animation: bulbPulse 1.4s ease-in-out infinite .6s; }
.machine-title {
  margin-left: auto; font-family: var(--font-display); font-weight: 800;
  color: #fff; letter-spacing: .06em; font-size: .95rem; text-transform: uppercase;
}
.machine-gauge {
  height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.15);
  overflow: hidden; margin-bottom: 20px;
}
.machine-gauge-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: var(--grad-warm);
  transition: width .6s cubic-bezier(.22,1,.36,1);
}
.machine-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.machine-slot {
  aspect-ratio: 1.5; border-radius: var(--radius-sm);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  display: grid; place-items: center;
  transition: border-color .3s ease, background-color .3s ease;
}
.machine-slot.is-filled { border-style: solid; border-color: transparent; }
.machine-block {
  width: 100%; height: 100%; border-radius: inherit;
  display: grid; place-items: center;
  font-weight: 800; font-size: .8rem; color: var(--navy); text-align: center;
  padding: 4px; line-height: 1.2;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.4);
}
.machine-fly {
  position: fixed; z-index: 3000; pointer-events: none;
  display: grid; place-items: center; border-radius: var(--radius-sm);
  font-weight: 800; font-size: .8rem; color: var(--navy); text-align: center;
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.5);
}
.machine-msg { margin-top: 20px; min-height: 56px; display: grid; align-items: center; }
.machine-msg p { margin: 0; color: rgba(255, 255, 255, 0.8); font-weight: 600; }
.machine-msg .machine-msg-ready {
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--yellow);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.machine-msg .machine-msg-ready .btn { font-size: .85rem; }
.confetti-bit { position: fixed; z-index: 3200; pointer-events: none; border-radius: 3px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-soft); position: relative; overflow: hidden; }
.testi-doodles .td {
  position: absolute; font-size: 2rem; opacity: .14; pointer-events: none;
  animation: doodleSpin 11s linear infinite;
}
.td1 { top: 14%; left: 6%; color: var(--purple); }
.td2 { top: 72%; left: 9%; color: var(--coral); font-size: 2.6rem; animation-duration: 14s; }
.td3 { top: 18%; right: 8%; color: var(--blue); }
.td4 { top: 66%; right: 6%; color: var(--mint); font-size: 3rem; animation-duration: 16s; }
.td5 { top: 40%; right: 20%; color: var(--yellow); font-size: 1.7rem; animation-duration: 9s; }

.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.testi-card {
  margin: 0; background: #fff; border-radius: var(--radius-lg);
  padding: 28px 28px 26px; box-shadow: var(--shadow-soft); position: relative;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease;
}
.testi-card[data-reveal] { transform: translateY(52px) scale(.92) rotate(-2deg); }
.testi-card:nth-child(2)[data-reveal] { transform: translateY(52px) scale(.92) rotate(2deg); }
.testi-card[data-reveal].is-revealed {
  transform: none;
  transition: opacity .6s ease, transform .85s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease;
}
.testi-card.is-revealed:hover, .testi-card.is-revealed:focus-visible {
  transform: translateY(-10px) rotate(.6deg); box-shadow: var(--shadow-pop);
}
.testi-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--borderAngle, 0deg), var(--purple), var(--blue), var(--mint), var(--yellow), var(--coral), var(--purple));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s ease;
  animation: borderSpin 5s linear infinite paused;
  pointer-events: none;
}
.testi-card:hover::before, .testi-card:focus-visible::before { opacity: 1; animation-play-state: running; }

.testi-head { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.testi-avatar {
  width: 62px; height: 62px; flex: none; border-radius: 50%; padding: 3px;
  animation: botFloat 5s ease-in-out infinite;
}
.testi-card:nth-child(2) .testi-avatar { animation-delay: .6s; }
.testi-card:nth-child(3) .testi-avatar { animation-delay: 1.2s; }
.ring-mint { background: linear-gradient(135deg, var(--mint), var(--blue)); }
.ring-purple { background: linear-gradient(135deg, var(--purple), var(--pink)); }
.ring-coral { background: linear-gradient(135deg, var(--coral), var(--yellow)); }
.testi-avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; background: var(--bg-soft);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
}
.testi-card:hover .testi-avatar img { transform: rotate(-8deg) scale(1.1); }
.testi-id { display: flex; flex-direction: column; min-width: 0; }
.testi-name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.testi-role {
  font-style: normal; font-weight: 800; font-size: .76rem; color: var(--purple);
  letter-spacing: .06em; text-transform: uppercase; margin-top: 2px;
}
.testi-mark {
  margin-left: auto; align-self: flex-start;
  font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: .7;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; opacity: .85;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.testi-card:hover .testi-mark { transform: rotate(-12deg) scale(1.18); }
.testi-card blockquote {
  margin: 0 0 18px; font-family: var(--font-display); font-weight: 600;
  font-size: 1.16rem; color: var(--ink); line-height: 1.45;
}
.testi-stars { display: flex; gap: 4px; }
.testi-stars i {
  font-style: normal; color: #FFB800; font-size: 1.1rem; line-height: 1;
  text-shadow: 0 2px 10px rgba(255, 184, 0, 0.45);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.testi-card.is-revealed .testi-stars i { animation: starIn .5s cubic-bezier(.34,1.56,.64,1) backwards; }
.testi-card.is-revealed .testi-stars i:nth-child(1) { animation-delay: .35s; }
.testi-card.is-revealed .testi-stars i:nth-child(2) { animation-delay: .43s; }
.testi-card.is-revealed .testi-stars i:nth-child(3) { animation-delay: .51s; }
.testi-card.is-revealed .testi-stars i:nth-child(4) { animation-delay: .59s; }
.testi-card.is-revealed .testi-stars i:nth-child(5) { animation-delay: .67s; }
.testi-card:hover .testi-stars i { transform: scale(1.3) rotate(12deg); }
.testi-card:hover .testi-stars i:nth-child(2) { transition-delay: .04s; }
.testi-card:hover .testi-stars i:nth-child(3) { transition-delay: .08s; }
.testi-card:hover .testi-stars i:nth-child(4) { transition-delay: .12s; }
.testi-card:hover .testi-stars i:nth-child(5) { transition-delay: .16s; }
@keyframes starIn {
  from { opacity: 0; transform: scale(0) rotate(-120deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

/* ---------- Final CTA ---------- */
.cta { background: var(--bg); padding-bottom: clamp(60px, 8vw, 100px); }
.cta-panel {
  position: relative; border-radius: 36px; overflow: hidden;
  min-height: 520px; display: grid; place-items: center;
  box-shadow: var(--shadow-pop);
}
.cta-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(23, 16, 64, 0.45), rgba(23, 16, 64, 0.68));
}
.cta-content { position: relative; z-index: 3; text-align: center; padding: 70px 28px; max-width: 760px; }
.cta-content h2 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.cta-content h2 em {
  font-style: normal;
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cta-content > p { color: rgba(255, 255, 255, 0.88); font-size: 1.12rem; max-width: 560px; margin: 0 auto 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-micro { margin-top: 22px; color: rgba(255, 255, 255, 0.65); font-size: .88rem; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.75); padding: clamp(60px, 8vw, 100px) 0 32px; overflow: hidden; }
.footer-giant {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 11.5vw, 9.6rem); line-height: .95; margin: 0 0 10px;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  white-space: nowrap;
}
.footer-giant span { -webkit-text-fill-color: initial; color: var(--yellow); background: none; }
.footer-tagline { font-size: 1.1rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); margin-bottom: clamp(40px, 5vw, 64px); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 56px; }
.footer-col h4 { color: #fff; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a {
  display: block; color: rgba(255, 255, 255, 0.72); text-decoration: none;
  padding: 5px 0; font-weight: 600; width: fit-content;
  transition: color .25s ease, transform .25s ease;
}
.footer-col a:hover { color: var(--yellow); transform: translateX(5px); }
.footer-mail { font-size: 1.15rem; color: var(--yellow) !important; font-weight: 800 !important; }
.footer-note { font-size: .88rem; opacity: .7; margin-top: 6px; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .88rem;
}
.footer-base p { margin: 0; }
.footer-top { color: #fff; text-decoration: none; font-weight: 800; transition: color .25s ease; }
.footer-top:hover { color: var(--yellow); }
.footer-dev {
  font-size: .8rem; color: rgba(255, 255, 255, 0.55);
  text-decoration: none; transition: color .25s ease;
}
.footer-dev b { font-weight: 800; }
.footer-dev:hover { color: var(--yellow); }

/* ---------- Floating CTA ---------- */
.floating-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 2200;
  background: linear-gradient(120deg, var(--purple-deep), var(--purple) 60%, var(--blue));
  color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  padding: 15px 24px; border-radius: 999px;
  box-shadow: 0 16px 40px -10px rgba(109, 40, 217, 0.6);
  opacity: 0; visibility: hidden; transform: translateY(24px) scale(.9);
  transition: opacity .4s ease, visibility .4s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.floating-cta.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
body.menu-open .floating-cta { opacity: 0; visibility: hidden; }
.floating-cta:hover { transform: translateY(-4px) scale(1.05); }

/* ---------- Page transition flash ---------- */
.warp-flash {
  position: fixed; z-index: 2400; pointer-events: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 217, 61, 0.55), rgba(139, 92, 246, 0.25) 60%, transparent 75%);
  transform: translate(-50%, -50%) scale(0);
  animation: warpGrow .55s ease-out forwards;
}
@keyframes warpGrow { to { transform: translate(-50%, -50%) scale(26); opacity: 0; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .bots-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .machine-layout { grid-template-columns: 1fr; }
  .machine-chips { justify-content: center; }
  .work-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .hero-badges { display: none; }
  .hero-chips {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 30px;
  }
  .hero-chips span {
    background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff; font-weight: 700; font-size: .82rem;
    padding: 8px 14px; border-radius: 999px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .media-band { aspect-ratio: 16 / 10; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .timeline-track { left: 27px; }
  .timeline-num { width: 60px; height: 60px; font-size: 1.3rem; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .container { width: calc(100% - 36px); }
  .services-grid { grid-template-columns: 1fr; }
  .bots-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .why-grid { grid-template-columns: 1fr; }
  .machine-slots { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-giant { font-size: clamp(2.4rem, 13vw, 4rem); }
  .hero { padding-bottom: 70px; }
  .hero-ctas .btn-lg { padding: 15px 26px; font-size: 1rem; }
  .cta-panel { min-height: 440px; }
  .floating-cta { right: 14px; bottom: 14px; font-size: .88rem; padding: 13px 20px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .testi-card[data-reveal] { transform: none; }
  [data-hero-item] { opacity: 1; transform: none; }
  .hero-badges .hero-badge { opacity: 1; }
  .manifesto { height: auto; }
  .manifesto-pin { position: static; height: auto; min-height: 0; padding: 100px 24px; }
  .manifesto-line { opacity: 1; position: static; transform: none; margin-bottom: 24px; }
  .manifesto-stage { display: block; min-height: 0; }
  .rotator-word:not(.is-active) { display: none; }
  .rotator-word { position: static; transform: none; opacity: 1; }
  .timeline-line { transform: scaleY(1); }
  .timeline-walker { display: none; }
  .video-shell .bg-video { display: none; }
}
