/* moments.css: the four "how it works" moments as calm, guided scenes (owner, Nov 9).
   Ported from the owner's own Task. Agent. Lock. Direct. scene (story site, demo-d + live.js):
   the app's live UI as HTML, a clicking cursor, one moving thing at a time, a spotlight on the
   outcome, a cinematic end state (slight tilt, the outcome lifted as a layer, gentle idle), and a
   replay after about 8 s. The look is the app's (app/ui gradea.css + tokens): Manrope, sheet on
   canvas, no hairlines, pills, status colours as fills only.
   The HTML is the FINAL frame. That is what no JavaScript, reduced motion and print show.
   Motion lives only under html.sc-motion inside prefers-reduced-motion: no-preference.
   Only transform and opacity move. */

.sc-block{margin:48px auto 0;max-width:1120px}
.sc{position:relative;margin:0;container-type:inline-size;isolation:isolate}
.sc-cam{position:relative;transform-origin:50% 40%}
.sc-win{display:grid;grid-template-columns:210px minmax(0,1fr);border-radius:16px;overflow:hidden;isolation:isolate;
  background:var(--c-canvas);box-shadow:0 1px 2px rgba(11,13,16,.06),0 8px 24px rgba(11,13,16,.08);
  font-family:var(--font);font-variant-numeric:tabular-nums;color:var(--c-ink);text-align:left}
[data-theme=dark] .sc-win{box-shadow:0 0 0 1px rgba(255,255,255,.08)}

/* the sidebar */
.sc-side{display:flex;flex-direction:column;gap:2px;padding:16px 12px}
.sc-lights{display:flex;gap:8px;margin:0 0 20px 4px}
.sc-lights i{width:11px;height:11px;border-radius:50%;background:var(--c-line);opacity:.7}
.sc-brand{display:flex;align-items:center;gap:12px;margin:0 0 20px 8px}
.sc-brand svg{width:26px;height:26px;flex:none}
.sc-brand b{display:block;font-size:15px;line-height:21px;font-weight:700}
.sc-brand small{display:block;font-size:15px;line-height:21px;color:var(--c-sec);font-weight:500}
.sc-nv{display:flex;align-items:center;gap:12px;min-height:34px;padding:0 12px;border-radius:999px;font-size:15px;font-weight:500;color:var(--c-ink)}
.sc-nv svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.4}
.sc-nv.on{background:var(--c-sel);font-weight:600}
.sc-nv em{margin-left:auto;font-style:normal;font-weight:600}

/* the main sheet: bar, then the task (or the receipt) beside the inspector */
.sc-main{display:grid;grid-template-rows:auto 1fr;min-width:0;margin:8px 8px 8px 0;border-radius:12px;background:var(--c-sheet);overflow:hidden}
.sc-bar{display:flex;align-items:center;gap:12px;padding:12px 16px 0 24px}
.sc-crumb{margin:0 auto 0 0;font-size:15px;color:var(--c-sec);font-weight:500}
.sc-srch{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:0 12px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--c-line);font-size:15px;color:var(--c-sec)}
.sc-srch kbd{font:600 15px var(--font);padding:2px 8px;border-radius:6px;background:var(--c-pane);color:var(--c-sec)}
.sc-body{display:grid;grid-template-columns:minmax(0,1fr) 300px;min-height:0}
.sc-views{display:grid;min-width:0;padding:20px 32px 32px}
.sc-v{grid-area:1/1;min-width:0}
.sc-insp{padding:24px 24px;background:var(--c-pane)}
.sc-insp h4{margin:0 0 16px;font-size:15px;line-height:20px;font-weight:700}
.sc-kv{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px 12px;margin:0;font-size:15px;line-height:21px}
.sc-kv dt{color:var(--c-sec);font-weight:500}.sc-kv dd{margin:0;font-weight:600}

