/* =========================================================
   AI CONTENT FACTORY — Bianco Ventures webinar
   v2 · fashion-grade · cinematic loader · scroll-driven
   ========================================================= */

:root {
  --ink: #0F100F;
  --surface: #000F08;
  --paper: #181C19;
  --paper-2: #14181A;

  --text: #F4FFF8;
  --text-mute: #B0B7B3;
  --text-soft: rgba(244,255,248,0.66);

  --accent: #F4FFF8;
  --accent-2: #79A8AE;
  --accent-3: #8BAAAD;

  --line: rgba(244,255,248,0.10);
  --line-soft: rgba(244,255,248,0.05);
  --line-strong: rgba(244,255,248,0.22);

  --ease: cubic-bezier(.16,1,.3,1);
  --ease-out: cubic-bezier(.2,.7,.2,1);

  --pad-x: clamp(20px, 4.4vw, 80px);
  --max: 1440px;
  --radius: 20px;
  --radius-sm: 12px;

  --font-display: "DM Sans", "Work Sans", system-ui, sans-serif;
  --font-text:    "Work Sans", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
  --font-italic:  "Fraunces", "DM Sans", serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  background: var(--ink);
  color: var(--text);
  font-size: clamp(15px, 0.95vw + 8px, 17px);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--accent); color: var(--ink); }

/* UTILS */
.mono { font-family: var(--font-mono); font-size: 0.74em; letter-spacing: 0.06em; text-transform: uppercase; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: clamp(64px, 7.2vw, 130px) 0; scroll-margin-top: 70px; position: relative; }
.section + .section { border-top: 1px solid var(--line-soft); }
em { font-family: var(--font-italic); font-style: italic; font-weight: 400; color: var(--accent); }
strong { font-weight: 600; color: var(--text); }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 60px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 24px 0 24px;
  max-width: 22ch;
}
.h2--inv { color: var(--text); }
.mb-md { margin-bottom: 56px; }

.chap {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--text-mute);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  min-width: 220px;
}
.chap__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-2);
}
.chap__label { color: var(--text-mute); }

.brand-mark {
  font-family: var(--font-mono);
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 6px;
  font-size: 0.7em;
  vertical-align: 0.18em;
  font-weight: 500;
}

/* SCROLL PROGRESS */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  width: calc(var(--scroll-progress, 0) * 100%);
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
}

/* ========== LOADER · cinematic curtain ========== */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none;
  overflow: hidden;
}
.loader__panel {
  position: absolute; left: 0; right: 0;
  background: var(--surface);
  height: 50.5%;
  transition: transform 1s var(--ease) 1.4s;
}
.loader__panel--top { top: 0; transform: translateY(0); }
.loader__panel--bot { bottom: 0; transform: translateY(0); }
.loader.is-out .loader__panel--top { transform: translateY(-101%); }
.loader.is-out .loader__panel--bot { transform: translateY(101%); }

.loader__cross {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.6s var(--ease) 1.2s, opacity 0.4s var(--ease) 1.9s;
  z-index: 5;
}
.loader.is-out .loader__cross { opacity: 0; }

.loader__center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  z-index: 4;
  padding: 0 var(--pad-x);
  transition: opacity 0.5s var(--ease) 1s;
}
.loader.is-out .loader__center { opacity: 0; }

.loader__meta {
  color: var(--accent-2);
  margin-bottom: 32px;
  opacity: 0; transform: translateY(8px);
  animation: lFadeUp 0.6s var(--ease) 0.15s forwards;
}
.loader__lines {
  display: flex; flex-direction: column;
  gap: clamp(2px, 0.4vw, 6px);
  align-items: center;
}
.loader__line {
  overflow: hidden; display: block;
  line-height: 0.96;
}
.loader__line b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 11vw, 168px);
  letter-spacing: -0.045em;
  display: inline-block;
  color: var(--accent);
  transform: translateY(110%);
  animation: lLineUp 0.85s var(--ease) forwards;
}
.loader__line:nth-child(1) b { animation-delay: 0.3s; }
.loader__line:nth-child(2) b { animation-delay: 0.45s; color: var(--accent-2); }
.loader__line:nth-child(3) b { animation-delay: 0.6s; font-style: italic; font-family: var(--font-italic); font-weight: 400; }

