/*
 * Animated explainers (inc/teuton-explainer.php). Plain CSS, loaded only where an
 * explainer is rendered.
 *
 * State lives in one attribute: [data-step="N"] on .ts-x. Stage elements carry
 * ts-x-on-N classes for the steps where they are lit. Animations are declared under the
 * step selector, so they restart each time their step comes back.
 */ .ts-x { --ts-x-bg: #2c001e; --ts-x-ink: #ffffff; --ts-x-mute: #cdb9c5; --ts-x-blue: #3d8bfd; --ts-x-line: rgba(205, 185, 197, 0.16); --ts-x-duration: 7s; position: relative; margin: 2.5rem 0; padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem); border-radius: 1.25rem; background: radial-gradient(120% 90% at 15% 0%, rgba(61, 139, 253, 0.16), transparent 55%), var(--ts-x-bg); color: var(--ts-x-ink); overflow: hidden; } .ts-landing .ts-x, .ts-x--flush { margin: 0; border-radius: 0; } .ts-x__inner { max-width: 72rem; margin: 0 auto; } /* Head */ .ts-x__eyebrow { margin: 0 0 0.6rem; font-family: Khand, sans-serif; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ts-x-blue); } .ts-x h2.ts-x__title { margin: 0; font-family: Khand, sans-serif; font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.05; color: var(--ts-x-ink) !important; max-width: 36rem; } .ts-x__lead { margin: 0.9rem 0 0; max-width: 40rem; font-size: 1.05rem; line-height: 1.6; color: var(--ts-x-mute); } /* Body: stage + steps */ .ts-x__body { display: grid; gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(1.75rem, 3vw, 2.5rem); align-items: center; } @media (min-width: 960px) { .ts-x__body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } } /* Narrow content columns (pages with a sidebar): always stacked. */ .ts-x--stacked .ts-x__body { grid-template-columns: 1fr; } .ts-x__stage { position: relative; margin: 0; aspect-ratio: 800 / 520; } .ts-x__svg { display: block; width: 100%; height: 100%; overflow: visible; } .ts-x__labels { position: absolute; inset: 0; pointer-events: none; } .ts-x__label { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-size: clamp(0.62rem, 1.35vw, 0.82rem); font-weight: 500; letter-spacing: 0.01em; color: var(--ts-x-mute); } .ts-x--stacked .ts-x__label, .ts-x__body > .ts-x__stage .ts-x__label { font-size: clamp(0.62rem, 1.6vw, 0.82rem); } .ts-x__label--left { transform: translate(0, -50%); } .ts-x__label--dark { color: #1f2026; font-weight: 600; } .ts-x__label--pill { padding: 0.15em 0.7em; border-radius: 999px; background: #f6121c; color: #ffffff; font-weight: 600; } .ts-x--matrix .ts-x__label--pill, .ts-x--privat-utrymme .ts-x__label--pill { background: #0366d6; } .ts-x__label--wrap { width: 12em; white-space: normal; text-align: center; line-height: 1.3; } .ts-x__label--good { padding: 0.15em 0.7em; border-radius: 999px; background: #0366d6; color: #ffffff; font-weight: 600; } /* Steps */ .ts-x__panel { min-width: 0; } .ts-x ol.ts-x__steps { margin: 0 !important; padding: 0 !important; list-style: none; counter-reset: none; } .ts-x__step { margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); list-style: none; } .ts-x__step:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); } .ts-x .ts-x__step-btn { position: relative; display: flex; align-items: center; gap: 0.85rem; width: 100%; margin: 0; padding: 0.95rem 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ts-x-mute); font: inherit; text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer; } .ts-x .ts-x__step-btn:hover, .ts-x .ts-x__step-btn:focus { background: none; color: var(--ts-x-ink); } .ts-x .ts-x__step-btn:focus-visible { outline: 2px solid var(--ts-x-blue); outline-offset: 3px; border-radius: 0.4rem; } .ts-x__num { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.3); font-family: Khand, sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1; transition: background-color 0.3s, border-color 0.3s, color 0.3s; } .ts-x__step-title { font-family: Khand, sans-serif; font-weight: 600; font-size: 1.3rem; line-height: 1.15; } .ts-x__step[aria-current="step"] .ts-x__step-btn { color: var(--ts-x-ink); } .ts-x__step[aria-current="step"] .ts-x__num { border-color: var(--ts-x-blue); background: var(--ts-x-blue); color: #ffffff; } .ts-x__step-text { margin: 0; padding: 0 0 1.1rem 2.85rem; font-size: 0.98rem; line-height: 1.6; color: var(--ts-x-mute); } /* Progress bar along the bottom of the active step while playing */ .ts-x__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; } .ts-x__bar-fill { display: block; height: 100%; width: 100%; background: var(--ts-x-blue); transform: scaleX(0); transform-origin: left; } .ts-x.is-playing .ts-x__step[aria-current="step"] .ts-x__bar-fill { animation: ts-x-bar var(--ts-x-duration) linear forwards; } .ts-x.is-paused .ts-x__step[aria-current="step"] .ts-x__bar-fill { animation-play-state: paused; } @keyframes ts-x-bar { to { transform: scaleX(1); } } /* Collapsing step text only once JavaScript runs; without it every step reads in full. */ .ts-x.is-ready .ts-x__step-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; } .ts-x.is-ready .ts-x__step-clip { min-height: 0; overflow: hidden; } .ts-x.is-ready .ts-x__step[aria-current="step"] .ts-x__step-body { grid-template-rows: 1fr; } .ts-x .ts-x__toggle { margin: 1rem 0 0; padding: 0.35rem 0; border: 0; background: none; box-shadow: none; color: var(--ts-x-mute); font: inherit; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; text-transform: none; letter-spacing: 0; cursor: pointer; } .ts-x .ts-x__toggle:hover, .ts-x .ts-x__toggle:focus { background: none; color: var(--ts-x-ink); } .ts-x__toggle-play, .ts-x.is-playing .ts-x__toggle-pause { display: inline; } .ts-x__toggle-pause, .ts-x.is-playing .ts-x__toggle-play { display: none; } /* ---------- Stage state machine ---------- */ .ts-x [class*="ts-x-on-"]:not(.ts-x-line):not(.ts-x-node) { opacity: 0; transition: opacity 0.45s ease; } .ts-x[data-step="1"] .ts-x-on-1:not(.ts-x-line):not(.ts-x-node), .ts-x[data-step="2"] .ts-x-on-2:not(.ts-x-line):not(.ts-x-node), .ts-x[data-step="3"] .ts-x-on-3:not(.ts-x-line):not(.ts-x-node), .ts-x[data-step="4"] .ts-x-on-4:not(.ts-x-line):not(.ts-x-node), .ts-x[data-step="5"] .ts-x-on-5:not(.ts-x-line):not(.ts-x-node) { opacity: 1; } /* Lines: always faintly visible; lit in their steps; cut in the last step. */ .ts-x-line { stroke: var(--ts-x-line); stroke-width: 3; transition: stroke 0.45s ease, stroke-dasharray 0.45s ease; } .ts-x[data-step="1"] .ts-x-line.ts-x-on-1, .ts-x[data-step="2"] .ts-x-line.ts-x-on-2, .ts-x[data-step="3"] .ts-x-line.ts-x-on-3, .ts-x[data-step="4"] .ts-x-line.ts-x-on-4 { stroke: rgba(205, 185, 197, 0.75); } .ts-x[data-step="5"] .ts-x-line { stroke: rgba(205, 185, 197, 0.1); stroke-dasharray: 2 10; } /* Nodes: dim until their step. */ .ts-x-node { opacity: 0.32; transition: opacity 0.45s ease; } .ts-x[data-step="1"] .ts-x-node.ts-x-on-1, .ts-x[data-step="2"] .ts-x-node.ts-x-on-2, .ts-x[data-step="3"] .ts-x-node.ts-x-on-3, .ts-x[data-step="4"] .ts-x-node.ts-x-on-4 { opacity: 1; } .ts-x[data-step="5"] .ts-x-node { opacity: 0.16; } /* Packets */ .ts-x-packet { fill: #ffffff; offset-rotate: 0deg; offset-distance: 0%; } .ts-x[data-step="1"] .ts-x-packet.ts-x-on-1, .ts-x[data-step="2"] .ts-x-packet.ts-x-on-2, .ts-x[data-step="3"] .ts-x-packet.ts-x-on-3, .ts-x[data-step="4"] .ts-x-packet.ts-x-on-4 { animation-name: ts-x-travel; animation-duration: 2.4s; animation-timing-function: linear; animation-iteration-count: infinite; } .ts-x[data-step="5"] .ts-x-packet--blocked { fill: #ff6b72; animation-name: ts-x-blocked; animation-duration: 2.2s; animation-timing-function: ease-out; animation-iteration-count: infinite; } .ts-x-packet--blocked-late { fill: #ff6b72; } .ts-x[data-step="3"] .ts-x-packet--blocked-late { animation: ts-x-blocked-late 2.6s ease-in-out 1.6s infinite both; } @keyframes ts-x-travel { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } } @keyframes ts-x-blocked { 0% { offset-distance: 0%; opacity: 0; } 15% { opacity: 1; } 45% { offset-distance: 17%; opacity: 1; } 70%, 100% { offset-distance: 17%; opacity: 0; } } @keyframes ts-x-blocked-late { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 60% { offset-distance: 92%; opacity: 1; } 80%, 100% { offset-distance: 92%; opacity: 0; } } /* Surveillance stage details */ .ts-x[data-step="1"] .ts-x-pulse, .ts-x[data-step="2"] .ts-x-pulse { transform-box: fill-box; transform-origin: center; animation: ts-x-pulse 2.4s ease-in-out infinite; } @keyframes ts-x-pulse { 0%, 100% { transform: scale(0.85); } 50% { transform: scale(1.08); } } .ts-x-profile, .ts-x-adid { transform-box: fill-box; transform-origin: center; } .ts-x[data-step="2"] .ts-x-profile, .ts-x[data-step="2"] .ts-x-adid { animation: ts-x-pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; } .ts-x[data-step="2"] .ts-x-adid { animation-delay: 0.25s; } @keyframes ts-x-pop { from { transform: scale(0.6); } to { transform: scale(1); } } .ts-x-bidder { fill: #cdb9c5; fill-opacity: 0.35; } .ts-x[data-step="3"] .ts-x-bidder { animation: ts-x-bid 1.8s ease-in-out infinite; } @keyframes ts-x-bid { 0%, 55%, 100% { fill: #cdb9c5; fill-opacity: 0.35; } 20% { fill: #ff6b72; fill-opacity: 1; } } .ts-x-shield { transform-box: fill-box; transform-origin: center; } .ts-x[data-step="5"] .ts-x-shield { animation: ts-x-pop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; } .ts-x[data-step="5"] .ts-x-apps { opacity: 0.35; transition: opacity 0.45s ease; } /* Matrix stage details */ .ts-x[data-step="1"] .ts-x-mx-chip { animation: ts-x-glow 1.6s ease-in-out infinite; } @keyframes ts-x-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(61, 139, 253, 0)); } 50% { filter: drop-shadow(0 0 10px rgba(61, 139, 253, 0.9)); } } .ts-x-mx-link { stroke-dasharray: 400; stroke-dashoffset: 400; } .ts-x[data-step="1"] .ts-x-mx-link { animation: ts-x-draw-long 0.6s ease forwards; } @keyframes ts-x-draw-long { to { stroke-dashoffset: 0; } } .ts-x-mx-check path { stroke-dasharray: 1; stroke-dashoffset: 1; } .ts-x[data-step="1"] .ts-x-mx-check path { animation: ts-x-draw 0.45s ease forwards; animation-delay: inherit; } .ts-x[data-step="1"] .ts-x-mx-check circle { animation: ts-x-ring 0.45s ease forwards; animation-delay: inherit; } @keyframes ts-x-draw { to { stroke-dashoffset: 0; } } @keyframes ts-x-ring { to { stroke: #3d8bfd; } } .ts-x-mx-cut { transform-box: fill-box; transform-origin: center; } .ts-x[data-step="2"] .ts-x-mx-cut { animation: ts-x-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) 0.3s both; } .ts-x-mx-toggle rect { fill: #0366d6; } .ts-x-mx-toggle circle { transform-box: view-box; } .ts-x[data-step="3"] .ts-x-mx-toggle rect { animation: ts-x-toggle-track 0.35s ease forwards; animation-delay: inherit; } .ts-x[data-step="3"] .ts-x-mx-toggle circle { animation: ts-x-toggle-knob 0.35s ease forwards; animation-delay: inherit; } @keyframes ts-x-toggle-track { to { fill: #c5c8cf; } } @keyframes ts-x-toggle-knob { to { transform: translateX(-22px); } } .ts-x-mx-vault { transform: translateY(160px); } .ts-x[data-step="5"] .ts-x-mx-vault { animation: ts-x-vault 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards; } @keyframes ts-x-vault { to { transform: translateY(0); } } .ts-x-mx-key { transform-box: fill-box; transform-origin: 20% 50%; } .ts-x[data-step="5"] .ts-x-mx-key { animation: ts-x-key 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s both; } @keyframes ts-x-key { 0% { transform: translateX(-24px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } } /* Private Space stage details */ .ts-x__label--tiny { font-size: clamp(0.5rem, 1.05vw, 0.68rem); font-weight: 600; } .ts-x[data-step="1"] .ts-x-pu-tap { transform-box: fill-box; transform-origin: center; animation: ts-x-tap 1.6s ease-out 0.5s infinite both; } @keyframes ts-x-tap { 0% { transform: scale(0.3); opacity: 0.9; } 70%, 100% { transform: scale(2.2); opacity: 0; } } .ts-x-pu-dot { fill: none; stroke: #ffffff; stroke-width: 2.5; } .ts-x[data-step="2"] .ts-x-pu-dot { animation: ts-x-dot 0.2s ease forwards; animation-delay: inherit; } @keyframes ts-x-dot { to { fill: #ffffff; } } .ts-x-pu-app { transform-box: fill-box; transform-origin: center; transform: scale(0); } .ts-x[data-step="3"] .ts-x-pu-app { animation: ts-x-pop-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3) forwards; animation-delay: inherit; } @keyframes ts-x-pop-in { from { transform: scale(0); } to { transform: scale(1); } } .ts-x-pu-locked { transform-box: fill-box; transform-origin: top; } .ts-x[data-step="4"] .ts-x-pu-locked { animation: ts-x-fold 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; } @keyframes ts-x-fold { from { transform: scaleY(3.4); } to { transform: scaleY(1); } } .ts-x-pu-lock { transform-box: fill-box; transform-origin: center; } .ts-x[data-step="4"] .ts-x-pu-lock { animation: ts-x-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) 0.6s both; } .ts-x[data-step="5"] .ts-x-pu-result { animation: ts-x-rise 0.5s ease 0.9s both; } @keyframes ts-x-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } .ts-x[data-step="5"] .ts-x-pu-caret { animation: ts-x-blink 0.9s steps(1) infinite; } @keyframes ts-x-blink { 50% { opacity: 0; } } /* Reduced motion: no travelling packets, no loops; animated states jump to their end. */ @media (prefers-reduced-motion: reduce) { .ts-x *, .ts-x *::before, .ts-x *::after { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; } .ts-x .ts-x-packet { display: none; } }