/* Trust & security: a short deep-blue band. Intro and data sovereignty on the
   left, a "one request, step by step" panel on the right that plays by itself
   (s-trust.js) while in view, and a grid of claims below. No pinned scroll.
   Everything is scoped under .ts-trust (prefix ts-) so it works inside the
   main page and in dev-trust.html, with or without /assets/home/style.css. */

.ts-trust {
  --ts-deep: #003C7C;
  --ts-blue: #044E9D;
  --ts-mid: #0A5898;
  --ts-green: #46C55E;
  --ts-green-hi: #7FE394;
  --ts-sage: #8CB56F;
  --ts-ink: #FFFFFF;
  --ts-text: #D3E3F6;
  --ts-muted: #A7C3E4;
  --ts-kicker: #A9D2FF;
  --ts-line: rgba(255, 255, 255, .15);
  --ts-line-2: rgba(255, 255, 255, .28);
  --ts-panel: rgba(255, 255, 255, .06);
  --ts-panel-2: rgba(255, 255, 255, .1);
  --ts-band: #03458B;               /* flat band colour behind the scene */
  --ts-gate-bg: #0C4C93;            /* = panel colour, so gates hide the line */
  --ts-amber: #FFD978;
  --ts-grad: linear-gradient(90deg, #B4E59A 0%, #5FD27A 42%, #86C8FF 100%);
  --ts-shadow: 0 1px 2px rgba(0, 18, 48, .25), 0 18px 44px -18px rgba(0, 12, 40, .7);
  --ts-head: "Fredoka", system-ui, sans-serif;
  --ts-body: "Alegreya Sans", system-ui, sans-serif;
  --tx: 28px;                       /* x of the vertical link inside the chain */
  --aside: 228px;                   /* width of the ghost/log column in the panel */
  position: relative;
  display: block;
  isolation: isolate;
  overflow-x: clip;
  font-family: var(--ts-body);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ts-text);
  background: linear-gradient(180deg, var(--ts-deep) 0, var(--ts-band) 420px, var(--ts-band) calc(100% - 800px), var(--ts-blue) 100%);
}

/* Local reset: the old theme and Elementor styles must not leak in. */
.ts-trust *, .ts-trust *::before, .ts-trust *::after { box-sizing: border-box; }
.ts-trust h2, .ts-trust h3, .ts-trust p, .ts-trust ul, .ts-trust ol, .ts-trust li, .ts-trust figure, .ts-trust time {
  margin: 0; padding: 0; max-width: none;
}
.ts-trust ul, .ts-trust ol { list-style: none; }
.ts-trust h2::before, .ts-trust h3::before { display: none !important; content: none !important; }
.ts-trust h2, .ts-trust h3 {
  font-family: var(--ts-head); font-weight: 500 !important; color: var(--ts-ink); letter-spacing: -.01em; line-height: 1.12;
  text-transform: none; word-break: normal;
}
.ts-trust b { font-weight: 500; }
.ts-trust em, .ts-trust i { font-style: normal; }
.ts-trust svg { display: block; overflow: visible; }