.loader__brand {
  margin-top: 36px;
  color: var(--text-mute);
  opacity: 0;
  animation: lFadeUp 0.6s var(--ease) 1s forwards;
}
@keyframes lLineUp {
  to { transform: translateY(0); }
}
@keyframes lFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* When loader has scrolled */
.loader.is-out .loader__cross { transform: scaleX(1); }

/* CURSOR */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none;
  z-index: 999; mix-blend-mode: difference;
  transition: opacity 0.3s;
}
.cursor {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.3s;
}
.cursor-dot {
  width: 4px; height: 4px;
  background: var(--text);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor.is-hover { width: 56px; height: 56px; }
@media (hover: none), (max-width: 900px) {
  .cursor, .cursor-dot { display: none; }
}

/* GRAIN */
.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 50;
  opacity: 0.1; mix-blend-mode: overlay;
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad-x);
  background: transparent;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(15,16,15,0.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav__brand img { height: 20px; }
.nav__date {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-mute);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav__date .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 var(--accent-2);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(121,168,174,0.5); }
  100% { box-shadow: 0 0 0 12px rgba(121,168,174,0); }
}
@media (max-width: 720px) {
  .nav__date { display: none; }
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  transition: transform 0.2s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.3s;
  position: relative; overflow: hidden;
  isolation: isolate;
}
.btn svg { width: 12px; height: 12px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--solid { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn--solid:hover { background: var(--accent-3); border-color: var(--accent-3); }

.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

.btn--lg { padding: 18px 28px; font-size: 15px; }
.btn--sm { padding: 10px 16px; font-size: 13px; }
.btn--full { width: 100%; justify-content: center; }

.btn--shine::before {
  content: ""; position: absolute;
  top: 0; left: -120%;
  width: 80%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.45), transparent);
  transition: left 0.7s var(--ease);
  z-index: 1;
}
.btn--solid.btn--shine::before { background: linear-gradient(110deg, transparent, rgba(255,255,255,0.55), transparent); }
.btn--shine:hover::before { left: 130%; }
.btn--shine > * { position: relative; z-index: 2; }

