/* Scene 2 - scattered -> calm */
.chaos-area { --cw: 232px; --ch: 44px; --cf: 14px; left: 43%; right: 3%; top: 9%; bottom: 7%; z-index: 3; will-change: filter; }
.chaos-copy .heads { display: grid; }
.chaos-copy .heads > * { grid-area: 1 / 1; }
.static .chaos-copy .heads > * { grid-area: auto; }
.chaos-copy .t-d2 { text-wrap: balance; }
.counter {
  display: flex; align-items: baseline; gap: 14px; margin-top: 30px; color: var(--ink3);
  font-weight: 600; font-variation-settings: 'ROND' 100; line-height: 0.9;
}
.counter .num { font-size: clamp(5rem, 9vw, 8.5rem); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.counter .unit { font-size: var(--fs-headline-m); font-weight: 500; color: var(--ink-muted); }
.static .counter { display: none; }

/* fragments: tiny versions of the product's own components */
.cx {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; height: var(--ch); padding: 0 14px 0 10px;
  border-radius: 14px; font-size: var(--cf); font-weight: 600; white-space: nowrap; color: var(--ink);
  background: var(--surface); box-shadow: 0 1px 0 var(--line), var(--shadow-soft); font-variation-settings: 'ROND' 60; z-index: 3;
  transform-origin: 50% 50%;
}
.cx.fixed { width: var(--cw); }
.cx-t { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cx-c { flex: none; width: calc(var(--ch) * 0.5); height: calc(var(--ch) * 0.5); border-radius: 50%; border: 2px solid var(--h); }
.cx-ic { flex: none; display: grid; place-items: center; width: calc(var(--ch) * 0.72); height: calc(var(--ch) * 0.72); border-radius: 50%; background: var(--hs); color: var(--hi); }
.cx-ic .ms { font-size: calc(var(--ch) * 0.46); font-variation-settings: 'FILL' 1; }
.cx.habit { background: var(--surface); }
.cx.habit .cx-ic { border-radius: 50%; }
.cx.goal .cx-ic { border-radius: 12px; }
.cx.event { background: var(--hs); color: var(--hi); padding-left: 8px; }
.cx-bar { flex: none; width: 4px; height: 62%; border-radius: 2px; background: var(--h); }
.cx-m { margin-left: auto; font-size: calc(var(--cf) - 1.5px); font-weight: 700; opacity: 0.8; font-variant-numeric: tabular-nums; }
.cx.note { height: auto; padding: 12px 16px 16px; border-radius: 3px 3px 14px 3px; background: var(--amber-soft); color: var(--amber-ink); font-weight: 600; box-shadow: var(--shadow-card); }
.cx.badge { height: calc(var(--ch) * 0.7); padding: 0 12px; border-radius: var(--r-full); background: var(--red-soft); color: var(--red-ink); font-size: calc(var(--cf) - 1.5px); font-weight: 700; }
.cx-app {
  position: absolute; left: 0; top: 0; width: 210px; height: 250px; padding: 14px; border-radius: 22px; z-index: 1;
  background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line2); display: flex; flex-direction: column; gap: 11px;
}
.cx-app-h { display: flex; align-items: center; gap: 8px; color: var(--ink2); font-weight: 700; font-size: 13px; }
.cx-app-h .ms { font-size: 20px; }
.cx-app i { display: block; height: 22px; border-radius: 8px; background: var(--inset); }
.cx-app i:nth-of-type(2) { width: 72%; } .cx-app i:nth-of-type(3) { width: 88%; } .cx-app i:nth-of-type(4) { width: 55%; }

/* the calm card */
.calm-card {
  position: absolute; left: 0; top: 0; z-index: 2; padding: 20px 20px 22px; border-radius: var(--r-card); opacity: 0;
  background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line);
}
.calm-h { display: flex; align-items: center; gap: 12px; margin: 0 2px 16px; }
.calm-ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.calm-ic .ms { font-size: 24px; font-variation-settings: 'FILL' 1; }
.calm-t { display: flex; flex-direction: column; line-height: 1.2; }
.calm-t b { font-size: var(--fs-title-l); font-weight: 500; font-variation-settings: 'ROND' 100; }
.calm-t small { font-size: var(--fs-label-m); font-weight: 600; color: var(--ink2); }
.calm-grid { display: grid; grid-template-columns: repeat(2, var(--cw)); grid-template-rows: repeat(6, var(--ch)); grid-auto-flow: column; gap: 10px; }
.calm-grid i { display: block; }

@media (max-width: 759px) {
  .chaos-area { --cw: 158px; --ch: 38px; --cf: 12.5px; left: 2%; right: 2%; top: 43%; bottom: 58px; }
  .cx-app { width: 150px; height: 180px; }
  .counter { margin-top: 14px; gap: 10px; }
  .counter .num { font-size: 3.6rem; }
  .counter .unit { font-size: 1.1rem; }
  .chaos-copy .lead { display: none; }
  .static .chaos-copy .lead { display: block; }
  .calm-card { padding: 14px 14px 16px; }
  .calm-grid { gap: 8px; }
}
