/* oisin.eu: the slide deck's styles, taken from the investor site (finance/site/index.html and assets/product.css) so
   both sites share one visual system: tokens, the top bar, the app window and the sealed vault of the demo, the sticky
   stage of the slides and the scenes on it. Content-specific additions live in site.css. */
  :root {
    --bg: #E9EFF1; --ink: #17263A; --muted: #556575; --line: #C9D4DB; --card: #FFFFFF; --soft: #F3F6F8;
    --vault: #DCE7EE; --vault-line: #2F5D7C; --bot: #2F5D7C; --glow: #8FD3F0;
    --seal: #D9A441; --seal-ink: #7D590C; --on-seal: #1B2A3D; --on-line: #FFFFFF;
    --ok: #3F7A5B; --warn: #B4533A; --eye: #8A97A5; --user: #2F5D7C; --user-ink: #FFFFFF;
    --info-bg: #14273B; --info-ink: #EEF3F7; --info-soft: #D5DFE8; --info-muted: #A9BACA; --info-num: #E3B65A;
    --font: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
    --tb: calc(56px + env(safe-area-inset-top, 0px)); --gutter: 56px;
    box-sizing: border-box; color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0F1A26; --ink: #E4ECF1; --muted: #9AAABA; --line: #2A3B4C; --card: #182635; --soft: #1D2E40;
      --vault: #172B3C; --vault-line: #6FA3C4; --bot: #6FA3C4; --eye: #6B7A89; --user: #3D6E8C;
      --seal-ink: #E3B65A; --on-line: #0F1A26; --warn: #D67B62; --info-bg: #22374C; color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0F1A26; --ink: #E4ECF1; --muted: #9AAABA; --line: #2A3B4C; --card: #182635; --soft: #1D2E40;
    --vault: #172B3C; --vault-line: #6FA3C4; --bot: #6FA3C4; --eye: #6B7A89; --user: #3D6E8C;
    --seal-ink: #E3B65A; --on-line: #0F1A26; --warn: #D67B62; --info-bg: #22374C; color-scheme: dark;
  }
  @media (max-width: 560px) { :root { --gutter: 22px; } }
  *, *::before, *::after { box-sizing: inherit; }
  html, body { margin: 0; }
  body { background: var(--bg); color: var(--ink); font-family: var(--font); overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  button { font-family: inherit; }
  :focus-visible { outline: 3px solid var(--seal); outline-offset: 2px; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  /* ---------- Shell: top bar, tabs, theme switch, progress ---------- */
  .topbar { position: fixed; top: 0; left: 0; right: 0; height: var(--tb); z-index: 50; display: flex; align-items: center; justify-content: center;
    padding: env(safe-area-inset-top, 0px) max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px));
    background: var(--bg); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
  .mark { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 8px; font: 700 16px var(--font); letter-spacing: -0.01em; color: var(--ink); background: none; border: 0; padding: 4px 8px 4px 4px; border-radius: 999px; cursor: pointer; }
  .mark svg { display: block; }
  .tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 14%, transparent); gap: 2px; }
  .tabs button { font: 600 14px var(--font); color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
  .tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(23,38,58,.15); }
  .theme { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
  .theme:hover { color: var(--ink); background: color-mix(in srgb, var(--muted) 14%, transparent); }
  .lang { position: absolute; right: calc(max(12px, env(safe-area-inset-right, 0px)) + 42px); height: 30px; min-width: 36px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 700 12.5px var(--font); letter-spacing: .02em; cursor: pointer; }
  .lang:hover { color: var(--ink); border-color: var(--muted); }
  .theme .moon { display: none; }
  :root[data-theme="dark"] .theme .moon { display: block; } :root[data-theme="dark"] .theme .sun { display: none; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .moon { display: block; } :root:not([data-theme="light"]) .theme .sun { display: none; } }
  #prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--vault-line); transform-origin: left; transform: scaleX(0); }
  @media (max-width: 760px) and (min-width: 561px) { .mark span { display: none; } }
  @media (max-width: 560px) {
    :root { --tb: calc(96px + env(safe-area-inset-top, 0px)); }
    .topbar { align-items: flex-end; padding-bottom: 7px; } .mark { top: calc(env(safe-area-inset-top, 0px) + 6px); left: 8px; } .mark span { display: inline; }
    .lang { top: calc(env(safe-area-inset-top, 0px) + 10px); right: 10px; } .theme { display: none; }
    .tabs { width: 100%; padding: 3px; } .tabs button { flex: 1 1 auto; padding: .62em .3em; white-space: nowrap; font-size: min(12.5px, calc((100vw - 28px) / 36)); }
    :root[lang="de"] .tabs button { font-size: min(12.5px, calc((100vw - 28px) / 38)); }
  }
  .about { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); top: calc(100% + 8px); width: min(22em, calc(100vw - 24px)); padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
    box-shadow: 0 16px 36px -18px rgba(10,20,35,.45); font-size: 13.5px; line-height: 1.45; color: var(--muted); pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
  .about b { color: var(--ink); }
  .about::before { content: ""; position: absolute; left: 20px; top: -6px; width: 10px; height: 10px; background: var(--card); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
  .mark:hover + .about, .mark:focus-visible + .about, .about.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease .25s, transform .2s ease .25s, visibility 0s .25s; }
  .about.open { transition-delay: 0s; }

  html:not([data-tab="vision"]) #track, html:not([data-tab="vision"]) #nav { display: none; }
  html:not([data-tab="invest"]) #invest, html:not([data-tab="invest"]) #inav { display: none; }
  html[data-tab="invest"] { scroll-padding-top: var(--tb); }

  /* slide dots */
  .dots { position: fixed; right: max(6px, env(safe-area-inset-right, 0px)); top: calc(50% + var(--tb) / 2); transform: translateY(-50%); display: flex; flex-direction: column; z-index: 10; }
  .dots button { width: 26px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
  .dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--muted); transition: background .3s, transform .3s; }
  .dots button.on::before { background: var(--vault-line); border-color: var(--vault-line); transform: scale(1.25); }
  @media (max-width: 560px), (max-height: 480px) { .dots { right: 0; } .dots button { width: 20px; height: 17px; } .dots button::before { width: 6px; height: 6px; border-width: 1.2px; } }

  .scene { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(16px, 3vw, 36px); align-items: center; transition: opacity .5s ease; }
  .scene.out { opacity: 0; }
  .stacked .scene { grid-template-columns: 1fr; gap: 14px; } .stacked .behind { max-width: 300px; margin: 0 auto; width: 100%; }

  /* ---------- App window mockup ---------- */
  .app { container-type: inline-size; position: relative; display: flex; flex-direction: column; height: 480px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
         box-shadow: 0 1px 0 rgba(23,38,58,.04), 0 18px 40px -18px rgba(23,38,58,.35); }
  .bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 16px; border-bottom: 1px solid var(--line); }
  .bar .name { font-weight: 700; font-size: 15px; }
  .pills { margin-left: auto; display: flex; gap: 6px; min-width: 0; flex: none; }
  .pill .short { display: none; }
  .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
          border: 1px solid var(--line); color: var(--muted); transition: all .4s ease; white-space: nowrap; }
  .pill svg { flex: none; }
  .pill.on { border-color: color-mix(in srgb, var(--seal) 70%, transparent); color: var(--ink); background: color-mix(in srgb, var(--seal) 14%, transparent); }
  .pill.eu { opacity: 0; transform: translateY(-4px); }
  .pill.eu.show { opacity: 1; transform: none; }
  @container (max-width: 470px) {
    .bar { padding: 10px 14px 10px 12px; }
    .pill { font-size: 11.5px; padding: 3px 8px; }
    .pill.eu span { display: none; }
    .pill.eu { padding: 4px 6px; }
    .pill .long { display: none; }
    .pill .short { display: inline; }
  }
  .chat { flex: 1; min-height: 0; padding: 18px 16px 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; overflow: hidden; position: relative; }
  .chat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40px; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, var(--card), transparent); }
  .msg { max-width: 86%; font-size: 14.5px; line-height: 1.45; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
  .msg.show { opacity: 1; transform: none; }
  .msg.gone { opacity: 0; transition: opacity .25s ease; } /* pushed past the window's top: leaves whole, never as a sliver */
  /* phones: the window holds one message, so it shows the gist; the service tiles below light up in place of the chips */
  @media (max-width: 560px) { .stacked .behind { max-width: 210px; } } /* phones: a smaller vault leaves the chat room for a whole message */
  .wrap.stacked .app .msg { font-size: 13px; line-height: 1.38; } .wrap.stacked .app .msg.agent .chips, .wrap.stacked .app .approval p, .wrap.stacked .app .approval .chip.file, .wrap.stacked .app .agent-body:has(> .log) > .agent-text { display: none; }
  .wrap.stacked .app .chat { padding-top: 4px; } .wrap.stacked .app .chat::before { height: 8px; }
  .wrap.stacked .app .log { margin-top: 0; padding: 6px 9px; } .wrap.stacked .app .log li { font-size: 12.5px; padding: 2px 0; } .wrap.stacked .app .log li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .msg.user { align-self: flex-end; background: var(--user); color: var(--user-ink); padding: 9px 14px; border-radius: 16px 16px 4px 16px; }
  .msg.agent { align-self: flex-start; display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
  .avatar { width: 28px; height: 28px; border-radius: 8px; background: var(--bot); display: grid; place-items: center; }
  .agent-body { min-width: 0; }
  .agent-text { padding-top: 4px; }
  .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 9px 4px 6px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); }
  .chip svg { width: 18px; height: 18px; }
  .status { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
  .status .spinner { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--vault-line); animation: spin 0.9s linear infinite; }
  .status.done .spinner { display: none; }
  .dotsT { display: inline-flex; gap: 4px; padding: 10px 2px; }
  .dotsT i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bounce 1s infinite; }
  .dotsT i:nth-child(2) { animation-delay: .15s; } .dotsT i:nth-child(3) { animation-delay: .3s; }
  @keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
  @keyframes spin { to { transform: rotate(360deg); } }

  .approval { margin-top: 2px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--soft); }
  .approval h4 { margin: 0 0 3px; font-size: 15px; }
  .approval p { margin: 0; font-size: 13.5px; color: var(--muted); }
  .actions { display: flex; gap: 8px; margin-top: 11px; }
  .btn { font: 600 13.5px var(--font); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); transition: transform .12s ease, background .3s, color .3s, border-color .3s; }
  .btn.primary { background: var(--ok); border-color: var(--ok); color: #fff; display: inline-flex; align-items: center; gap: 5px; }
  .btn.pressed { transform: scale(.93); }
  .approval.approved .btn.secondary { opacity: .35; }

  .log { list-style: none; margin: 8px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
  .log li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; padding: 3px 0; opacity: 0; transform: translateX(-4px); transition: opacity .3s, transform .3s; }
  .log li.show { opacity: 1; transform: none; }
  .log:not(:has(li.show)) { visibility: hidden; } /* the record's frame appears with its first step, never empty */
  .log li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; }
  .verify { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--vault-line); opacity: 0; transition: opacity .4s; }
  .verify.show { opacity: 1; }

  .composer { flex: none; display: flex; align-items: flex-end; gap: 10px; margin: 6px 12px 12px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
  .input { flex: 1; font-size: 14.5px; line-height: 1.45; min-height: 21px; padding: 5px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
  .input .ph { color: var(--muted); }
  .caret { display: inline-block; width: 1.5px; height: 17px; background: var(--ink); vertical-align: -3px; margin-left: 1px; animation: caret 1s steps(1) infinite; }
  @keyframes caret { 50% { opacity: 0; } }
  .send { width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--line); display: grid; place-items: center; transition: background .2s, transform .12s; }
  .send.ready { background: var(--user); }
  .send.pressed { transform: scale(.9); }

  .cursor { position: absolute; left: 0; top: 0; width: 20px; height: 24px; opacity: 0; pointer-events: none; z-index: 5;
            transition: opacity .3s, transform 1.1s cubic-bezier(.5,.05,.25,1); filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
  .cursor.show { opacity: 1; }
  .ripple { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--ok); opacity: 0; pointer-events: none; z-index: 4; }
  .ripple.go { animation: ripple .7s ease-out; }
  @keyframes ripple { from { opacity: .45; transform: scale(.3); } to { opacity: 0; transform: scale(1.7); } }

  /* ---------- Behind the scenes ---------- */
  .behind svg { display: block; width: 100%; height: auto; overflow: visible; }
  .behind * { transform-box: fill-box; transform-origin: center; }
  .seal, .shield, .spin, .stars, .trav, .threat, .blk { opacity: 0; }
  .tlabel { font-size: 16px; font-weight: 700; fill: var(--ink) !important; opacity: 0; transition: opacity .4s; }
  .threats { transition: opacity .5s ease; }
  .seal, .stars { transition: opacity .6s ease, transform .9s cubic-bezier(.6,.05,.25,1); }
  .trav { transition: opacity .5s ease; }
  .tile { transition: opacity .5s ease; }
  .tile-frame { transition: stroke .4s, stroke-width .4s; }
  .vault-rect { stroke-dasharray: 10 9; }
  .seal { transform: scale(0); }
  .stars { transform: scale(.6); }
  .bot { transition: transform 1.1s cubic-bezier(.6,.05,.25,1); transform: translateY(27px); }
  .p2 .bot { transform: translateY(0); }
  .bot-eye { animation: blink 4.5s infinite; }
  @keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
  .antenna { animation: pulse 2s steps(4) infinite; }
  @keyframes pulse { 50% { opacity: .45; } }

  .p1 .trav { opacity: 1; }
  .known .tile:not(.used) { opacity: .35; }
  .known .tile.used .tile-frame { stroke: var(--vault-line); stroke-width: 2.5; }
  .p2 .vault-rect { stroke-dasharray: 700 0; transition: stroke-dasharray .3s 1.3s; }
  .p2 .seal { opacity: 1; transform: scale(1); transition-delay: 1.4s; }
  .p2 .spin { opacity: 1; transition: opacity .5s 1.7s; animation: rotate 2.4s linear infinite; }
  @keyframes rotate { to { transform: rotate(360deg); } }
  .p3 .threat { animation: lunge 2.4s ease-in-out var(--d) forwards; }
  .p3 .blk { animation: xin .35s ease-out calc(var(--d) + 1.05s) forwards; }
  .p3 .tlabel { opacity: 1; transition-delay: calc(var(--d) + .2s); }
  .p3 .shield { animation: flash3 5.2s linear forwards; }
  @keyframes lunge {
    0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; transform: translate(0, 0); }
    40% { transform: translate(var(--dx), var(--dy)); } 52% { transform: translate(calc(var(--dx) * .5), calc(var(--dy) * .5)); }
    100% { opacity: 1; transform: translate(0, 0); }
  }
  @keyframes flash3 { /* one flash per threat, at the moment it hits the vault */
    0%, 20.5%, 28%, 43.5%, 51%, 66.5%, 74%, 100% { opacity: 0; }
    24.2%, 47.3%, 70.4% { opacity: 1; }
  }
  @keyframes xin { to { opacity: 1; } }
  .p4 .threats { opacity: 0; }
  .p5 .spin { opacity: 0; transition-delay: 0s; }
  .p5 .trav { opacity: .3; }
  .p5 .tile:not(.used) { opacity: 1; }
  .p5 .tile.used .tile-frame { stroke: var(--line); stroke-width: 1.5; }
  .p6 .trav { opacity: 0; }
  .p6 .bot { transform: translateY(27px); }
  .p6 .stars { opacity: 1; transform: scale(1); transition-delay: .6s; }
  #vaultWrap .vx { position: absolute; pointer-events: none; overflow: visible; will-change: transform, opacity; }
  #vaultWrap .spinbox { left: 37.381%; top: 26.596%; width: 23.81%; height: 26.596%; opacity: 0; }
  #behind.p2 ~ .spinbox { opacity: 1; transition: opacity .5s 1.7s; animation: rotate 2.4s linear infinite; }
  #behind.p5 ~ .spinbox { opacity: 0; transition-delay: 0s; }
  #vaultWrap .starbox { left: 31.429%; top: 27.128%; width: 35.714%; height: 39.894%; opacity: 0; transform: scale(.6); transition: opacity .6s ease, transform .9s cubic-bezier(.6,.05,.25,1); }
  #vaultWrap .starbox svg { display: block; width: 100%; height: 100%; overflow: visible; will-change: transform; }
  #behind.p6 ~ .starbox { opacity: 1; transform: scale(1); transition-delay: .6s; }
  #behind.p6 ~ .starbox .stars-ring { animation: rotate 30s linear infinite; }

  /* ---------- Caption + progress ---------- */
  .caption { margin: 26px auto 0; max-width: 40ch; text-align: center; font-size: clamp(1.05rem, 2.6vw, 1.45rem); font-weight: 600;
             line-height: 1.35; letter-spacing: -0.005em; min-height: 2.7em; transition: opacity .35s ease; text-wrap: balance; }
  .caption.fade { opacity: 0; }
  .controls { display: flex; align-items: center; gap: 14px; max-width: 460px; margin: 16px auto 0; }
  .progress { flex: 1; display: flex; gap: 6px; }
  .seg { flex: 1; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--muted) 25%, transparent); overflow: hidden; }
  .seg i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--vault-line); }
  .toggle { border: 1.5px solid color-mix(in srgb, var(--muted) 60%, transparent); background: transparent; color: var(--ink); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: none; }

  .paused *, .paused *::before { animation-play-state: paused !important; }
  .paused .bot-eye, .paused .wfv-eye, .paused .wfv-eyes, .paused #openEye { animation: none !important; } /* a pause never holds an eye mid-blink: at rest the eyes are open */
  @media (prefers-reduced-motion: reduce) {
    *, *::before { transition-duration: .01s !important; transition-delay: 0s !important; }
    .bot-eye, .antenna, .spin, .spinbox, .stars-ring, .dotsT i, .caret { animation: none !important; }
    .p3 .threat, .p3 .blk { animation: none; opacity: 1; }
    .p3 .shield { animation: none; opacity: .6; }
  }

  /* ---------- Vision tab: sticky stage driven by scroll ---------- */
  .track { position: relative; height: calc((var(--T, 8.5) + 1) * 100vh); }
  .pstage { position: sticky; top: var(--tb); height: calc(100vh - var(--tb)); height: calc(100svh - var(--tb)); overflow: hidden; }
  .wrap.demo { position: absolute; left: 50%; top: 50%; width: min(1000px, calc(100vw - 2 * var(--gutter))); max-width: none; transform-origin: center; will-change: transform, opacity; }
  .wrap.demo.stacked { width: min(460px, calc(100vw - 2 * var(--gutter))); }
  .stacked .caption { margin-top: 14px; font-size: 1.08rem; min-height: 2.7em; } .stacked .controls { margin-top: 10px; }
  #vaultHome { width: 100%; aspect-ratio: 420 / 376; }
  #vaultWrap { position: absolute; left: 0; top: 0; width: 420px; height: 376px; transform-origin: 0 0; z-index: 3; pointer-events: none; will-change: transform; }
  #vaultWrap svg { width: 100%; height: 100%; overflow: visible; }
  #vaultWrap * { transform-box: fill-box; transform-origin: center; }
  #behind.frozen #dock, #behind.frozen #travelers, #behind.frozen .threats, #behind.frozen .spin, #behind.frozen .shield { opacity: 0 !important; transition: opacity .4s; }
  #behind.frozen .vault-rect { stroke-dasharray: 700 0 !important; }
  #behind.frozen .seal { opacity: 1 !important; transform: scale(1) !important; }
  #behind.frozen .bot { transform: translateY(27px) !important; }
  #behind.frozen ~ .spinbox { opacity: 0 !important; transition: opacity .4s; }
  #behind.frozen ~ .starbox { opacity: var(--starsO, 0) !important; transform: scale(1) !important; transition: none !important; }

  /* home: the pitch on the left, the live demo on the right. Scrolling on (or "How it works") grows the demo into the full first slide. */
  .hero { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; padding: 0 max(var(--gutter), 24px) 20px max(var(--gutter), 5.5vw); font-size: calc(16px * var(--ts, 1) * var(--hf, 1)); pointer-events: none; }
  .hero.compact .hero-facts { display: none; }
  .hero-text { width: min(46%, 35em); } .hero.live .hero-text { pointer-events: auto; }
  .hero-kicker { margin: 0 0 1.1em; font-size: .8em; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--seal-ink); }
  .hero h1 { margin: 0; font-size: clamp(1.9em, 3.9vw, 3.05em); line-height: 1.08; letter-spacing: -0.032em; text-wrap: balance; }
  .hero-sub { margin: 1em 0 0; font-size: clamp(1em, 1.35vw, 1.13em); line-height: 1.5; color: var(--muted); }
  .hero-cta { display: flex; flex-wrap: wrap; gap: .7em; margin-top: 1.7em; }
  .cta.ghost { background: transparent; border-color: var(--line); color: var(--ink); } .cta.ghost:hover { border-color: var(--vault-line); }
  .hero-facts { list-style: none; margin: 2.1em 0 0; padding: 1.1em 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4em; font-size: .92em; line-height: 1.35; }
  .hero-facts b { display: block; font-size: .84em; font-weight: 600; color: var(--muted); margin-bottom: .25em; }
  /* phones: the full demo cannot fit beside the pitch, so a compact card plays the same story in three beats */
  .hero-mini { display: none; margin-top: 1.5em; background: var(--card); border: 1px solid var(--line); border-radius: 1.1em; overflow: hidden; box-shadow: 0 14px 30px -22px rgba(23,38,58,.5); }
  .hero.mini .hero-mini { display: block; }
  .hm-bar { display: flex; align-items: center; justify-content: space-between; padding: .5em .8em; border-bottom: 1px solid var(--line); font-size: .86em; }
  .hm-pill { display: inline-flex; align-items: center; gap: .35em; font-size: .86em; font-weight: 600; padding: .15em .65em; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); transition: all .3s; }
  .hm-pill.on { color: var(--ink); border-color: color-mix(in srgb, var(--seal) 70%, transparent); background: color-mix(in srgb, var(--seal) 14%, transparent); }
  .hm-body { height: 17em; padding: 0 .8em; overflow: hidden; } /* one exchange fits: the request, the agent's line, the card */
  .hm-log { display: flex; flex-direction: column; justify-content: flex-start; gap: .5em; padding: .7em 0 .75em; transition: opacity .45s ease; }
  .hm-log.out { opacity: 0; }
  .hm-user span { display: inline; } /* the caret follows the last letter on its line */
  .hm-line .hm-say { font-size: .82em; line-height: 1.3; color: var(--muted); padding-top: .25em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .hm-card b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .hm-card > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
  .hm-btn { position: relative; }
  .hm-ripple { position: absolute; left: 50%; top: 50%; width: 2.4em; height: 2.4em; margin: -1.2em 0 0 -1.2em; border-radius: 50%; background: var(--ok); opacity: 0; pointer-events: none; animation: hm-ripple .7s ease-out; }
  @keyframes hm-ripple { from { opacity: .45; transform: scale(.3); } to { opacity: 0; transform: scale(1.7); } }
  .hm-user { align-self: flex-end; max-width: 90%; background: var(--user); color: #fff; padding: .5em .8em; border-radius: 1em 1em .3em 1em; font-size: .9em; line-height: 1.3; min-height: 1.3em; box-sizing: content-box; }
  .hm-user .caret { background: #fff; height: 1em; vertical-align: -2px; } .hm-user.sent .caret { display: none; }
  .hm-agent { display: grid; grid-template-columns: 1.7em minmax(0, 1fr); gap: .55em; align-items: start; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
  .hm-agent.show { opacity: 1; transform: none; }
  .hm-agent .avatar { width: 1.7em; height: 1.7em; border-radius: .5em; background: var(--bot); display: grid; place-items: center; } .hm-agent .avatar svg { width: 72%; height: 72%; }
  .hm-card { border: 1px solid var(--line); border-radius: .85em; background: var(--soft); padding: .55em .7em .65em; }
  .hm-card b { display: block; font-size: .9em; line-height: 1.25; } .hm-card span { display: block; font-size: .82em; line-height: 1.3; color: var(--muted); margin-top: .15em; }
  .hm-card div { margin-top: .5em; }
  .hm-btn { display: inline-flex; align-items: center; gap: .35em; font-style: normal; font-size: .82em; font-weight: 600; padding: .35em .9em; border-radius: 999px; background: var(--vault-line); color: var(--on-line); transition: transform .12s ease, background .25s; }
  .hm-btn.press { transform: scale(.92); } .hm-btn.done { background: var(--ok); color: #fff; }
  .demo .app, .demo .behind { transform-origin: 0 0; will-change: transform; }
  html[data-home] #nav { opacity: 0; pointer-events: none; } #nav { transition: opacity .3s; }
  .hero.top { align-items: flex-start; padding: 22px max(var(--gutter), 22px) 0; } .hero.top .hero-text { width: 100%; max-width: 36em; margin: 0 auto; }
  @media (max-width: 560px) { .hero h1 { font-size: 1.72em; } .hero-sub { font-size: .97em; margin-top: .8em; } .hero-kicker { margin-bottom: .7em; } .hero-cta { margin-top: 1.2em; }
    .hero-facts { grid-template-columns: 1fr; gap: .5em; margin-top: 1.3em; padding-top: .9em; font-size: .88em; } .hero-facts li { display: grid; grid-template-columns: 6.2em 1fr; align-items: baseline; } .hero-facts b { margin: 0; } }
  @media (max-height: 520px) { .hero h1 { font-size: 1.5em; } .hero-sub { margin-top: .5em; font-size: .9em; line-height: 1.4; } .hero-cta { margin-top: .8em; } .hero-facts { display: none; } .hero-kicker { margin-bottom: .4em; } }

  .texts { position: absolute; left: 0; right: 0; top: 0; height: var(--textH, 170px); z-index: 4; pointer-events: none; }
  .stext { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding: 12px max(var(--gutter), 30px) 2px; opacity: 0; }
  .stext h2 { margin: 0; font-size: calc(clamp(1.32rem, 3.2vw, 2.5rem) * var(--ts, 1)); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
  .stext p { margin: .5em 0 0; max-width: 60ch; font-size: calc(clamp(.9rem, 1.3vw, 1.1rem) * var(--ts, 1)); line-height: 1.45; color: var(--muted); text-wrap: balance; }
  .nextlink { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 6; opacity: 0; pointer-events: none; display: inline-flex; align-items: center; gap: .4em;
    font: 700 calc(1rem * max(var(--ts, 1), .94)) var(--font); color: var(--on-seal); background: var(--seal); border: 0; border-radius: 999px; padding: .62em 1.15em .62em 1.35em; cursor: pointer; white-space: nowrap;
    box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--seal) 80%, #000); }
  .nextlink.live { pointer-events: auto; } .nextlink:hover svg { transform: translateX(2px); } .nextlink svg { transition: transform .15s ease; }
  @media (max-width: 560px) { .nextlink { bottom: max(10px, env(safe-area-inset-bottom, 0px)); font-size: .95rem; padding: .55em 1em .55em 1.2em; } }
  .pstage.tiny .stext p { display: none; } .pstage.tiny .stext h2 { font-size: 1.15rem; }
  @media (max-width: 560px) and (max-height: 700px) { .stext h2 { font-size: 1.2rem; } .stext p { font-size: .84rem; line-height: 1.38; } }

  .statbar { position: absolute; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; z-index: 6; pointer-events: none; opacity: 0; }
  .pstage.nostat .statbar { display: none; }
  .statin { font-size: calc(16px * max(var(--ts, 1), .94)); width: min(58.75em, calc(100vw - 2 * var(--gutter))); display: grid; container-type: inline-size; }
  .spage { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; background: var(--info-bg); color: var(--info-ink); border-radius: 1.1em; box-shadow: 0 18px 40px -22px rgba(10,20,35,.6); opacity: 0; overflow: hidden; }
  .sitem { display: flex; align-items: center; gap: 1em; padding: .85em 1.25em; min-width: 0; }
  .sitem + .sitem { border-left: 1px solid rgba(255,255,255,.12); }
  .snum { flex: none; min-width: 2.5em; font-size: 2em; font-weight: 700; letter-spacing: -0.02em; color: var(--info-num); white-space: nowrap; line-height: 1; }
  .snum.word { font-size: 1.2em; min-width: 5.2em; letter-spacing: -0.01em; }
  .stxt { flex: 1; font-size: .9em; line-height: 1.36; min-width: 0; }
  .ssrc { display: block; font-size: .82em; color: var(--info-muted); margin-top: .25em; }
  .spark { flex: none; display: flex; align-items: flex-end; gap: .3em; height: 3.2em; }
  .spark span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
  .spark i { display: block; width: .85em; border-radius: 3px 3px 1px 1px; background: rgba(227,182,90,.45); transform-origin: bottom; }
  .spark span:last-child i { background: var(--info-num); }
  .spark em { font-style: normal; font-size: .64em; color: var(--info-muted); margin-top: .3em; }
  @container (max-width: 760px) { .spark { display: none; } .snum { font-size: 1.7em; } .stxt { font-size: .84em; } .sitem { padding: .75em 1em; gap: .75em; } }
  @container (max-width: 520px) {
    .spage { border-radius: 14px; } .sitem { flex-direction: column; align-items: flex-start; gap: 3px; padding: 9px 12px; }
    .snum { font-size: 1.3em; min-width: 0; } .snum.word { font-size: 1.02em; min-width: 0; } .stxt { font-size: .74em; line-height: 1.3; } .ssrc { font-size: .88em; margin-top: 2px; }
  }
  @media (max-width: 560px) { .statbar { bottom: max(10px, env(safe-area-inset-bottom, 0px)); } }

  /* scene parts: everything inside #viz is laid out in canvas units and scaled as one */
  #viz { position: absolute; left: 0; top: 0; transform-origin: 0 0; z-index: 2; }
  #viz > svg { position: absolute; left: 0; top: 0; overflow: visible; z-index: 1; pointer-events: none; transform-origin: 0 0; will-change: transform, opacity; }
  .mapbox { position: absolute; overflow: hidden; z-index: 1; pointer-events: none; opacity: 0; will-change: opacity; -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 58%, transparent 100%); }
  .mapbox canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
  .hero, .stext, .spage, .nextlink { will-change: transform, opacity; }
  .lite .cpanel, .lite .vs, .lite .sector, .lite .regs, .lite .fhead, .lite .ftile, .lite .fpol, .lite .fpod, .lite .flegend, .lite .fconn, .lite .fpanel, .lite #wfBox { will-change: transform, opacity; }
  .lite .wf-wires { will-change: transform; }
  .pulse-dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--seal); opacity: 0; z-index: 2; pointer-events: none; will-change: transform, opacity; }
  #openEye { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
  .off, .off * { animation: none !important; } svg .off, svg .off * { visibility: hidden; }
  .hub-pulse { position: absolute; width: 0; height: 0; z-index: 2; pointer-events: none; opacity: 0; }
  .hub-pulse i { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; box-sizing: border-box; border: 2px solid var(--seal); border-radius: 50%; opacity: 0; animation: hubp 2.2s ease-out infinite; will-change: transform, opacity; }
  .hub-pulse.off i { animation: none; }
  @keyframes hubp { from { transform: scale(.33); opacity: .7; } to { transform: scale(1); opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .hub-pulse { display: none; } }
  .wf.asleep * { animation: none !important; }
  .cpanel { position: absolute; border-radius: 22px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 82%, transparent); opacity: 0; }
  .cpanel .chead { padding: 18px 22px 0; }
  .cpanel h3 { margin: 0; font-size: 21px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 9px; }
  .cpanel .csub { font-size: 15px; color: var(--muted); margin-top: 3px; }
  .cpanel .cbody { position: absolute; left: 22px; right: 22px; bottom: 16px; display: flex; flex-direction: column; }
  .cpanel ul { list-style: none; margin: 0; padding: 0; }
  .cpanel li { display: flex; align-items: center; gap: 10px; font-size: 16.5px; line-height: 1.25; padding: 6px 0; opacity: 0; }
  .cpanel li b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; }
  .cpanel.bad li b { background: var(--warn); } .cpanel.good li b { background: var(--ok); }
  .cpanel .cnote { margin-top: auto; padding-top: 10px; font-size: 13.5px; line-height: 1.38; color: var(--muted); }
  .cpanel.good { border-color: color-mix(in srgb, var(--seal) 60%, transparent); }
  .cpanel.compact .chead { padding: 14px 16px 0; max-width: calc(100% - 96px); } .cpanel.compact h3 { font-size: 18px; gap: 7px; } .cpanel.compact .csub { font-size: 13.5px; }
  .cpanel.compact .cbody { left: 16px; right: 16px; bottom: 12px; } .cpanel.compact li { font-size: 15.5px; padding: 4px 0; gap: 8px; } .cpanel.compact li b { width: 19px; height: 19px; }
  .cpanel.compact .cnote { font-size: 13.5px; line-height: 1.3; padding-top: 6px; }
  .vs { position: absolute; z-index: 3; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 16px;
        background: var(--ink); color: var(--bg); border: 4px solid var(--bg); box-shadow: 0 8px 22px -10px rgba(10,20,35,.55); opacity: 0; }
  .fhead { position: absolute; text-align: center; opacity: 0; }
  .fhead b { display: block; font-size: 17.5px; } .fhead span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
  .ftile { position: absolute; display: flex; align-items: center; gap: 9px; padding: 0 13px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 15.5px; font-weight: 600; opacity: 0; white-space: nowrap; }
  .ftile i { width: 8px; height: 8px; border-radius: 2px; background: var(--muted); flex: none; }
  .fpol { position: absolute; display: flex; align-items: center; gap: 11px; padding: 0 14px; border-radius: 14px; background: var(--card);
          border: 1px solid color-mix(in srgb, var(--seal) 55%, var(--line)); font-size: 15px; line-height: 1.2; opacity: 0; }
  .fpol svg { flex: none; }
  .fchips { position: absolute; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 8px; }
  .ftile.chip { position: static; height: 36px; font-size: 14.5px; padding: 0 12px; }
  .fconn { position: absolute; display: flex; justify-content: center; opacity: 0; }
  .fconn span { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px 0 9px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--vault-line); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
  .fpanel { position: absolute; background: var(--card); border: 1px solid color-mix(in srgb, var(--seal) 55%, var(--line)); border-radius: 16px; overflow: hidden; opacity: 0; box-shadow: 0 10px 28px -20px rgba(23,38,58,.45); }
  .fph { height: 34px; display: flex; align-items: baseline; gap: 10px; padding: 9px 14px 0; } .fph b { font-size: 15.5px; } .fph span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fprow { display: flex; align-items: center; gap: 10px; padding: 0 14px; font-size: 15px; line-height: 1.2; border-top: 1px solid var(--line); }
  .fprow svg { flex: none; }
  /* workflows slide: the requester's app window (same window as the opening demo), the sealed agent with the systems it reaches, and the approver's window */
  .wf { position: absolute; opacity: 0; visibility: hidden; }
  .wf > * { position: absolute; }
  .wf-tabs { left: 0; right: 0; top: 0; display: flex; justify-content: center; align-items: center; gap: 8px; }
  .wf-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 55%, transparent);
    color: var(--ink); font-family: inherit; cursor: pointer; overflow: hidden; white-space: nowrap; transition: background .3s, border-color .3s; }
  .wf-tab .ic { width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--vault-line) 12%, transparent); display: grid; place-items: center; }
  .wf-tab b { font-size: 14.5px; } .wf-tab em { font-style: normal; font-size: 13.5px; color: var(--muted); }
  .wf-tab.on { background: var(--card); border-color: var(--vault-line); }
  .wf-tab .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; padding: 0; border: 0; display: block; } .wf-tab .bar i { display: block; height: 100%; background: var(--vault-line); transform-origin: left; transform: scaleX(0); }
  .wf-tab.run .bar i { animation: wfbar var(--wfd, 11s) linear forwards; }
  @keyframes wfbar { to { transform: scaleX(1); } }
  .wf-pause { flex: none; width: 30px; height: 30px; margin-left: 2px; }
  .wf-wires { left: 0; top: 0; overflow: visible; pointer-events: none; }
  .wfl { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 5 7; transition: stroke .3s; }
  .wfl { stroke-linecap: round; }
  .wfl.on { stroke: var(--vault-line); animation: flow 1s steps(24) infinite; }
  .wfv * { transform-box: fill-box; transform-origin: center; }
  .wfv-scan { opacity: 0; stroke-dasharray: 90 590; transition: opacity .3s; } .wfv.busy .wfv-scan { opacity: .9; animation: wfscan 1.6s linear infinite; }
  @keyframes wfscan { to { stroke-dashoffset: -680; } }
  .wfv-eye { animation: blink 4.5s infinite; } .wfv.busy .wfv-eyes { animation: wflook 1.2s ease-in-out infinite; }
  @keyframes wflook { 0%, 100% { transform: translateX(-2.5px); } 50% { transform: translateX(2.5px); } }
  .wfv.busy .wfv-ant { animation: pulse 1s steps(3) infinite; }
  .wfs { display: grid; place-items: center; padding: 0 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: calc(12.5px * var(--f, 1)); font-weight: 600; line-height: 1.12; text-align: center; color: var(--muted); overflow: hidden; transition: border-color .3s, color .3s, box-shadow .3s; }
  .wfs.on { border-color: var(--vault-line); color: var(--ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--vault-line) 25%, transparent); }
  .wfs.used { color: var(--ink); border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
  :root[lang="de"] .wfs { font-size: calc(12px * var(--f, 1)); } :root[lang="de"] .wf.tall .wfs { font-size: calc(11px * var(--f, 1)); }
  .wf-audit { grid-template-rows: auto auto; align-content: center; gap: 2px; }
  .wf-audit b { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 1em; color: var(--ink); } .wf-audit b svg { width: 10px; height: 11px; }
  .wf-audit span { font-size: .92em; font-weight: 500; color: var(--muted); } .wf-audit.used { border-color: color-mix(in srgb, var(--seal) 60%, var(--line)); }
  .wf-audit.on { border-color: var(--seal); box-shadow: 0 0 0 2px color-mix(in srgb, var(--seal) 30%, transparent); }
  .wfl-aud.on { stroke: var(--seal); }
  .wf .app .chat { padding: 14px 12px 6px; gap: 10px; } .wf .app .msg { max-width: 92%; font-size: 14px; } .wf .app .composer { margin: 4px 10px 10px; } .wf .app .input { font-size: 14px; }
  .wf.pill-long .app .pill .long, .wf.pill-short .app .pill .short { display: inline; } .wf.pill-long .app .pill .short, .wf.pill-short .app .pill .long { display: none; }
  .wf .app .bar { gap: 8px; } .wf .app .pill { flex: none; }
  .wf .app .bar .name { font-size: 14px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wf .app .agent-text { padding-top: 3px; margin-bottom: 6px; font-weight: 600; }
  .wf .log { margin: 0; padding: 8px 10px; } .wf .log li { align-items: flex-start; line-height: 1.3; font-size: 13.5px; } .wf .log li::before { margin-top: 1px; }
  .wf .log li.busy::before { box-sizing: border-box; background: none; border: 2px solid var(--line); border-top-color: var(--vault-line); animation: spin .9s linear infinite; }
  .wf .log li.flag::before { content: "!"; background: var(--seal); color: var(--on-seal); font: 700 11px/16px var(--font); text-align: center; }
  .wf .log li.flag, .wf .log li.final { font-weight: 600; } .wf .log li.wait { color: var(--muted); }
  .wf-apr { opacity: .55; transition: opacity .35s, box-shadow .35s; overflow: visible; } .wf-apr.live { opacity: 1; box-shadow: 0 1px 0 rgba(23,38,58,.04), 0 24px 46px -18px rgba(23,38,58,.5); }
  .wf-apr .bar { border-radius: 18px 18px 0 0; }
  .wf-note { opacity: 0; transition: opacity .3s; } .wf-apr.live .wf-note { opacity: 1; border-color: color-mix(in srgb, var(--seal) 70%, transparent); color: var(--ink); background: color-mix(in srgb, var(--seal) 14%, transparent); } .wf-apr.done .wf-note { opacity: 0; }
  .wf-apr-body { position: relative; flex: 1; min-height: 0; padding: 12px; display: grid; }
  .wf-idle { grid-area: 1 / 1; align-self: center; text-align: center; font-size: 13.5px; color: var(--muted); transition: opacity .25s; } .wf-apr.live .wf-idle { opacity: 0; }
  .wf-apr .approval { grid-area: 1 / 1; align-self: center; margin: 0; opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .3s .1s, transform .45s .1s cubic-bezier(.2,.9,.3,1.2); }
  .wf-apr.live .approval { opacity: 1; transform: none; }
  .wf-rule { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px !important; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px !important; line-height: 1.3; } .wf-rule svg { flex: none; margin-top: 1px; }
  .wf-apr .actions { flex-wrap: wrap; gap: 6px; margin-top: 10px; } .wf-apr .approval { max-width: 100%; min-width: 0; } .wf-apr .approval h4, .wf-apr .approval p { overflow-wrap: break-word; } .wf-apr .btn { font-size: 13px; padding: 6px 12px; white-space: nowrap; }
  .wf.tall .wf-tabs { gap: 5px; } .wf.tall .wf-tab { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 3px; height: 36px; border-radius: 12px; } .wf.tall .wf-tab .ic, .wf.tall .wf-tab em { display: none; }
  .wf.tall .wf-tab b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
  .wf.tall .wfs { font-size: calc(11.5px * var(--f, 1)); padding: 0 3px; border-radius: 10px; }
  .wf.tall .wf-audit span { line-height: 1.15; }
  .wf.tall .wf-apr-body { padding: 6px 10px; } .wf.tall .wf-apr .approval p:not(.wf-rule) { display: none; } .wf.tall .wf-rule { border-top: 0; padding-top: 0 !important; margin-top: 3px !important; } .wf.tall .wf-apr .approval { padding: 8px 11px; } .wf.tall .wf-apr .approval h4 { font-size: 14px; } .wf.tall .wf-rule { margin-top: 5px !important; padding-top: 5px; } .wf.tall .wf-apr .actions { margin-top: 7px; }
  .wf.tall .app .bar { padding: 7px 12px; } .wf.tall .app .chat { padding: 10px 10px 4px; gap: 8px; } .wf.tall .app .composer { margin: 2px 8px 8px; padding: 5px 6px 5px 12px; } .wf.tall .app .send { width: 28px; height: 28px; }
  .wf.tall .log { padding: 6px 9px; } .wf.tall .log li { padding: 2px 0; font-size: 13px; }
  @media (prefers-reduced-motion: reduce) { .wf-apr, .wf-apr .approval { transition: none; } .wf-tab.run .bar i, .wfl.on, .wfv-eye, .wfv.busy * { animation: none !important; } }
  .fpod { position: absolute; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 16px; opacity: 0; min-height: 68px;
          background: color-mix(in srgb, var(--vault-line) 7%, var(--card)); border: 1px dashed color-mix(in srgb, var(--vault-line) 45%, transparent); }
  .fpod svg { flex: none; }
  .fpod b { display: block; font-size: 15px; } .fpod span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
  .flegend { position: absolute; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); opacity: 0; }
  .flegend div { display: flex; align-items: center; gap: 8px; }
  .sector { position: absolute; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 14px;
            background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px -18px rgba(23,38,58,.45); opacity: 0; }
  .sector .ic { width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--vault-line) 12%, transparent); display: grid; place-items: center; }
  .sector b { display: block; font-size: 16px; }
  .sector span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
  .sector.sm { grid-template-columns: 30px 1fr; gap: 8px; padding: 8px 10px; border-radius: 14px; }
  .sector.sm .ic { width: 30px; height: 30px; border-radius: 9px; } .sector.sm .ic svg { width: 19px; height: 19px; } .sector.sm b { font-size: 15px; } .sector.sm span { font-size: 13px; line-height: 1.25; }
  .regs { position: absolute; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 7px; opacity: 0; }
  .regs em { font-style: normal; font-size: 13.5px; color: var(--muted); margin-right: 3px; }
  .reg { font-size: 13.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--seal) 70%, transparent); background: color-mix(in srgb, var(--seal) 14%, transparent); }
  .flow { fill: none; stroke: var(--vault-line); stroke-width: 2; stroke-dasharray: 5 7; animation: flow 1.2s steps(24) infinite; }
  @keyframes flow { to { stroke-dashoffset: -24; } }
  .fac-label { font-size: 15px; font-weight: 700; fill: var(--ink); }
  .led { animation: led 2.4s steps(1) infinite; }
  @keyframes led { 50% { opacity: .25; } }
  .city-name { font-size: 14px; font-weight: 700; fill: var(--ink); }
  .city-type { font-size: 12px; fill: var(--muted); }
  .arc { fill: none; stroke: var(--vault-line); stroke-width: 1.6; opacity: .75; }
  .hub-ring { animation: hub 2.2s steps(30) infinite; }
  @keyframes hub { from { r: 8; opacity: .7; } to { r: 30; opacity: 0; } }
  .hint { position: absolute; left: 50%; bottom: max(12px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12.5px; color: var(--muted); pointer-events: none; }
  .hint svg { animation: nudge 1.8s ease-in-out infinite; }
  @keyframes nudge { 50% { transform: translateY(4px); } }
  @media (prefers-reduced-motion: reduce) { .flow, .led, .hub-ring, .hint svg, #openEye { animation: none !important; } }


/* ---------- A proof with every release: the panel takes the left contrast panel's place; the tree and the vault share
   the right one's. The panel's properties and the proof search are styled in site.css. ---------- */
.cpanel.proof { border-color: color-mix(in srgb, var(--seal) 60%, transparent); height: auto !important; padding-bottom: 22px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.cpanel.proof .csub { color: var(--seal-ink); }
.cpanel.proof .cbody { position: static; margin: 16px 22px 0; }
.cpanel.proof.compact .cbody { margin: 10px 16px 0; } .cpanel.proof.compact { padding-bottom: 14px; }
.pr-label { font: 600 16px var(--font); fill: var(--seal-ink); }
/* no orphans: a box never ends with a lone short word */
:where(.texts, .cpanel, .sector, .regs, .hero) :where(p, li, span, h3, em) { text-wrap: pretty; }
/* the home screen under reduced motion: the demo's parts are placed by script, so they never transition */
@media (prefers-reduced-motion: reduce) { .wrap.demo, .demo .app, .demo .behind, #vaultWrap, #viz, #viz > *, .cpanel, .hero, .stext { transition: none !important; } }