/* ============= HERO ============= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: 120px var(--pad-x) 60px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 38%;
  opacity: 0.42;
  filter: grayscale(0.05) contrast(1.05);
  transform: scale(1.05);
  animation: heroBgZoom 14s var(--ease) forwards;
}
@keyframes heroBgZoom { to { transform: scale(1); } }

.hero__grad {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, transparent 0%, var(--ink) 90%),
    linear-gradient(180deg, rgba(15,16,15,0.5) 0%, rgba(15,16,15,0.92) 70%, var(--ink) 100%);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 75%);
  opacity: 0.5;
  animation: gridShift 60s linear infinite;
}
@keyframes gridShift { to { background-position: 80px 80px; } }

.hero__orb {
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  animation: orbFloat 22s ease-in-out infinite;
  pointer-events: none;
}
.hero__orb--a { background: var(--accent); top: -180px; right: -120px; }
.hero__orb--b { background: var(--accent-2); bottom: -180px; left: -120px; animation-delay: -11s; opacity: 0.35; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(60px, -40px) scale(1.08); }
}

.hero__spot {
  position: absolute; inset: 0;
  background: radial-gradient(circle 460px at var(--mx, 50%) var(--my, 50%),
    rgba(244,255,248,0.07), transparent 60%);
  pointer-events: none;
  transition: background 0.2s;
}

.hero__bars {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  pointer-events: none;
  opacity: 0.3;
}
.hero__bars span {
  border-right: 1px solid var(--line-soft);
}
.hero__bars span:last-child { border-right: 0; }

.hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-2);
  margin-bottom: 24px;
}
.hero__pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 var(--accent-2);
  animation: pulse 2.4s ease-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 13vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
}
.hero__title em { color: var(--accent); font-style: italic; display: inline-block; }
.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}
.reveal-word.is-in {
  animation: wordReveal 0.9s var(--ease) forwards;
}
@keyframes wordReveal {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__sub {
  font-size: clamp(16px, 1.1vw + 8px, 22px);
  line-height: 1.4;
  max-width: 56ch;
  color: var(--text-soft);
  margin: 0 0 36px;
}
.hero__sub strong { color: var(--accent); }

.hero__ctas {
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center;
  margin-bottom: 56px;
}
.hero__sec {
  color: var(--text-mute);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.hero__sec:hover { color: var(--accent); border-color: var(--accent); }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 680px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__n {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
}
.stat__l { color: var(--text-mute); }
@media (max-width: 640px) {
  .hero__stats { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .stat__n { font-size: 24px; }
}

/* ============= BIG NUMBERS STRIP ============= */
.bignums {
  padding: clamp(56px, 6vw, 96px) 0;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.bignums::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle 600px at 80% 50%, rgba(121,168,174,0.08), transparent 60%);
  pointer-events: none;
}
.bignums__row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  align-items: end;
}
.bn {
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.bn:first-child { border-left: 0; padding-left: 0; }
.bn__n {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 160px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.88;
  color: var(--accent);
  display: inline-block;
}
.bn__u {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(36px, 5vw, 70px);
  color: var(--accent-2);
  line-height: 1;
  margin-left: 6px;
}
.bn__l {
  color: var(--text-mute);
  max-width: 22ch;
}
@media (max-width: 900px) {
  .bignums__row { grid-template-columns: 1fr; gap: 28px; }
  .bn { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .bn:first-child { border-top: 0; padding-top: 0; }
}

/* MARQUEE */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--ink);
}
.marquee__track {
  display: flex; gap: 32px;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  width: max-content;
}
.marquee__track > span {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.marquee__track .diamond { color: var(--accent-2); font-size: 14px; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* MANIFESTO · super compact */
.tags-row {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.tag {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s var(--ease);
  background: var(--paper);
}
.tag:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* AUDIENCE · compact */
.aud-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.audx {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  background: var(--paper);
  transition: all 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.audx::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
    rgba(121,168,174,0.12), transparent 50%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.audx:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.audx:hover::before { opacity: 1; }
.audx__n { color: var(--accent-2); display: block; margin-bottom: 14px; }
.audx h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.3vw + 8px, 24px);
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.audx p { margin: 0; color: var(--text-soft); font-size: 14.5px; }
@media (max-width: 900px) { .aud-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .aud-grid { grid-template-columns: 1fr; } }

/* ============= INLINE CTA BLOCK ============= */
.cta-block {
  padding: clamp(48px, 5.6vw, 80px) 0;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.cta-block--alt { background: var(--paper-2); }
.cta-block::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(121,168,174,0.05) 50%, transparent 100%);
  pointer-events: none;
}
.cta-block__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  position: relative;
}
.cta-block__l {
  color: var(--accent-2);
  display: block; margin-bottom: 8px;
}
.cta-block__t {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw + 8px, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.cta-block__t em { font-family: var(--font-italic); font-style: italic; color: var(--accent); }
.cta-block__small { color: var(--text-mute); font-size: 0.6em; }

/* AGENDA · compact */
.agendax { list-style: none; padding: 0; margin: 0; }
.agendax__row {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  transition: padding-left 0.3s var(--ease), background 0.3s;
}
.agendax__row:last-child { border-bottom: 1px solid var(--line); }
.agendax__row:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, rgba(121,168,174,0.04), transparent);
}
.agendax__time { color: var(--accent-2); }
.agendax__row h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1vw + 10px, 24px);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.015em;
}
@media (max-width: 640px) {
  .agendax__row { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
}

/* INSIGHTS · scramble cards */
.insx {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.inx {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 30px 26px;
  background: var(--paper);
  position: relative; overflow: hidden;
  cursor: default;
  transition: transform 0.4s var(--ease), border-color 0.3s;
  min-height: 180px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.inx::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(121,168,174,0.10), transparent 50%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.inx:hover { transform: translateY(-3px); border-color: var(--accent-2); }
.inx:hover::before { opacity: 1; }
.inx__n { color: var(--accent-2); display: block; margin-bottom: 14px; }
.inx h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.2vw + 8px, 22px);
  line-height: 1.18;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.012em;
}
@media (max-width: 900px) { .insx { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .insx { grid-template-columns: 1fr; } }

/* Assessment · mini */
.assess-mini {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.cm {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: all 0.3s var(--ease);
}
.cm:hover { background: var(--paper-2); border-color: var(--accent-2); transform: translateY(-3px); }
.cm__d { color: var(--accent-2); display: block; margin-bottom: 16px; }
.cm h3 {
  font-family: var(--font-display);
  font-size: clamp(16px, 1vw + 6px, 19px);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
@media (max-width: 900px) { .assess-mini { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .assess-mini { grid-template-columns: 1fr; } }

/* ============= DEMO H-SCROLL ============= */
.hscroll {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  padding: 32px var(--pad-x) 12px;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll:active { cursor: grabbing; }
.hscroll__inner {
  display: flex;
  gap: 24px;
  padding-right: var(--pad-x);
}
.demx {
  flex: 0 0 clamp(280px, 32vw, 480px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.demx:hover { transform: translateY(-4px); border-color: var(--accent-2); }
.demx__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.demx__img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  transition: transform 0.7s var(--ease);
}
.demx:hover .demx__img img { transform: scale(1.05); }
.demx__body { padding: 22px 24px 28px; }
.demx__n { color: var(--accent-2); display: block; margin-bottom: 10px; }
.demx h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.1vw + 8px, 22px);
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.demx__kpi {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  margin: 0;
  text-transform: uppercase;
}
.hscroll__hint {
  position: absolute;
  right: var(--pad-x); top: 0;
  color: var(--text-mute);
}

/* ============= SPEAKERS · hover reveal ============= */
.spx {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.spxc {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  aspect-ratio: 3/4;
  transition: transform 0.4s var(--ease);
}
.spxc:hover { transform: translateY(-4px); }
.spxc__photo { position: absolute; inset: 0; }
.spxc__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
  filter: grayscale(0.15);
  transition: transform 0.7s var(--ease), filter 0.5s;
}
.spxc:hover .spxc__photo img { transform: scale(1.06); filter: grayscale(0); }
.spxc::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,15,8,0.85) 78%, rgba(0,15,8,0.95) 100%);
}
.spxc__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 22px 20px;
  transition: transform 0.4s var(--ease);
}
.spxc__meta h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1vw + 8px, 22px);
  font-weight: 500;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.spxc__meta p { margin: 0; color: var(--accent-2); }
.spxc__bio {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 22px 20px;
  background: var(--paper);
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.5;
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
}
.spxc:hover .spxc__bio { transform: translateY(0); }
@media (max-width: 900px) { .spx { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .spx { grid-template-columns: 1fr; } .spxc { aspect-ratio: 4/3; } }

/* ============= CREDITS · editorial masthead ============= */
.credits {
  padding: clamp(64px, 7.2vw, 130px) 0;
  background: var(--surface);
  position: relative;
}
.credits__head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  align-items: end;
}
.credits__head .mono { color: var(--accent-2); }
.credits__head h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw + 8px, 32px);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 40ch;
}
.credits__rows {
  display: flex; flex-direction: column;
}
.credit {
  display: grid;
  grid-template-columns: 60px 220px 1fr;
  gap: 36px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease), background 0.3s;
}
.credit:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, rgba(121,168,174,0.05), transparent);
}
.credit__n { color: var(--accent-2); }
.credit__logo {
  height: 32px;
  width: auto;
  max-width: 200px;
  filter: brightness(0) invert(1);
  opacity: 0.86;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.credit:hover .credit__logo { opacity: 1; transform: scale(1.06); }
.credit__role { display: flex; flex-direction: column; gap: 4px; }
.credit__role .mono { color: var(--accent-2); }
.credit__role p {
  margin: 0;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(16px, 1vw + 6px, 19px);
  color: var(--text);
}
@media (max-width: 900px) {
  .credits__head { grid-template-columns: 1fr; gap: 16px; }
  .credit { grid-template-columns: 40px 1fr; gap: 18px; padding: 20px 0; }
  .credit__role { grid-column: 1 / -1; padding-left: 58px; }
  .credit__logo { justify-self: start; height: 26px; }
}

/* FAQ · 4 only */
.faqx { max-width: 880px; }
.fq {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  cursor: pointer;
}
.fq:last-child { border-bottom: 1px solid var(--line); }
.fq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.1vw + 8px, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.fq summary::-webkit-details-marker { display: none; }
.fq__icon {
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
  flex-shrink: 0;
}
.fq[open] .fq__icon { transform: rotate(45deg); background: var(--accent); color: var(--ink); }
.fq__a { padding-top: 14px; color: var(--text-soft); }
.fq__a p { margin: 0; max-width: 70ch; }

/* FORM */
.section--form { background: linear-gradient(180deg, var(--ink), var(--surface)); }
.formx {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.formx__side { position: sticky; top: 100px; }
.formx__bullets {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.formx__bullets li { display: flex; gap: 12px; align-items: baseline; }
.formx__bullets .mono { color: var(--accent-2); }
.counter-box {
  margin-top: 40px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(121,168,174,0.05);
}
.counter-box__row {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 12px;
}
.counter-box__n {
  font-family: var(--font-display);
  font-size: clamp(32px, 2.6vw, 44px);
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.counter-box__l { color: var(--text-mute); }
.counter-box__bar {
  height: 4px; background: var(--line);
  border-radius: 99px; overflow: hidden;
}
.counter-box__bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: var(--w, 0%);
  border-radius: inherit;
  transition: width 1.2s var(--ease);
}

.formcard {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
}
.formcard__head { margin-bottom: 6px; }
.formcard__head .mono { color: var(--accent-2); display: block; margin-bottom: 6px; }
.formcard__head h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 1.6vw + 8px, 28px);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}
.field label span[aria-hidden] { color: var(--accent-2); }
.field input, .field select {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-text);
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-2);
  background: rgba(255,255,255,0.06);
}
.field.is-invalid input, .field.is-invalid select {
  border-color: #e85a4a; background: rgba(232,90,74,0.06);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text-mute);
  cursor: pointer;
  transition: all 0.2s;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip:has(input:checked) {
  background: var(--accent); color: var(--ink); border-color: var(--accent);
}

.check {
  display: flex; gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text-soft);
  margin-top: 4px;
}
.check input { margin-top: 3px; flex-shrink: 0; accent-color: var(--accent-2); }
.check a { color: var(--accent-2); text-decoration: underline; }
.formcard__foot { text-align: center; color: var(--text-mute); margin-top: 4px; }

