/* Scene "close" · Month-end close: one top-to-bottom flow, every part laid out where it ends (scenes/close.js
   animates them in). The agent's icon centre and the line sit on x 115. Components from Figma
   14567:20692 → 14572:11733 (photo, bubble, AI tile, line, dots, checks, logo cards). */

/* in v2 the panel clips (the content runs right to its edges); v1 has no panel, so the stage clips itself */
[data-scene="close"] .cl-stage { position: absolute; inset: 0; }
[data-scene="close"] .cl-stage[data-mode="full"] { overflow: hidden; }
/* v1 (no container): soft edges where the feed leaves the artboard (top and bottom) and at the sides */
[data-scene="close"] .cl-stage[data-mode="full"] {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
[data-scene="close"] .cl-feed { position: absolute; left: 0; top: 0; width: 798px; height: 854px; will-change: transform;
  transform: scale(.85); transform-origin: 50% 45%; }   /* everything 15% smaller, about the middle of the box */

/* the prompt: photo (104) + bubble, where it ends up: centred in the box (the script centres it across), on y 427 */
[data-scene="close"] .cl-prompt { position: absolute; left: 40px; top: 375px; display: flex; align-items: center; gap: 22px; }
[data-scene="close"] .cl-pic { position: relative; flex: none; width: 104px; height: 104px; border-radius: 18.9px; overflow: hidden; }
[data-scene="close"] .cl-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-scene="close"] .cl-bubble { flex: none; background: #fff; border: 1.39px solid #adcffe; border-radius: 18.9px; padding: 29.2px; }   /* Figma 14573:33654 ×0.7575 (42 px type), corners as the photo */
[data-scene="close"] .cl-bubble p { font-weight: 400; font-size: 42px; line-height: 1.21; color: #203147; white-space: nowrap; }

/* the agent: tile (110) + "Agent is working", at the top (centred on y 120); it starts full screen (close.js) */
[data-scene="close"] .cl-tile { position: absolute; left: 60px; top: 65px; width: 110px; height: 110px; border-radius: 23px; background: #fff;
  display: flex; align-items: center; justify-content: center; z-index: 2; }
[data-scene="close"] .cl-tile .ls-spark { width: 72px; height: 72px; }
/* the light that sweeps across the tile (clipped to it; it brightens the sparkle as it passes) */
[data-scene="close"] .cl-shine { position: absolute; inset: 0; border-radius: 23px; overflow: hidden; pointer-events: none; }
[data-scene="close"] .cl-sheen { position: absolute; inset: 0; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .8) 50%, transparent 70%); }
[data-scene="close"] .cl-working { position: absolute; left: 196px; top: 98px; font-weight: 500; font-size: 36px; line-height: 1.22;
  color: #203147; white-space: nowrap; }
/* the shimmer: the same words on top, painted only by a light band that sweeps across them (close.js moves it) */
[data-scene="close"] .cl-working--shine { color: transparent; -webkit-text-fill-color: transparent; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .95) 50%, rgba(255, 255, 255, 0) 100%) no-repeat;
  background-size: 35% 100%; -webkit-background-clip: text; background-clip: text; }

/* the line: from the agent down past the last step (y 690), fading out below it */
[data-scene="close"] .cl-rail { position: absolute; left: 113.5px; top: 175px; width: 3px; height: 600px; border-radius: 2px; transform-origin: 50% 0;
  background: linear-gradient(#6ebefe 0%, #6ebefe 86%, rgba(110, 190, 254, 0) 100%); }

/* a step (y 280, 400, 690): the dot, replaced by the check (both 30, on the line), and its text */
[data-scene="close"] .cl-step { position: absolute; inset: 0; }
[data-scene="close"] .cl-mark { position: absolute; left: 100px; width: 30px; height: 30px; z-index: 1; }
[data-scene="close"] .cl-mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
[data-scene="close"] .cl-check { opacity: 0; }
/* each line sits in a white box, as the tiles of the implementation agent (no icon) */
[data-scene="close"] .cl-item { position: absolute; left: 160px; font-weight: 400; font-size: 26px; line-height: 1.2; letter-spacing: -.26px;
  color: #072928; white-space: nowrap; background: #fff; border-radius: 14px; padding: 14px 22px;
  box-shadow: 0 10px 30px rgba(32, 49, 71, .06); transform-origin: 0 50%; }

/* the systems, in place of a dot: a carousel strip right of the line (cards 130, centred on y 545, soft edges); SAP,
   the last card, settles next to the line where the list's text starts */
[data-scene="close"] .cl-strip { position: absolute; left: 135px; top: 495px; width: 663px; height: 230px; overflow: hidden;   /* 40px above and below the cards, so their shadow isn't cut */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 613px, transparent 663px);
          mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 613px, transparent 663px); }
[data-scene="close"] .cl-track { position: absolute; left: 0; top: 50px; height: 130px; display: flex; align-items: center; gap: 20px; }
[data-scene="close"] .cl-card { position: relative; flex: none; width: 130px; height: 130px; border-radius: 15.3px; background: #fff; }
[data-scene="close"] .cl-card img { position: absolute; }
[data-scene="close"] .cl-card--sap { width: 186px; box-shadow: 0 10px 30px rgba(32, 49, 71, .06); }   /* the SAP S/4HANA lockup needs a wider card */
/* the result, written inside SAP's card once it has morphed into a list line (same type as the other lines) */
[data-scene="close"] .cl-sap__text { position: absolute; top: 50%; transform: translateY(-50%); margin: 0; font-weight: 400; font-size: 26px;
  line-height: 1.2; letter-spacing: -.26px; color: #072928; white-space: nowrap; }
