/* SimplifAI · scroll scenes. Pinned stages, 3D, and their reduced-motion floor. */

.scene { position: relative; }
.scene__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; display: grid; align-items: center; }
.scene__stage > .wrap { width: 100%; }
.rm .scene { height: auto !important; }
.rm .scene__stage { position: relative; height: auto; min-height: 0; padding-block: var(--section); }

/* ------------------------------------------------------------- home hero */
.hero.scene { height: 175vh; padding: 0; overflow: visible; }
.hero .scene__stage { padding-top: var(--header-h); margin-top: calc(var(--header-h) * -1); }
.hero__copy, .hero__visual, .hero__chip { will-change: transform, opacity; }
.hero__visual { perspective: 900px; transform-style: preserve-3d; }
.hero__floor {
  position: absolute; left: -20%; right: -20%; bottom: -10%; height: 55%; pointer-events: none;
  background-image: linear-gradient(rgb(143 179 255 / 0.18) 1px, transparent 1px), linear-gradient(90deg, rgb(143 179 255 / 0.18) 1px, transparent 1px);
  background-size: 72px 72px; transform: perspective(600px) rotateX(64deg); transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
}
.hero .hero__grid { display: none; }
.rm .hero.scene .scene__stage { padding-block: clamp(3.5rem, 8vh, 6rem); margin-top: 0; }