.success {
  position: absolute; inset: 0;
  background: var(--paper-2);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.success.is-on { opacity: 1; pointer-events: auto; }
.success__inner { text-align: center; padding: 32px; max-width: 380px; }
.success__icon {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px;
  background: var(--accent); color: var(--ink);
  border-radius: 50%; font-size: 30px;
  margin-bottom: 18px;
  transform: scale(0);
  transition: transform 0.5s var(--ease) 0.1s;
}
.success.is-on .success__icon { transform: scale(1); }
.success h4 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 500;
  margin: 0 0 12px;
}
.success #successName { color: var(--accent); font-family: var(--font-italic); font-style: italic; }
.success p { color: var(--text-soft); margin: 0; }

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

/* FOOTER */
.footer {
  background: var(--surface);
  padding-top: 64px;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--pad-x) 48px;
  flex-wrap: wrap; gap: 18px;
}
.footer__marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
  overflow: hidden;
}
.footer__marquee-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.footer__marquee-track > span {
  font-family: var(--font-display);
  font-size: clamp(50px, 7vw, 120px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244,255,248,0.16);
  line-height: 1;
}
.footer__marquee-track .diamond {
  color: var(--accent-2);
  -webkit-text-stroke: 0;
  font-size: 28px;
  align-self: center;
}
.footer__bottom {
  display: flex; justify-content: space-between;
  padding: 18px var(--pad-x);
  color: var(--text-mute);
  flex-wrap: wrap; gap: 12px;
}

