/* =====================================================
   CHAOS STORY v2 (2026-10-23, test): "Storm and silence", a CSS 3D camera scene under the home hero.
   Without JS or with reduced motion only the captions show, as a plain list.
   With JS (.is-live) the stage sticks for the length of the track (6 screens of scroll); js/chaos.js moves the camera
   (the .k-world transform), the cards, the cube and the phone, and toggles .on/.past on
   [data-at]/[data-until]. World units are px at depth 0; x right, y down, z toward the viewer.
   Light (night to morning, the purple flood, the storm vignette) is driven by js as plain opacity and
   transform writes, never per-frame CSS variables or animated shadows, so it stays on the GPU.
   .is-frozen while time stands still; .is-m (phones) drops the heaviest layers.
   ===================================================== */
.chaos { position: relative; padding: 40px 0; }
.k-world-wrap, .chaos-hud, .chaos-skip, .k-subs { display: none; }
/* the flat 2.5D scene (css/story25.css loads only on screens wider than 760px): hidden unless the story is live */
.s2 { display: none; }
.chaos.is-live .s2 { display: block; position: absolute; inset: 0; overflow: hidden; contain: strict; }
.chaos-caps { max-width: 760px; margin: 0 auto; padding: 0 24px; display: grid; gap: 28px; }
.chaos-h { font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 44px); line-height: 1.06; font-weight: 800; letter-spacing: -0.5px; margin: 8px 0 12px; color: var(--t1); }
.chaos-cap p { color: var(--t2); font-size: 17px; line-height: 1.6; margin: 0; }
.chaos-proof { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chaos-proof li { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); font-size: 14px; color: var(--t2); }
.chaos-proof b { color: #fff; font-weight: 800; margin-right: 4px; }
.chaos-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- static first screen (phones, reduced motion, no JS) ----------
   The hook (H1 + "Вечір. Ви ще на роботі."), then the promise with the demo button and pain
   chips, then four short rows on what the AI does. The two storm captions are left out. */
.chaos:not(.is-live) { padding: 104px 0 8px; }
.chaos:not(.is-live) .chaos-caps { display: flex; flex-direction: column; gap: 0; max-width: 680px; padding: 0 20px; }
.chaos:not(.is-live) .chaos-cap:nth-child(2), .chaos:not(.is-live) .chaos-cap:nth-child(3) { display: none; }
.chaos:not(.is-live) .chaos-cap:nth-child(1) { order: 1; }
.chaos:not(.is-live) .chaos-cap:nth-child(1) .chaos-h { font-size: clamp(34px, 9vw, 48px); margin: 8px 0 10px; }
.chaos:not(.is-live) .chaos-final { order: 2; margin-top: 26px; padding: 22px 18px 20px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(139,92,246,0.15), rgba(139,92,246,0.03)); border: 1px solid rgba(167,139,250,0.28); }
.chaos:not(.is-live) .chaos-final .chaos-h { font-size: clamp(27px, 7.2vw, 38px); margin: 6px 0 4px; }
.chaos:not(.is-live) .chaos-final .chaos-sub { font-size: 15.5px; line-height: 1.5; margin-top: 8px; }
.chaos:not(.is-live) .chaos-final .chaos-actions { gap: 8px; margin-top: 16px; }
.chaos:not(.is-live) .chaos-final .chaos-actions .btn { flex: 1 1 100%; justify-content: center; }
.chaos:not(.is-live) .chaos-cap:nth-child(n+4):nth-child(-n+7) { order: 3; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.chaos:not(.is-live) .chaos-cap:nth-child(4) { margin-top: 26px; }
.chaos:not(.is-live) .chaos-cap:nth-child(n+4):nth-child(-n+7) .sec-kicker { margin-bottom: 2px; }
.chaos:not(.is-live) .chaos-cap:nth-child(n+4):nth-child(-n+7) .chaos-h { font-size: 21px; line-height: 1.2; margin: 2px 0 6px; letter-spacing: -0.2px; }
.chaos:not(.is-live) .chaos-cap:nth-child(n+4):nth-child(-n+7) p { font-size: 15px; line-height: 1.5; }
@media (min-width: 761px) { .chaos:not(.is-live) { padding-top: 132px; } }

/* ---------- live mode: stage ---------- */
.chaos.is-live { padding: 0; }
.chaos.is-live .chaos-track { height: 700vh; position: relative; }
.chaos.is-live .chaos-stage {
  --padx: max(24px, calc((100vw - 1240px) / 2));
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(120% 90% at 66% 55%, #2a2a2a 0%, #212121 70%);
}
.chaos.is-live .k-world-wrap { display: block; position: absolute; inset: 0; }
.k-viewport { position: absolute; inset: 0; perspective: 1000px; }
.k-world { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.k-world > *, .k-cards > .k-card { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }

/* atmosphere */
.k-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(45% 50% at var(--gx, 66%) 38%, rgba(139,92,246,0.30), rgba(139,92,246,0.06) 55%, transparent 75%); }
.k-vignette { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.75) 100%), radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(91, 26, 147, 0.08) 100%); }
.k-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.78) 26%, rgba(0,0,0,0) 50%); }
.k-beams { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.k-beam { fill: none; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0;
  transition: stroke-dashoffset .26s cubic-bezier(.3,.7,.3,1), opacity .25s ease; }
.k-beam.glow { stroke: rgba(139, 92, 246, 0.32); stroke-width: 12; }
.k-beam.core { stroke: #e4dcff; stroke-width: 2.5; }
.k-beam.on { stroke-dashoffset: 0; opacity: 1; }
.k-spark { fill: #fff; opacity: 0; transition: opacity .2s ease; }
.k-spark.on { opacity: 1; }

/* the giant outline word behind everything */
.k-word { transform: translate3d(0, -150px, -1300px); opacity: .6; }
.k-word span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; font-family: 'Inter', sans-serif; font-weight: 900;
  font-size: 540px; line-height: 1; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.15);
  transition: opacity 1.1s ease, transform 1.4s cubic-bezier(.22,1,.36,1); }
.k-word .w-order { opacity: 0; transform: translate(-50%, -50%) scale(1.25); -webkit-text-stroke: 2px rgba(167, 139, 250, 0.32); }
.chaos-stage[data-step="7"] .k-word .w-chaos { opacity: 0; transform: translate(-50%, -50%) scale(.8); }
.chaos-stage[data-step="7"] .k-word .w-order { opacity: 1; transform: translate(-50%, -50%); }

/* desk */
.k-desk { width: 2600px; height: 1600px; margin: -800px 0 0 -1300px; transform: translate3d(0, 184px, -160px) rotateX(90deg);
  background:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px) 0 0 / 80px 80px,
    radial-gradient(ellipse at 50% 55%, #15121f 0%, #07070b 60%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 55%, #000 25%, transparent 68%); mask-image: radial-gradient(ellipse at 50% 55%, #000 25%, transparent 68%); }
.k-lamp { width: 1300px; height: 800px; margin: -400px 0 0 -650px; transform: translate3d(0, 183px, -80px) rotateX(90deg); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 176, 110, 0.20), transparent 65%); transition: background 1.2s ease; }
.chaos-stage:is([data-step="3"],[data-step="4"],[data-step="5"]) .k-lamp { background: radial-gradient(ellipse, rgba(167, 139, 250, 0.18), transparent 65%); }
.chaos-stage:is([data-step="6"],[data-step="7"]) .k-lamp { background: radial-gradient(ellipse, rgba(255, 196, 150, 0.17), transparent 65%); }

