/* Home hero (index.html) — Vera in three scenes: (a) one prompt, three
   documents; (b) the daily briefing; (c) the approvals.
   A marketing copy of the product's Fresh look: Vera's panel (header,
   bubbles, thinking rows, the composer with its violet-to-green ring) and
   the cards she produces. The values are the app's Fresh / Vera 2 tokens
   (app/static/css/opx-tokens.css, opx-skin-fresh.css, opx-shell.css,
   opx-vera2.css), copied here as --hv-* because the public pages do not
   load the app's kit. The slide follows the deck thumbnails lower on the
   page (assets/home-fresh.css, .dk). Every class is hv-prefixed.

   States — the markup is the FINAL composed picture of scene (a). Without
   the script, or with reduced motion, a scene shows as its final picture.
   The script adds .hv-run and turns the parts on ([data-hv-part].is-on)
   beat by beat. .hv[data-scene] says which scene shows; .hv-wide is Vera
   as a full workspace, before the documents arrive.

   The box never changes size: on wide screens the stage has a fixed height
   and everything inside is positioned; on phones the panel and the card
   zone have fixed heights. */

.hv{
  --hv-surface:oklch(1 0 0);
  --hv-sunken:oklch(0.975 0.006 70);
  --hv-ink:oklch(0.19 0.012 150);
  --hv-ink-2:oklch(0.33 0.012 150);
  --hv-ink-3:oklch(0.42 0.01 150);
  --hv-ink-4:oklch(0.7 0.008 150);
  --hv-hair:oklch(0.91 0.006 70);
  --hv-hair-soft:oklch(0.935 0.005 70);
  --hv-hair-hard:oklch(0.85 0.008 70);
  --hv-em:oklch(0.7 0.15 165);
  --hv-em-deep:oklch(0.52 0.125 165);
  --hv-em-ink:oklch(0.99 0.01 165);
  --hv-em-wash:oklch(0.7 0.15 165 / .13);
  --hv-em-line:oklch(0.7 0.15 165 / .3);
  --hv-ai:oklch(0.585 0.185 292);
  --hv-ai-deep:oklch(0.47 0.165 292);
  --hv-ai-ink:oklch(0.99 0.01 292);
  --hv-ai-wash:oklch(0.585 0.185 292 / .12);
  --hv-ai-line:oklch(0.585 0.185 292 / .28);
  --hv-info-deep:oklch(0.47 0.13 245);
  --hv-info-wash:oklch(0.6 0.13 245 / .12);
  --hv-info-line:oklch(0.6 0.13 245 / .28);
  --hv-warn-deep:oklch(0.5 0.115 70);
  --hv-warn-wash:oklch(0.78 0.15 80 / .2);
  --hv-warn-line:oklch(0.7 0.14 75 / .4);
  --hv-danger:oklch(0.55 0.2 27);
  --hv-orange:oklch(0.65 0.215 35);
  --hv-tip:oklch(0.19 0.012 150);
  --hv-tip-ink:oklch(0.99 0.003 70);
  --hv-sh-1:0 1px 2px oklch(0.3 0.03 40 / .05);
  --hv-sh-card:0 1px 2px oklch(0.3 0.03 40 / .05),0 22px 44px -26px oklch(0.3 0.03 40 / .38);
  --hv-sh-lift:0 2px 4px oklch(0.3 0.03 40 / .06),0 40px 70px -30px oklch(0.3 0.03 40 / .5);
  --hv-glow-ai:0 0 0 1px var(--hv-ai-line),0 10px 40px oklch(0.585 0.185 292 / .18);
  --hv-ease:cubic-bezier(.22,1,.36,1);
  --hv-spring:cubic-bezier(.34,1.4,.5,1);
  --hv-docked:51%;
  position:relative;container-type:inline-size;width:100%;max-width:620px;margin-inline:auto;
  font:400 14px/1.5 var(--ui,'Geist',ui-sans-serif,sans-serif);color:var(--hv-ink);
  user-select:none;-webkit-user-select:none;
}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .hv{
  --hv-surface:oklch(0.215 0.01 150);
  --hv-sunken:oklch(0.25 0.01 150);
  --hv-ink:oklch(0.96 0.005 70);
  --hv-ink-2:oklch(0.84 0.008 150);
  --hv-ink-3:oklch(0.72 0.01 150);
  --hv-ink-4:oklch(0.5 0.01 150);
  --hv-hair:oklch(0.31 0.01 150);
  --hv-hair-soft:oklch(0.27 0.01 150);
  --hv-hair-hard:oklch(0.38 0.01 150);
  --hv-em:oklch(0.775 0.148 165);
  --hv-em-deep:oklch(0.83 0.14 165);
  --hv-em-ink:oklch(0.18 0.04 165);
  --hv-em-wash:oklch(0.775 0.148 165 / .16);
  --hv-em-line:oklch(0.775 0.148 165 / .34);
  --hv-ai:oklch(0.72 0.165 292);
  --hv-ai-deep:oklch(0.795 0.15 292);
  --hv-ai-ink:oklch(0.17 0.04 292);
  --hv-ai-wash:oklch(0.72 0.165 292 / .17);
  --hv-ai-line:oklch(0.72 0.165 292 / .34);
  --hv-info-deep:oklch(0.8 0.1 240);
  --hv-info-wash:oklch(0.7 0.12 240 / .18);
  --hv-info-line:oklch(0.7 0.12 240 / .36);
  --hv-warn-deep:oklch(0.86 0.13 85);
  --hv-warn-wash:oklch(0.8 0.14 80 / .16);
  --hv-warn-line:oklch(0.8 0.14 80 / .36);
  --hv-danger:oklch(0.74 0.17 27);
  --hv-tip:oklch(0.96 0.005 70);
  --hv-tip-ink:oklch(0.19 0.012 150);
  --hv-sh-1:0 1px 2px oklch(0 0 0 / .4);
  --hv-sh-card:0 0 0 1px var(--hv-hair),0 22px 44px -22px oklch(0 0 0 / .7);
  --hv-sh-lift:0 0 0 1px var(--hv-hair-hard),0 40px 70px -26px oklch(0 0 0 / .85);
  --hv-glow-ai:0 0 0 1px var(--hv-ai-line),0 10px 44px oklch(0.72 0.165 292 / .26);
}}
/* a slide and a sheet of paper stay white in the dark theme: inside them the light values come back */
.hv .hv-paper{
  --hv-surface:#fff;--hv-sunken:#F3F5F8;--hv-ink:#12151F;--hv-ink-2:#343846;--hv-ink-3:#5B6070;--hv-ink-4:#AEB6C4;
  --hv-hair:#DDE2EA;--hv-hair-soft:#E8ECF1;--hv-hair-hard:#C9D0DB;
  --hv-em:oklch(0.7 0.15 165);--hv-em-deep:oklch(0.5 0.125 165);--hv-em-wash:oklch(0.7 0.15 165 / .13);--hv-em-line:oklch(0.7 0.15 165 / .3);
  --hv-ai-deep:oklch(0.47 0.165 292);--hv-ai-wash:oklch(0.585 0.185 292 / .12);--hv-ai-line:oklch(0.585 0.185 292 / .28);
  background:#fff;color:var(--hv-ink);
}
.hv svg{display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hv .hv-num{font-variant-numeric:tabular-nums;letter-spacing:-.02em;white-space:nowrap}
.hv-stage{position:relative;height:716px}

/* which scene shows */
.hv[data-scene="a"] [data-hv-s]:not([data-hv-s="a"]),
.hv[data-scene="b"] [data-hv-s]:not([data-hv-s="b"]),
.hv[data-scene="c"] [data-hv-s]:not([data-hv-s="c"]){display:none}

/* ── Vera's panel: the drawer of the product; .hv-wide = her full page ── */
.hv-vera{position:absolute;left:0;top:26px;bottom:56px;width:var(--hv-docked);display:flex;flex-direction:column;overflow:hidden;
  border-radius:26px;background:var(--hv-surface);border:1px solid var(--hv-hair);box-shadow:var(--hv-sh-lift);
  transition:width .55s var(--hv-ease)}
.hv-wide .hv-vera{width:100%}
.hv-hd{display:flex;align-items:center;gap:10px;padding:13px 16px;border-bottom:1px solid var(--hv-hair);flex:none}
.hv-av{width:40px;height:40px;border-radius:12px;flex:none;display:grid;place-items:center;color:var(--hv-ai-ink);
  background:linear-gradient(142deg,var(--hv-ai),var(--hv-em) 150%)}
.hv-av svg{width:24px;height:24px}
.hv-av.sm{width:32px;height:32px;border-radius:10px;background:var(--hv-ai-wash);color:var(--hv-ai-deep);border:1px solid var(--hv-ai-line)}
.hv-av.sm svg{width:20px;height:20px}
.hv-hd b{font-size:15.5px;font-weight:600;letter-spacing:-.012em}
.hv-aimark{font-size:12px;font-weight:500;color:var(--hv-ink-3);letter-spacing:.04em}
.hv-scope{margin-left:auto;display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:6px;white-space:nowrap;
  background:var(--hv-em-wash);border:1px solid var(--hv-em-line);color:var(--hv-em-deep);font-size:13px;font-weight:600}

/* bubbles keep one width in both of Vera's widths, so no line re-wraps while she docks */
.hv-thread{flex:1 1 0;min-height:0;display:flex;flex-direction:column;justify-content:flex-end;gap:10px;padding:14px;overflow:hidden}
.hv-msg{width:max-content;max-width:min(92%,258px);padding:10px 13px;border-radius:18px;font-size:13.5px;line-height:1.5;flex:none}
.hv-me{align-self:flex-end;background:var(--hv-em-wash);border:1px solid var(--hv-em-line);border-bottom-right-radius:6px}
.hv-bot{align-self:flex-start;width:min(100%,274px);max-width:none;display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:start;
  background:var(--hv-surface);border:1px solid var(--hv-hair);border-bottom-left-radius:6px;box-shadow:var(--hv-sh-1)}
.hv-steps{display:flex;flex-direction:column;min-width:0}
.hv-step{display:flex;align-items:flex-start;gap:9px;padding:3px 0;font-size:13.5px;line-height:1.35;color:var(--hv-ink-2);
  transition:opacity .2s var(--hv-ease),color .2s var(--hv-ease)}
.hv-mk{width:16px;height:16px;margin-top:1px;flex:none;border-radius:50%;border:1.6px solid var(--hv-em);background:var(--hv-em);
  color:var(--hv-em-ink);display:grid;place-items:center}
.hv-mk::after{content:'';width:8px;height:4px;border-left:1.8px solid currentColor;border-bottom:1.8px solid currentColor;rotate:-45deg;margin-top:-2px}
.hv-ans{margin:5px 0 0;font-weight:500;color:var(--hv-ink)}
.hv-done{align-items:center}
.hv-done p{margin:0;font-weight:500}

/* the composer: the product's .ai-composer inside the drawer — gradient ring, glow, round send */
.hv-composer{position:relative;flex:none;margin:0 12px 12px;border-radius:22px;background:var(--hv-surface);box-shadow:var(--hv-glow-ai)}
.hv-composer::before{content:'';position:absolute;inset:0;padding:1.5px;border-radius:inherit;pointer-events:none;
  background:linear-gradient(135deg,var(--hv-ai),var(--hv-em));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude}
.hv-composer-in{display:flex;align-items:flex-end;gap:10px;padding:9px 9px 9px 15px}
.hv-field{flex:1;min-width:0;padding:7px 0;font-size:14px;line-height:1.45;letter-spacing:-.012em;min-height:34px}
.hv-ph{color:var(--hv-ink-3)}
.hv-typed:not(:empty) ~ .hv-ph{display:none}
.hv-caret{display:none;width:1.5px;height:1.15em;margin-left:1px;vertical-align:-.2em;background:var(--hv-ai)}
.hv-send{width:38px;height:38px;flex:none;border-radius:50%;display:grid;place-items:center;color:var(--hv-em-ink);
  background:linear-gradient(142deg,var(--hv-em),var(--hv-ai) 130%);
  box-shadow:0 3px 12px oklch(0.52 0.125 165 / .3),inset 0 1px 0 oklch(1 0 0 / .3);transition:transform .2s var(--hv-spring)}
.hv-send svg{width:18px;height:18px;stroke-width:2}

/* ── the cards beside her ────────────────────────────────────────────── */
.hv-docs,.hv-scene{position:absolute;inset:0;pointer-events:none}
.hv-doc{--hv-rest:rotate(0deg);position:absolute;width:46.5%;padding:13px 14px 14px;border-radius:18px;pointer-events:auto;
  background:var(--hv-surface);border:1px solid var(--hv-hair);box-shadow:var(--hv-sh-card);transform:var(--hv-rest);
  transition:transform .7s var(--hv-ease),opacity .45s var(--hv-ease),box-shadow .5s var(--hv-ease)}
.hv-doc:hover,.hv-doc:focus-visible{z-index:6;transform:rotate(0deg) scale(1.03);box-shadow:var(--hv-sh-lift);outline:none}
.hv-doc-hd{display:flex;align-items:center;gap:8px;margin-bottom:9px;min-height:26px}
.hv-kind{display:inline-flex;align-items:center;gap:7px;min-width:0;font-size:13px;font-weight:600;letter-spacing:-.01em;white-space:nowrap}
.hv-kind i{width:26px;height:26px;border-radius:8px;flex:none;display:grid;place-items:center;background:var(--hv-sunken);color:var(--hv-ink-2);border:1px solid var(--hv-hair-soft)}
.hv-kind svg{width:15px;height:15px}
.hv-kind span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.hv-badge{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:999px;white-space:nowrap;min-width:0;
  font-size:12px;font-weight:600;border:1px solid var(--hv-hair);color:var(--hv-ink-2);
  transition:transform .45s var(--hv-spring),opacity .3s var(--hv-ease)}
.hv-badge svg{width:13px;height:13px;stroke-width:2;flex:none}
.hv-badge span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.hv-end{margin-left:auto}
.hv-badge.ok{background:var(--hv-em-wash);color:var(--hv-em-deep);border-color:var(--hv-em-line)}
.hv-badge.dot::before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor;flex:none}
.hv-badge.ai{background:var(--hv-ai-wash);color:var(--hv-ai-deep);border-color:var(--hv-ai-line)}
.hv-badge.info{background:var(--hv-info-wash);color:var(--hv-info-deep);border-color:var(--hv-info-line)}
.hv-badge.warn{background:var(--hv-warn-wash);color:var(--hv-warn-deep);border-color:var(--hv-warn-line)}

