/* Catch All Calls — "How it works" animation
   Layout: every scene is a 360×480 canvas, scaled to its frame by JS (--k).
   Live mode (.is-live): scenes stack and crossfade on a timeline.
   Default / reduced motion: four key scenes as a swipeable row of still frames. */

.cac-hiw {
  /* Site palette: ink, yolk, cream, sand. Red/green only as small call-state signals. */
  --cac-ink: #1A1712;
  --cac-ink-2: #2E2A22;
  --cac-yolk: #FFC629;
  --cac-yolk-soft: #FFF0C2;
  --cac-yolk-line: #F2D57A;
  --cac-cream: #FFFCF4;
  --cac-white: #FFFFFF;
  --cac-line: #EDE6D3;
  --cac-sand: #DDD3BA;
  --cac-muted: #5A5240;
  --cac-focus: #8A5A00;
  --cac-red: #C8381F;
  --cac-green: #2E9E6A;
  --cac-cell: #F6F1E4;
  --cac-bg: transparent;   /* the page shows through; set a color to give the block its own ground */
  --cac-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --cac-text: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cac-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  color: var(--cac-ink);
  font-family: var(--cac-text);
  font-size: 16px;
  line-height: 1.3;
  text-align: left;
}
.cac-hiw *, .cac-hiw *::before, .cac-hiw *::after { box-sizing: border-box; }
.cac-hiw p { margin: 0; }

.cac-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Stage & frames ---------- */
.cac-stage { position: relative; }
.cac-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 100%;
  overflow: hidden;
  border-radius: 24px;
}
.cac-canvas {
  position: absolute; left: 0; top: 0;
  width: 360px; height: 480px;
  transform-origin: 0 0;
  transform: scale(var(--k, 1));
}
.cac-frame { background: var(--cac-bg); }
.cac-hiw:not([data-live]) .cac-frame { border: 2px solid var(--cac-ink); }

.cac-abs { position: absolute; }
.cac-cap {
  position: absolute; left: 24px; right: 24px; top: 26px;
  font-family: var(--cac-display); font-weight: 800;
  font-size: 27px; line-height: 1.1; letter-spacing: -0.02em;
  text-wrap: balance;
}
.cac-svg { position: absolute; left: 0; overflow: visible; }

/* Static (default, no JS, reduced motion): swipeable still frames */
.cac-hiw:not([data-live]) .cac-stage {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.cac-hiw:not([data-live]) .cac-frame { flex: 0 0 86%; scroll-snap-align: start; }
.cac-hiw:not([data-live]) .cac-frame[data-static="false"] { display: none; }
.cac-hiw:not([data-live]) .cac-anim-only { display: none; }
.cac-hiw:not([data-live]) .cac-controls,
.cac-hiw:not([data-live]) .cac-progress { display: none; }
.cac-hiw:not([data-live]) *,
.cac-hiw:not([data-live]) *::before { animation: none !important; transition: none !important; }
.cac-static-hint { margin-top: 10px !important; font-size: 15px; color: var(--cac-muted); }
.cac-hiw[data-live] .cac-static-hint { display: none; }

/* Live: frames stacked, crossfade */
.cac-hiw[data-live] .cac-stage { aspect-ratio: 3 / 4; background: var(--cac-bg); }
.cac-hiw[data-live] .cac-frame {
  position: absolute; inset: 0; border-radius: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.cac-hiw[data-live] .cac-frame[data-active] {
  opacity: 1; visibility: visible;
  transition: opacity .45s ease, visibility 0s;
}
.cac-hiw[data-paused][data-user-paused] .cac-frame *,
.cac-hiw[data-paused] .cac-seg i { animation-play-state: paused !important; }
.cac-hiw[data-paused]:not([data-user-paused]) .cac-frame * { animation: none !important; }

/* Progress */
.cac-progress {
  position: absolute; left: 24px; right: 76px; bottom: 22px; z-index: 2;
  display: flex; gap: 5px; pointer-events: none;
}
.cac-seg { flex: 1; height: 4px; border-radius: 4px; background: rgba(26,23,18,.18); overflow: hidden; }
.cac-seg i { display: block; height: 100%; background: var(--cac-ink); transform-origin: 0 50%; transform: scaleX(0); }
.cac-seg[data-done] i { transform: scaleX(1); }
.cac-seg[data-active] i { animation: cac-fill var(--d, 4s) linear both; }

@keyframes cac-fill { to { transform: scaleX(1); } }

/* Controls */
.cac-controls { position: absolute; right: 16px; bottom: 4px; z-index: 3; }
.cac-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cac-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--cac-ink); border-radius: 999px;
  background: transparent; color: var(--cac-ink);
  font: 600 16px/1 var(--cac-text); cursor: pointer;
}
.cac-toggle:hover { background: var(--cac-ink); color: var(--cac-cream); }
.cac-toggle:focus-visible { outline: 3px solid var(--cac-focus); outline-offset: 3px; }
.cac-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.cac-toggle .cac-ico-play { display: none; }
.cac-hiw[data-user-paused] .cac-toggle .cac-ico-play { display: block; }
.cac-hiw[data-user-paused] .cac-toggle .cac-ico-pause { display: none; }