.ts-trust .ts-wrap { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* Background texture: fine dot grid over the whole band. */
.ts-trust .ts-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(transparent, #000 160px, #000 calc(100% - 160px), transparent);
  mask-image: linear-gradient(transparent, #000 160px, #000 calc(100% - 160px), transparent);
}

/* ---------- Intro ---------- */
.ts-trust .ts-top {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 56px; align-items: center;
  padding-top: 88px;
}
.ts-trust .ts-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ts-head); font-size: 15px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ts-kicker);
}
.ts-trust .ts-kicker__ico {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(70, 197, 94, .16); color: var(--ts-green-hi); box-shadow: 0 0 0 1px rgba(70, 197, 94, .35) inset;
}
.ts-trust .ts-kicker__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ts-trust .ts-h2 { text-wrap: balance; margin-top: 16px; font-size: clamp(34px, 3.5vw, 50px); line-height: 1.06; max-width: 14em; }
.ts-trust .ts-grad {
  background: var(--ts-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ts-trust .ts-lead { margin-top: 18px; font-size: 20px; line-height: 1.5; color: var(--ts-text); max-width: 30em; }

/* ---------- Request panel (plays by itself) ---------- */
.ts-trust .ts-vis { position: relative; z-index: 2; }
.ts-trust .ts-panel {
  position: relative; display: flex; flex-direction: column; width: 100%;
  padding: 20px 24px 20px; border-radius: 24px; background: var(--ts-gate-bg);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 30px 70px -30px rgba(0, 10, 35, .75);
}

/* Caption per step, under the diagram */
.ts-trust .ts-caption { position: relative; display: none; min-height: 66px; margin-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
.ts-trust.is-anim .ts-caption { display: block; }
.ts-trust .ts-cap {
  position: absolute; left: 0; right: 0; top: 14px; display: flex; align-items: flex-start; gap: 12px;
  opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease;
}
.ts-trust .ts-cap.is-on { opacity: 1; transform: none; transition: opacity .45s ease .2s, transform .45s ease .2s; }
.ts-trust .ts-cap i {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ts-green); color: #fff; font-family: var(--ts-head); font-size: 14px; box-shadow: 0 0 0 4px rgba(70, 197, 94, .2);
}
.ts-trust .ts-cap p { font-size: 16.5px; line-height: 1.4; color: var(--ts-text); }
.ts-trust .ts-cap b { font-family: var(--ts-head); font-size: 17px; color: #fff; margin-right: 4px; }

/* Step list: screen readers only while the loop plays; visible without it */
.ts-trust.is-anim .ts-steps {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ts-trust .ts-steps { display: grid; gap: 7px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); counter-reset: ts-step; }
.ts-trust .ts-steps li { position: relative; padding-left: 34px; font-size: 15.5px; line-height: 1.4; color: var(--ts-text); counter-increment: ts-step; }
.ts-trust .ts-steps li::before {
  content: counter(ts-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ts-green); color: #fff; font-family: var(--ts-head); font-size: 12px;
}
.ts-trust .ts-steps li:last-child::before { background: #fff; color: var(--ts-blue); }
.ts-trust .ts-steps b { font-family: var(--ts-head); color: #fff; }

/* Pause / play (WCAG 2.2.2) */
.ts-trust .ts-play {
  -webkit-appearance: none; appearance: none; display: none; place-items: center; flex: none; width: 30px; height: 30px;
  margin: 0; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .06);
  color: #fff; cursor: pointer; box-shadow: none; text-transform: none; line-height: 1; font: inherit;
  transition: background-color .2s, border-color .2s;
}
.ts-trust.is-anim .ts-play { display: grid; }
.ts-trust .ts-play:hover, .ts-trust .ts-play:focus { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .55); color: #fff; }
.ts-trust .ts-play:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ts-trust .ts-play svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ts-trust .ts-play .ts-play__play { display: none; fill: currentColor; stroke-width: 1.2; }
.ts-trust .ts-play.is-paused .ts-play__pause { display: none; }
.ts-trust .ts-play.is-paused .ts-play__play { display: block; }

/* Progress indicator (in the panel) */
.ts-trust .ts-progress__top {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ts-head); font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ts-muted);
}
.ts-trust .ts-progress__top > span:first-child { margin-right: auto; }
.ts-trust .ts-progress__count { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.ts-trust .ts-progress__count b { color: #fff; font-size: 17px; }
.ts-trust .ts-progress__bar { position: relative; height: 3px; margin: 12px 6px 0; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.ts-trust .ts-progress__fill {
  position: absolute; inset: 0; border-radius: 3px; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--ts-sage), var(--ts-green) 60%, var(--ts-green-hi));
}
.ts-trust .ts-ms {
  position: absolute; left: calc(var(--at) * 100%); top: 50%; width: 11px; height: 11px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--ts-gate-bg); border: 2px solid rgba(255, 255, 255, .38);
  transition: background-color .4s, border-color .4s;
}
.ts-trust .ts-ms.is-on { background: var(--ts-green); border-color: #fff; }

/* Body: the vertical chain on the left, ghost + log on the right */
.ts-trust .ts-body { position: relative; height: 450px; margin-top: 18px; }
.ts-trust .ts-chain { display: flex; flex-direction: column; height: 100%; width: calc(100% - var(--aside) - 20px); }

.ts-trust .ts-node {
  position: relative; z-index: 7; align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px;
  border-radius: 18px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: var(--ts-shadow); white-space: nowrap; transition: border-color .4s, box-shadow .4s;
}
.ts-trust .ts-node__ico {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: rgba(255, 255, 255, .12); color: #fff;
}
.ts-trust .ts-node--to .ts-node__ico { background: #fff; color: var(--ts-blue); }
.ts-trust .ts-node__ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ts-trust .ts-node__txt { display: flex; flex-direction: column; line-height: 1.15; }
.ts-trust .ts-node__txt b { font-family: var(--ts-head); font-size: 17px; color: #fff; }
.ts-trust .ts-node__txt small { font-size: 13.5px; color: var(--ts-muted); margin-top: 1px; }
.ts-trust .ts-node--to.is-hit { border-color: rgba(70, 197, 94, .8); box-shadow: 0 0 0 6px rgba(70, 197, 94, .16), var(--ts-shadow); }
.ts-trust .ts-node--from.is-ok { border-color: rgba(70, 197, 94, .55); }

.ts-trust .ts-nbadge {
  position: absolute; top: -11px; right: -10px; display: inline-flex; align-items: center; gap: 4px; height: 23px; padding: 0 9px 0 7px;
  border-radius: 999px; background: var(--ts-green); color: #fff; font-family: var(--ts-head); font-size: 12.5px; letter-spacing: .03em;
  box-shadow: 0 4px 12px -4px rgba(20, 120, 50, .8);
  opacity: 0; transform: scale(.4); transition: opacity .3s, transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
.ts-trust .ts-nbadge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ts-trust .ts-nbadge.is-on { opacity: 1; transform: none; }

.ts-trust .ts-nchip {
  position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  display: grid; white-space: nowrap; font-size: 14px; line-height: 1;
}
.ts-trust .ts-nchip > span {
  grid-area: 1 / 1; justify-self: start; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 9px; border-radius: 999px;
  opacity: 0; transform: translateX(-6px) scale(.94); transition: opacity .35s, transform .4s;
}
.ts-trust .ts-nchip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ts-trust .ts-nchip__on { background: rgba(70, 197, 94, .2); color: #C9F5D2; box-shadow: 0 0 0 1px rgba(70, 197, 94, .6) inset; }
.ts-trust .ts-nchip__off { background: rgba(255, 255, 255, .92); color: #3A4C62; }
.ts-trust .ts-nchip[data-state="on"] .ts-nchip__on,
.ts-trust .ts-nchip[data-state="off"] .ts-nchip__off { opacity: 1; transform: none; }

.ts-trust .ts-nkey {
  position: absolute; top: -13px; right: -13px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ts-green); color: #fff; box-shadow: 0 0 0 4px rgba(70, 197, 94, .22);
  transition: background-color .3s, color .3s, box-shadow .3s, transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.ts-trust .ts-nkey svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ts-trust .ts-nkey.is-out { background: var(--ts-gate-bg); color: rgba(255, 255, 255, .45); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .35) inset; transform: scale(.9); }
.ts-trust .ts-nkey.is-back { transform: scale(1.2); box-shadow: 0 0 0 7px rgba(70, 197, 94, .25), 0 0 26px rgba(70, 197, 94, .7); }

/* The link, top (foundry) to bottom (steel mill) */
.ts-trust .ts-track { position: relative; flex: 1; min-height: 0; margin: 12px 0; }
.ts-trust .ts-rail {
  position: absolute; top: calc(var(--det, 0) * 11%); bottom: 0; left: var(--tx); width: 2px; margin-left: -1px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .4) 0 7px, transparent 7px 14px);
}
.ts-trust .ts-trail {
  position: absolute; top: 0; bottom: 0; left: var(--tx); width: 3px; margin-left: -1.5px; border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), #fff); box-shadow: 0 0 14px rgba(255, 255, 255, .45);
  transform-origin: 50% var(--trail-o, 0%); transform: scaleY(var(--trail, 0));
}
.ts-trust .ts-link {
  position: absolute; top: 0; bottom: 0; left: var(--tx); width: 6px; margin-left: -3px; border-radius: 6px;
  background: repeating-linear-gradient(180deg, var(--ts-green) 0 22px, #BDF6C8 22px 27px);
  box-shadow: 0 0 0 5px rgba(70, 197, 94, .14), 0 0 26px rgba(70, 197, 94, .6);
  transform-origin: 50% var(--enc-o, 60%); transform: scaleY(var(--enc, 0));
  animation: ts-flow 1.4s linear infinite;
}
@keyframes ts-flow { to { background-position: 0 -27px; } }

/* No central database: an empty, struck-through slot beside the middle of the link */
.ts-trust .ts-ghost {
  position: absolute; right: 0; top: 64px; width: var(--aside);
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 14px; text-align: center;
  border-radius: 18px; border: 1.5px dashed rgba(255, 255, 255, .22); transition: border-color .5s, background-color .5s;
}
.ts-trust .ts-ghost__ico {
  position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .55);
  transition: border-color .5s, color .5s, box-shadow .5s, background-color .5s;
}
.ts-trust .ts-ghost__ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.ts-trust .ts-ghost__ico i {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 2px; margin: -1px 0 0 -32px; border-radius: 2px;
  background: #FF9F8A; transform: rotate(-45deg); box-shadow: 0 0 0 2px var(--ts-gate-bg);
}
.ts-trust .ts-ghost__txt { display: flex; flex-direction: column; line-height: 1.2; }
.ts-trust .ts-ghost__txt b { font-family: var(--ts-head); font-size: 16px; color: #fff; }
.ts-trust .ts-ghost__txt small { font-size: 14.5px; color: var(--ts-muted); margin-top: 4px; }
.ts-trust .ts-ghost.is-hl { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .04); }
.ts-trust .ts-ghost.is-hl .ts-ghost__ico { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 8px rgba(255, 255, 255, .06); }

/* Checkpoints */
.ts-trust .ts-gate {
  position: absolute; left: var(--tx); top: calc(var(--at) * 100%); z-index: 5; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--ts-gate-bg);
}
.ts-trust .ts-gate__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ts-trust .ts-gate__ring circle { fill: none; stroke-width: 3; }
.ts-trust .ts-gate__ring .bg { stroke: rgba(255, 255, 255, .2); }
.ts-trust .ts-gate__ring .fg { stroke: var(--ts-green); stroke-linecap: round; stroke-dasharray: 188.5; stroke-dashoffset: 188.5; }
.ts-trust .ts-gate__ico {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: var(--ts-text);
  transition: background-color .35s, color .35s, transform .45s cubic-bezier(.3, 1.6, .5, 1), box-shadow .35s;
}
.ts-trust .ts-gate__ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ts-trust .ts-gate.is-on .ts-gate__ico {
  background: var(--ts-green); color: #fff; transform: scale(1.06);
  box-shadow: 0 0 0 6px rgba(70, 197, 94, .2), 0 0 30px rgba(70, 197, 94, .7);
}
.ts-trust .ts-gate__ok {
  position: absolute; top: -5px; right: -5px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%;
  background: #fff; color: #2E8B45; box-shadow: 0 2px 8px rgba(0, 20, 50, .35);
  transform: scale(0); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.ts-trust .ts-gate__ok svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ts-trust .ts-gate.is-on .ts-gate__ok { transform: scale(1); }

.ts-trust .ts-glabel {
  position: absolute; left: calc(var(--tx) + 36px); right: 0; top: calc(var(--at) * 100%); z-index: 1;
  transform: translateY(-50%); line-height: 1.2;
}
.ts-trust .ts-glabel b { display: block; font-family: var(--ts-head); font-size: 16px; color: rgba(255, 255, 255, .6); transition: color .35s; }
.ts-trust .ts-glabel small { display: block; margin-top: 2px; font-size: 14px; color: var(--ts-muted); opacity: .7; transition: opacity .35s; }
.ts-trust .ts-glabel.is-on b { color: #fff; }
.ts-trust .ts-glabel.is-on small { opacity: 1; }

/* Tokens */
.ts-trust .ts-token {
  position: absolute; left: var(--tx); top: calc(var(--at, 0) * 100%);
  transform: translate(-50%, -50%) scale(var(--sc, 1)); opacity: var(--op, 0);
}
.ts-trust .ts-token--req {
  z-index: 4; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--ts-blue);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .16), 0 0 26px rgba(170, 215, 255, .55), 0 10px 24px -8px rgba(0, 10, 30, .6);
}
.ts-trust .ts-token--req svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ts-trust .ts-token__tag {
  position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); opacity: var(--tag, 1);
  padding: 4px 11px; border-radius: 999px; background: #fff; color: var(--ts-blue); white-space: nowrap;
  font-family: var(--ts-head); font-size: 14px; line-height: 1.2; box-shadow: 0 6px 16px -6px rgba(0, 10, 30, .6);
}
.ts-trust .ts-token__tag::after {
  content: ""; position: absolute; left: -4px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left: 0; border-right-color: #fff;
}
.ts-trust .ts-token--key {
  z-index: 6; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ts-green); color: #fff;
  box-shadow: 0 0 0 7px rgba(70, 197, 94, .22), 0 0 28px rgba(70, 197, 94, .75);
}
.ts-trust .ts-token--key svg, .ts-trust .ts-token--lock svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ts-trust .ts-token--lock {
  z-index: 6; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #3A4C62;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .14), 0 10px 24px -8px rgba(0, 10, 30, .6);
}

/* Data packets flowing mill -> foundry while access is granted (CSS loop) */
.ts-trust .ts-pulses { position: absolute; inset: 0; z-index: 4; opacity: 0; transition: opacity .5s; pointer-events: none; }
.ts-trust.is-flow .ts-pulses { opacity: 1; }
.ts-trust .ts-pulse {
  position: absolute; left: var(--tx); top: 95%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #2E8B45;
  box-shadow: 0 0 0 4px rgba(70, 197, 94, .4), 0 0 20px 4px rgba(70, 197, 94, .75);
  animation: ts-packet 2.7s linear infinite; animation-play-state: paused;
}
.ts-trust.is-flow .ts-pulse { animation-play-state: running; }
.ts-trust .ts-pulse:nth-child(2) { animation-delay: -.9s; }
.ts-trust .ts-pulse:nth-child(3) { animation-delay: -1.8s; }
.ts-trust .ts-pulse svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
@keyframes ts-packet {
  0% { top: 96%; opacity: 0; }
  12% { opacity: 1; }
  86% { opacity: 1; }
  100% { top: 8%; opacity: 0; }
}

/* Access log */
.ts-trust .ts-log {
  position: absolute; right: 0; bottom: 0; width: var(--aside); padding: 14px 16px 8px; border-radius: 18px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--ts-line);
  transition: border-color .5s, box-shadow .5s, background-color .5s;
}
.ts-trust .ts-log.is-on { border-color: rgba(70, 197, 94, .6); background: rgba(70, 197, 94, .08); box-shadow: 0 0 0 5px rgba(70, 197, 94, .1); }
.ts-trust .ts-log__head {
  display: flex; align-items: center; gap: 9px; font-family: var(--ts-head); font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; color: #fff;
}
.ts-trust .ts-log__head small { margin-left: auto; font-family: var(--ts-body); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ts-muted); }
.ts-trust .ts-log__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ts-green); box-shadow: 0 0 0 4px rgba(70, 197, 94, .22); }
.ts-trust .ts-log ul { position: relative; margin-top: 6px; }
.ts-trust .ts-log__empty { position: absolute; left: 0; top: 10px; font-size: 15px; color: var(--ts-muted); font-style: italic; transition: opacity .3s; }
.ts-trust .ts-log.has-rows .ts-log__empty { opacity: 0; }
.ts-trust .ts-log__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t e" "m e"; column-gap: 10px; align-items: center;
  padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); line-height: 1.25;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s;
}
.ts-trust .ts-log__row:nth-child(2) { border-top-color: transparent; }
.ts-trust .ts-log__row.is-on { opacity: 1; transform: none; }
.ts-trust .ts-log__row span { grid-area: t; font-size: 15px; color: #fff; }
.ts-trust .ts-log__row time { grid-area: m; margin-top: 1px; font-size: 13px; color: var(--ts-muted); font-variant-numeric: tabular-nums; }
.ts-trust .ts-log__row em {
  grid-area: e; font-family: var(--ts-head); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
}
.ts-trust .ts-log__row em.ok { background: rgba(70, 197, 94, .2); color: #A9F0B8; }
.ts-trust .ts-log__row em.rd { background: rgba(134, 200, 255, .18); color: #BFE0FF; }
.ts-trust .ts-log__row em.off { background: rgba(255, 255, 255, .12); color: #E2EAF4; }

/* ---------- Data sovereignty ---------- */
.ts-trust .ts-sov { margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.ts-trust .ts-h3 { margin-top: 12px; font-size: clamp(24px, 2.2vw, 31px); line-height: 1.15; }
.ts-trust .ts-h3 .ts-grad { display: inline-block; }
.ts-trust .ts-sov__text { margin-top: 10px; font-size: 18px; line-height: 1.5; color: var(--ts-text); max-width: 32em; }

/* ---------- Claims ---------- */
.ts-trust .ts-claims {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; padding-bottom: 88px;
}
.ts-trust .ts-claim {
  position: relative; display: flex; flex-direction: column; padding: 18px 20px 20px; border-radius: 18px;
  background: var(--ts-panel); border: 1px solid var(--ts-line);
  transition: background-color .25s, border-color .25s, transform .5s cubic-bezier(.2, .7, .2, 1), opacity .5s;
}
.ts-trust .ts-claim:hover { background: var(--ts-panel-2); border-color: var(--ts-line-2); }
.ts-trust.is-anim .ts-claim:not(.is-in) { opacity: 0; transform: translateY(18px); }
.ts-trust .ts-claim__ico {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255, 255, 255, .1); color: #fff;
}
.ts-trust .ts-claim__ico::after { /* small "ok" check */
  content: ""; position: absolute; right: -5px; bottom: -5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ts-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 0 0 3px #0A4A90;
}
.ts-trust .ts-claim__ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ts-trust .ts-claim > b { margin-top: 14px; font-family: var(--ts-head); font-size: 18.5px; line-height: 1.2; color: #fff; text-wrap: balance; }
.ts-trust .ts-claim > span:not([class]) { margin-top: 6px; font-size: 15.5px; line-height: 1.42; color: var(--ts-text); }

.ts-trust .ts-claim--eu {
  grid-row: span 2; justify-content: center; padding: 26px 24px;
  background: linear-gradient(160deg, rgba(70, 197, 94, .26), rgba(70, 197, 94, .06) 60%, rgba(255, 255, 255, .04));
  border-color: rgba(70, 197, 94, .55);
  box-shadow: 0 0 0 1px rgba(70, 197, 94, .15), 0 24px 60px -24px rgba(0, 20, 30, .6);
}
.ts-trust .ts-claim--eu:hover { background: linear-gradient(160deg, rgba(70, 197, 94, .3), rgba(70, 197, 94, .08) 60%, rgba(255, 255, 255, .05)); border-color: rgba(70, 197, 94, .7); }
.ts-trust .ts-eu {
  position: relative; display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%;
  background: #fff; color: #2E8B45; box-shadow: 0 0 0 6px rgba(70, 197, 94, .25), 0 14px 30px -10px rgba(0, 20, 40, .6);
}
.ts-trust .ts-eu svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ts-trust .ts-eu__ring {
  position: absolute; inset: -16px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(180, 240, 195, .7) 0 1.6deg, transparent 1.6deg 7.5deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask-image: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}
.ts-trust .ts-claim__tag {
  margin-top: 28px; font-family: var(--ts-head); font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: #A9F0B8;
}
.ts-trust .ts-claim--eu .ts-claim__eu { margin-top: 8px; font-family: var(--ts-head); font-size: clamp(24px, 2vw, 29px); line-height: 1.12; color: #fff; }

.ts-trust .ts-claim--tbc {
  background: transparent; border: 2px dashed rgba(255, 217, 120, .7); justify-content: flex-start;
}
.ts-trust .ts-claim--tbc:hover { background: rgba(255, 217, 120, .05); border-color: var(--ts-amber); }
.ts-trust .ts-claim--tbc .ts-claim__ico { background: rgba(255, 217, 120, .12); color: var(--ts-amber); }
.ts-trust .ts-claim--tbc .ts-claim__ico::after { display: none; }
.ts-trust .ts-claim--tbc > b { color: var(--ts-amber); font-size: 18px; }
.ts-trust .ts-claim__note {
  align-self: flex-start; justify-self: start; margin-top: 10px; padding: 3px 10px; border-radius: 999px; border: 1px dashed rgba(255, 217, 120, .7);
  font-family: var(--ts-head); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ts-amber);
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .ts-trust { --aside: 200px; }
  .ts-trust .ts-top { column-gap: 40px; }
  .ts-trust .ts-panel { padding: 18px 18px 18px; }
  .ts-trust .ts-glabel small { display: none; }
  .ts-trust .ts-nchip { font-size: 13px; }
}
@media (max-width: 1100px) {
  .ts-trust .ts-claims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-trust .ts-claim--eu { grid-row: auto; grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 32px; align-items: center; }
  .ts-trust .ts-claim--eu .ts-eu { grid-row: span 2; margin: 16px; }
  .ts-trust .ts-claim--eu .ts-claim__tag { margin-top: 0; align-self: end; }
  .ts-trust .ts-claim--eu .ts-claim__eu { align-self: start; }
  .ts-trust .ts-nchip { display: none; }
}

/* Tablets and phones: stacked, compact panel. */
@media (max-width: 900px) {
  .ts-trust { --aside: 104px; --tx: 19px; }
  .ts-trust .ts-wrap { padding: 0 24px; }
  .ts-trust .ts-top { display: block; padding-top: 64px; }
  .ts-trust .ts-vis { margin-top: 32px; }
  .ts-trust .ts-panel { padding: 11px 14px 12px; border-radius: 18px; }
  .ts-trust .ts-body { height: 330px; margin-top: 14px; }
  .ts-trust .ts-caption { min-height: 62px; margin-top: 12px; }
  .ts-trust .ts-cap { top: 11px; gap: 10px; }
  .ts-trust .ts-cap i { width: 24px; height: 24px; font-size: 12.5px; }
  .ts-trust .ts-cap p { font-size: 15px; }
  .ts-trust .ts-cap b { font-size: 15.5px; }
  .ts-trust .ts-steps li { font-size: 14.5px; padding-left: 32px; }
  .ts-trust .ts-progress { position: relative; padding-right: 96px; }
  .ts-trust .ts-progress__top { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 11.5px; gap: 10px; }
  .ts-trust .ts-progress__top > span:first-child { display: none; }
  .ts-trust .ts-progress__count b { font-size: 15px; }
  .ts-trust .ts-progress__bar { margin: 9px 6px; }
  .ts-trust .ts-ms { width: 9px; height: 9px; border-width: 1.5px; }
  .ts-trust .ts-chain { width: calc(100% - var(--aside) - 8px); }
  .ts-trust .ts-node { padding: 5px 11px 5px 5px; gap: 8px; border-radius: 12px; }
  .ts-trust .ts-node__ico { width: 28px; height: 28px; border-radius: 8px; }
  .ts-trust .ts-node__ico svg { width: 16px; height: 16px; }
  .ts-trust .ts-node__txt b { font-size: 14.5px; }
  .ts-trust .ts-node__txt small { font-size: 11.5px; margin-top: 0; }
  .ts-trust .ts-nbadge { top: -9px; right: -9px; height: 19px; font-size: 10.5px; padding: 0 6px 0 5px; }
  .ts-trust .ts-nbadge svg { width: 10px; height: 10px; }
  .ts-trust .ts-nchip { display: grid; left: calc(100% + 8px); font-size: 12px; }
  .ts-trust .ts-nchip > span { height: 24px; padding: 0 9px 0 6px; gap: 5px; }
  .ts-trust .ts-nchip svg { width: 13px; height: 13px; }
  .ts-trust .ts-nkey { width: 24px; height: 24px; top: -9px; right: -9px; }
  .ts-trust .ts-nkey svg { width: 14px; height: 14px; }
  .ts-trust .ts-track { margin: 6px 0; }
  .ts-trust .ts-link { width: 5px; margin-left: -2.5px; box-shadow: 0 0 0 4px rgba(70, 197, 94, .14), 0 0 18px rgba(70, 197, 94, .6); }
  .ts-trust .ts-gate { width: 30px; height: 30px; }
  .ts-trust .ts-gate__ring circle { stroke-width: 4.5; }
  .ts-trust .ts-gate__ico { width: 23px; height: 23px; }
  .ts-trust .ts-gate__ico svg { width: 13px; height: 13px; }
  .ts-trust .ts-gate__ok { width: 14px; height: 14px; top: -5px; right: -6px; }
  .ts-trust .ts-gate__ok svg { width: 9px; height: 9px; }
  .ts-trust .ts-gate.is-on .ts-gate__ico { box-shadow: 0 0 0 4px rgba(70, 197, 94, .2), 0 0 16px rgba(70, 197, 94, .7); }
  .ts-trust .ts-glabel { left: calc(var(--tx) + 24px); }
  .ts-trust .ts-glabel b { font-size: 14px; }
  .ts-trust .ts-glabel small { display: none; }
  .ts-trust .ts-token--req { width: 24px; height: 24px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .16), 0 0 14px rgba(170, 215, 255, .55); }
  .ts-trust .ts-token--req svg { width: 13px; height: 13px; }
  .ts-trust .ts-token__tag { left: calc(100% + 10px); font-size: 12px; padding: 3px 8px; }
  .ts-trust .ts-token--key, .ts-trust .ts-token--lock { width: 24px; height: 24px; box-shadow: 0 0 0 3px rgba(70, 197, 94, .22), 0 0 14px rgba(70, 197, 94, .7); }
  .ts-trust .ts-token--lock { box-shadow: 0 0 0 3px rgba(255, 255, 255, .14); }
  .ts-trust .ts-token--key svg, .ts-trust .ts-token--lock svg { width: 13px; height: 13px; }
  .ts-trust .ts-pulse { width: 16px; height: 16px; box-shadow: 0 0 0 3px rgba(70, 197, 94, .4), 0 0 12px 3px rgba(70, 197, 94, .75); }
  .ts-trust .ts-pulse svg { width: 10px; height: 10px; }
  .ts-trust .ts-ghost { top: 50%; transform: translateY(-50%); padding: 8px 4px; gap: 6px; border: 0; background: none; }
  .ts-trust .ts-ghost.is-hl { background: none; }
  .ts-trust .ts-ghost__ico { width: 34px; height: 34px; }
  .ts-trust .ts-ghost__ico svg { width: 17px; height: 17px; }
  .ts-trust .ts-ghost__ico i { width: 40px; margin-left: -20px; }
  .ts-trust .ts-ghost__txt b { font-size: 12px; line-height: 1.15; }
  .ts-trust .ts-ghost__txt small { display: none; }
  /* Log: compact, latest entry only, beside the steel mill */
  .ts-trust .ts-node--to { max-width: 136px; }
  .ts-trust .ts-log { width: calc(100% - 142px); padding: 6px 10px 7px; border-radius: 11px; }
  .ts-trust .ts-log__head { font-size: 10px; gap: 6px; }
  .ts-trust .ts-log__head small { display: none; }
  .ts-trust .ts-log__dot { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(70, 197, 94, .22); }
  .ts-trust .ts-log ul { height: 20px; margin-top: 3px; }
  .ts-trust .ts-log__empty { top: 1px; font-size: 12.5px; }
  .ts-trust .ts-log__row { position: absolute; inset: 0; padding: 0; border: 0; grid-template-areas: "t e"; column-gap: 6px; }
  .ts-trust .ts-log__row span { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ts-trust .ts-log__row time { display: none; }
  .ts-trust .ts-log__row em { font-size: 9.5px; padding: 2px 6px; }
  .ts-trust .ts-log__row.is-on:not(.is-last) { opacity: 0; transform: translateY(-6px); }

}
@media (max-width: 760px) {
  .ts-trust { font-size: 17px; }
  .ts-trust .ts-wrap { padding: 0 16px; }
  .ts-trust .ts-top { padding-top: 56px; }
  .ts-trust .ts-kicker { font-size: 13px; gap: 8px; }
  .ts-trust .ts-kicker__ico { width: 24px; height: 24px; }
  .ts-trust .ts-kicker__ico svg { width: 14px; height: 14px; }
  .ts-trust .ts-h2 { font-size: 34px; margin-top: 14px; }
  .ts-trust .ts-lead { font-size: 18.5px; margin-top: 14px; }
  .ts-trust .ts-sov { margin-top: 26px; padding-top: 22px; }
  .ts-trust .ts-h3 { font-size: 25px; }
  .ts-trust .ts-sov__text { font-size: 17px; }
  .ts-trust .ts-vis { margin-top: 28px; }
  .ts-trust .ts-claims { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; padding-bottom: 64px; }
  .ts-trust .ts-claim { padding: 18px 18px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .ts-trust .ts-claim__ico { grid-row: span 2; width: 42px; height: 42px; }
  .ts-trust .ts-claim > b { margin-top: 0; font-size: 18px; }
  .ts-trust .ts-claim > span:not([class]) { margin-top: 4px; font-size: 15.5px; }
  .ts-trust .ts-claim--eu { padding: 22px 18px; column-gap: 18px; }
  .ts-trust .ts-claim--eu .ts-eu { width: 66px; height: 66px; margin: 10px; }
  .ts-trust .ts-claim--eu .ts-eu svg { width: 34px; height: 34px; }
  .ts-trust .ts-eu__ring { inset: -11px; }
  .ts-trust .ts-claim--eu .ts-claim__eu { font-size: 22px; }
  .ts-trust .ts-claim__tag { font-size: 12px; }
  .ts-trust .ts-claim__note { grid-column: 2; margin-top: 6px; }
}

/* Reduced motion: no loop (s-trust.js shows a fixed state and the step list). */
@media (prefers-reduced-motion: reduce) {
  .ts-trust *, .ts-trust *::before, .ts-trust *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .ts-trust .ts-pulses { display: none; }
}

/* Loop paused (button, out of view, hidden tab): stop the CSS loops too. */
.ts-trust.is-halted .ts-link, .ts-trust.is-flow.is-halted .ts-pulse { animation-play-state: paused; }
