/* Trust scene (home section 7). Ported from homepage-mockup-v4.html. STATIC layout (reduced motion, builder, no JS): the
   headline, the five-step chain as cards, the four facts. LIVE layout, only after motion/scenes/trust.js adds
   .tx-trust--live: a pinned stage where a packet travels the chain. Header is 73px. */
body .tx-trust {
	--sea: #8ED2C3; --teal: #4A90A4; --d0: #0B0F1A; --mut: #8CA3BA; --edge: rgba(155,176,196,.16);
	--mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace; --sans: 'Archivo', system-ui, -apple-system, sans-serif;
	--gut: max(20px, 6vw); --u: calc((100svh - 73px) / 100);
	position: relative; background: var(--d0); color: #fff; font-family: var(--sans);
}
body .tx-trust.bde-section { background-color: var(--d0); }
body .tx-trust.bde-section > .section-container { max-width: none; width: 100%; padding: 0; align-items: stretch; position: relative; }
body .tx-trust .bde-div { display: block; width: auto; max-width: none; flex-direction: row; align-items: stretch; }
body .tx-trust p { margin: 0; }
body .tx-trust .tx-trust-bloom { position: absolute; left: 0; right: 0; top: 0; height: 60svh; z-index: 3; pointer-events: none; background: radial-gradient(60% 100% at 50% 0, rgba(142,210,195,.6), rgba(74,144,164,.18) 45%, rgba(11,15,26,0) 75%); }
body .tx-trust .tx-trust-stage { background: linear-gradient(180deg, var(--d0), #0D1626 55%, #0A1424); position: relative; overflow: hidden; }
body .tx-trust .tx-trust-glow { position: absolute; left: 50%; top: 50%; width: min(1100px, 130vw); height: min(600px, 80vw); translate: -50% -50%; background: radial-gradient(closest-side, rgba(74,144,164,.22), transparent 72%); pointer-events: none; }
body .tx-trust .tx-trust-head { position: relative; z-index: 5; }
body .tx-trust .tx-trust-head h2 { font: 800 clamp(30px, 4.2vw, 64px)/1 var(--sans); letter-spacing: -.04em; color: #fff; margin: 14px 0 0; max-width: 16ch; text-wrap: balance; }
body .tx-trust .tx-trust-head p { margin-top: 16px; color: #B7C7D8; max-width: 46ch; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; }
body .tx-trust .tx-trust-chain { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch; }
body .tx-trust .tx-trust-node { position: relative; padding: 18px 16px; border: 1px solid var(--edge); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); border-radius: 14px; margin-right: 28px; min-height: 118px; }
body .tx-trust .tx-trust-node:last-child { margin-right: 0; }
body .tx-trust .tx-trust-node b { display: block; font: 700 15px var(--sans); color: #fff; }
body .tx-trust .tx-trust-node span { display: block; margin-top: 6px; font: 400 12px/1.4 var(--mono); color: var(--mut); }
body .tx-trust .tx-trust-node img { width: 26px; margin-bottom: 10px; display: block; }
body .tx-trust .tx-trust-node:not(:last-child)::after { content: ""; position: absolute; left: 100%; top: 50%; width: 28px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--sea)); opacity: .6; }
body .tx-trust .tx-trust-lit { position: absolute; inset: -1px; border-radius: 14px; border: 1px solid var(--sea); background: linear-gradient(180deg, rgba(142,210,195,.16), rgba(142,210,195,.02)); box-shadow: 0 0 60px rgba(142,210,195,.2); pointer-events: none; }
body .tx-trust .tx-trust-rail { position: relative; height: 2px; margin: 26px 0 0; background: rgba(155,176,196,.2); }
body .tx-trust .tx-trust-fill { position: absolute; inset: 0; }
body .tx-trust .tx-trust-fill i { position: absolute; inset: 0; display: block; background: linear-gradient(90deg, var(--teal), var(--sea)); transform-origin: 0 50%; box-shadow: 0 0 14px rgba(142,210,195,.7); }
body .tx-trust .tx-trust-packet { position: absolute; left: 0; top: 50%; margin: -6px 0 0 -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(142,210,195,.25), 0 0 30px 6px rgba(142,210,195,.8); z-index: 6; }
body .tx-trust .tx-eyebrow { color: #9BB0C4; }
body .tx-trust .tx-eyebrow::before { background: var(--sea); }
body .tx-trust .tx-trust-pkt { width: max-content; max-width: none; position: absolute; left: 0; top: -48px; font: 500 11px/1 var(--mono); color: #0B0F1A; background: var(--sea); padding: 6px 9px; border-radius: 999px; white-space: nowrap; translate: -50% 0; box-shadow: 0 0 24px rgba(142,210,195,.5); }
body .tx-trust .tx-trust-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--edge); }
body .tx-trust .tx-trust-fact { padding: 18px 22px 0 0; }
body .tx-trust .tx-trust-fact b { display: block; font: 700 16px/1.2 var(--sans); letter-spacing: -.01em; color: #fff; }
body .tx-trust .tx-trust-fact span { display: block; margin-top: 8px; color: #9FB2C5; font-size: 13.5px; line-height: 1.45; }
body .tx-trust .tx-trust-fact .chk { font: 500 12px var(--mono); color: var(--sea); margin: 0 0 10px; }
body .tx-trust .tx-trust-legal { font: 400 11px/1.4 var(--mono); color: #6C8196; z-index: 5; }

/* static layout: no rail, no packet, every step shown as reached */
body .tx-trust:not(.tx-trust--live) .tx-trust-stage { padding: clamp(72px, 10vw, 140px) var(--gut) clamp(40px, 5vw, 64px); }
body .tx-trust:not(.tx-trust--live) .tx-trust-stage > * { max-width: 1440px; margin-inline: auto; }
body .tx-trust:not(.tx-trust--live) .tx-trust-chainw { margin-top: clamp(32px, 5vw, 64px); }
/* The packet's label stays visible (and editable) as a pill above the chain; the moving dot and fill are for the live scene. */
body .tx-trust:not(.tx-trust--live) .tx-trust-rail { height: auto; margin: 18px 0 0; background: none; }
body .tx-trust:not(.tx-trust--live) .tx-trust-fill { display: none; }
body .tx-trust:not(.tx-trust--live) .tx-trust-packet { position: static; margin: 0; width: auto; height: auto; background: none; box-shadow: none; border-radius: 0; }
body .tx-trust:not(.tx-trust--live) .tx-trust-pkt { position: static; translate: none; display: inline-block; }
body .tx-trust:not(.tx-trust--live) .tx-trust-facts { margin-top: clamp(32px, 4vw, 56px); }
body .tx-trust:not(.tx-trust--live) .tx-trust-legal { margin-top: 24px; }
body .tx-trust:not(.tx-trust--live) .tx-trust-node { border-color: rgba(142,210,195,.45); }
@media (max-width: 767px) {
	body .tx-trust:not(.tx-trust--live) .tx-trust-chain { grid-template-columns: 1fr; gap: 12px; }
	body .tx-trust:not(.tx-trust--live) .tx-trust-node { margin-right: 0; min-height: 0; }
	body .tx-trust:not(.tx-trust--live) .tx-trust-node::after { display: none; }
	body .tx-trust:not(.tx-trust--live) .tx-trust-facts { grid-template-columns: 1fr 1fr; border-top: 0; }
}

/* live layout */
body .tx-trust.tx-trust--live.bde-section > .section-container { min-height: 300vh; }
body .tx-trust.tx-trust--live .tx-trust-stage.bde-div { position: sticky; top: 73px; height: calc(100svh - 73px); }
body .tx-trust.tx-trust--live .tx-trust-head.bde-div { position: absolute; left: var(--gut); right: var(--gut); top: calc(9 * var(--u) + 4px); max-width: 1440px; margin-inline: auto; }
body .tx-trust.tx-trust--live .tx-trust-chainw.bde-div { position: absolute; left: var(--gut); right: var(--gut); top: 50%; margin-top: calc(1 * var(--u) - 20px); z-index: 5; }
body .tx-trust.tx-trust--live .tx-trust-facts.bde-div { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(5 * var(--u) + 4px); z-index: 5; display: grid; }
body .tx-trust.tx-trust--live .tx-trust-legal { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(1 * var(--u) + 2px); }
body .tx-trust.tx-trust--live .tx-trust-lit { opacity: 0; }
/* Phone: the stage is a flex column sized from svh, so head, chain, facts and legal flow one after another and can
   never overlap, at 844 or at 664 (iOS Safari with toolbars). The intro paragraph is dropped while pinned on short
   screens (it is in the static layout), and node cards are compact. */
@media (max-width: 767px) {
	body .tx-trust.tx-trust--live.bde-section > .section-container { min-height: 190vh; }
	body .tx-trust.tx-trust--live .tx-trust-bloom { height: 40svh; }
	body .tx-trust.tx-trust--live .tx-trust-stage.bde-div { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 14px var(--gut) 8px; box-sizing: border-box; }
	body .tx-trust.tx-trust--live .tx-trust-head.bde-div,
	body .tx-trust.tx-trust--live .tx-trust-chainw.bde-div,
	body .tx-trust.tx-trust--live .tx-trust-facts.bde-div { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 0; max-width: none; flex: none; }
	body .tx-trust.tx-trust--live .tx-trust-head h2 { font-size: 26px; margin-top: 8px; max-width: none; }
	body .tx-trust.tx-trust--live .tx-trust-head p { display: none; font-size: 14px; margin-top: 10px; line-height: 1.45; }
	body .tx-trust.tx-trust--live .tx-trust-chain { display: flex; flex-direction: column; gap: 4px; padding-left: 34px; }
	body .tx-trust.tx-trust--live .tx-trust-node { height: 60px; margin: 0; min-height: 0; padding: 8px 14px; overflow: hidden; box-sizing: border-box; }
	body .tx-trust.tx-trust--live .tx-trust-node b { font-size: 14.5px; }
	body .tx-trust.tx-trust--live .tx-trust-node span { max-width: 21ch; font-size: 11.5px; line-height: 1.3; margin-top: 3px; }
	body .tx-trust.tx-trust--live .tx-trust-node img { display: none; }
	body .tx-trust.tx-trust--live .tx-trust-node::after { display: none; }
	body .tx-trust.tx-trust--live .tx-trust-rail { position: absolute; left: 11px; top: 30px; bottom: 30px; width: 2px; height: auto; margin: 0; }
	body .tx-trust.tx-trust--live .tx-trust-fill i { transform-origin: 50% 0; background: linear-gradient(180deg, var(--teal), var(--sea)); }
	body .tx-trust.tx-trust--live .tx-trust-packet { left: 1px; top: 0; margin: -6px 0 0 -6px; }
	body .tx-trust.tx-trust--live .tx-trust-pkt { left: min(240px, calc(100vw - 172px)); translate: 0 -50%; top: 50%; font-size: 10.5px; padding: 5px 8px; }
	body .tx-trust.tx-trust--live .tx-trust-facts.bde-div { grid-template-columns: 1fr 1fr; border-top: 0; }
	body .tx-trust.tx-trust--live .tx-trust-fact { padding: 0 12px 10px 0; }
	body .tx-trust.tx-trust--live .tx-trust-fact b { font-size: 14px; }
	body .tx-trust.tx-trust--live .tx-trust-fact span:not(.chk) { display: none; }
	body .tx-trust.tx-trust--live .tx-trust-fact .chk { font-size: 11px; margin-bottom: 5px; }
	body .tx-trust.tx-trust--live .tx-trust-legal { position: relative; left: auto; right: auto; bottom: auto; flex: none; font-size: 10px; }
}
@media (max-width: 767px) and (min-height: 800px) {
	body .tx-trust.tx-trust--live .tx-trust-head p { display: block; }
	body .tx-trust.tx-trust--live .tx-trust-node { height: 64px; }
	body .tx-trust.tx-trust--live .tx-trust-rail { top: 32px; bottom: 32px; }
	body .tx-trust.tx-trust--live .tx-trust-stage.bde-div { padding-top: 28px; }
}