/* ============= STICKY BOTTOM CTA + COUNTDOWN ============= */
.stickybar {
  position: fixed;
  bottom: 18px; left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 90;
  pointer-events: none;
  transition: transform 0.5s var(--ease);
}
.stickybar.is-on {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.stickybar__inner {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 12px 10px 22px;
  background: rgba(15,16,15,0.92);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 999px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.stickybar__left { display: flex; align-items: center; gap: 12px; }
.stickybar__pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 var(--accent-2);
  animation: pulse 2.4s ease-out infinite;
}
.stickybar__txt {
  display: flex; flex-direction: column; line-height: 1.2;
  gap: 2px;
}
.stickybar__txt > .mono:first-child { color: var(--text-mute); font-size: 10px; }
.stickybar__count {
  color: var(--accent);
  font-size: 13px;
}
@media (max-width: 540px) {
  .stickybar { bottom: 10px; right: 10px; left: 10px; transform: translateY(120px); width: auto; }
  .stickybar.is-on { transform: translateY(0); }
  .stickybar__inner { width: 100%; justify-content: space-between; }
}

/* ============= REVEALS · with scroll-driven enhancement ============= */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@supports (animation-timeline: view()) {
  /* fancy scroll-linked reveals when supported */
  .section h2,
  .section .chap {
    animation: scrollReveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  @keyframes scrollReveal {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal, .reveal-word { opacity: 1 !important; transform: none !important; }
  .loader { display: none !important; }
}

/* =========================================================
   v3 ADDENDUM · 2 luglio update — section loaders, motion
   frames, text effects, CTA reinforcement
   ========================================================= */

/* ---- LOADER · progress bar ---- */
.loader__progress {
  width: min(280px, 60vw);
  height: 1px;
  margin: 26px auto 14px;
  background: var(--line);
  overflow: hidden;
}
.loader__progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ---- CTA pulse · breathing glow on primary CTA ---- */
.btn--pulse { position: relative; }
.btn--pulse::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: inherit;
  border: 1px solid var(--accent-2);
  opacity: 0;
  animation: ctaPulse 2.6s var(--ease) infinite;
  pointer-events: none;
}
@keyframes ctaPulse {
  0%   { opacity: 0.7; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(1.12); }
  100% { opacity: 0;   transform: scale(1.12); }
}

/* ---- SPLIT CHARS · char-by-char clip reveal on h2 ---- */
[data-split] .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(4deg);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  will-change: transform;
}
[data-split].is-split-in .ch { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-split] .ch { opacity: 1 !important; transform: none !important; }
}