/* ---------- Shared pieces ---------- */
.cac-mark {
  display: flex; align-items: center; justify-content: center;
  background: var(--cac-ink);
}
.cac-mark span { border-radius: 50%; background: var(--cac-cream); }
.cac-mark span:last-child { background: var(--cac-yolk); }
.cac-pill {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap;
}
.cac-bubble {
  padding: 12px 15px; border-radius: 18px;
  font-size: 18px; line-height: 1.3;
}

/* ---------- Scene 1 · missed ---------- */
.cac-s1-status { left: 24px; top: 108px; background: var(--cac-ink); color: var(--cac-cream); font-size: 15px; }
.cac-s1-status svg { width: 16px; height: 16px; color: var(--cac-yolk); }
.cac-s1-phone { left: 95px; top: 148px; width: 170px; height: 302px; border-radius: 30px; }
.cac-s1-phone .cac-screen { border-radius: 23px; }
.cac-screen.cac-s1-screen { background: linear-gradient(180deg, var(--cac-ink-2), var(--cac-ink)); color: var(--cac-cream); }
.cac-s1-screen::before { background: #000; }
.cac-ring { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 30px; text-align: center; color: var(--cac-cream); }
.cac-ring-label { font-family: var(--cac-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--cac-yolk); }
.cac-ring-ava { position: relative; width: 58px; height: 58px; margin: 12px 0 10px; border-radius: 50%; background: var(--cac-yolk); display: grid; place-items: center; }
.cac-ring-ava svg { width: 36px; height: 36px; }
.cac-ring-ava i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cac-yolk); opacity: 0; }
.cac-ring-num { font-family: var(--cac-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.cac-ring-sub { font-size: 13px; opacity: .8; margin-top: 2px !important; }
.cac-ring-btns { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 44px; }
.cac-ring-btns b { width: 42px; height: 42px; border-radius: 50%; }
.cac-ring-btns .no { background: var(--cac-red); }
.cac-ring-btns .yes { background: var(--cac-green); }
.cac-missed { position: absolute; inset: 0; background: var(--cac-cream); color: var(--cac-ink); padding: 28px 8px 12px; display: flex; flex-direction: column; gap: 7px; }
.cac-missed-h { font-family: var(--cac-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; padding: 0 4px 2px; }
.cac-mrow { display: flex; align-items: center; gap: 8px; background: var(--cac-white); border-radius: 10px; border: 1px solid var(--cac-line); border-left: 4px solid var(--cac-red); padding: 7px 9px; }
.cac-mrow .ic { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #FFE1D9; position: relative; }
.cac-mrow .ic::before, .cac-mrow .ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2.4px; margin: -1.2px 0 0 -5px; border-radius: 2px; background: #C8381F; transform: rotate(45deg); }
.cac-mrow .ic::after { transform: rotate(-45deg); }
.cac-mrow p { display: flex; flex-direction: column; font-size: 13px; line-height: 1.25; white-space: nowrap; }
.cac-mrow b { font-size: 14.5px; }
.cac-mrow .ic { display: none; }
.cac-mrow b { color: var(--cac-ink); }
.cac-mrow em { font-style: normal; font-size: 12px; color: var(--cac-muted); }
.cac-missed-f { margin-top: auto !important; text-align: center; font-weight: 800; font-size: 15px; color: var(--cac-red); }
.cac-hiw[data-live] [data-active] .cac-s1-status { animation: cac-rise .35s ease .1s both; }
.cac-hiw[data-live] [data-active] .cac-s1-phone { animation: cac-jiggle .2s linear .3s 10; }
.cac-s1-phone { transform-origin: 50% 90%; }
.cac-hiw[data-live] [data-active] .cac-ring-ava i { animation: cac-wave 1s ease-out infinite; }
.cac-hiw[data-live] [data-active] .cac-ring-ava i + i { animation-delay: .5s; }
.cac-hiw[data-live] [data-active] .cac-missed { animation: cac-fade .3s ease 2.4s both; }
.cac-hiw[data-live] [data-active] .cac-mrow { animation: cac-slide .4s cubic-bezier(.3,1.3,.5,1) 2.5s both; }
.cac-hiw[data-live] [data-active] .cac-mrow + .cac-mrow { animation-delay: 2.7s; }
.cac-hiw[data-live] [data-active] .cac-mrow + .cac-mrow + .cac-mrow { animation-delay: 2.9s; }
.cac-hiw[data-live] [data-active] .cac-missed-f { animation: cac-rise .35s ease 3.1s both; }

/* ---------- Scene 2 · pickup ---------- */
.cac-s2-dot {
  left: 104px; top: 197px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--cac-yolk); box-shadow: 0 0 0 4px var(--cac-ink);
  opacity: 0;
}
.cac-s2-badge { left: 220px; top: 150px; width: 96px; height: 96px; border-radius: 28px 28px 28px 7px; gap: 9px; }
.cac-s2-badge span { width: 15px; height: 15px; }
.cac-s2-label { left: 198px; width: 140px; justify-content: center; top: 258px; background: var(--cac-ink); color: var(--cac-cream); }
.cac-s2-bubble {
  position: absolute; left: 24px; right: 24px; top: 316px;
  background: var(--cac-white); border: 1px solid var(--cac-line); font-size: 19px;
}
.cac-s2-bubble::before {
  content: ""; position: absolute; right: 64px; top: -9px;
  width: 20px; height: 20px; background: var(--cac-white); border-left: 1px solid var(--cac-line); border-top: 1px solid var(--cac-line); transform: rotate(45deg); border-radius: 3px 0 0 0;
}
.cac-hiw[data-live] [data-active] .cac-s2-phone { animation: cac-shake .3s linear 3; }
.cac-s2-phone { transform-box: fill-box; transform-origin: 50% 100%; }
.cac-hiw[data-live] [data-active] .cac-s2-path { animation: cac-fade .3s ease .2s both; }
.cac-hiw[data-live] [data-active] .cac-s2-dot { animation: cac-travel 1.15s linear .35s both; }
.cac-hiw[data-live] [data-active] .cac-s2-badge { animation: cac-pop .45s cubic-bezier(.3,1.6,.5,1) 1.1s both; }
.cac-hiw[data-live] [data-active] .cac-s2-badge span { animation: cac-typing 1s ease-in-out 1.5s infinite; }
.cac-hiw[data-live] [data-active] .cac-s2-badge span:nth-child(2) { animation-delay: 1.65s; }
.cac-hiw[data-live] [data-active] .cac-s2-badge span:nth-child(3) { animation-delay: 1.8s; }
.cac-hiw[data-live] [data-active] .cac-s2-label { animation: cac-rise .35s ease 1.4s both; }
.cac-hiw[data-live] [data-active] .cac-s2-bubble { animation: cac-rise .4s ease 1.8s both; }
@keyframes cac-travel {
  0.0% { transform: translate(0.0px, 0.0px); opacity: 0; }
  8.33% { transform: translate(11.3px, -11.6px); opacity: 1; }
  16.67% { transform: translate(22.6px, -21.2px); }
  25.0% { transform: translate(33.9px, -29.1px); }
  33.33% { transform: translate(45.1px, -35.0px); }
  41.67% { transform: translate(56.3px, -39.1px); }
  50.0% { transform: translate(67.5px, -41.2px); }
  58.33% { transform: translate(78.7px, -41.6px); }
  66.67% { transform: translate(89.8px, -40.0px); }
  75.0% { transform: translate(100.9px, -36.6px); }
  83.33% { transform: translate(111.9px, -31.2px); }
  91.67% { transform: translate(123.0px, -24.1px); }
  100.0% { transform: translate(134.0px, -15.0px); opacity: 0; }
}
/* Smooth path: the dot rides the exact curve drawn by .cac-s2-path */
@keyframes cac-ride {
  0%   { offset-distance: 0%; opacity: 0; transform: scale(.6); }
  8%   { opacity: 1; transform: scale(1); }
  92%  { opacity: 1; transform: scale(1); }
  100% { offset-distance: 100%; opacity: 0; transform: scale(.5); }
}
@supports (offset-path: path("M0 0")) {
  .cac-s2-dot { left: 0; top: 0; offset-path: path("M112 205 Q180 130 246 190"); offset-rotate: 0deg; offset-anchor: 50% 50%; }
  .cac-hiw[data-live] [data-active] .cac-s2-dot { animation: cac-ride 1.15s cubic-bezier(.45,.05,.3,1) .35s both; }
}

/* ---------- Scene 3 · conversation ---------- */
.cac-s3-status { left: 24px; top: 114px; background: var(--cac-white); border: 1px solid var(--cac-line); font-size: 15px; }
.cac-live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cac-green); }
.cac-s3-list {
  position: absolute; left: 24px; right: 24px; top: 160px;
  display: flex; flex-direction: column; gap: 12px;
}
.cac-msg { display: flex; align-items: flex-end; gap: 8px; }
.cac-msg--them .cac-bubble { background: var(--cac-white); border: 1px solid var(--cac-line); border-bottom-left-radius: 5px; max-width: 250px; }
.cac-msg--bot { flex-direction: column; align-items: flex-end; gap: 5px; position: relative; }
.cac-msg--bot .cac-bubble { background: var(--cac-ink); color: var(--cac-cream); border-bottom-right-radius: 5px; max-width: 262px; }
.cac-who { display: inline-flex; align-items: center; gap: 6px; font-family: var(--cac-mono); font-size: 11px; font-weight: 500; color: var(--cac-ink); letter-spacing: .08em; text-transform: uppercase; }
.cac-who .cac-mark { width: 18px; height: 18px; border-radius: 6px 6px 6px 2px; gap: 2px; }
.cac-who .cac-mark span { width: 3px; height: 3px; }
.cac-avatar { flex: none; width: 34px; height: 34px; }
.cac-typing {
  position: absolute; right: 0; bottom: 0; opacity: 0;
  display: flex; gap: 5px; padding: 14px 16px; border-radius: 18px 18px 5px 18px; background: var(--cac-ink);
}
.cac-typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--cac-cream); }
.cac-hiw[data-live] [data-active] .cac-s3-status { animation: cac-rise .35s ease .1s both; }
.cac-hiw[data-live] [data-active] .cac-live-dot { animation: cac-pulse 1.2s ease-in-out infinite; }
.cac-hiw[data-live] [data-active] .cac-m1 { animation: cac-rise .4s ease .4s both; }
.cac-hiw[data-live] [data-active] .cac-typing { animation: cac-blink-in 1s linear 1.1s both; }
.cac-hiw[data-live] [data-active] .cac-typing span { animation: cac-typing .8s ease-in-out infinite; }
.cac-hiw[data-live] [data-active] .cac-typing span:nth-child(2) { animation-delay: .12s; }
.cac-hiw[data-live] [data-active] .cac-typing span:nth-child(3) { animation-delay: .24s; }
.cac-hiw[data-live] [data-active] .cac-m2 > .cac-who,
.cac-hiw[data-live] [data-active] .cac-m2 > .cac-bubble { animation: cac-rise .4s ease 2.1s both; }
.cac-hiw[data-live] [data-active] .cac-m3 { animation: cac-rise .4s ease 3.6s both; }
@keyframes cac-blink-in { 0% { opacity: 0; } 12% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Scene 4 · booking ---------- */
.cac-s4-card {
  position: absolute; left: 20px; right: 20px; top: 112px;
  background: var(--cac-white); border: 1px solid var(--cac-line); border-radius: 18px; padding: 14px;
}
.cac-s4-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.cac-s4-head b { font-size: 16px; }
.cac-s4-head span { font-family: var(--cac-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--cac-muted); }
.cac-cal {
  display: grid; grid-template-columns: 44px repeat(5, minmax(0, 1fr));
  grid-template-rows: 22px repeat(4, 34px); gap: 4px;
  font-size: 12px; font-weight: 700; color: var(--cac-muted);
}
.cac-cal .d { text-align: center; align-self: center; }
.cac-cal .t { align-self: center; }
.cac-cal .c { background: var(--cac-cell); border-radius: 7px; }
.cac-cal .b { border-radius: 7px; }
.cac-cal .b1 { background: var(--cac-sand); } .cac-cal .b2 { background: var(--cac-yolk-line); } .cac-cal .b3 { background: #E9DFC6; }
.cac-cal .c { position: relative; }
.cac-cal .new {
  position: absolute; inset: 0; z-index: 1;
  background: var(--cac-yolk); border-radius: 7px; color: var(--cac-ink);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
  box-shadow: 0 0 0 3px var(--cac-ink);
}
.cac-s4-sum {
  position: absolute; left: 20px; right: 20px; top: 360px;
  display: flex; align-items: center; gap: 14px;
  background: var(--cac-ink); color: var(--cac-cream); border-radius: 18px; padding: 14px 16px;
}
.cac-s4-sum svg { flex: none; width: 34px; height: 34px; }
.cac-s4-sum b { display: block; font-family: var(--cac-display); font-size: 22px; letter-spacing: -0.01em; }
.cac-s4-sum span { font-size: 16px; }
.cac-hiw[data-live] [data-active] .cac-s4-card { animation: cac-rise .4s ease .05s both; }
.cac-hiw[data-live] [data-active] .cac-cal .new { animation: cac-drop .85s cubic-bezier(.3,.9,.4,1) .7s both; }
.cac-hiw[data-live] [data-active] .cac-s4-sum { animation: cac-rise .4s ease 1.7s both; }
@keyframes cac-drop {
  0%   { opacity: 0; transform: translateY(-170px) rotate(-10deg) scale(1.3); }
  15%  { opacity: 1; }
  65%  { transform: translateY(5px) rotate(2deg) scale(1); }
  100% { opacity: 1; transform: none; }
}

/* ---------- Scene 5 · team ---------- */
.cac-phone {
  position: absolute; background: var(--cac-ink); border-radius: 28px; padding: 8px;
  box-shadow: 0 12px 0 rgba(26,23,18,.10);
}
.cac-screen { position: relative; height: 100%; border-radius: 21px; background: var(--cac-cream); overflow: hidden; }
.cac-screen::before { content: ""; position: absolute; left: 50%; top: 8px; width: 46px; height: 8px; margin-left: -23px; border-radius: 8px; background: var(--cac-ink); }
.cac-phone--main { left: 88px; top: 100px; width: 184px; height: 316px; border-radius: 30px; z-index: 2; }
.cac-phone--side { top: 168px; width: 112px; height: 200px; border-radius: 22px; padding: 6px; }
.cac-phone--side .cac-screen { border-radius: 17px; }
.cac-phone--l { left: 8px; transform: rotate(-8deg); }
.cac-phone--r { left: 244px; transform: rotate(8deg); }
.cac-note {
  position: absolute; left: 8px; right: 8px; top: 26px;
  background: var(--cac-white); border: 1px solid var(--cac-line); border-radius: 14px; padding: 10px;
  box-shadow: 0 4px 12px rgba(26,23,18,.10);
}
.cac-note-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13px; font-weight: 800; }
.cac-note-top .cac-mark { width: 20px; height: 20px; border-radius: 6px 6px 6px 2px; gap: 2px; flex: none; }
.cac-note-top .cac-mark span { width: 3.5px; height: 3.5px; }
.cac-note-top em { margin-left: auto; font-style: normal; font-weight: 600; font-size: 11px; color: var(--cac-muted); }
.cac-note p { font-size: 16px; line-height: 1.35; }
.cac-note p.big { font-family: var(--cac-display); font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 2px; }
.cac-note p.strong { font-weight: 800; }
.cac-note--mini { top: 22px; left: 6px; right: 6px; padding: 8px; border-radius: 11px; }
.cac-note--mini .cac-note-top { margin-bottom: 6px; font-size: 11px; }
.cac-bar { height: 7px; border-radius: 4px; background: var(--cac-line); margin-top: 5px; }
.cac-bar.w60 { width: 60%; }
.cac-who-pill { background: var(--cac-ink); color: var(--cac-cream); font-size: 14px; padding: 7px 12px; z-index: 3; }
.cac-who-main { left: 140px; width: 80px; justify-content: center; top: 424px; }
.cac-who-l { left: 22px; top: 384px; }
.cac-who-r { right: 18px; top: 384px; }
.cac-hiw[data-live] [data-active] .cac-phone--main { animation: cac-rise .4s ease .05s both; }
.cac-hiw[data-live] [data-active] .cac-phone--main .cac-note { animation: cac-slide .5s cubic-bezier(.3,1.3,.5,1) .5s both; }
.cac-hiw[data-live] [data-active] .cac-phone--l .cac-note { animation: cac-slide .5s cubic-bezier(.3,1.3,.5,1) 1s both; }
.cac-hiw[data-live] [data-active] .cac-phone--r .cac-note { animation: cac-slide .5s cubic-bezier(.3,1.3,.5,1) 1.3s both; }
.cac-hiw[data-live] [data-active] .cac-phone--l { animation: cac-buzz-l .12s linear 1s 5; }
.cac-hiw[data-live] [data-active] .cac-phone--r { animation: cac-buzz-r .12s linear 1.3s 5; }
@keyframes cac-slide { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: none; } }
@keyframes cac-buzz-l { 50% { transform: rotate(-8deg) translateX(3px); } }
@keyframes cac-buzz-r { 50% { transform: rotate(8deg) translateX(-3px); } }