/* laptop: hinge at the origin of its wrapper */
.k-laptop { transform: translate3d(-300px, 182px, -110px) rotateY(18deg); }
.kl-screen { position: absolute; width: 480px; height: 304px; left: -240px; top: -304px; transform-origin: 50% 100%; transform: rotateX(7deg);
  border-radius: 16px 16px 6px 6px; background: #0a0912; border: 10px solid #24212d; overflow: hidden;
  box-shadow: 0 0 60px rgba(120, 140, 255, 0.18), inset 0 0 40px rgba(110, 120, 255, 0.10); }
.kl-base { position: absolute; width: 520px; height: 330px; left: -260px; top: 0; transform-origin: 50% 0; transform: rotateX(90deg); border-radius: 4px 4px 22px 22px;
  background: linear-gradient(#2e2a39, #1a1822); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); }
.kl-base::before { content: ''; position: absolute; left: 40px; right: 40px; top: 30px; height: 150px; border-radius: 8px;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,0.35) 0 30px, transparent 30px 36px), repeating-linear-gradient(rgba(0,0,0,0.35) 0 26px, transparent 26px 32px); opacity: .7; }
.kl-base::after { content: ''; position: absolute; left: 50%; width: 150px; margin-left: -75px; top: 205px; height: 90px; border-radius: 10px; background: rgba(0,0,0,0.25); }
.kl-bar { display: flex; gap: 6px; padding: 10px 12px; }
.kl-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.kl-storm, .kl-calm { position: absolute; inset: 30px 14px 14px; }
.kl-count { position: absolute; left: 6px; top: 8px; display: grid; }
.kl-count b { font-family: 'Inter', sans-serif; font-size: 76px; line-height: 1; font-weight: 900; color: #fff; text-shadow: none; }
.kl-count span { font-size: 15px; color: var(--t2); }
.kl-toasts { position: absolute; right: 0; top: 0; width: 240px; height: 100%; }
.kl-toast { position: absolute; right: 0; left: 0; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--t1);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-left: 3px solid #8048A8;
  animation: klToast 3.2s cubic-bezier(.22,1,.36,1) infinite; opacity: 0; }
.kl-toast:nth-child(1) { top: 0; }
.kl-toast:nth-child(2) { top: 52px; animation-delay: .8s; }
.kl-toast:nth-child(3) { top: 104px; animation-delay: 1.6s; }
.kl-toast:nth-child(4) { top: 156px; animation-delay: 2.4s; }
@keyframes klToast { 0% { opacity: 0; transform: translateX(60px); } 12%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }
.kl-storm:not(.on) .kl-toast { animation-play-state: paused; }
.kl-calm { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.kl-calm .k-ic { width: 64px; height: 64px; border-radius: 50%; color: #6ee7a8; background: rgba(110, 231, 168, 0.12); }
.kl-calm b { font-size: 26px; color: #fff; }
.kl-calm span { font-size: 15px; color: var(--t2); }

/* colleague */
.k-colleague { transform: translate3d(-760px, -110px, -560px) rotateY(20deg); }
.kq-ava { position: absolute; left: -50px; top: -50px; width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center;
  font: 800 40px/1 'Inter', sans-serif; color: #fff; background: linear-gradient(135deg, #6d5bd0, #b04ad6); box-shadow: 0 0 50px rgba(176, 74, 214, 0.45); }
.kq-dots { position: absolute; left: 40px; top: -96px; display: flex; gap: 6px; padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: #1d1a2c; border: 1px solid rgba(255,255,255,0.12); }
.kq-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--t2); animation: kqDot 1s ease-in-out infinite; }
.kq-dots i:nth-child(2) { animation-delay: .15s; } .kq-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes kqDot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-5px); opacity: 1; } }
.kq-thanks { position: absolute; left: 40px; top: -104px; white-space: nowrap; padding: 12px 16px; border-radius: 18px 18px 18px 4px; font-size: 17px; font-weight: 600; color: #fff;
  background: rgba(46, 160, 100, 0.22); border: 1px solid rgba(70, 200, 130, 0.5); }