/* ---- SECTION WIPE · curtain veil sweep ---- */
[data-wipe] { position: relative; }
.wipe-veil {
  position: absolute; inset: 0;
  background: var(--ink);
  transform-origin: top center;
  transform: scaleY(1);
  transition: transform 1s var(--ease);
  pointer-events: none;
  z-index: 5;
}
[data-wipe].is-wiped .wipe-veil { transform: scaleY(0); transform-origin: bottom center; }

/* ---- AUDIENCE · 6 cards ---- */
.aud-grid--six { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .aud-grid--six { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .aud-grid--six { grid-template-columns: 1fr; } }

/* ---- WHY NOW section ---- */
.whynow { max-width: 760px; }
.whynow__lead {
  font-size: clamp(17px, 1.2vw + 10px, 23px);
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0 0 22px;
}
.whynow__cta {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-2);
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 12px 20px;
}

/* ---- AGENDA · body + who + progress line ---- */
.agendax { position: relative; }
.agendax__body { display: flex; flex-direction: column; gap: 5px; }
.agendax__body h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1vw + 10px, 24px);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.015em;
}
.agendax__who { color: var(--text-mute); }
.agenda-line {
  position: absolute;
  left: -22px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  transform: scaleY(0);
  transform-origin: top center;
  will-change: transform;
}
@media (max-width: 700px) {
  .agendax__row { grid-template-columns: 1fr; gap: 8px; }
  .agenda-line { display: none; }
}