/* ---------- Scene 6 · final + demo QR ---------- */
.cac-s6 {
  position: absolute; left: 24px; right: 24px; top: 52px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
}
.cac-s6-mark { width: 56px; height: 56px; border-radius: 17px 17px 17px 4px; gap: 5px; }
.cac-s6-mark span { width: 9px; height: 9px; }
.cac-s6 h3 {
  margin: 0; color: var(--cac-ink); font-family: var(--cac-display); font-weight: 800;
  font-size: 32px; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance;
}
.cac-s6-qr {
  align-self: stretch; display: flex; align-items: center; gap: 14px;
  background: var(--cac-white); color: var(--cac-ink); border: 2px solid var(--cac-ink); border-radius: 20px; padding: 14px;
}
.cac-s6-qr img { flex: none; width: 116px; height: 116px; display: block; }
.cac-s6-qr div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cac-s6-qr b { font-family: var(--cac-display); font-weight: 800; font-size: 21px; line-height: 1.05; letter-spacing: -0.015em; }
.cac-s6-qr span { font-size: 15px; line-height: 1.3; color: var(--cac-muted); }
.cac-s6-qr strong { font-size: 17px; overflow-wrap: anywhere; }
.cac-s6-brand { display: flex; align-items: center; gap: 10px; font-family: var(--cac-display); font-weight: 800; font-size: 20px; letter-spacing: -0.015em; }
.cac-s6-brand .cac-mark { width: 30px; height: 30px; border-radius: 9px 9px 9px 2px; gap: 3px; }
.cac-s6-brand .cac-mark span { width: 4.5px; height: 4.5px; }
.cac-hiw[data-live] [data-active] .cac-s6-mark { animation: cac-pop .5s cubic-bezier(.3,1.6,.5,1) .1s both; }
.cac-hiw[data-live] [data-active] .cac-s6-mark span { animation: cac-typing 1s ease-in-out .6s 2; }
.cac-hiw[data-live] [data-active] .cac-s6-mark span:nth-child(2) { animation-delay: .75s; }
.cac-hiw[data-live] [data-active] .cac-s6-mark span:nth-child(3) { animation-delay: .9s; }
.cac-hiw[data-live] [data-active] .cac-s6 h3 { animation: cac-rise .45s ease .35s both; }
.cac-hiw[data-live] [data-active] .cac-s6-qr { animation: cac-rise .5s cubic-bezier(.3,1.3,.5,1) 1s both; }
.cac-hiw[data-live] [data-active] .cac-s6-brand { animation: cac-rise .45s ease 1.5s both; }

/* ---------- Shared keyframes ---------- */
@keyframes cac-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cac-pop  { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes cac-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cac-wrench { 50% { transform: rotate(-16deg); } }
@keyframes cac-shake { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes cac-jiggle { 25% { transform: rotate(-1.5deg); } 75% { transform: rotate(1.5deg); } }
@keyframes cac-wave { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes cac-typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
@keyframes cac-pulse { 50% { opacity: .35; } }