/* type inside the window: the app's registers */
.sc-t{margin:0;font-size:22px;line-height:28px;font-weight:700;letter-spacing:-.01em}
.sc-alt{display:grid;margin:8px 0 0}
.sc-alt>*{grid-area:1/1;margin:0;font-size:15px;line-height:22px;color:var(--c-sec);font-weight:500}
.sc-h{display:flex;align-items:baseline;gap:8px;margin:24px 0 8px;font-size:15px;line-height:20px;font-weight:700}
.sc-h span{font-weight:500;color:var(--c-sec)}
.sc-row{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:4px 12px;align-items:start;padding:8px 12px;margin:0 -12px;border-radius:12px}
.sc-row svg{width:16px;height:16px;margin-top:2px;fill:none;stroke:currentColor;stroke-width:1.5}
.sc-row b{display:block;font-size:15px;line-height:21px;font-weight:600}
.sc-row small{display:block;font-size:15px;line-height:20px;color:var(--c-sec);font-weight:500}
.sc-row time{font-size:15px;line-height:21px;color:var(--c-sec);font-weight:500;white-space:nowrap}
.sc-row .stop{color:var(--c-stop-fill)}
.sc-row .kept{color:var(--c-kept-fill)}

/* where things are: your folder beside the agent's copy */
.sc-swap{display:grid}.sc-swap>*{grid-area:1/1;min-width:0}

.sc-where{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-self:start;margin:20px 0 0}
.sc-pl{position:relative;padding:16px 16px;border-radius:14px;background:var(--c-pane)}
.sc-pl small{display:block;font-size:15px;line-height:21px;color:var(--c-sec);font-weight:500}
.sc-pl b{display:block;margin-top:4px;font-size:15px;line-height:21px;font-weight:700}
.sc-pl .sc-alt{margin:2px 0 0}.sc-pl .sc-alt>*{font-size:15px;line-height:20px}

/* status marks: colour as a fill or an icon only */
.sc-dot{display:inline-block;width:9px;height:9px;margin-right:8px;border-radius:50%;vertical-align:1px}
.sc-dot.w{background:var(--c-wait-fill)}.sc-dot.k{background:var(--c-kept-fill)}
.sc-dia{display:inline-block;width:10px;height:10px;margin-right:12px;background:var(--c-diamond);transform:rotate(45deg);border-radius:1.5px;vertical-align:1px}

/* buttons: the app's pills */
.sc-acts{display:grid;margin-top:24px}
.sc-acts>*{grid-area:1/1;display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0}
.sc-b{display:inline-flex;align-items:center;min-height:40px;padding:0 20px;border-radius:999px;font-size:15px;font-weight:600;
  background:var(--c-sheet);color:var(--c-ink);box-shadow:inset 0 0 0 1px var(--c-line);white-space:nowrap}
.sc-b.p{background:var(--c-ink);color:var(--c-on-pri);box-shadow:none}
.sc-acts p.sc-note{font-size:15px;line-height:20px;color:var(--c-sec);font-weight:500}

/* the ask, over the window */
.sc-ask,.sc-scrim{display:none}
html:not(.sc-motion) .sc .gone{visibility:hidden}
.sc-ask .wl{margin:0;font-size:15px;line-height:20px;font-weight:600;color:var(--c-ink)}
.sc-ask .q{margin:12px 0 0;font-size:20px;line-height:26px;font-weight:700;letter-spacing:-.01em}
.sc-ask .q span{color:var(--c-sec)}
.sc-ask .path{margin:8px 0 0;font-size:15px;color:var(--c-sec);font-weight:500}
.sc-ask .if{margin:16px 0 0;font-size:15px;line-height:21px;color:var(--c-sec);font-weight:500}

/* the receipt header */
.sc-rh{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;margin-top:16px;font-size:15px;line-height:20px;color:var(--c-sec);font-weight:500}
.sc-rh b{color:var(--c-ink);font-weight:700}.sc-rh .r{text-align:right}

/* the cursor and its click: hidden in the final frame */
.sc-cur{position:absolute;left:0;top:0;z-index:8;pointer-events:none;opacity:0}
.sc-arrow{display:block;filter:drop-shadow(0 2px 3px rgba(0,0,0,.28));transform-origin:2px 2px}
.sc-rip{position:absolute;left:-14px;top:-14px;width:32px;height:32px;border-radius:50%;background:rgba(11,13,16,.45);opacity:0}

/* the four steps beside the guided scene */
.sc-guide{display:grid;grid-template-columns:240px minmax(0,1fr);gap:48px;align-items:center}
.sc-steps{display:grid;gap:24px;margin:0;padding:0;list-style:none;counter-reset:s}
.sc-steps button{display:grid;grid-template-columns:30px 1fr;gap:4px;width:100%;margin:0;padding:0;border:0;background:none;text-align:left;cursor:pointer;
  font:700 19px/1.3 var(--font);color:var(--c-ink);letter-spacing:-.01em;min-height:44px}