/* ---- Assessment levels caption ---- */
.assess-levels {
  margin-top: 26px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}

/* ---- SPEAKERS · 5 monogram cards ---- */
.spx--five { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.spxc--mono {
  aspect-ratio: 3/4;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(121,168,174,0.12), transparent 55%),
    var(--paper);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}
.spxc--mono:hover { border-color: var(--line-strong); }
.spxc--mono::after { background: linear-gradient(180deg, transparent 45%, rgba(0,15,8,0.7) 85%); }
.spxc__mark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -62%);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(54px, 5.4vw, 86px);
  letter-spacing: -0.04em;
  color: var(--accent-2);
  opacity: 0.85;
  transition: opacity 0.4s, letter-spacing 0.5s var(--ease);
  pointer-events: none;
}
.spxc--mono:hover .spxc__mark { opacity: 0.32; letter-spacing: 0.02em; }
@media (max-width: 1100px) { .spx--five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .spx--five { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .spx--five { grid-template-columns: 1fr; } .spxc--mono { aspect-ratio: 16/10; } }

/* ---- NOT GENERIC · 3 rows ---- */
.ng-rows { display: flex; flex-direction: column; }
.ng {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 26px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.ng:last-child { border-bottom: 1px solid var(--line); }
.ng__n {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(38px, 3.4vw, 58px);
  line-height: 0.9;
  color: var(--accent-2);
}
.ng h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.2vw + 10px, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.ng p { margin: 0; color: var(--text-soft); max-width: 64ch; }
@media (max-width: 600px) { .ng { grid-template-columns: 1fr; gap: 8px; } }

/* ---- POC section ---- */
.section--poc {
  background:
    radial-gradient(90% 70% at 80% 0%, rgba(121,168,174,0.07), transparent 60%),
    var(--surface);
}
.poc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 36px;
}
.poc-col {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 28px;
}
.poc-col__label {
  display: block;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.poc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.poc-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
  line-height: 1.5;
}
.poc-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 12px; height: 1px;
  background: var(--accent-2);
}
.poc-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.poc-cta__note { color: var(--text-mute); }
@media (max-width: 760px) { .poc-grid { grid-template-columns: 1fr; } }

/* ---- COUNTDOWN BOX (form side) ---- */
.countdown-box {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(120deg, rgba(121,168,174,0.06), transparent 70%);
}
.countdown-box__label { color: var(--text-mute); }
.countdown-box__time {
  font-size: clamp(17px, 1.4vw, 22px);
  letter-spacing: 0.08em;
  color: var(--accent-2);
}

/* ---- FOOTER credits line ---- */
.footer__credits {
  margin: 26px 0 8px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
}
[data-split] .wd { display: inline-block; white-space: nowrap; }

/* =========================================================
   v4 · WORKFLOW CANVAS — Spaces-style product section
   ========================================================= */
.section--flow {
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(121,168,174,0.06), transparent 60%),
    var(--surface);
  overflow: hidden;
}
.flow-lead {
  max-width: 70ch;
  font-size: clamp(16px, 1vw + 9px, 20px);
  line-height: 1.6;
  color: var(--text-soft);
  margin: -24px 0 48px;
}