/* phone (transform from js) */
.kp-frame { position: absolute; width: 252px; height: 504px; left: -126px; top: -252px; border-radius: 40px; background: #06060a; border: 9px solid #24222d; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05), 0 0 50px rgba(139, 92, 246, 0.12); }
.chaos-stage:is([data-step="3"],[data-step="4"]) .kp-frame { box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08), 0 0 90px rgba(139, 92, 246, 0.38); }
.kp-notch { position: absolute; left: 50%; top: 10px; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #000; z-index: 2; }
.kp { position: absolute; inset: 0; padding: 46px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.kp-clock { font-family: 'Inter', sans-serif; font-weight: 300; font-size: 54px; line-height: 1; color: #fff; text-align: center; margin-top: 6px; }
.kp-incoming { display: grid; justify-items: center; gap: 4px; padding: 16px 10px; border-radius: 20px; background: rgba(255,255,255,0.07); text-align: center; }
.kp-incoming b { font-size: 17px; color: #fff; }
.kp-incoming > span:last-child { font-size: 14px; color: var(--t2); }
.kp-ring { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; color: #fff; margin-bottom: 6px; }
.kp-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(34, 197, 94, 0.55); animation: kpRing 1s ease-out infinite; }
.kp-ring .k-ic { background: none; width: 30px; height: 30px; }
@keyframes kpRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.55); opacity: 0; } }
.kp-badges { display: grid; gap: 8px; }
.kp-badges span { padding: 10px 12px; border-radius: 14px; font-size: 14px; font-weight: 600; color: #fff; background: rgba(91, 26, 147, 0.45); border: 1px solid rgba(91, 26, 147, 0.32); }
.kp-tag { align-self: flex-start; font-size: 12.5px; font-weight: 800; letter-spacing: .03em; color: #fff; padding: 5px 11px; border-radius: 999px;
  background: linear-gradient(90deg, #581890, #682898); box-shadow: none; }
.kp-call { align-items: center; text-align: center; }
.kp-call .kp-tag { align-self: center; margin-top: 10px; }
.kp-num { font-size: 20px; color: #fff; margin-top: 14px; }
.kp-timer { font-size: 15px; color: var(--t2); }
.kp-wave { display: flex; gap: 5px; align-items: center; height: 70px; margin: 18px 0; }
.kp-wave i { width: 7px; height: 100%; border-radius: 4px; background: linear-gradient(#c4b5fd, #8b5cf6); transform: scaleY(.3); animation: kpWave .9s ease-in-out infinite; }
.kp-wave i:nth-child(2n) { animation-delay: .15s; } .kp-wave i:nth-child(3n) { animation-delay: .3s; } .kp-wave i:nth-child(5n) { animation-delay: .45s; }
@keyframes kpWave { 0%, 100% { transform: scaleY(.22); } 50% { transform: scaleY(1); } }
.kp-booked { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; font-size: 16px; font-weight: 700; color: #fff;
  background: rgba(46, 160, 100, 0.22); border: 1px solid rgba(70, 200, 130, 0.55); }
.kp-booked .k-ic { width: 24px; height: 24px; background: none; color: #6ee7a8; }
.kp-chat-h { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.kp-chat-h b { font-size: 15px; color: #fff; }
.kp-chat-h .kp-tag { margin-left: auto; font-size: 11px; padding: 4px 9px; }
.kp-chat { gap: 8px; }
.kp-ava { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.kp-msg { margin: 0; font-size: 14px; line-height: 1.33; padding: 8px 11px; border-radius: 16px; max-width: 88%; }
.kp-msg.them { align-self: flex-start; background: rgba(255,255,255,0.09); color: var(--t1); border-bottom-left-radius: 4px; }
.kp-msg.ai { align-self: flex-end; background: linear-gradient(135deg, #7c4dff, #a855f7); color: #fff; border-bottom-right-radius: 4px; }
.kp-calm { justify-content: flex-start; }
.kp-clock.big { font-size: 64px; margin: 18px 0 14px; }
.kp-note { display: grid; gap: 3px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,0.08); }
.kp-note b { font-size: 13px; color: var(--purple-light); }
.kp-note span { font-size: 15px; color: #fff; }
.kp-ok { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; font-size: 17px; font-weight: 700; color: #6ee7a8; }
.kp-ok .k-ic { width: 26px; height: 26px; background: none; }

/* task cards */
.k-card { will-change: transform; }
.k-in { position: absolute; width: var(--cw, 236px); height: var(--ch, 88px); left: calc(var(--cw, 236px) / -2); top: calc(var(--ch, 88px) / -2);
  transform-style: preserve-3d; transition: transform .6s cubic-bezier(.34, 1.45, .5, 1) .12s; }
.k-card.hit .k-in { transform: rotateY(180deg); }
.k-face { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; padding: 0 16px 0 14px; border-radius: 18px; opacity: var(--o, 1);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: linear-gradient(160deg, rgba(34, 31, 46, 0.97), rgba(16, 15, 23, 0.97)); border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 20px 40px rgba(0,0,0,0.55); }
.k-face > div { min-width: 0; }
.k-front { border-color: rgba(128, 72, 168, 0.4); }
.k-front::after { content: ''; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: #8048A8; box-shadow: 0 0 8px rgba(128, 72, 168, 0.8); }
.k-back { transform: rotateY(180deg); background: linear-gradient(160deg, rgba(20, 44, 34, 0.98), rgba(12, 22, 18, 0.98)); border-color: rgba(80, 220, 150, 0.55);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(80, 220, 150, 0.18); }
.k-back::before { content: ''; position: absolute; inset: -2px; border-radius: 20px; border: 2px solid #6ee7a8; opacity: 0; }
.k-card.hit .k-back::before { animation: kRing .8s .5s ease-out both; }
@keyframes kRing { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.22); } }
.k-face b { display: block; font-size: var(--cf1, 15.5px); line-height: 1.2; color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-face span { display: block; font-size: var(--cf2, 13.5px); line-height: 1.25; color: var(--t2); margin-top: 3px; }
.k-face .k-ai { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: var(--cf3, 12.5px); font-weight: 800; color: #fff;
  background: linear-gradient(90deg, #581890, #682898); box-shadow: none; white-space: nowrap; }
.k-ic { position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.08); color: #fff; }
.k-ic::before { content: ''; position: absolute; inset: 22%; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.k-ic[data-i="call"] { color: #fff; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 01-2.2 2 19.8 19.8 0 01-8.6-3.1 19.5 19.5 0 01-6-6A19.8 19.8 0 012.1 4.2 2 2 0 014.1 2h3a2 2 0 012 1.7c.1.9.4 1.8.7 2.7a2 2 0 01-.5 2.1L8 9.8a16 16 0 006 6l1.3-1.3a2 2 0 012.1-.4c.9.3 1.8.6 2.7.7a2 2 0 011.7 2z'/%3E%3C/svg%3E"); }
.k-ic[data-i="msg"] { color: #7dd3fc; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 01-11.6 7.1L4 20l1-4.6A8 8 0 1121 12z'/%3E%3C/svg%3E"); }
.k-ic[data-i="ig"] { color: #fff; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='.6'/%3E%3C/svg%3E"); }
.k-ic[data-i="mail"] { color: #fcd34d; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.k-ic[data-i="user"] { color: #fff; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0116 0'/%3E%3C/svg%3E"); }
.k-ic[data-i="bell"] { color: #fff; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 10-12 0c0 7-3 8-3 8h18s-3-1-3-8'/%3E%3Cpath d='M13.7 21a2 2 0 01-3.4 0'/%3E%3C/svg%3E"); }
.k-ic[data-i="ok"] { color: #6ee7a8; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.k-back .k-ic { background: rgba(110, 231, 168, 0.14); }

/* CRM board (size and transform from js) */
.k-board { display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; padding: 16px 15px 0; border-radius: 26px;
  background:
    linear-gradient(90deg, transparent calc(33.33% - 1px), rgba(255,255,255,0.06) calc(33.33% - 1px) 33.33%, transparent 33.33% calc(66.66% - 1px), rgba(255,255,255,0.06) calc(66.66% - 1px) 66.66%, transparent 66.66%),
    rgba(18, 16, 28, 0.72);
  border: 1px solid rgba(167, 139, 250, 0.28); box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 60px rgba(139, 92, 246, 0.15); }
.k-col { text-align: center; font: 800 15px/1 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--t2); padding: 10px 0; }
.k-col::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: #7dd3fc; }
.k-col:nth-child(2)::before { background: #fcd34d; }
.k-col:nth-child(3)::before { background: #6ee7a8; }

/* morning summary (transform from js) */
.k-summary { width: 340px; margin: -128px 0 0 -170px; display: grid; gap: 8px; padding: 20px 22px; border-radius: 22px; opacity: var(--o, 0);
  background: linear-gradient(160deg, rgba(36, 32, 54, 0.97), rgba(16, 15, 24, 0.97)); border: 1px solid rgba(167, 139, 250, 0.45);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 50px rgba(139, 92, 246, 0.25); }
.ks-tag { justify-self: start; font-size: 12.5px; font-weight: 800; color: #fff; padding: 4px 10px; border-radius: 999px; background: linear-gradient(90deg, #581890, #682898); }
.k-summary b { font-size: 21px; color: #fff; margin: 4px 0 2px; }
.k-summary span { font-size: 15.5px; color: var(--t2); }
.k-summary .ks-good { color: #6ee7a8; font-weight: 700; }
.k-summary .ks-tag { color: #fff; }

/* the Atlas cube (transform from js) */
.kc-body { position: absolute; width: 96px; height: 96px; left: -48px; top: -48px; transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(-30deg); transition: transform .9s cubic-bezier(.22,1,.36,1); }
.kc-f { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16px; color: #fff;
  background: linear-gradient(145deg, #9b6dff, #5b32c9); border: 1px solid rgba(255,255,255,0.3); box-shadow: inset 0 0 22px rgba(255,255,255,0.18); }
.kc-f svg { width: 44px; height: 44px; }
.kc-front { transform: translateZ(48px); }
.kc-right { transform: rotateY(90deg) translateZ(48px); }
.kc-back { transform: rotateY(180deg) translateZ(48px); }
.kc-left { transform: rotateY(-90deg) translateZ(48px); }
.kc-top { transform: rotateX(90deg) translateZ(48px); }
.kc-bottom { transform: rotateX(-90deg) translateZ(48px); }
.kc-body[data-face="phone"] { transform: rotateX(-12deg) rotateY(-90deg); }
.kc-body[data-face="ig"] { transform: rotateX(-12deg) rotateY(-180deg); }
.kc-body[data-face="crm"] { transform: rotateX(-12deg) rotateY(90deg); }
.kc-body[data-face="chart"] { transform: rotateX(-90deg) rotateY(0deg); }
.chaos-stage[data-step="2"] .kc-body { animation: kcSpin 1.6s cubic-bezier(.22,1,.36,1) both; }
@keyframes kcSpin { from { transform: rotateX(-18deg) rotateY(-570deg); } to { transform: rotateX(-18deg) rotateY(-30deg); } }
.kc-glow { position: absolute; width: 320px; height: 320px; left: -160px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.55), rgba(139, 92, 246, 0.12) 45%, transparent 68%); animation: kcPulse 2.4s ease-in-out infinite; }
@keyframes kcPulse { 0%, 100% { opacity: .6; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.08); } }
.kc-ray { position: absolute; width: 180px; height: 900px; left: -90px; top: 20px; opacity: 0; transition: opacity .8s ease;
  background: linear-gradient(rgba(196, 181, 253, 0.35), rgba(139, 92, 246, 0.08) 60%, transparent); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); }
.chaos-stage[data-step="2"] .kc-ray { opacity: 1; }

/* devices step back while the board is in front */
.kl-screen, .kl-base, .kp-frame, .kq-ava { transition: opacity .8s ease, box-shadow .8s ease; }
.chaos-stage[data-dim="on"] :is(.kl-screen, .kl-base, .kp-frame, .kq-ava) { opacity: .32; }
.chaos-stage[data-dim="soft"] :is(.kl-screen, .kl-base, .kp-frame, .kq-ava) { opacity: .7; }
.k-dust { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: rgba(196, 181, 253, 0.55); box-shadow: 0 0 10px rgba(167, 139, 250, 0.8); }

/* generic toggles */
.chaos.is-live .kp, .chaos.is-live .kl-storm, .chaos.is-live .kl-calm, .chaos.is-live .kq-dots, .chaos.is-live .kq-thanks, .chaos.is-live .kp-booked, .chaos.is-live .k-board {
  transition: opacity .45s ease, transform .5s cubic-bezier(.22,1,.36,1); }
.chaos.is-live :is(.kp, .kl-storm, .kl-calm, .kq-dots, .kq-thanks, .kp-booked, .k-board):not(.on) { opacity: 0; }
.chaos.is-live .kq-thanks:not(.on) { transform: translateY(12px) scale(.9); }
.chaos.is-live .kp-booked:not(.on) { transform: translateY(10px); }
.chaos.is-live .kp-msg { transition: opacity .4s ease, transform .5s cubic-bezier(.22,1,.36,1); }
.chaos.is-live .kp-msg:not(.on) { opacity: 0; transform: translateY(12px) scale(.96); }

/* ---------- night to morning: the window behind the desk ---------- */
.k-sky { position: absolute; inset: -8% -10%; pointer-events: none; overflow: hidden; will-change: transform; }
.ks-night, .ks-dawn, .ks-frame { position: absolute; inset: 0; }
.ks-night { background: linear-gradient(180deg, #020309 0%, #050819 38%, #0b1230 60%, #080a14 72%, #030305 100%); }
.ks-dawn { opacity: 0;
  background: linear-gradient(180deg, #0c0a1f 0%, #22183f 26%, #55305c 46%, #b5675d 60%, #eb9b68 67%, #3a2230 76%, #0a080d 100%); }
.ks-stars { position: absolute; left: 0; top: 0; width: 1px; height: 1px; border-radius: 50%; opacity: .8; }
.ks-sun { position: absolute; left: 66%; top: 68%; width: 70vw; height: 70vw; margin: -35vw 0 0 -35vw; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(255, 214, 160, 0.65) 0%, rgba(255, 160, 100, 0.26) 13%, rgba(255, 120, 90, 0.07) 32%, transparent 58%);
  transform: translateY(16%); }
.ks-city, .ks-lights { position: absolute; left: 0; bottom: 22%; width: 100%; height: 30%; }
.ks-lights { opacity: .8; }
.ks-city .b2 { fill: #0b0c1a; }
.ks-city .b { fill: #040409; }
.ks-lights rect { fill: #ffd58a; }
.ks-lights .c { fill: #a5b4fc; }
/* window mullions, a transom and the dark wall under the sill */
.ks-frame { background:
  linear-gradient(90deg, transparent calc(25% - 7px), #000 calc(25% - 7px) 25%, transparent 25% calc(50% - 7px), #000 calc(50% - 7px) 50%, transparent 50% calc(75% - 7px), #000 calc(75% - 7px) 75%, transparent 75%),
  linear-gradient(180deg, transparent 22%, #000 22% calc(22% + 8px), transparent calc(22% + 8px)),
  linear-gradient(180deg, transparent 70%, #000 79%); }
.k-warm { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 55% at 72% 28%, rgba(255, 176, 120, 0.13), transparent 70%), linear-gradient(0deg, rgba(255, 150, 100, 0.05), transparent 45%); }

/* the wall clock (hands turned by js) */
.k-clock { transform: translate3d(-660px, -560px, -760px) rotateY(16deg); }
.kk-face { position: absolute; width: 230px; height: 230px; left: -115px; top: -115px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 20, 34, 0.9), rgba(10, 10, 18, 0.9)); border: 3px solid rgba(255,255,255,0.16); box-shadow: 0 0 40px rgba(0,0,0,0.6), inset 0 0 30px rgba(0,0,0,0.6); }
.kk-face::before { content: ''; position: absolute; inset: 10px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,255,255,0.5) 0 1.3deg, transparent 1.3deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 0 80%, #000 81%); mask: radial-gradient(circle, transparent 0 80%, #000 81%); }
.kk-h, .kk-m { position: absolute; border-radius: 3px; transform-origin: 50% 100%; }
.kk-h { width: 7px; height: 58px; left: -3.5px; top: -58px; background: #ececf2; }
.kk-m { width: 4px; height: 88px; left: -2px; top: -88px; background: var(--purple-light); box-shadow: 0 0 10px rgba(196, 181, 253, 0.6); }
.kk-dot { position: absolute; width: 14px; height: 14px; left: -7px; top: -7px; border-radius: 50%; background: #fff; }

/* contact shadows and the light the screens throw on the desk */
.k-shadow, .k-spill { border-radius: 50%; }
.k-shadow-laptop { width: 700px; height: 460px; margin: -230px 0 0 -350px; transform: translate3d(-250px, 182.5px, 30px) rotateX(90deg) rotateZ(-18deg); background: radial-gradient(ellipse, rgba(0,0,0,0.7), transparent 68%); }
.k-shadow-phone { width: 340px; height: 140px; margin: -70px 0 0 -170px; transform: translate3d(330px, 182.5px, 40px) rotateX(90deg) rotateZ(14deg); background: radial-gradient(ellipse, rgba(0,0,0,0.75), transparent 70%); }
.k-spill-laptop { width: 800px; height: 520px; margin: -260px 0 0 -400px; transform: translate3d(-240px, 182px, 120px) rotateX(90deg) rotateZ(-18deg);
  background: radial-gradient(ellipse, rgba(120, 140, 255, 0.16), transparent 66%); transition: opacity 1s ease; }
.k-spill-phone { width: 460px; height: 300px; margin: -150px 0 0 -230px; transform: translate3d(320px, 182px, 170px) rotateX(90deg);
  background: radial-gradient(ellipse, rgba(170, 150, 255, 0.2), transparent 66%); transition: opacity 1s ease; }
.chaos-stage:is([data-step="1"],[data-step="2"]) .k-spill-laptop { animation: kFlicker 2.6s steps(1) infinite; }
@keyframes kFlicker { 0%, 100% { opacity: 1; } 47% { opacity: .55; } 50% { opacity: 1; } 73% { opacity: .75; } 76% { opacity: 1; } }
.chaos-stage:is([data-step="0"],[data-step="1"]) .k-spill-phone { background: radial-gradient(ellipse, rgba(60, 220, 130, 0.17), transparent 66%); animation: kGlowPulse 1s ease-in-out infinite; }
@keyframes kGlowPulse { 50% { opacity: .45; } }
.chaos-stage[data-step="7"] :is(.k-spill-laptop, .k-spill-phone) { opacity: .4; }

/* glass: a sheen that slides as the camera turns (--sheen from js) */
.kl-screen::after, .kp-frame::after { content: ''; position: absolute; top: 0; bottom: 0; left: -80%; width: 260%; z-index: 3; pointer-events: none; will-change: transform;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.075) 46%, rgba(255,255,255,0.02) 52%, transparent 60%);
  transform: translateX(calc(var(--sheen, 0) * 0.8%)); }

/* depth of field (desktop, --bl from js) */

/* time stands still: a cold flash, colour drains, every loop pauses */
.k-flash { display: none; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx, 66%) 42%, rgba(220, 226, 255, 0.24), rgba(200, 210, 255, 0.06) 50%, transparent 75%); }
.chaos-stage.is-frozen .k-flash { display: block; animation: kFlash .9s ease-out both; }
@keyframes kFlash { from { opacity: 1; } to { opacity: .3; } }
.chaos-stage.is-frozen:not(.is-m) .k-front { filter: saturate(0.15) brightness(0.78); }
.chaos-stage.is-frozen :is(.kl-toast, .kp-ring, .kq-dots i, .k-spill-laptop, .k-spill-phone, .kc-glow) { animation-play-state: paused; }

/* the shock wave when the cube lands (positioned by js) */
.k-shock { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.k-shock::before, .k-shock::after { content: ''; position: absolute; width: 140px; height: 140px; left: -70px; top: -70px; border-radius: 50%; opacity: 0;
  border: 2px solid rgba(196, 181, 253, 0.9); box-shadow: 0 0 30px rgba(167, 139, 250, 0.7), inset 0 0 30px rgba(167, 139, 250, 0.5); }
.k-shock.go::before { animation: kShock 1.2s cubic-bezier(.2,.7,.3,1) both; }
.k-shock.go::after { animation: kShock 1.4s .15s cubic-bezier(.2,.7,.3,1) both; }
@keyframes kShock { 0% { opacity: 1; transform: scale(.2); } 100% { opacity: 0; transform: scale(9); } }
.k-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* the beam and particle layers only exist while something is drawn on them */
.k-beams.idle, .k-fx.idle { display: none; }

/* the reward: cards flash as they land, each column lights up when it is full */
.k-back::after { content: ''; position: absolute; inset: -4px; border-radius: 22px; box-shadow: 0 0 44px 8px rgba(110, 231, 168, 0.55); opacity: 0; pointer-events: none; }
.k-card.landed .k-back::after { animation: kLand .9s ease-out both; }
@keyframes kLand { 30% { opacity: 1; } 100% { opacity: 0; } }
.k-lane { position: absolute; top: 8px; bottom: 8px; width: calc((100% - 30px) / 3); border-radius: 18px; opacity: 0; pointer-events: none; overflow: hidden;
  --lane: 125, 211, 252; background: linear-gradient(180deg, rgba(var(--lane), 0.2), rgba(var(--lane), 0.04) 60%, transparent); transition: opacity .7s ease; }
.k-lane:nth-of-type(1) { left: 15px; }
.k-lane:nth-of-type(2) { left: calc(15px + (100% - 30px) / 3); --lane: 252, 211, 77; }
.k-lane:nth-of-type(3) { left: calc(15px + (100% - 30px) * 2 / 3); --lane: 110, 231, 168; }
.k-lane::after { content: ''; position: absolute; left: 0; right: 0; height: 40%; top: 0; transform: translateY(-100%); background: linear-gradient(transparent, rgba(var(--lane), 0.4), transparent); }
.k-lane.on { opacity: 1; }
.k-lane.on::after { animation: kSweep 1.1s ease-out both; }
@keyframes kSweep { to { transform: translateY(275%); } }
.k-board.l0 .k-col:nth-of-type(1), .k-board.l1 .k-col:nth-of-type(2), .k-board.l2 .k-col:nth-of-type(3) { color: #fff; }
.k-board.l0 .k-col:nth-of-type(1)::before { box-shadow: 0 0 14px 3px #7dd3fc; }
.k-board.l1 .k-col:nth-of-type(2)::before { box-shadow: 0 0 14px 3px #fcd34d; }
.k-board.l2 .k-col:nth-of-type(3)::before { box-shadow: 0 0 14px 3px #6ee7a8; }
.k-board::after { content: ''; position: absolute; inset: 0; border-radius: 26px; box-shadow: 0 0 90px rgba(139, 92, 246, 0.32); opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.k-board.l0.l1.l2::after { opacity: 1; }

/* the story opens the home page: the H1 reads as the first kicker; the final caption keeps the hero's note */
.chaos .chaos-h1 { font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 1.4px; text-transform: uppercase; color: var(--purple-light); margin: 0 0 4px; text-wrap: balance; }
.chaos-note { margin: 14px 0 0; font-size: 13.5px; color: var(--t3); }
/* pain chips: each opens the request form with that topic already picked */
.chaos-pick { margin-top: 22px; }
.chaos-pick-q { display: block; font-size: 14px; font-weight: 600; color: var(--t2); margin-bottom: 10px; }
.chaos-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chaos-chip { font: 600 14px/1 'Inter', sans-serif; color: var(--t1); padding: 11px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(139, 92, 246, 0.10); border: 1px solid rgba(167, 139, 250, 0.35); transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.chaos-chip:hover { background: rgba(139, 92, 246, 0.22); border-color: rgba(196, 181, 253, 0.7); transform: translateY(-1px); }
.chaos-chip:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 2px; }
.chaos.is-live .chaos-pick { opacity: 0; transform: translateY(18px); transition: opacity .4s ease, transform .55s cubic-bezier(.16,1,.3,1); }
.chaos.is-live .chaos-cap.on .chaos-pick { opacity: 1; transform: none; transition-delay: .55s; }
.chaos.is-live .chaos-cap:not(.on) .chaos-pick { visibility: hidden; }
/* the final caption carries the most: a smaller heading so it all fits one screen */
.chaos.is-live .chaos-cap p.chaos-note { font-size: 13.5px; color: var(--t3); max-width: none; }
.chaos-final .chaos-actions .btn { padding: 14px 22px; font-size: 15px; }
.chaos.is-live .chaos-final .chaos-h { font-size: clamp(32px, 3.3vw, 50px); }
.chaos.is-live .chaos-note { opacity: 0; transition: opacity .4s ease; }
.chaos.is-live .chaos-cap.on .chaos-note { opacity: 1; transition-delay: .7s; }
.chaos.is-live .chaos-cap:not(.on) .chaos-note { visibility: hidden; }
/* before js splits the headings, every caption would show at once in the same spot (2026-10-28) */
.chaos.is-live:not(.ready) .chaos-cap:not(.on) { visibility: hidden; }
/* the 3D scene fades in once js has placed it (before that its parts would sit in the corner) */
.chaos.is-live .k-viewport { opacity: 0; transition: opacity .6s ease; }
.chaos.is-live.ready .k-viewport { opacity: 1; }
/* platform ratings that used to sit in the hero, now right under the story */
.chaos-trust { padding: 36px 0 8px; }
.chaos-trust .hero-trust { margin: 0; animation: none; }

/* ---------- HUD ---------- */
.chaos.is-live .chaos-hud { display: flex; position: absolute; z-index: 5; top: 120px; left: var(--padx); gap: 24px; align-items: center; transition: opacity .4s ease; }
.hud-meter, .hud-lost, .hud-ai { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--t3); text-transform: uppercase; letter-spacing: .08em; transition: opacity .4s ease; }
.hud-bar { width: 120px; height: 6px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(.35); background: hsl(99 72% 58%); transition: transform .4s ease, background-color .4s ease; }
.hud-val, .hud-lost b, .hud-ai b { font-family: var(--f-display); font-size: 17px; color: var(--t1); letter-spacing: 0; text-transform: none; min-width: 2.4ch; }
.hud-lost b { color: #fff; }
.hud-ai b { color: var(--t1); }
.hud-ai { opacity: 0; }
.chaos-stage:not([data-step="0"]):not([data-step="1"]) .hud-ai { opacity: 1; }
.chaos-stage:not([data-step="0"]):not([data-step="1"]) .hud-lost b { color: var(--t3); }
.chaos-stage[data-step="7"] .chaos-hud { opacity: 0; }

/* ---------- captions: words fly in from depth, then past the camera ---------- */
.chaos.is-live .chaos-caps { display: block; position: absolute; z-index: 4; left: var(--padx); top: 52%; width: min(520px, 40vw); height: 0; margin: 0; padding: 0; max-width: none; }
.chaos.is-live .chaos-cap { position: absolute; left: 0; right: 0; top: 0; transform: translateY(-50%); pointer-events: none; }
.chaos.is-live .chaos-cap.on { pointer-events: auto; }
.chaos.is-live .chaos-cap:not(.on) .chaos-actions { visibility: hidden; }
.chaos.is-live .chaos-h { font-size: clamp(36px, 4.3vw, 66px); line-height: 1.02; letter-spacing: -1.2px; margin: 10px 0 18px; perspective: 900px; }
.chaos.is-live .chaos-h .w { display: inline-block; transform-origin: 50% 100%; opacity: 0; transform: translate3d(0, .5em, -320px) rotateX(-80deg);
  transition: transform .65s cubic-bezier(.16, 1, .3, 1), opacity .4s ease; transition-delay: calc(var(--i, 0) * 40ms); }
.chaos.is-live .chaos-cap.on .chaos-h .w { opacity: 1; transform: none; }
.chaos.is-live .chaos-h.w-now .w { transition: none !important; }
.chaos-stage.no-tr *, .chaos-stage.no-tr *::before, .chaos-stage.no-tr *::after { transition: none !important; }
.chaos.is-live .chaos-cap.past .chaos-h .w { opacity: 0; transform: translate3d(0, -.3em, 380px) rotateX(40deg); transition-duration: .4s, .3s; transition-delay: calc(var(--i, 0) * 20ms); }
.chaos-h .w-ai { color: #fff; } /* 28.10: no purple letters, the owner wants text that catches the eye */
.chaos.is-live .chaos-cap .sec-kicker, .chaos.is-live .chaos-cap p, .chaos.is-live .chaos-proof, .chaos.is-live .chaos-actions {
  opacity: 0; transform: translateY(18px); transition: opacity .4s ease, transform .55s cubic-bezier(.16,1,.3,1); }
.chaos.is-live .chaos-cap p { font-size: 18px; color: #c8c8d1; max-width: 460px; }
.chaos.is-live .chaos-cap.on .sec-kicker { opacity: 1; transform: none; }
.chaos.is-live .chaos-cap.on p { opacity: 1; transform: none; transition-delay: .2s; }
.chaos.is-live .chaos-cap.on .chaos-proof { opacity: 1; transform: none; transition-delay: .35s; }
.chaos.is-live .chaos-cap.on .chaos-actions { opacity: 1; transform: none; transition-delay: .45s; }
.chaos.is-live .chaos-cap.past :is(.sec-kicker, p) { transform: translateY(-14px); transition-delay: 0s; }

/* ---------- call subtitles ---------- */
.chaos.is-live .k-subs { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: absolute; z-index: 4; left: 46%; right: 3%; bottom: 13vh; pointer-events: none; }
.k-sub { display: flex; align-items: baseline; gap: 12px; max-width: 680px; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(16px);
  transition: max-height .35s ease, opacity .25s ease, transform .4s cubic-bezier(.22,1,.36,1), margin .35s ease;
  font-size: clamp(19px, 1.75vw, 27px); line-height: 1.32; color: #fff; }
.k-sub.on { max-height: 160px; opacity: 1; transform: none; margin-top: 10px; }
.k-sub.old { opacity: .42; }
.k-sub .line { padding: 7px 14px; border-radius: 12px; background: rgba(6, 6, 10, 0.78); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.k-sub .who { flex: none; font-size: .58em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; transform: translateY(-.2em); }
.k-sub .who.them { background: rgba(255,255,255,0.16); color: #e5e5ea; }
.k-sub .who.ai { background: linear-gradient(90deg, #581890, #682898); color: #fff; box-shadow: none; }

.k-cue { display: none; }
.chaos.is-live .k-cue { display: inline-flex; position: absolute; z-index: 5; left: var(--padx); bottom: 26px; align-items: center; gap: 12px; pointer-events: none;
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--t3); transition: opacity .4s ease; }
.k-cue i { position: relative; width: 1px; height: 44px; background: rgba(255,255,255,0.12); overflow: hidden; }
.k-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 50%; background: var(--purple-light); transform: translateY(-100%); animation: kCue 1.8s ease-in-out infinite; }
@keyframes kCue { to { transform: translateY(200%); } }
.chaos-stage[data-step="7"] .k-cue { opacity: 0; }
.chaos.is-live .chaos-skip { display: block; position: absolute; right: var(--padx); bottom: 22px; font-size: 13px; color: var(--t3); text-decoration: underline; text-underline-offset: 3px; z-index: 6; }

/* ---------- phones and portrait tablets (js sets .is-m) ---------- */
.chaos-stage.is-m { --gx: 50%; }
.chaos-stage.is-m .k-scrim { background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.82) 30%, rgba(0,0,0,0) 52%); }
.chaos-stage.is-m .chaos-hud { top: 72px; left: 16px; gap: 14px; }
.chaos-stage.is-m :is(.hud-meter, .hud-lost, .hud-ai) { font-size: 10px; gap: 6px; letter-spacing: .04em; white-space: nowrap; }
.chaos-stage.is-m .hud-bar { width: 56px; }
.chaos-stage.is-m .hud-ai { display: none; }
.chaos-stage.is-m:not([data-step="0"]):not([data-step="1"]) .hud-lost { display: none; }
.chaos-stage.is-m:not([data-step="0"]):not([data-step="1"]) .hud-ai { display: flex; }
.chaos-stage.is-m .chaos-caps { left: 16px; right: 16px; width: auto; top: auto; bottom: 54px; height: auto; }
.chaos-stage.is-m .chaos-cap { top: auto; bottom: 0; transform: none; }
.chaos-stage.is-m .chaos-h { font-size: clamp(27px, 7.4vw, 42px); margin: 6px 0 10px; letter-spacing: -0.6px; }
.chaos-stage.is-m .chaos-cap p { font-size: 15.5px; line-height: 1.5; }
.chaos-stage.is-m[data-step="3"] .chaos-cap p { display: none; }
.chaos-stage.is-m .k-subs { left: 12px; right: 12px; bottom: 150px; align-items: stretch; }
.chaos-stage.is-m .k-sub { font-size: 17px; gap: 8px; }
.chaos-stage.is-m .chaos-final .chaos-actions .btn { flex: 1 1 100%; justify-content: center; }
.chaos-stage.is-m .chaos-proof li { font-size: 13px; padding: 7px 12px; }
.chaos-stage.is-m .chaos-note { font-size: 12.5px; margin-top: 10px; }
.chaos-stage.is-m .chaos-pick { margin-top: 14px; }
.chaos-stage.is-m .chaos-pick-q { font-size: 13px; margin-bottom: 8px; }
.chaos-stage.is-m .chaos-chips { gap: 6px; }
.chaos-stage.is-m .chaos-chip { font-size: 13px; padding: 9px 12px; }
.chaos-stage.is-m .chaos-final .chaos-h { font-size: clamp(25px, 6.8vw, 34px); }
.chaos-stage.is-m .chaos-final .chaos-actions { gap: 8px; margin-top: 14px; }
.chaos-stage.is-m .chaos-final .chaos-actions .btn { padding-top: 13px; padding-bottom: 13px; }
/* phones: the final keeps the demo button and the pain chips; the figures and the cases link are right below the story anyway */
.chaos-stage.is-m .chaos-final .chaos-proof, .chaos-stage.is-m .chaos-final .chaos-actions .btn-ghost { display: none; }
.chaos-stage.is-m[data-step="7"] .k-scrim { background: linear-gradient(0deg, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.86) 42%, rgba(0,0,0,0) 64%); }
.chaos-stage.is-m .chaos-h1 { font-size: 11px; }
.chaos-stage.is-m .chaos-skip { display: none; }
/* phones: the cue stands on the right edge, the captions and the quick-contact bar own the bottom */
.chaos-stage.is-m .k-cue { left: auto; right: 12px; bottom: auto; top: 46%; flex-direction: column; gap: 8px; }
.chaos-stage.is-m .k-cue span { writing-mode: vertical-rl; }
/* phones: the horizon sits just behind the desk, above the captions */
.chaos-stage.is-m :is(.ks-city, .ks-lights) { bottom: 50%; height: 20%; }
.chaos-stage.is-m .ks-sun { top: 48%; left: 60%; }
.chaos-stage.is-m .ks-frame { background:
  linear-gradient(90deg, transparent calc(33.3% - 6px), #000 calc(33.3% - 6px) 33.3%, transparent 33.3% calc(66.6% - 6px), #000 calc(66.6% - 6px) 66.6%, transparent 66.6%),
  linear-gradient(180deg, transparent 18%, #000 18% calc(18% + 6px), transparent calc(18% + 6px)),
  linear-gradient(180deg, transparent 50%, #000 58%); }

/* desktop: the light layers that fade get their own GPU layer, so a fade never repaints the sky */
.chaos-stage:not(.is-m) :is(.ks-dawn, .ks-sun, .ks-stars, .ks-lights, .k-warm, .k-glow, .k-vignette) { will-change: opacity; }

/* ---------- phones: drop the heavy layers (the storm must stay smooth on an iPhone) ---------- */
.chaos-stage.is-m :is(.k-noise, .k-dust, .k-word, .k-spill, .k-shadow, .k-warm, .k-vignette) { display: none; }
.chaos-stage.is-m .k-desk { width: 1800px; height: 1100px; margin: -550px 0 0 -900px; }
.chaos-stage.is-m .kl-screen::after, .chaos-stage.is-m .kp-frame::after { display: none; }
.chaos-stage.is-m :is(.k-face, .k-back, .k-board, .k-summary, .kl-screen, .k-sub .line) { box-shadow: none; }
.chaos-stage.is-m .k-face .k-ai, .chaos-stage.is-m .kp-tag, .chaos-stage.is-m .k-sub .who.ai { box-shadow: none; }
.chaos-stage.is-m .kp-frame, .chaos-stage.is-m:is([data-step="3"],[data-step="4"]) .kp-frame { box-shadow: 0 0 0 1px rgba(255,255,255,0.06); }
.chaos-stage.is-m .kq-ava { box-shadow: none; }
.chaos-stage.is-m .k-desk { -webkit-mask-image: none; mask-image: none;
  background: radial-gradient(ellipse at 50% 55%, rgba(24, 20, 36, 0.95) 0%, rgba(10, 9, 16, 0.7) 35%, transparent 62%); }