.sc-steps button span{font-size:15px;font-weight:700;color:var(--c-sec);padding-top:2px}
.sc-steps button:focus-visible{outline:2px solid var(--c-focus);outline-offset:4px;border-radius:6px}
.sc-ctl{display:flex;justify-content:flex-start;margin:8px 0 0}
.sc-ctl button{min-height:44px;padding:0 4px;border:0;background:none;font:600 15px var(--font);color:var(--c-sec);cursor:pointer;text-decoration:none;}
.sc-ctl button:focus-visible{outline:2px solid var(--c-focus);outline-offset:2px;border-radius:6px}
html:not(.sc-motion) .sc-ctl{display:none}

/* narrower windows: drop the inspector, then the sidebar (a phone crop, never the app shrunk) */
@container (max-width:960px){.sc-body{grid-template-columns:minmax(0,1fr)}.sc-insp{display:none}}
@container (max-width:700px){
  .sc-win{grid-template-columns:minmax(0,1fr)}.sc-side,.sc-srch{display:none}
  .sc-main{margin:8px}.sc-bar{padding:12px 16px 0}.sc-views{padding:16px 16px 20px}
  .sc-t{font-size:19px;line-height:25px}.sc-where{grid-template-columns:1fr}
  .sc-row time{display:none}.sc-row{grid-template-columns:22px minmax(0,1fr)}
  .sc-ask .q{font-size:18px;line-height:24px}
  .sc-bar{display:none}.sc-views{padding-top:20px}
  [data-b^=f] small,[data-b^=rf] small{display:none}
}
@media (max-width:900px){
  .sc-guide{grid-template-columns:minmax(0,1fr);gap:24px}
  .sc-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}
  .sc-steps button{font-size:16px}
}
@media (max-width:600px){.sc-block{margin-top:32px}.sc-steps{grid-template-columns:minmax(0,1fr);gap:4px}}

/* ---------- motion: one thing at a time, then it stops on the end frame ---------- */
@media (prefers-reduced-motion:no-preference){
  .sc-motion .sc{--sc-eo:cubic-bezier(.23,1,.32,1)}
  .sc-motion .sc-ask{display:block;position:absolute;left:0;right:0;top:12%;z-index:6;width:min(540px,92%);margin:0 auto;padding:24px 24px;border-radius:22px;
    background:var(--c-sheet);box-shadow:0 24px 60px rgba(11,13,16,.2),0 0 0 1px rgba(11,13,16,.06);
    opacity:0;transform:translateY(16px);transition:opacity 420ms var(--sc-eo),transform 520ms var(--sc-eo);pointer-events:none}
  .sc-motion .sc-ask.on{opacity:1;transform:none}
  .sc-motion .sc-scrim{display:block;position:absolute;inset:0;z-index:5;border-radius:16px;background:rgba(11,13,16,.16);opacity:0;transition:opacity 420ms var(--sc-eo);pointer-events:none}
  .sc-motion .sc-scrim.on{opacity:1}
  /* rows that arrive: a short rise and fade, one at a time */
  .sc-motion .sc .h{opacity:0;transform:translateY(8px)}
  .sc-motion .sc [data-b]:not(.gone){transition:opacity 480ms var(--sc-eo),transform 520ms var(--sc-eo)}
  /* a state that is replaced is cut, never cross-faded */
  .sc-motion .sc .gone{visibility:hidden;transition:none}
  .sc-snap,.sc-snap *{transition:none!important}
  .sc-motion .sc-cur.on{opacity:1;transition:opacity 260ms var(--sc-eo)}
  .sc-motion .sc-cx{transition:transform 760ms cubic-bezier(.45,.05,.2,1)}
  .sc-motion .sc-cy{transition:transform 760ms cubic-bezier(.3,.75,.25,1.12)}
  /* the step beside the guided scene: colour and underline only, both full contrast */
  .sc-motion .sc-steps.dim button{color:var(--c-sec)}
  .sc-motion .sc-steps.dim li.on button{color:var(--c-ink);text-decoration:none;}
}
html:not(.sc-motion) .sc .gone{visibility:hidden}
.hw-step .hw-grid:has(.sc-block){grid-template-columns:minmax(0,1fr);gap:32px}
.hw-grid>.sc-block{width:100%;min-width:0;margin:0}
/* phone: redesigned, not shrunk: parts that are not this moment's point stay out */
@container (max-width:700px){.sc .ph-x{display:none!important}.sc-where{grid-template-columns:1fr 1fr;gap:8px}.sc-pl{padding:12px}}
.hw .sc,.sc-block .sc{height:auto;overflow:visible;background:none;border-radius:0;padding:0}