/* canvas stage */
.canvas {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  height: clamp(520px, 56vw, 680px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.canvas__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(244,255,248,0.10) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(85% 80% at 50% 50%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(85% 80% at 50% 50%, #000 40%, transparent 100%);
  z-index: 0;
}

/* wires */
.canvas__wires {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  overflow: visible;
}
.wire {
  fill: none;
  stroke: rgba(121,168,174,0.34);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  animation: wireFlow 2.8s linear infinite;
}
.wire--b { animation-duration: 3.4s; stroke: rgba(139,170,173,0.3); }
.wire--c { animation-duration: 2.4s; }
.wire--d { animation-duration: 3s; stroke: rgba(139,170,173,0.3); }
.wire--e { animation-duration: 3.7s; }
@keyframes wireFlow { to { stroke-dashoffset: -64; } }

/* nodes */
.node {
  position: absolute;
  left: var(--nx); top: var(--ny);
  z-index: 2;
  width: clamp(190px, 21vw, 250px);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  animation: nodeFloat 7s ease-in-out infinite;
}
.node--note { animation-delay: -2.4s; }
.node--out:nth-of-type(odd) { animation-delay: -1.2s; }
@keyframes nodeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.node__head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  color: var(--text-mute);
  border-bottom: 1px solid var(--line);
  background: rgba(244,255,248,0.025);
}
.node__ic { color: var(--accent-2); font-size: 11px; }
.node__img { aspect-ratio: 4/3; }
.node__img--sm { aspect-ratio: 16/10; }
.node__img img { width: 100%; height: 100%; object-fit: cover; }
.node__foot {
  padding: 9px 14px;
  color: var(--accent-2);
  border-top: 1px solid var(--line);
}
.node__txt {
  margin: 0;
  padding: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
}

/* AI core node */
.node--core {
  width: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  animation: none;
}
.node--core__ring {
  width: clamp(74px, 7.6vw, 100px);
  height: clamp(74px, 7.6vw, 100px);
  border-radius: 50%;
  border: 1px solid var(--accent-2);
  position: relative;
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(121,168,174,0.22), transparent 75%);
  animation: corePulse 2.6s var(--ease) infinite;
}
.node--core__ring::before,
.node--core__ring::after {
  content: "";
  position: absolute; inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(121,168,174,0.35);
  animation: coreRipple 2.6s var(--ease) infinite;
}
.node--core__ring::after { animation-delay: 1.3s; }
@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 24px rgba(121,168,174,0.25); }
  50% { box-shadow: 0 0 48px rgba(121,168,174,0.5); }
}
@keyframes coreRipple {
  0% { transform: scale(0.84); opacity: 0.8; }
  100% { transform: scale(1.32); opacity: 0; }
}
.node--core__label { color: var(--text); font-size: 12px; letter-spacing: 0.14em; }
.node--core__sub { color: var(--text-mute); font-size: 10px; }

/* fake collaborative cursors */
.cur {
  position: absolute;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  pointer-events: none;
  color: var(--accent-2);
}
.cur b {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 99px;
  background: var(--accent-2);
  color: var(--ink);
  white-space: nowrap;
}
.cur--a { color: #C98FA4; animation: curA 13s ease-in-out infinite; }
.cur--a b { background: #C98FA4; }
.cur--b { animation: curB 16s ease-in-out infinite; }
.cur--c { color: #9BC4A0; animation: curC 11s ease-in-out infinite; }
.cur--c b { background: #9BC4A0; }
@keyframes curA {
  0%, 100% { left: 26%; top: 24%; }
  30%      { left: 20%; top: 58%; }
  60%      { left: 38%; top: 72%; }
  80%      { left: 33%; top: 36%; }
}
@keyframes curB {
  0%, 100% { left: 60%; top: 16%; }
  25%      { left: 70%; top: 30%; }
  55%      { left: 56%; top: 64%; }
  80%      { left: 66%; top: 44%; }
}
@keyframes curC {
  0%, 100% { left: 50%; top: 80%; }
  35%      { left: 44%; top: 30%; }
  70%      { left: 58%; top: 52%; }
}

/* footer row of section */
.flow-foot {
  margin-top: 44px;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.flow-foot .mono { color: var(--accent-2); }

/* mobile: vertical stack, no absolute canvas */
@media (max-width: 880px) {
  .canvas {
    height: auto;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    padding: 36px 20px;
  }
  .canvas__wires, .cur { display: none; }
  .node { position: static; width: min(320px, 100%); animation: none; }
  .node--core { order: 2; padding: 10px 0; }
  .node--input { order: 0; }
  .node--note { order: 1; }
  .node--out { order: 3; }
}