/* (a) quote */
.hv-quote{--hv-rest:rotate(1.6deg);right:0;top:8px;z-index:3}
.hv-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:baseline;padding:7px 0;border-top:1px solid var(--hv-hair-soft);
  font-size:13px;transition:opacity .4s var(--hv-ease),transform .5s var(--hv-ease)}
.hv-row span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
.hv-row b{font-weight:600;text-align:right}
.hv-row em{grid-column:1 / -1;font-style:normal;font-size:11.5px;color:var(--hv-ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-total{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding-top:9px;border-top:1px solid var(--hv-hair-hard);
  font-size:12px;color:var(--hv-ink-3);transition:opacity .4s var(--hv-ease)}
.hv-total b{font-size:21px;line-height:1.1;font-weight:600;letter-spacing:-.03em;color:var(--hv-ink);text-align:right}
.hv-total b small{font-size:12px;font-weight:500;letter-spacing:0;color:var(--hv-ink-3);margin:0 2px}

/* (a) technical deck: a 16:9 slide and its filmstrip — the look of the deck thumbnails lower on the page */
.hv-deck{--hv-rest:rotate(-2deg);right:6%;top:216px;width:44.5%;z-index:2;padding-bottom:12px}
.hv-slide{--sl-blue:#3D6FD8;--sl-acc:#0FA37A;--sl-vio:#8B5CF6;position:relative;aspect-ratio:16 / 9;border-radius:7px;overflow:hidden;
  padding:6.5% 7% 0;display:flex;flex-direction:column;container-type:inline-size;
  box-shadow:0 0 0 1px var(--hv-hair),0 10px 22px -16px oklch(0.2 0 0 / .45)}
.hv-sl-k{font:700 3.9cqw/1 var(--ui,sans-serif);letter-spacing:.08em;text-transform:uppercase;color:#0B7A5C;transition:opacity .4s var(--hv-ease)}
.hv-sl-t{margin-top:2.6cqw;font:700 6.6cqw/1.08 var(--ui,sans-serif);letter-spacing:-.02em;
  transition:opacity .4s var(--hv-ease),transform .5s var(--hv-ease)}
.hv-gantt{flex:1;display:grid;grid-template-columns:38% 1fr;align-content:center;row-gap:2.4cqw;align-items:center;font-size:4.5cqw;font-weight:500;line-height:1.1;color:var(--hv-ink-3)}
.hv-gantt span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:4%}
.hv-gantt i{height:3.4cqw;border-radius:99px;background:var(--sl-blue);transform-origin:left;transition:transform .7s var(--hv-ease)}
.hv-gantt i:nth-of-type(2){background:var(--sl-vio);transition-delay:.16s}
.hv-gantt i:nth-of-type(3){background:var(--sl-acc);transition-delay:.32s}
.hv-sl-ft{display:flex;justify-content:space-between;align-items:center;margin:0 -7cqw;padding:2.2cqw 7cqw;background:var(--hv-ink);color:#fff;
  font:600 3.6cqw/1 var(--ui,sans-serif);letter-spacing:.02em}
.hv-sl-ft span:last-child{font-variant-numeric:tabular-nums;opacity:.8}
.hv-film{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:9px;transition:opacity .4s .25s var(--hv-ease)}
.hv-film i{position:relative;aspect-ratio:16 / 9;border-radius:4px;background:#fff;box-shadow:0 0 0 1px #DDE2EA;overflow:hidden}
.hv-film i::before{content:'';position:absolute;inset:22% 14% 20%;border-radius:2px}
.hv-film i:nth-child(1){background:#12151F}
.hv-film i:nth-child(1)::before{inset:16% 10% auto auto;width:30%;aspect-ratio:1;border-radius:50%;background:#0FA37A}
.hv-film i:nth-child(2)::before{background:repeating-linear-gradient(90deg,#E8ECF1 0 20%,transparent 20% 26.6%)}
.hv-film i:nth-child(3)::before{background:linear-gradient(90deg,#E8ECF1 0 28%,transparent 28% 36%,#12151F 36% 62%,transparent 62% 70%,#E8ECF1 70%)}
.hv-film i:nth-child(4){box-shadow:0 0 0 2px var(--hv-orange)}
.hv-film i:nth-child(4)::before{inset:30% 12% 22% 30%;background:
  linear-gradient(#3D6FD8,#3D6FD8) 0 0 / 40% 22% no-repeat,
  linear-gradient(#8B5CF6,#8B5CF6) 30% 50% / 55% 22% no-repeat,
  linear-gradient(#0FA37A,#0FA37A) 100% 100% / 26% 22% no-repeat}

/* (a) contract: a sheet of paper */
.hv-contract{--hv-rest:rotate(1.4deg);right:0;top:450px;width:35.5%;aspect-ratio:1 / 1.26;z-index:1;display:flex;flex-direction:column;
  padding:12px 13px 12px;border-radius:5px;border:0;
  box-shadow:0 0 0 1px var(--hv-hair),0 1px 2px oklch(0.3 0.03 40 / .08),0 18px 36px -20px oklch(0.2 0.02 40 / .5)}
.hv-contract .hv-doc-hd{margin-bottom:7px;min-height:22px}
.hv-contract .hv-kind{font-size:11.5px;color:var(--hv-ink-3);gap:5px}
.hv-contract .hv-kind i{width:20px;height:20px;border-radius:6px}
.hv-contract .hv-kind svg{width:12px;height:12px}
.hv-contract .hv-badge{height:20px;padding:0 7px;font-size:10.5px}
.hv-ctitle{margin:0;font:700 12.5px/1.2 var(--ui,sans-serif);letter-spacing:-.01em;transition:opacity .4s var(--hv-ease)}
.hv-cparties{margin:3px 0 6px;font-size:9.5px;line-height:1.3;color:var(--hv-ink-3);transition:opacity .4s var(--hv-ease)}
.hv-clause{padding:6px 0 5px;border-top:1px solid var(--hv-hair-soft);transition:opacity .4s var(--hv-ease),transform .5s var(--hv-ease)}
.hv-clause b{display:block;font-size:10.5px;line-height:1.25;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-clause span{display:flex;align-items:center;gap:4px;margin-top:3px;font-size:8.5px;line-height:1;font-weight:600;color:var(--hv-em-deep);white-space:nowrap}
.hv-clause span::before{content:'';width:9px;height:9px;flex:none;border-radius:50%;
  background:var(--hv-em) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.4 8.3 2.3 2.3 4.9-5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat}
.hv-clause span::after{content:'';flex:1;min-width:8px;height:4px;margin-left:3px;border-radius:2px;background:var(--hv-hair-soft)}
.hv-sign{margin-top:auto;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:6px;transition:opacity .4s .4s var(--hv-ease)}
.hv-sign span{padding-top:3px;border-top:1px solid var(--hv-ink-3);font-size:8px;line-height:1.2;color:var(--hv-ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* (b) briefing: three compact deal cards */
.hv-deal{padding:11px 13px 12px}
.hv-deal .hv-doc-hd{margin-bottom:6px}
.hv-deal p{display:flex;align-items:baseline;gap:10px;margin:0}
.hv-deal p b{font-size:13.5px;font-weight:600}
.hv-deal strong{flex:1;min-width:0;font-size:14px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-deal small{display:block;margin-top:1px;font-size:11.5px;color:var(--hv-ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-d1{--hv-rest:rotate(1.4deg);right:0;top:74px;z-index:3}
.hv-d2{--hv-rest:rotate(-1.8deg);right:6%;top:214px;z-index:2}
.hv-d3{--hv-rest:rotate(1.1deg);right:1%;top:354px;z-index:1}

/* (c) approvals: the margin against the floor, Approve / Reject */
.hv-appr{padding:12px 14px 13px}
.hv-appr .hv-doc-hd{margin-bottom:7px}
.hv-appr strong{display:block;font-size:14px;font-weight:600;letter-spacing:-.01em}
.hv-appr small{display:block;margin-top:1px;font-size:11.5px;color:var(--hv-ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-meter{position:relative;height:6px;margin:12px 0 6px;border-radius:3px;background:var(--hv-sunken);box-shadow:inset 0 0 0 1px var(--hv-hair-soft)}
.hv-meter i{position:absolute;left:0;top:0;bottom:0;width:var(--hv-m);border-radius:3px;background:var(--hv-em);transform-origin:left;transition:transform .7s .15s var(--hv-ease)}
.hv-meter::after{content:'';position:absolute;left:var(--hv-f);top:-4px;bottom:-4px;width:2px;border-radius:1px;background:var(--hv-ink)}
.hv-appr.is-low .hv-meter i{background:var(--hv-danger)}
.hv-mrow{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--hv-ink-3)}
.hv-mrow b{font-weight:600;color:var(--hv-em-deep)}
.hv-appr.is-low .hv-mrow b{color:var(--hv-danger)}
.hv-acts{position:relative;display:flex;gap:8px;margin-top:11px;height:30px}
.hv-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:30px;padding:0 14px;border-radius:999px;font-size:12.5px;font-weight:600;white-space:nowrap;
  border:1px solid var(--hv-hair-hard);color:var(--hv-ink);background:var(--hv-surface);transition:transform .2s var(--hv-spring),opacity .25s var(--hv-ease)}
.hv-btn.go{border-color:transparent;background:var(--hv-ink);color:var(--hv-surface)}
.hv-okd{position:absolute;inset:0;display:flex;align-items:center;gap:7px;font-size:13px;font-weight:600;color:var(--hv-em-deep);transition:opacity .3s var(--hv-ease),transform .45s var(--hv-spring);transform-origin:left center}
.hv-okd svg{width:20px;height:20px;stroke-width:2.1;color:var(--hv-em)}
.hv-a1 .hv-btn{opacity:0}
.hv-a2 .hv-okd{display:none}
.hv-a1{--hv-rest:rotate(1.3deg);right:0;top:66px;z-index:2}
.hv-a2{--hv-rest:rotate(-1.5deg);right:5%;top:296px;z-index:1}

/* ── callouts ────────────────────────────────────────────────────────── */
.hv-tip{position:absolute;z-index:8;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px 0 8px;border-radius:999px;white-space:nowrap;
  background:var(--hv-tip);color:var(--hv-tip-ink);font-size:12px;font-weight:600;letter-spacing:-.005em;
  box-shadow:0 10px 24px -10px oklch(0.19 0.012 150 / .55);
  transition:transform .5s var(--hv-spring),opacity .3s var(--hv-ease)}
.hv-tip svg{width:15px;height:15px;stroke-width:2.1;flex:none;color:var(--hv-em)}
.hv-tip::after{content:'';position:absolute;width:9px;height:9px;background:inherit;rotate:45deg;border-radius:2px}
.hv-tip-up{right:10px;top:-19px}
.hv-tip-up::after{right:26px;bottom:-4px}
.hv-tip-down{right:-12px;bottom:-15px}
.hv-tip-down::after{right:30px;top:-4px}
.hv-tip-speed{left:23%;bottom:38px;height:34px;padding:0 15px 0 11px;font-size:13.5px;background:oklch(0.55 0.2 33);color:#fff}
.hv-tip-speed::after{display:none}
.hv-tip-speed svg{width:17px;height:17px;color:inherit}
.hv-note{position:absolute;left:8px;top:0;font-size:11.5px;line-height:20px;color:var(--hv-ink-3)}

/* ── the controls: three scene tabs and Pause / Play (the script adds them) ── */
.hv-ctl{position:absolute;left:0;bottom:0;z-index:9;display:flex;align-items:center;gap:6px}
.hv-ctl button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;padding:0 12px;margin:0;border-radius:999px;cursor:pointer;
  font:600 12.5px/1 var(--ui,sans-serif);color:var(--hv-ink-2);background:var(--hv-surface);border:1px solid var(--hv-hair-hard);
  transition:background .2s,color .2s,border-color .2s}
.hv-ctl button:hover,.hv-ctl button:focus-visible{background:var(--hv-sunken);color:var(--hv-ink);border-color:var(--hv-ink-3)}
.hv-ctl .hv-tab[aria-pressed="true"]{background:var(--hv-ink);color:var(--hv-surface);border-color:var(--hv-ink)}
.hv-ctl .hv-pp{width:32px;padding:0;flex:none}
.hv-ctl .hv-pp svg{width:14px;height:14px;fill:currentColor;stroke:none}
.hv-ctl .hv-pp .hv-i-play,.hv-ctl .hv-pp[aria-pressed="true"] .hv-i-pause{display:none}
.hv-ctl .hv-pp[aria-pressed="true"] .hv-i-play{display:block}

/* ── the run: parts are off until the script turns them on ───────────── */
.hv-run [data-hv-part]:not(.is-on){opacity:0}
.hv-run .hv-msg:not(.is-on),.hv-run .hv-ans:not(.is-on){display:none}
.hv-run .hv-msg.is-on,.hv-run .hv-ans.is-on{animation:hv-bubble .32s var(--hv-ease) both}
@keyframes hv-bubble{from{opacity:0;transform:translateY(10px) scale(.98)}}
.hv-run .hv-step:not(.is-on):not(.is-done){opacity:.35}
.hv-run .hv-step:not(.is-done) .hv-mk{background:transparent;border-color:var(--hv-hair-hard)}
.hv-run .hv-step:not(.is-done) .hv-mk::after{display:none}
.hv-run .hv-step.is-on:not(.is-done){color:var(--hv-ink)}
.hv-run .hv-step.is-on:not(.is-done) .hv-mk{border-color:var(--hv-ai);border-right-color:transparent;animation:hv-spin .7s linear infinite}
.hv-run .hv-step.is-done{opacity:.72}
@keyframes hv-spin{to{rotate:360deg}}
.hv-run .hv-composer.is-typing .hv-caret{display:inline-block;animation:hv-blink 1s steps(2,jump-none) infinite}
@keyframes hv-blink{50%{opacity:0}}
.hv-run .hv-composer.is-thinking{animation:hv-glow 1.8s ease-in-out infinite}
@keyframes hv-glow{50%{box-shadow:0 0 0 1px var(--hv-ai-line),0 6px 34px 4px color-mix(in oklch,var(--hv-em) 40%,transparent)}}
.hv-run .hv-send.is-sent{transform:scale(.86)}
.hv-run.hv-paused :is(.hv-mk,.hv-caret,.hv-composer){animation-play-state:paused}

.hv-run .hv-doc:not(.is-on){transform:translate(-58%,30px) scale(.35) rotate(-8deg);pointer-events:none}
.hv-run .hv-doc.is-front{z-index:7;transform:translate(-7%,0) scale(1.07) rotate(0deg);box-shadow:var(--hv-sh-lift)}
.hv-run .hv-contract.is-front{transform:translate(-24%,-8%) scale(1.14) rotate(0deg)}
.hv-run .hv-doc:not(.is-filled) :is(.hv-row,.hv-clause,.hv-sl-t){opacity:0;transform:translateY(8px)}
.hv-run .hv-doc:not(.is-filled) :is(.hv-total,.hv-sl-k,.hv-film,.hv-ctitle,.hv-cparties,.hv-sign){opacity:0}
.hv-run .hv-doc:not(.is-filled) :is(.hv-gantt i,.hv-meter i){transform:scaleX(0)}
.hv-run .hv-doc :is(.hv-row,.hv-clause){transition-delay:calc(var(--hv-i,0) * .16s)}
.hv-run .hv-total{transition-delay:.3s}
.hv-run .hv-badge[data-hv-part]:not(.is-on){transform:scale(.5)}
.hv-run .hv-tip:not(.is-on){transform:translateY(8px) scale(.7)}
.hv-run .hv-a1:not(.is-approved) .hv-btn{opacity:1}
.hv-run .hv-a1:not(.is-approved) .hv-okd{opacity:0;transform:scale(.7)}
.hv-run .hv-btn.is-press{transform:scale(.9)}
/* the end of a scene: everything leaves together, then the script sets the next one */
.hv-run.hv-out :is(.hv-msg,.hv-doc,.hv-tip){opacity:0;transition:opacity .4s var(--hv-ease),transform .6s var(--hv-ease)}

/* ── narrow (phones, and any column under 520 px): Vera, then one fixed zone for the cards ── */
@container (max-width:519px){
  .hv-stage{height:auto}
  .hv-vera,.hv-wide .hv-vera{position:relative;top:auto;bottom:auto;width:100%;height:506px;transition:none}
  .hv-msg{max-width:92%}
  .hv-bot{width:100%}
  .hv-docs{position:relative;inset:auto;height:528px;margin-top:30px}
  .hv-scene{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-content:start;gap:22px 10px}
  .hv-doc{position:relative;width:auto;right:auto;top:auto;--hv-rest:rotate(0deg);z-index:auto;grid-column:1 / -1}
  .hv-scene .hv-deck,.hv-scene .hv-contract{grid-column:auto;aspect-ratio:auto;padding:11px}
  .hv-contract{min-height:196px}
  .hv-sign{gap:6px}
  .hv-tip-down{right:10px}
  .hv-tip{max-width:calc(100% - 16px)}
  .hv-tip > span{min-width:0;overflow:hidden;text-overflow:ellipsis}
  .hv-contract .hv-kind i{display:none}
  .hv-tip-speed{left:50%;bottom:0;translate:-50% 0}
  .hv-note{position:static;display:block;text-align:center;margin-top:6px}
  .hv-ctl{position:relative;justify-content:center;margin-top:10px}
  .hv-ctl button{height:40px;padding:0 14px}
  .hv-ctl .hv-pp{width:40px;padding:0}
  .hv-run .hv-doc:not(.is-on){transform:translateY(-30px) scale(.85)}
  .hv-run .hv-doc.is-front,.hv-run .hv-contract.is-front{transform:scale(1.02)}
}

@media(prefers-reduced-motion:reduce){.hv *,.hv *::before,.hv *::after{animation:none!important;transition:none!important}}