/* guard 2: section gaps hold against page resets; counts swap in place; no one-word last lines */
.sc .sc-h,.sc .sc-dec>.sc-h:first-child{margin:24px 0 8px!important}
.sc-cnt{display:inline-grid}.sc-cnt>*{grid-area:1/1}
.sc p,.sc small,.sc b{text-wrap:pretty}
.sc-steps{padding:0!important;margin:0!important}
.sc-guide .sc-ctl{grid-column:1}
.sc-gl{display:grid;gap:16px;align-content:center}
.sc-gl .sc-ctl{margin:0}
/* one left edge per section: scenes and their links start on the text column */
.wrap .sc-block{max-width:none;margin-left:0;margin-right:0}
main .fr-more{margin-left:0!important}
/* guard 3 */
.sc-wel{display:grid;align-content:start;padding:24px 0 8px}
.sc-mk{width:40px;height:40px;margin-bottom:24px;color:var(--c-ink)}.sc-mk svg{width:40px;height:40px}
.sc-big{margin:0;font-size:26px;line-height:32px;font-weight:700;letter-spacing:-.01em;max-width:22ch}
.sc-big span{display:block;color:var(--c-sec)}
.sc-sub{margin:12px 0 0;font-size:15px;line-height:22px;color:var(--c-sec);font-weight:500}
.sc-field{display:flex;align-items:center;min-height:48px;padding:12px 16px;border-radius:12px;box-shadow:inset 0 0 0 1px var(--c-line);font-size:15px;font-weight:500}
.sc-field [data-b=ph0]{color:var(--c-sec)}
.sc-kv-n{margin:20px 0 0}
.sc-v>.sc-alt[data-b=stat]{margin-top:16px}
@media (max-width:600px){:not(.wrap)>.sc-block{margin-inline:24px}}
.bs-sec.ly-sec{padding-top:0}.bs-sec .shell .sc-block{max-width:none;margin-left:0;margin-right:0}
.hw-grid>.sc-block{margin:0!important}

.hero-lead:empty{display:none}
main>.hero.ly-hero:has(+.bs-sec){padding-bottom:0}
main>section.hero:has(+section.bs-sec){padding-bottom:0!important}
section.bs-sec.ly-sec{padding-top:0!important}
.bs-sec .sc-block{margin-top:24px}

/* Get started (Nov 9): each scene sits full width under its step; the firm scene under the firm steps */
.steprow>.st-pic.gs-scene{width:100%}
.st-pic.gs-scene .sc-block{margin-top:24px}
#firm .split{grid-template-columns:minmax(0,760px)}
.gs-firm-scene .sc-block{margin-top:40px}

/* one row, one height (owner, Nov 9: "the search bar is a different height than the button next to it").
   Controls that share a row in the app window are the app's small control: --btn-sm-h, a pill, text centred. */
.sc-bar .sc-srch,.sc-bar .sc-b{box-sizing:border-box;height:var(--btn-h);min-height:var(--btn-h);padding-block:0;border-radius:var(--r-pill);display:inline-flex;align-items:center;line-height:20px}
.sc-bar .sc-srch kbd{line-height:20px;padding-block:0}