/* ------------------------------------------------------ home: the system */
.sys.scene { height: 420vh; }
.sys .scene__stage { align-items: stretch; }
.sys__in { display: grid; grid-template-rows: auto 1fr auto; height: 100%; padding-block: calc(var(--header-h) + clamp(1rem, 4vh, 2.5rem)) clamp(1.5rem, 5vh, 3rem); gap: clamp(1rem, 3vh, 2rem); }
.sys__head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-6); flex-wrap: wrap; }
.sys__head h2 { font-size: var(--t-3xl); max-width: 16ch; }
.sys__head p { color: var(--ink-soft); max-width: 30rem; }
.sys__track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; perspective: 1400px; }
.sys__path { position: absolute; left: 16%; right: 16%; top: 50%; height: 2px; background: rgb(143 179 255 / 0.14); border-radius: 2px; z-index: 0; }
.sys__path::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--royal), var(--sky)); transform-origin: 0 50%; transform: scaleX(var(--lead, 0)); border-radius: 2px; }
.sys__dot { position: absolute; top: 50%; left: calc(16% + var(--lead, 0) * 68%); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgb(35 71 232 / 0.35), 0 0 0 14px rgb(35 71 232 / 0.12), 0 4px 18px rgb(35 71 232 / 0.9); opacity: calc(min(var(--lead, 0) * 30, 1)); }
.sys__node {
  position: relative; z-index: 1; display: grid; gap: var(--s-3); padding: clamp(1.25rem, 2.2vw, 2rem); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--navy-850), var(--navy-900)); border: 1px solid var(--line); box-shadow: var(--e3), var(--edge);
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease), background-color 300ms var(--ease); will-change: transform, opacity;
}
.sys__node .flow__icon { transition: background-color 300ms var(--ease); }
.sys__node h3 { font-size: var(--t-xl); }
.sys__node p { color: var(--ink-soft); font-size: 0.95rem; }
.sys__node .mono { font-size: 0.74rem; color: var(--ink-faint); }
.sys__node.is-lit { border-color: rgb(143 179 255 / 0.45); }
.sys__node.is-lit .flow__icon { background: var(--royal); }
.sys__node.is-lit .flow__icon svg { color: #fff; }
.sys__node.is-now { box-shadow: var(--e3), 0 30px 70px -30px rgb(35 71 232 / 0.9); background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); }
.sys__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5); align-items: center; min-height: 92px; }
.sys__status { list-style: none; position: relative; min-height: 64px; }
.sys__status li { position: absolute; inset: 0 auto auto 0; display: flex; gap: var(--s-4); align-items: baseline; font-size: var(--t-xl); letter-spacing: -0.015em; opacity: 0; transform: translateY(12px); transition: opacity 360ms var(--ease), transform 360ms var(--ease); }
.sys__status li .mono { font-size: 0.86rem; color: var(--sky); flex: none; }
.sys__status li.is-in { opacity: 1; transform: none; }
.sys__booked { display: flex; gap: var(--s-3); align-items: center; padding: 14px 20px 14px 14px; border-radius: var(--r-md); background: var(--royal); color: #fff; box-shadow: 0 20px 50px -18px rgb(35 71 232 / 0.9); font-weight: 600; opacity: 0; transform: translateY(16px) scale(0.95); transition: opacity 360ms var(--ease), transform 360ms var(--ease); }
.sys__booked svg { width: 22px; height: 22px; }
.sys__booked small { display: block; font-weight: 400; color: var(--sky-200); font-size: 0.82rem; }
.sys__booked.is-in { opacity: 1; transform: none; }
.rm .sys__node { transform: none !important; opacity: 1 !important; }
.rm .sys__status li { position: static; opacity: 1; transform: none; margin-bottom: var(--s-2); font-size: var(--t-lg); }
.rm .sys__booked { opacity: 1; transform: none; }

/* ------------------------------------------------- websites: the build */
.build.scene { height: 360vh; }
.build__in { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: var(--header-h); }
.build__copy { display: grid; gap: var(--s-5); }
.build__copy h2 { font-size: var(--t-2xl); }
.build__steps { list-style: none; display: grid; gap: 4px; }
.build__steps li { display: flex; gap: var(--s-3); align-items: center; padding: 10px 0; color: var(--ink-faint); font-size: var(--t-lg); transition: color 300ms var(--ease); }
.build__steps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; transition: background-color 300ms var(--ease), border-color 300ms var(--ease); }
.build__steps li.is-in { color: var(--ink-soft); }
.build__steps li.is-in::before { background: var(--sky); border-color: var(--sky); }
.build__steps li.is-now { color: var(--ink); }
.build__view { position: relative; perspective: 1600px; transform-style: preserve-3d; }
.browser { position: relative; border-radius: 14px; background: #0C1739; border: 1px solid var(--line-strong); box-shadow: var(--e3), 0 60px 120px -40px rgb(35 71 232 / 0.5); transform-style: preserve-3d; will-change: transform; overflow: hidden; }
.browser__bar { display: flex; gap: 6px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgb(255 255 255 / 0.14); }
.browser__url { margin-left: 12px; flex: 1; height: 22px; border-radius: 6px; background: rgb(255 255 255 / 0.05); font: 400 0.72rem/22px var(--mono); color: var(--ink-faint); padding-left: 10px; }
.build .browser { width: 92%; container-type: inline-size; }
.build .browser__page { aspect-ratio: 16 / 10; overflow: hidden; align-content: start; font-size: 1.3cqw; padding: 2cqw 2.4cqw; gap: 1.3cqw; }
.build .browser__page .wf--hero { padding: 1.6cqw 2cqw; }
.build .browser__page .wf--hero .ph { aspect-ratio: 16 / 8.5; }
.build .browser__page .wf--map { min-height: 0; }
.build .browser__url { color: var(--ink-soft); }
.browser__page { padding: clamp(12px, 1.6vw, 20px); display: grid; gap: clamp(8px, 1vw, 12px); transform-style: preserve-3d; background: rgb(247 249 252 / var(--pg, 1)); color: #0E1A33; font-size: clamp(0.6rem, 0.42rem + 0.42vw, 0.86rem); line-height: 1.35; }
.browser__page svg, .phone svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wf { border-radius: 10px; background: #fff; border: 1px solid #E3E8F2; padding: 0.9em 1em; will-change: transform, opacity; box-shadow: 0 1px 2px rgb(14 26 51 / 0.04); }
.wf--nav { display: flex; align-items: center; gap: 1.2em; padding: 0.6em 1em; }
.wf--nav b { display: inline-flex; align-items: center; gap: 0.4em; margin-right: auto; color: #1D4ED8; font-size: 1.05em; }
.wf--nav b svg { width: 1.2em; height: 1.2em; }
.wf--nav span { display: flex; gap: 1.2em; color: #5B6170; }
.wf--nav em, .btns em, .wf--form em { font-style: normal; font-weight: 600; background: #1D4ED8; color: #fff; padding: 0.5em 1em; border-radius: 8px; white-space: nowrap; }
.wf--hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.2em; align-items: center; padding: 1.2em; background: #fff; }
.wf--hero small { display: block; font-size: 0.8em; letter-spacing: 0.06em; text-transform: uppercase; color: #5B6170; }
.wf--hero b { display: block; margin-top: 0.3em; font-size: 2.1em; line-height: 1.02; letter-spacing: -0.035em; }
.wf--hero p { margin: 0.6em 0 0; color: #5B6170; }
.btns { display: flex; gap: 1em; align-items: center; margin-top: 0.9em; }
.btns i { font-style: normal; font-weight: 600; color: #0E1A33; }
.wf--hero .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; background: linear-gradient(160deg, #DCE8FF, #F2F6FF); overflow: hidden; }
.wf--hero .ph span { position: absolute; border-radius: 50%; border: 2px solid #1D4ED8; opacity: 0.35; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.wf--hero .ph span:nth-child(1) { width: 70%; aspect-ratio: 1; }
.wf--hero .ph span:nth-child(2) { width: 44%; aspect-ratio: 1; opacity: 0.6; }
.wf--hero .ph span:nth-child(3) { width: 18%; aspect-ratio: 1; background: #1D4ED8; opacity: 0.95; }
.wf-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: inherit; }
.wf--tile { display: grid; gap: 0.2em; }
.wf--tile svg { width: 1.6em; height: 1.6em; color: #1D4ED8; background: #EAF1FF; border-radius: 0.45em; padding: 0.3em; margin-bottom: 0.3em; }
.wf--tile small { color: #5B6170; }
.wf-row2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: inherit; }
.wf--form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em 0.7em; align-content: start; }
.wf--form b { grid-column: 1 / -1; }
.wf--form label { display: grid; gap: 0.2em; font-size: 0.85em; color: #5B6170; }
.wf--form label span { display: block; padding: 0.45em 0.6em; border-radius: 6px; border: 1px solid #E3E8F2; background: #F7F9FC; color: #0E1A33; font-size: 1.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf--form .wide { grid-column: 1 / -1; }
.wf--form em { justify-self: start; grid-column: 1 / -1; margin-top: 0.2em; }
.wf--map { position: relative; display: grid; align-content: space-between; min-height: 8em; overflow: hidden; background: #EEF3FB; }
.wf--map b, .wf--map small { position: relative; z-index: 1; }
.wf--map small { color: #5B6170; }
.wf--map svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: #fff; stroke-width: 5; }
.wf--map .pin { position: absolute; left: 52%; top: 46%; width: 1.1em; height: 1.1em; border-radius: 50% 50% 50% 0; background: #1D4ED8; transform: rotate(-45deg); box-shadow: 0 0 0 0.45em rgb(29 78 216 / 0.18); }

.phone { position: absolute; right: -2%; bottom: -16%; width: 25%; aspect-ratio: 9 / 19; border-radius: 26px; background: #F7F9FC; color: #0E1A33; border: 6px solid #0A1433; box-shadow: var(--e3), 0 40px 80px -20px rgb(0 0 0 / 0.7); padding: 13% 5% 5%; display: flex; flex-direction: column; will-change: transform, opacity; transform-style: preserve-3d; container-type: inline-size; overflow: hidden; }
.pw { display: grid; gap: 3.4cqw; font-size: 4.3cqw; line-height: 1.3; }
.pw svg { width: 1.2em; height: 1.2em; }
.pw__nav { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #E3E8F2; border-radius: 3cqw; padding: 2.6cqw 3.4cqw; }
.pw__nav b { display: inline-flex; align-items: center; gap: 0.35em; color: #1D4ED8; font-size: 1.05em; }
.pw__nav i { width: 1.3em; height: 0.85em; border-top: 2px solid #0E1A33; border-bottom: 2px solid #0E1A33; position: relative; }
.pw__nav i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #0E1A33; }
.pw__card { background: #fff; border: 1px solid #E3E8F2; border-radius: 3cqw; }
.pw__hero { padding: 3.6cqw; display: grid; gap: 1.8cqw; justify-items: start; }
.pw__art { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 2.4cqw; background: linear-gradient(160deg, #DCE8FF, #F2F6FF); overflow: hidden; margin-bottom: 1cqw; }
.pw__art span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px solid #1D4ED8; opacity: 0.35; aspect-ratio: 1; }
.pw__art span:nth-child(1) { height: 90%; }
.pw__art span:nth-child(2) { height: 56%; opacity: 0.6; }
.pw__art span:nth-child(3) { height: 24%; background: #1D4ED8; opacity: 0.95; }
.pw__hero small { color: #5B6170; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.72em; }
.pw__hero b { font-size: 1.55em; line-height: 1.04; letter-spacing: -0.03em; }
.pw__hero p { margin: 0; color: #5B6170; font-size: 0.86em; }
.pw__btns { display: flex; align-items: center; gap: 0.7em; margin-top: 0.4em; }
.pw__btns em { font-style: normal; font-weight: 600; background: #1D4ED8; color: #fff; padding: 0.45em 0.8em; border-radius: 1.6cqw; white-space: nowrap; }
.pw__btns i { font-style: normal; font-weight: 600; font-size: 0.9em; white-space: nowrap; }
.pw__tile { display: flex; gap: 0.6em; align-items: center; padding: 2.6cqw 3.2cqw; }
.pw__tile svg { flex: none; color: #1D4ED8; background: #EAF1FF; border-radius: 0.4em; padding: 0.25em; width: 1.6em; height: 1.6em; }
.pw__tile span { display: grid; }
.pw__tile small { color: #5B6170; font-size: 0.85em; }
.pw__call { margin-top: auto; text-align: center; font-weight: 700; background: #1D4ED8; color: #fff; border-radius: 999px; padding: 3cqw; font-size: 4.3cqw; position: relative; z-index: 2; box-shadow: 0 -8px 16px #F7F9FC; }
.phone::before { content: ""; position: absolute; top: 0.55em; left: 50%; width: 30%; height: 0.5em; margin-left: -15%; border-radius: 999px; background: #0A1433; }
.toast { position: absolute; left: 4%; right: 4%; top: 12%; font-size: 4.2cqw; display: flex; gap: 0.6em; align-items: center; padding: 0.6em 0.7em; border-radius: 12px; background: rgb(14 26 51 / 0.94); color: #fff; box-shadow: 0 12px 28px -10px rgb(0 0 0 / 0.6); transform: translateY(-140%); opacity: 0; transition: transform 500ms var(--ease), opacity 400ms var(--ease); }
.toast b { display: block; font-size: 1.05em; }
.toast small { color: #C9D6F5; }
.toast__i { width: 2.2em; height: 2.2em; border-radius: 0.6em; background: #1D4ED8; display: grid; place-items: center; flex: none; }
.toast__i svg { width: 1.2em; height: 1.2em; }
.build.is-done .toast { transform: none; opacity: 1; }
.rm .toast { transform: none; opacity: 1; }
.rm .browser, .rm .wf, .rm .phone { transform: none !important; opacity: 1 !important; }
.rm .phone { position: relative; right: auto; bottom: auto; margin: var(--s-5) 0 0 auto; width: 40%; }
.rm .build__view { padding-bottom: 0; }
.rm .build__steps li { color: var(--ink-soft); }

/* ------------------------------------------------------ crm: interface tour */
.tour.scene { height: 360vh; }
.tour__in { display: grid; grid-template-rows: auto 1fr; gap: clamp(0.75rem, 2.5vh, 1.5rem); height: 100%; padding-top: calc(var(--header-h) + clamp(0.75rem, 3vh, 2rem)); padding-bottom: clamp(1rem, 3vh, 2rem); }
.tour__head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-6); flex-wrap: wrap; }
.tour__head h2 { font-size: var(--t-2xl); max-width: 16ch; }
.tour__head p { max-width: 26rem; }
.tour__view { display: grid; grid-template-columns: minmax(0, 1fr) 240px; grid-template-rows: auto auto; align-content: center; gap: var(--s-3) var(--s-5); min-height: 0; perspective: 1600px; }
.tour__steps { list-style: none; display: grid; gap: var(--s-3); align-content: center; }
.tour__steps li { padding-left: 14px; border-left: 2px solid rgb(143 179 255 / 0.15); color: var(--ink-faint); font-size: 0.95rem; line-height: 1.4; transition: color 300ms var(--ease), border-color 300ms var(--ease); }
.tour__steps li.is-in { border-left-color: rgb(143 179 255 / 0.5); color: var(--ink-soft); }
.tour__steps li.is-now { border-left-color: var(--sky); color: var(--ink); }
.tour__cap { grid-column: 1 / -1; font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-faint); }

.app { position: relative; display: grid; grid-template-rows: auto 1fr; min-height: 0; border-radius: 14px; overflow: hidden; background: #F4F7FE; color: #0B1533; border: 1px solid rgb(255 255 255 / 0.12); box-shadow: var(--e3), 0 60px 120px -40px rgb(35 71 232 / 0.55); will-change: transform; transform-origin: 50% 40%; font-size: clamp(0.66rem, 0.5rem + 0.35vw, 0.86rem); line-height: 1.35; }
.app__bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; background: #E6ECF8; border-bottom: 1px solid #D6DFF0; }
.app__bar i { width: 9px; height: 9px; border-radius: 50%; background: #C3CEE6; }
.app__bar span { margin-left: 10px; flex: 1; height: 22px; border-radius: 6px; background: #fff; font: 400 0.72rem/22px var(--mono); color: #5F6B8A; padding-left: 10px; }
.app__body { display: grid; grid-template-columns: 13.5em minmax(0, 1fr); min-height: 0; position: relative; }
.app__side { position: relative; background: #0A1A4F; color: #C9D6F5; padding: 1.1em 0.8em; display: grid; align-content: start; gap: 0.25em; }
.app__brand { display: flex; align-items: center; gap: 0.6em; padding: 0 0.5em 1em; color: #fff; }
.app__brand b { font-weight: 700; letter-spacing: -0.01em; }
.app__logo { width: 1.8em; height: 1.8em; border-radius: 0.5em; background: #447DF7; box-shadow: inset 0 0 0 0.45em #447DF7, inset 0 0 0 0.62em #fff; }
.app__ind { position: absolute; left: 0.8em; right: 0.8em; top: 0; height: 2.6em; border-radius: 0.6em; background: #2347E8; transition: transform 380ms var(--ease), height 380ms var(--ease); z-index: 0; }
.app__item { position: relative; z-index: 1; display: flex; align-items: center; gap: 0.7em; padding: 0.7em 0.7em; border-radius: 0.6em; transition: color 300ms var(--ease); }
.app__item svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.app__item.is-on { color: #fff; }
.app__item--dim { opacity: 0.6; }
.app__badge { margin-left: auto; font-style: normal; font-size: 0.8em; font-weight: 700; background: #8FB3FF; color: #0A1A4F; border-radius: 999px; padding: 0.05em 0.55em; }
.app__main { position: relative; overflow: hidden; padding: 1.3em 1.5em; height: clamp(20em, 50vh, 27em); }
.view { position: absolute; inset: 1.3em 1.5em; display: grid; align-content: start; gap: 1em; opacity: 0; transform: translateY(14px); transition: opacity 360ms var(--ease), transform 360ms var(--ease); pointer-events: none; }
.view.is-on { opacity: 1; transform: none; }
.view__top { display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.view__top h4 { margin: 0; font-size: 1.5em; letter-spacing: -0.025em; font-weight: 600; }
.pill { font-size: 0.82em; font-weight: 600; padding: 0.35em 0.8em; border-radius: 999px; background: #E6ECF8; color: #4C5878; white-space: nowrap; }
.pill--blue { background: #DCE6FF; color: #2347E8; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8em; }
.kpis > div, .card { background: #fff; border: 1px solid #E0E7F5; border-radius: 0.9em; padding: 0.9em 1em; display: grid; gap: 0.2em; box-shadow: 0 1px 2px rgb(11 21 51 / 0.04); }
.kpis small, .card small { color: #5F6B8A; font-weight: 500; }
.kpis b { font-size: 1.7em; letter-spacing: -0.03em; font-weight: 600; }
.kpis span { font-size: 0.85em; color: #5F6B8A; }
.kpis .up { color: #0B7A47; }
.dash { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.8em; }
.bars { display: flex; align-items: end; gap: 0.5em; height: 7em; padding-top: 0.6em; }
.bars i { flex: 1; height: var(--h); border-radius: 0.35em 0.35em 0.15em 0.15em; background: #C9D7FB; }
.bars i.now { background: #2347E8; }
.today { align-content: start; }
.today p { margin: 0.35em 0 0; display: flex; align-items: center; gap: 0.6em; }
.today b { font-weight: 600; min-width: 4.6em; }
.today .dot { width: 0.55em; height: 0.55em; border-radius: 50%; background: #2347E8; flex: none; }
.table { background: #fff; border: 1px solid #E0E7F5; border-radius: 0.9em; overflow: hidden; }
.row { display: grid; grid-template-columns: 1.6fr 1fr 0.7fr 1.2fr; gap: 0.8em; align-items: center; padding: 0.85em 1em; border-top: 1px solid #EDF1F9; }
.row:first-child { border-top: 0; }
.row b { font-weight: 600; }
.src { color: #4C5878; }
.hot, .warm, .cold { justify-self: start; font-size: 0.82em; font-weight: 700; padding: 0.2em 0.6em; border-radius: 999px; }
.hot { background: #FFE3E0; color: #B42318; }
.warm { background: #FFF1D6; color: #8A5300; }
.cold { background: #E6ECF8; color: #4C5878; }
.ok { color: #0B7A47; font-weight: 500; font-size: 0.92em; }
.ok::before { content: "\2713  "; }
.row--new { background: #EEF3FF; transform: translateY(-110%); opacity: 0; transition: transform 500ms var(--ease), opacity 500ms var(--ease); }
.m1 .row--new { transform: none; opacity: 1; }
.cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6em; height: 15em; }
.cal__d { position: relative; background: #fff; border: 1px solid #E0E7F5; border-radius: 0.9em; padding: 0.6em; }
.cal__d small { color: #5F6B8A; font-weight: 600; }
.job { position: absolute; left: 0.5em; right: 0.5em; top: calc(1.8em + var(--t)); height: var(--h); min-height: 2.3em; border-radius: 0.5em; background: #DCE6FF; color: #1C3BCC; font-weight: 600; font-size: 0.86em; padding: 0.35em 0.5em; border-left: 3px solid #2347E8; overflow: hidden; }
.job--new { background: #2347E8; color: #fff; border-left-color: #8FB3FF; transform: scale(0.6); opacity: 0; transition: transform 500ms var(--ease), opacity 500ms var(--ease); }
.m2 .job--new { transform: none; opacity: 1; box-shadow: 0 10px 24px -10px rgb(35 71 232 / 0.8); }
.amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.st { position: relative; display: block; height: 1.7em; grid-column: span 2; }
.st em { position: absolute; left: 0; top: 0; font-style: normal; font-size: 0.82em; font-weight: 700; padding: 0.2em 0.65em; border-radius: 999px; transition: opacity 360ms var(--ease), transform 360ms var(--ease); white-space: nowrap; }
.st--paid { background: #DDF5E8; color: #0B7A47; }
.st--over { background: #FFE3E0; color: #B42318; }
.st--sent { background: #E6ECF8; color: #4C5878; }
.st--flip .st--paid { opacity: 0; transform: translateY(6px); }
.m3 .st--flip .st--over { opacity: 0; transform: translateY(-6px); }
.m3 .st--flip .st--paid { opacity: 1; transform: none; }
.note-line { margin: 0; color: #0B7A47; font-weight: 500; opacity: 0; transition: opacity 360ms var(--ease); }
.m3 .note-line { opacity: 1; }
.app__cursor { position: absolute; left: 0; top: 0; width: 1.6em; height: 1.6em; z-index: 6; fill: #0B1533; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.35)); transition: opacity 200ms; will-change: transform; pointer-events: none; }
.app__body .app__cursor { position: absolute; }
.rm .app { transform: none !important; }
.rm .view { position: relative; inset: auto; opacity: 1; transform: none; display: none; }
.rm .view[data-v="0"] { display: grid; }
.rm .app__cursor { display: none; }

/* ------------------------------------------------------- crm: pipeline */
.pipe.scene { height: 230vh; }
.pipe__in { display: grid; grid-template-rows: auto 1fr; gap: clamp(1rem, 3vh, 2rem); padding-top: calc(var(--header-h) + clamp(1rem, 3vh, 2rem)); height: 100%; padding-bottom: clamp(1rem, 4vh, 2.5rem); }
.pipe__head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-6); flex-wrap: wrap; }
.pipe__head h2 { font-size: var(--t-3xl); max-width: 15ch; }
.pipe__head p { color: var(--ink-soft); max-width: 28rem; }
.pipe__body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s-5); align-items: start; align-self: center; perspective: 1400px; }
.board { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--navy-900); border: 1px solid var(--line); box-shadow: var(--e3); transform-origin: 50% 0; transform-style: preserve-3d; will-change: transform; }
.board__col { display: grid; gap: 10px; align-content: start; padding: 10px; border-radius: 12px; background: rgb(255 255 255 / 0.02); border: 1px solid transparent; transition: border-color 300ms var(--ease), background-color 300ms var(--ease); }
.board__col.is-now { border-color: rgb(143 179 255 / 0.35); background: rgb(35 71 232 / 0.08); }
.board__col h3 { font-size: 0.92rem; font-weight: 600; display: flex; justify-content: space-between; color: var(--ink-soft); letter-spacing: 0; }
.board__slot { height: 108px; border-radius: 10px; border: 1px dashed rgb(143 179 255 / 0.18); }
.mini { padding: 12px; border-radius: 10px; background: rgb(255 255 255 / 0.04); border: 1px solid var(--line); font-size: 0.84rem; line-height: 1.35; }
.mini b { display: block; font-weight: 500; font-size: 0.92rem; }
.mini span { color: var(--ink-faint); }
.lead-card { position: absolute; left: 0; top: 0; z-index: 3; height: 108px; padding: 12px 14px; border-radius: 10px; background: var(--royal); color: #fff; box-shadow: 0 24px 50px -16px rgb(35 71 232 / 0.95), inset 0 1px 0 rgb(255 255 255 / 0.2); will-change: transform; font-size: 0.8rem; line-height: 1.35; }
.lead-card b { display: block; font-size: 0.98rem; }
.lead-card__state { display: block; margin-top: 6px; font-family: var(--mono); font-size: 0.7rem; color: var(--sky-200); }
.board__log { list-style: none; display: grid; gap: 10px; padding: var(--s-5); border-radius: var(--r-lg); background: var(--navy-900); border: 1px solid var(--line); }
.board__log ol { list-style: none; display: grid; gap: 10px; }
.board__log h3 { font-size: var(--t-sm); font-family: var(--mono); font-weight: 400; color: var(--sky); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.board__log li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 0.9rem; opacity: 0.25; transition: opacity 300ms var(--ease); }
.board__log li::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--sky); }
.board__log li small { display: block; color: var(--ink-faint); font-family: var(--mono); font-size: 0.7rem; }
.board__log li.is-in { opacity: 1; }
.rm .board { transform: none !important; }
.rm .board__log li { opacity: 1; }

/* -------------------------------------------------------- ai teams: call */
.callscene.scene { height: 300vh; }
.callscene__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: var(--header-h); perspective: 1400px; }
.callscene__copy { display: grid; gap: var(--s-5); }
.callscene__copy h2 { font-size: var(--t-3xl); }
.callscene__copy > p { color: var(--ink-soft); font-size: var(--t-lg); line-height: 1.5; }
.call { display: flex; flex-direction: column; height: min(72vh, 36rem); border-radius: 28px; background: linear-gradient(180deg, var(--navy-850), var(--navy-900)); border: 1px solid var(--line-strong); box-shadow: var(--e3), 0 60px 120px -40px rgb(35 71 232 / 0.55); overflow: hidden; will-change: transform; max-width: 26rem; justify-self: center; width: 100%; }
.call__head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.call__head .dot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgb(35 71 232 / 0.25); }
.call__head .dot svg { width: 17px; height: 17px; color: var(--sky); }
.call__head b { display: block; font-weight: 600; font-size: 0.95rem; }
.call__head small { color: var(--ink-faint); font-family: var(--mono); font-size: 0.7rem; }
.call__state { margin-left: auto; font-family: var(--mono); font-size: 0.72rem; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.06); color: var(--ink-soft); white-space: nowrap; }
.call__state.is-on { background: var(--royal); color: #fff; }
.thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: var(--s-5); overflow: hidden; min-height: 0; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 0.92rem; line-height: 1.45; flex: none; }
.msg:not(.is-in) { display: none; }
.msg.is-in { animation: msgIn 360ms var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
.msg small { display: block; font-family: var(--mono); font-size: 0.66rem; color: var(--ink-faint); margin-bottom: 3px; }
.msg--ai { background: rgb(255 255 255 / 0.05); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg--them { align-self: flex-end; background: var(--royal); color: #fff; border-bottom-right-radius: 5px; }
.msg--them small { color: var(--sky-200); }
.msg--sys { align-self: center; max-width: none; padding: 4px 0; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); text-align: center; }
.msg--note { align-self: stretch; max-width: none; border: 1px solid rgb(143 179 255 / 0.45); background: rgb(35 71 232 / 0.12); display: flex; gap: 10px; }
.msg--note svg { width: 18px; height: 18px; color: var(--sky); flex: none; margin-top: 2px; }
.rm .call { transform: none !important; }
.rm .msg { animation: none; }

/* ---------------------------------------------------------- about: words */
.statement.scene { height: 260vh; }
.statement .scene__stage { align-items: center; }
.words { font-size: clamp(1.9rem, 1.1rem + 3.2vw, 4.2rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 500; max-width: 22ch; text-wrap: balance; padding-top: var(--header-h); }
.words span { opacity: 0.16; transition: opacity 120ms linear; }
.rm .words span { opacity: 1 !important; }

/* ---------------------------------------------------- progress-driven bits */
.steps[data-progress]::before { transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.page-hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.page-hero h1 .ln > span { display: inline-block; animation: lineUp 900ms var(--ease) both; }
.page-hero h1 .ln:nth-child(2) > span { animation-delay: 90ms; }
.page-hero h1 .ln:nth-child(3) > span { animation-delay: 180ms; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.page-hero .hero__glow { transform: translateY(calc(var(--p, 0) * 120px)); }
.page-hero > .wrap > p, .page-hero .btn-row { animation: fadeUp 800ms 200ms var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.page-hero__grid { position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: 0 calc(var(--p, 0) * -80px);
  mask-image: radial-gradient(70% 90% at 85% 10%, #000 5%, transparent 65%); -webkit-mask-image: radial-gradient(70% 90% at 85% 10%, #000 5%, transparent 65%); }
.plan, .flow__item, .feature, .industry { transform-style: preserve-3d; }
@media (prefers-reduced-motion: reduce) {
  .page-hero h1 .ln > span, .page-hero > .wrap > p, .page-hero .btn-row { animation: none; }
  .steps[data-progress]::before { transform: none; }
}

/* ------------------------------------------------------------- mobile */
@media (max-width: 860px) {
  .hero.scene { height: 150vh; }
  .sys.scene { height: 380vh; }
  .sys__track { grid-template-columns: 1fr; gap: 14px; }
  .sys__path { left: 50%; right: auto; top: 6%; bottom: 6%; width: 2px; height: auto; }
  .sys__path::before { transform-origin: 50% 0; transform: scaleY(var(--lead, 0)); }
  .sys__dot { left: 50%; top: calc(6% + var(--lead, 0) * 88%); }
  .sys__node { padding: 14px 16px; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; }
  .sys__node .flow__icon { width: 44px; height: 44px; grid-row: span 3; }
  .sys__node h3 { font-size: 1.15rem; }
  .sys__node p { font-size: 0.86rem; }
  .sys__node .mono { display: none; }
  .sys__head p { display: none; }
  .sys__foot { grid-template-columns: 1fr; min-height: 120px; gap: 10px; }
  .sys__status li { font-size: 1.05rem; flex-direction: column; gap: 2px; }
  .sys__booked { justify-self: start; padding: 10px 14px 10px 10px; }
  .build.scene { height: 300vh; }
  .build__in { grid-template-columns: 1fr; gap: var(--s-5); align-content: center; }
  .build__steps { grid-auto-flow: column; overflow: hidden; gap: 14px; }
  .build__steps li { font-size: 0.82rem; padding: 0; white-space: nowrap; }
  .build__steps li:not(.is-now) { display: none; }
  .build__copy p { display: none; }
  .build .browser { width: 92%; }
  .build__view { padding-bottom: 22%; }
  .phone { width: 34%; right: 0; bottom: 0; border-width: 4px; border-radius: 18px; }
  .rm .build__steps { grid-auto-flow: row; }
  .rm .build__steps li:not(.is-now) { display: flex; }
  .tour.scene { height: 330vh; }
  .tour__head p { display: none; }
  .tour__view { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; }
  .tour__steps { order: -1; }
  .tour__steps li { display: none; border: 0; padding: 0; font-size: 0.9rem; }
  .tour__steps li.is-now { display: block; }
  .app { font-size: 0.6rem; }
  .app__body { grid-template-columns: 3.6em minmax(0, 1fr); }
  .app__side { padding: 0.8em 0.4em; }
  .app__brand b, .app__item span, .app__badge { display: none; }
  .app__brand { padding: 0 0 0.8em 0.3em; }
  .app__ind { left: 0.4em; right: 0.4em; }
  .app__item { justify-content: center; padding: 0.7em 0; }
  .app__main { padding: 1em; }
  .view { inset: 1em; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr; }
  .today { display: none; }
  .row { grid-template-columns: 1.4fr 0.8fr 1fr; }
  .row .src { display: none; }
  .cal { height: 13em; gap: 0.3em; }
  .cal__d { padding: 0.4em 0.2em; }
  .job { left: 0.2em; right: 0.2em; font-size: 0.75em; }
  .pipe.scene { height: 210vh; }
  .pipe__head p { display: none; }
  .pipe__body { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px; }
  .board__col { padding: 6px; gap: 6px; }
  .board__col h3 { font-size: 0.66rem; }
  .board__col h3 span { display: none; }
  .mini { font-size: 0.62rem; padding: 6px; }
  .mini b { font-size: 0.66rem; }
  .mini span { display: none; }
  .board__slot, .lead-card { height: 92px; }
  .lead-card__from { display: none; }
  .lead-card { padding: 7px; font-size: 0.62rem; }
  .lead-card b { font-size: 0.68rem; }
  .lead-card__state { font-size: 0.58rem; }
  .board__log { padding: 14px; gap: 6px; }
  .board__log li { font-size: 0.82rem; }
  .board__log li:not(.is-in) { display: none; }
  .callscene.scene { height: 260vh; }
  .callscene__in { grid-template-columns: 1fr; gap: var(--s-4); align-content: start; padding-top: calc(var(--header-h) + 16px); height: 100svh; padding-bottom: 16px; }
  .callscene__copy > p, .callscene__copy .ticks { display: none; }
  .callscene__copy h2 { font-size: var(--t-2xl); }
  .call { height: 100%; min-height: 0; max-width: none; }
  .callscene__in { grid-template-rows: auto minmax(0, 1fr); }
  .callscene .scene__stage { align-items: stretch; }
  .statement.scene { height: 220vh; }
  .rm .board__log li:not(.is-in) { display: flex; }
}

/* ---------------------------------------------- home hero intro, every load */
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .ln > span { display: inline-block; animation: lineUp 1000ms 150ms var(--ease) both; }
.hero h1 .ln:nth-child(2) > span { animation-delay: 260ms; }
.hero__copy > :not(h1) { animation: fadeUp 900ms var(--ease) both; }
.hero__copy > .hero__sub { animation-delay: 420ms; }
.hero__copy > .btn-row { animation-delay: 540ms; }
.hero__copy > .hero__note { animation-delay: 660ms; }
/* chips pop in after the sphere has pulled together. "backwards" only holds the
   start frame during the delay, so the scroll script owns them afterwards. */
.hero__chip { animation: chipIn 800ms var(--ease) backwards; }
.hero__chip--a { animation-delay: 1100ms; }
.hero__chip--b { animation-delay: 1300ms; }
.hero__chip--c { animation-delay: 1500ms; }
@keyframes chipIn { from { opacity: 0; transform: translate3d(0, 18px, 120px) scale(0.85); } to { opacity: 1; transform: none; } }
.hero__visual canvas { cursor: grab; }
.hero__visual canvas:active { cursor: grabbing; }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .ln > span, .hero__copy > :not(h1), .hero__chip { animation: none; }
}

/* ------------------------------------------------ ai teams: live phone call */
.pcall { position: relative; justify-self: center; width: min(100%, 23rem); height: min(80vh, 46rem); border-radius: 46px; padding: 3.2rem 1.4rem 1.4rem; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 1.1rem;
  background: linear-gradient(180deg, #0D1A44 0%, #081130 55%, #050A1C 100%); border: 8px solid #0A0F22; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), var(--e3), 0 70px 140px -40px rgb(35 71 232 / 0.6); will-change: transform; overflow: hidden; }
.pcall__notch { position: absolute; top: 12px; left: 50%; width: 34%; height: 26px; margin-left: -17%; border-radius: 999px; background: #000; }
.pcall__top { display: grid; justify-items: center; gap: 0.35rem; text-align: center; }
.pcall__avatar { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: #447DF7; box-shadow: 0 0 0 0 rgb(68 125 247 / 0.5); animation: ring 1.6s ease-out infinite; }
.pcall__avatar svg { width: 64px; height: 64px; fill: #fff; stroke: #fff; stroke-width: 0.5; stroke-linejoin: round; }
.callscene.is-ended .pcall__avatar, .rm .pcall__avatar { animation: none; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgb(68 125 247 / 0.5); } 100% { box-shadow: 0 0 0 22px rgb(68 125 247 / 0); } }
.pcall__top b { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin-top: 0.4rem; }
.pcall__meta { color: var(--ink-soft); font-size: 0.9rem; }
.pcall__wave { display: grid; justify-items: center; gap: 0.6rem; }
.pcall__who { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); transition: color 200ms; }
.pcall__wave.is-ai .pcall__who { color: var(--sky); }
.pcall__wave.is-them .pcall__who { color: #fff; }
.bars { display: flex; align-items: center; justify-content: center; gap: 3px; height: 64px; width: 100%; }
.bars i { flex: 1; max-width: 5px; height: 100%; border-radius: 3px; background: rgb(143 179 255 / 0.35); transform: scaleY(0.08); transition: background-color 200ms; will-change: transform; }
.pcall__wave.is-ai .bars i { background: linear-gradient(180deg, #8FB3FF, #2347E8); }
.pcall__wave.is-them .bars i { background: #F1F5FF; }
.pcall__tx { position: relative; overflow: hidden; min-height: 0; mask-image: linear-gradient(to bottom, transparent 0%, #000 22%); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%); }
.tx-track { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; gap: 0.8rem; will-change: transform; }
.tx { margin: 0; display: none; font-size: 1.02rem; line-height: 1.45; }
.tx.is-on { animation: lineIn 420ms var(--ease); }
@keyframes lineIn { from { opacity: 0; } to { opacity: 1; } }
.tx.is-on { display: block; }
.tx small { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.2rem; }
.tx--ai small { color: var(--sky); }
.tx--them { text-align: right; }
.tx span { display: inline-block; text-align: left; max-width: 92%; }
.tx--them span { background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.1); padding: 0.45em 0.75em; border-radius: 14px 14px 4px 14px; }
.tx span i { font-style: normal; opacity: 0; }
.tx span i.cur::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -0.15em; background: var(--sky); animation: caret 0.9s steps(1) infinite; }
@keyframes wordIn { from { opacity: 0; } to { opacity: 1; } }
.tx--ai span { color: var(--ink); }
.tx--them span { color: #fff; }
.tx:not(.is-live) span { color: var(--ink-soft); }
@keyframes caret { 50% { opacity: 0; } }
.pcall__done { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 6.6rem; display: flex; gap: 0.8rem; align-items: center; padding: 0.9rem 1rem; border-radius: 16px; background: var(--royal); color: #fff; font-size: 0.88rem; line-height: 1.35; box-shadow: 0 18px 40px -14px rgb(35 71 232 / 0.9); transform: translateY(30px); opacity: 0; transition: transform 450ms var(--ease), opacity 350ms var(--ease); }
.pcall__done b { display: block; font-size: 1rem; }
.pcall__done svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pcall__done.is-in { transform: none; opacity: 1; }
.pcall__keys { display: flex; justify-content: space-between; padding: 0 0.4rem; }
.pcall__keys span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 0.1); }
.pcall__keys svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pcall__keys .end { background: #E5484D; }
.pcall__keys .end svg { fill: #fff; stroke: none; transform: rotate(135deg); }
.callscene.is-ended .pcall__keys .end { opacity: 0.5; }
.rm .pcall { transform: none !important; }
.rm .tx { display: block; }
.rm .tx span i { opacity: 1 !important; }
.rm .tx-track { position: static; transform: none !important; }
.rm .pcall__done { opacity: 1; transform: none; position: relative; left: auto; right: auto; bottom: auto; }
@media (max-width: 860px) {
  .pcall { width: 100%; height: 100%; border-radius: 34px; padding: 2.6rem 1rem 1rem; gap: 0.7rem; }
  .pcall__avatar, .pcall__avatar svg { width: 48px; height: 48px; border-radius: 15px; }
  .pcall__top b { font-size: 1.1rem; margin-top: 0.2rem; }
  .bars { height: 44px; }
  .tx { font-size: 0.92rem; }
  .pcall__keys span { width: 44px; height: 44px; }
  .pcall__done { bottom: 5.4rem; }
}