/* ---------- the shots (round-theme, Nov 9; MOTION-THEME.md). Motion only adds to the end frame. ---------- */
.sc-row,.sc-pl,.sc-alt[data-b=stat]{position:relative;isolation:isolate}
.sc-loupe{display:none}
@media (prefers-reduced-motion:no-preference){
  /* the spotlight: what this moment is about sits on the selected-row tint; a layer fades, nothing else */
  .sc-motion .sc :is(.sc-row,.sc-pl,.sc-alt[data-b=stat])::before{content:"";position:absolute;inset:-4px -8px;z-index:-1;border-radius:12px;background:var(--c-sel);opacity:0;transition:opacity 480ms var(--sc-eo)}
  .sc-motion .sc :is(.sc-row,.sc-pl,.sc-alt[data-b=stat]).lit::before{opacity:1}
  /* every camera move: one slow ease, transform only, inside the frame */
  .sc-motion .sc:is(.shot-push,.shot-scrub,.shot-cut){overflow:hidden;border-radius:16px}
  .sc-motion .sc .sc-cam{transition:transform 1200ms cubic-bezier(.45,0,.2,1)}
  .sc-motion .sc.shot-scrub .sc-cam{transition-duration:700ms}
  .sc-motion .sc.shot-cut .sc-cam{transition:none}
  /* exploded: the window tilts back and the outcome lifts off it as a layer */
  .sc-motion .sc.shot-exploded{perspective:1800px}
  .sc-motion .sc.shot-exploded .sc-cam{transform-origin:50% 60%}
  .sc-motion .sc.shot-exploded .sc-cam.spot{transform:rotateX(9deg) rotateZ(-1.5deg) scale(.96)}
  .sc-motion .sc.shot-exploded .sc-cam .lit{transition:transform 900ms var(--sc-eo)}
  .sc-motion .sc.shot-exploded .sc-cam.spot .lit{transform:translateY(-4px) translateX(-6px)}
  .sc-motion .sc.shot-exploded .sc-cam.spot .lit::after{content:"";position:absolute;inset:-4px -8px;z-index:-2;border-radius:12px;box-shadow:0 18px 40px rgba(11,13,16,.18)}
  /* split: the close-up sits under the window, in its own space, never over the row it explains */
  .sc-motion .sc-loupe{display:block;margin:16px 0 0 auto;width:min(520px,100%);padding:16px 20px;border-radius:16px;
    background:var(--c-sheet);box-shadow:0 12px 32px rgba(11,13,16,.14),0 0 0 1px rgba(11,13,16,.06);opacity:0;transform:translateY(-8px);
    transition:opacity 480ms var(--sc-eo),transform 600ms var(--sc-eo);pointer-events:none;font-family:var(--font);color:var(--c-ink)}
  .sc-motion .sc-loupe.on{opacity:1;transform:none}
  .sc-loupe>*{margin:0!important}
  .sc-loupe .sc-row{grid-template-columns:22px minmax(0,1fr) auto}
  html[data-theme=dark] .sc-loupe{box-shadow:0 0 0 1px rgba(255,255,255,.1),0 12px 32px rgba(0,0,0,.5)}
}


/* app values (Nov 9): toolbar search 44, pill, 16px sides, 15px text; regular buttons 44; chip rows 36 with 14px sides */
.sc-bar .sc-srch{padding-inline:16px;font-size:15px}
.sc-b{min-height:var(--btn-h)}
.sc-acts .sc-b,.sc-bar .sc-b{padding-inline:var(--btn-px)}
.sc-chips .sc-b{height:var(--btn-sm-h);min-height:var(--btn-sm-h);padding-inline:var(--btn-sm-px)}
/* push, scrub and cut never crop: the window plays a little smaller and grows back to full size toward the focus */
.sc-motion .sc:is(.shot-push,.shot-scrub,.shot-cut){overflow:visible;border-radius:0}
@media (max-width:700px){.sc-motion .sc-loupe{width:100%;padding:12px 16px}.sc-loupe time{display:none}}

/* No underlines (owner, Nov 10). The step in play: full ink at 800; the others secondary ink (#3A3F47, 10:1) at 600.
   Pause / Play / Replay: the secondary pill, the size of the site's other buttons. */
.sc-steps button{font-weight:600}
@media (prefers-reduced-motion:no-preference){
  .sc-motion .sc-steps.dim button{color:var(--c-sec);font-weight:600}
  .sc-motion .sc-steps.dim li.on button{color:var(--c-ink);font-weight:800}
}
.sc-ctl button{display:inline-flex;align-items:center;height:var(--btn-h);padding:0 var(--btn-px);border-radius:var(--r-pill);
  background:var(--c-sheet);color:var(--c-ink);box-shadow:inset 0 0 0 1px var(--c-line);font:600 15px var(--font)}
.sc-ctl button:hover{background:var(--c-hover)}
.sc-ctl{margin-top:var(--sp-16)}
