/* TED Emergency — design e sviluppo del tema: FB Engineering */
/*!
 * TED Emergency — animazioni della scritta TED, lampeggianti di sfondo e schermate di caricamento
 * Tutte le durate si moltiplicano per --ted-logo-speed; il bagliore per --ted-logo-glow.
 */

/* ================================================================
 * Base comune
 * ================================================================ */
.ted-logo {
	--s: var(--ted-logo-speed, 1);
	--g: var(--ted-logo-glow, .8);
	position: relative;
	display: inline-block;
	isolation: isolate;
	padding: .04em .02em 0;
	font-size: calc(clamp(3rem, var(--ted-hero-size), 40rem) * var(--ted-h-scale));
	font-weight: var(--ted-h-weight);
	line-height: .82;
	letter-spacing: var(--ted-h-ls);
	text-transform: var(--ted-h-transform);
	white-space: nowrap;
	color: var(--ted-primary);
}
.ted-logo__text {
	position: relative;
	z-index: 1;
	display: block;
	background: linear-gradient(180deg, var(--ted-primary-2) 0%, var(--ted-primary) 52%, color-mix(in srgb, var(--ted-primary) 68%, #000) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 0 calc(34px * var(--g)) var(--ted-glow));
}
.ted-logo__ch { display: inline; }
.ted-logo__fx {
	position: absolute;
	inset: 0;
	z-index: 2;
	padding: inherit;
	pointer-events: none;
	color: transparent;
	-webkit-text-fill-color: transparent;
	background-repeat: no-repeat;
	-webkit-background-clip: text;
	background-clip: text;
}
.ted-logo__hud {
	position: absolute;
	right: calc(100% + .9rem);
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: .3rem;
	font-family: var(--ted-font-digits);
	font-size: .78rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .12em;
	text-transform: var(--ted-ui-transform);
	white-space: nowrap;
	color: var(--ted-primary);
	-webkit-text-fill-color: currentColor;
}
.ted-hero--left .ted-logo__hud { right: auto; left: calc(100% + .9rem); align-items: flex-start; }

/* ================================================================
 * 1. Lampeggianti blu riflessi sulle lettere
 * ================================================================ */
.ted-logo--beacons .ted-logo__fx--l,
.ted-logo--beacons .ted-logo__fx--r {
	opacity: 0;
	filter: drop-shadow(0 0 calc(18px * var(--g)) var(--ted-beacon));
	animation: ted-wig calc(1.3s * var(--s)) linear infinite;
}
.ted-logo--beacons .ted-logo__fx--l {
	background-image: radial-gradient(ellipse 80% 140% at 0% 45%, #eef4ff 0%, color-mix(in srgb, var(--ted-beacon) 45%, #fff) 12%, var(--ted-beacon) 30%, color-mix(in srgb, var(--ted-beacon) 55%, transparent) 55%, transparent 82%);
}
.ted-logo--beacons .ted-logo__fx--r {
	background-image: radial-gradient(ellipse 80% 140% at 100% 45%, #eef4ff 0%, color-mix(in srgb, var(--ted-beacon) 45%, #fff) 12%, var(--ted-beacon) 30%, color-mix(in srgb, var(--ted-beacon) 55%, transparent) 55%, transparent 82%);
	animation-delay: calc(.65s * var(--s));
}
.ted-logo--beacons .ted-logo__fx--sheen {
	background-image: linear-gradient(105deg, transparent 40%, color-mix(in srgb, var(--ted-beacon) 60%, transparent) 47%, #fff 50%, color-mix(in srgb, var(--ted-beacon) 60%, transparent) 53%, transparent 60%);
	background-size: 300% 100%;
	mix-blend-mode: screen;
	animation: ted-sheen calc(3.2s * var(--s)) ease-in-out infinite;
}
.ted-logo__halo {
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(ellipse at center, var(--ted-beacon) 0%, color-mix(in srgb, var(--ted-beacon) 40%, transparent) 40%, transparent 70%);
	filter: blur(calc(22px + 20px * var(--g)));
	opacity: 0;
	animation: ted-wig calc(1.3s * var(--s)) linear infinite;
}
.ted-logo__halo--l { left: -45%; top: -10%; width: 80%; height: 120%; }
.ted-logo__halo--r { right: -45%; top: -10%; width: 80%; height: 120%; animation-delay: calc(.65s * var(--s)); }
.ted-logo__halo--floor {
	left: 5%; right: 5%;
	bottom: -22%;
	height: 30%;
	filter: blur(18px);
	animation-name: ted-wig-both;
}

/* ================================================================
 * 2. Girofaro: fascio rotante
 * ================================================================ */
.ted-logo__beam {
	position: absolute;
	left: 50%; top: 50%;
	z-index: -1;
	width: 240%;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	pointer-events: none;
	-webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .6) 30%, transparent 62%);
	mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .6) 30%, transparent 62%);
}
.ted-logo__beam::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: conic-gradient(from 0deg,
		transparent 0deg, color-mix(in srgb, var(--ted-beacon) 70%, transparent) 12deg, transparent 34deg,
		transparent 180deg, color-mix(in srgb, var(--ted-beacon) 70%, transparent) 192deg, transparent 214deg, transparent 360deg);
	filter: blur(8px);
	opacity: calc(.5 + .4 * var(--g));
	animation: ted-spin calc(1.6s * var(--s)) linear infinite;
}
.ted-logo__lamp {
	position: absolute;
	left: 50%; top: 50%;
	z-index: -1;
	width: 18%;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: radial-gradient(circle, #fff 0%, var(--ted-beacon) 30%, transparent 70%);
	filter: blur(10px);
	animation: ted-lamp calc(.8s * var(--s)) linear infinite;
}
.ted-logo--rotating .ted-logo__fx--sweep,
.ted-logo--rotating .ted-logo__fx--sweep2 {
	background-image: linear-gradient(90deg, transparent 38%, color-mix(in srgb, var(--ted-beacon) 70%, transparent) 46%, #fff 50%, color-mix(in srgb, var(--ted-beacon) 70%, transparent) 54%, transparent 62%);
	background-size: 300% 100%;
	mix-blend-mode: screen;
	animation: ted-sweep calc(1.6s * var(--s)) linear infinite;
}
.ted-logo--rotating .ted-logo__fx--sweep2 { animation-delay: calc(-.8s * var(--s)); opacity: .55; }

/* ================================================================
 * 3. Defibrillatore
 * ================================================================ */
.ted-logo--defib { --d: calc(5s * var(--s)); }
.ted-logo--defib .ted-logo__text {
	background: none;
	color: transparent;
	-webkit-text-fill-color: currentColor;
	-webkit-text-stroke: .018em color-mix(in srgb, var(--ted-primary) 45%, transparent);
	filter: none;
	animation: ted-defib-text var(--d) infinite;
}
.ted-logo__flash {
	position: absolute;
	inset: -45% -25%;
	z-index: 3;
	pointer-events: none;
	background: radial-gradient(ellipse at center, #fff 0%, color-mix(in srgb, var(--ted-primary-2) 55%, #fff) 22%, color-mix(in srgb, var(--ted-primary) 30%, transparent) 45%, transparent 65%);
	mix-blend-mode: screen;
	opacity: 0;
	animation: ted-defib-flash var(--d) infinite;
}
.ted-logo__ecg {
	position: absolute;
	left: -14%;
	width: 128%;
	max-width: none;
	top: var(--ted-ecg-y, 50%);
	height: 38%;
	transform: translateY(-50%);
	z-index: 2;
	overflow: visible;
	pointer-events: none;
}
.ted-logo__ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ted-logo__flat { stroke: color-mix(in srgb, var(--ted-primary) 70%, transparent); stroke-width: 2.5; animation: ted-defib-flat var(--d) infinite; }
.ted-logo__beat {
	stroke: #fff;
	stroke-width: 3.5;
	stroke-dasharray: 1000;
	stroke-dashoffset: 1000;
	filter: drop-shadow(0 0 6px var(--ted-primary)) drop-shadow(0 0 14px var(--ted-glow));
	animation: ted-defib-beat var(--d) infinite;
}
.ted-logo__bolts {
	position: absolute;
	inset: 5% 0;
	width: 100%;
	height: 90%;
	z-index: 4;
	pointer-events: none;
	opacity: 0;
	animation: ted-defib-bolt var(--d) steps(1) infinite;
}
.ted-logo__bolts polyline {
	fill: none;
	stroke: #fff;
	stroke-width: 2;
	vector-effect: non-scaling-stroke;
	filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px var(--ted-beacon));
}
.ted-logo__bolts polyline + polyline { animation: ted-defib-bolt2 calc(var(--d) / 25) steps(1) infinite; }
.ted-logo--defib .ted-logo__hud b { font-size: 1.4em; animation: ted-defib-bolt-icon var(--d) infinite; }
.ted-logo__hud-lab { display: grid; }
.ted-logo__st { grid-area: 1 / 1; opacity: 0; }
.ted-logo__st--1 { animation: ted-st1 var(--d) steps(1) infinite; }
.ted-logo__st--2 { animation: ted-st2 var(--d) steps(1) infinite; color: #fff; }
.ted-logo__st--3 { animation: ted-st3 var(--d) steps(1) infinite; }
.ted-logo__bar {
	display: block;
	width: 7rem;
	height: 6px;
	border-radius: 3px;
	background: color-mix(in srgb, var(--ted-primary) 18%, transparent);
	overflow: hidden;
}
.ted-logo__bar i {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--ted-primary-2), var(--ted-primary), #fff);
	transform: scaleX(0);
	transform-origin: left;
	animation: ted-defib-charge var(--d) infinite;
}

/* ================================================================
 * 4. Monitor: scansione del tracciato
 * ================================================================ */
.ted-logo--monitor { --m: calc(3s * var(--s)); }
.ted-logo--monitor .ted-logo__text {
	background: none;
	color: color-mix(in srgb, var(--ted-primary) 40%, transparent);
	-webkit-text-fill-color: currentColor;
	filter: none;
}
.ted-logo--monitor .ted-logo__fx--phos {
	color: var(--ted-primary);
	-webkit-text-fill-color: currentColor;
	background: none;
	text-shadow: 0 0 .05em var(--ted-primary-2), 0 0 calc(.2em * var(--g)) var(--ted-primary), 0 0 calc(.45em * var(--g)) var(--ted-glow);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .45) 40%, #000 92%, #000 100%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .45) 40%, #000 92%, #000 100%);
	-webkit-mask-size: 70% 100%;
	mask-size: 70% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	animation: ted-mon-mask var(--m) linear infinite;
}
.ted-logo__sweep {
	position: absolute;
	top: -4%; bottom: -4%;
	left: 0;
	z-index: 3;
	width: 3px;
	background: #fff;
	box-shadow: 0 0 10px var(--ted-primary), 0 0 26px var(--ted-primary), 0 0 50px var(--ted-glow);
	animation: ted-mon-sweep var(--m) linear infinite;
}
.ted-logo__scan {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .5) 0 2px, transparent 2px 5px);
}
.ted-logo--monitor .ted-logo__hud { flex-direction: row; align-items: baseline; flex-wrap: wrap; max-width: 7.5rem; justify-content: flex-end; column-gap: .45rem; }
.ted-logo__heart { animation: ted-heart calc(.85s * var(--s)) ease-in-out infinite; display: inline-block; }
.ted-logo__hr { font-size: 2.1em; line-height: 1; text-shadow: 0 0 10px var(--ted-glow); }

/* ================================================================
 * 5. Battito con onde
 * ================================================================ */
.ted-logo--pulse .ted-logo__text { animation: ted-lubdub calc(1.4s * var(--s)) ease-in-out infinite; transform-origin: 50% 55%; }
.ted-logo__ring {
	position: absolute;
	left: 50%; top: 45%;
	z-index: -1;
	width: 45%;
	aspect-ratio: 1;
	border: 3px solid var(--ted-primary);
	border-radius: 50%;
	transform: translate(-50%, -50%) scale(.2);
	opacity: 0;
	box-shadow: 0 0 calc(24px * var(--g)) var(--ted-glow), inset 0 0 calc(24px * var(--g)) var(--ted-glow);
	animation: ted-ring calc(2.1s * var(--s)) cubic-bezier(.2, .6, .3, 1) infinite;
}
.ted-logo__ring--2 { border-color: var(--ted-beacon); box-shadow: 0 0 20px color-mix(in srgb, var(--ted-beacon) 60%, transparent); animation-delay: calc(.7s * var(--s)); }
.ted-logo__ring--3 { animation-delay: calc(1.4s * var(--s)); }

/* ================================================================
 * 6. Insegna al neon
 * ================================================================ */
.ted-logo--neon .ted-logo__text {
	background: none;
	color: #fff2e4;
	-webkit-text-fill-color: currentColor;
	-webkit-text-stroke: .012em var(--ted-primary-2);
	filter: none;
	text-shadow:
		0 0 .02em #fff,
		0 0 calc(.06em * var(--g)) var(--ted-primary-2),
		0 0 calc(.16em * var(--g)) var(--ted-primary),
		0 0 calc(.35em * var(--g)) var(--ted-primary),
		0 0 calc(.8em * var(--g)) var(--ted-glow);
	animation: ted-neon calc(7s * var(--s)) steps(1) infinite;
}
.ted-logo--neon .ted-logo__ch:nth-child(2) { animation: ted-neon-bad calc(4.3s * var(--s)) steps(1) infinite; }
.ted-logo__wash {
	position: absolute;
	inset: -30% -15%;
	z-index: -1;
	border-radius: 40%;
	background: radial-gradient(ellipse at center, color-mix(in srgb, var(--ted-primary) 28%, transparent), transparent 65%);
	filter: blur(20px);
	opacity: calc(.4 + .5 * var(--g));
	animation: ted-neon calc(7s * var(--s)) steps(1) infinite;
}

/* ================================================================
 * 7. Bande rifrangenti ad alta visibilità
 * ================================================================ */
.ted-logo--reflective .ted-logo__text {
	background: repeating-linear-gradient(-45deg, var(--ted-primary) 0 .09em, #f1f1ee .09em .18em);
	background-size: .2546em .2546em;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	-webkit-text-stroke: .012em rgba(0, 0, 0, .55);
	animation: ted-hivis calc(2.4s * var(--s)) linear infinite;
}
.ted-logo--reflective .ted-logo__fx--glint {
	background-image: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .95) 50%, transparent 58%);
	background-size: 300% 100%;
	mix-blend-mode: screen;
	animation: ted-sheen calc(4.2s * var(--s)) ease-in-out infinite;
}
.ted-logo__spark {
	position: absolute;
	right: 4%; top: 6%;
	z-index: 3;
	width: .35em; height: .35em;
	pointer-events: none;
	background:
		linear-gradient(90deg, transparent 47%, #fff 50%, transparent 53%),
		linear-gradient(0deg, transparent 47%, #fff 50%, transparent 53%),
		radial-gradient(circle, #fff 0%, transparent 30%);
	filter: drop-shadow(0 0 6px #fff);
	transform: scale(0) rotate(0deg);
	animation: ted-spark calc(4.2s * var(--s)) ease-out infinite;
}

/* ================================================================
 * Statica
 * ================================================================ */
.ted-logo--static .ted-logo__text { animation: none; }

/* ================================================================
 * Lampeggianti di sfondo dell'hero
 * ================================================================ */
.ted-sirens--blue .ted-siren--a,
.ted-sirens--blue .ted-siren--b,
.ted-sirens--mixed .ted-siren--a {
	background: radial-gradient(circle, var(--ted-beacon), transparent 65%);
	animation: ted-wig-bg calc(1.3s * var(--ted-logo-speed, 1)) linear infinite;
}
.ted-sirens--blue .ted-siren--b { animation-delay: calc(.65s * var(--ted-logo-speed, 1)); }
.ted-sirens--mixed .ted-siren--b {
	background: radial-gradient(circle, var(--ted-primary), transparent 65%);
	animation: ted-wig-bg calc(1.3s * var(--ted-logo-speed, 1)) linear calc(.65s * var(--ted-logo-speed, 1)) infinite;
}

/* ================================================================
 * Schermate di caricamento
 * ================================================================ */
/* Barra dei lampeggianti */
.ted-pre-bar { display: flex; align-items: center; justify-content: center; gap: 1.2rem; }
.ted-pre-bar__lamp {
	width: clamp(60px, 14vw, 110px);
	height: 26px;
	border-radius: 13px;
	background: color-mix(in srgb, var(--ted-beacon) 25%, #0a0a0a);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
	animation: ted-pre-lamp 1.1s linear infinite;
}
.ted-pre-bar__lamp--r { animation-delay: .55s; }
.ted-pre-bar__word {
	font-family: var(--ted-font-heading);
	font-weight: var(--ted-h-weight);
	font-size: 2.6rem;
	line-height: 1;
	color: var(--ted-primary);
	text-shadow: 0 0 20px var(--ted-glow);
}
.ted-pre-bar__floor {
	display: block;
	height: 40px;
	margin-top: .6rem;
	border-radius: 50%;
	background: radial-gradient(ellipse at center, var(--ted-beacon), transparent 70%);
	filter: blur(14px);
	animation: ted-wig-both 1.1s linear infinite;
}

/* Defibrillatore */
.ted-pre-defib { position: relative; width: 110px; height: 110px; margin: 0 auto; }
.ted-pre-defib svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ted-pre-defib circle { fill: none; stroke-width: 6; }
.ted-pre-defib__track { stroke: var(--ted-line); }
.ted-pre-defib__fill {
	stroke: var(--ted-primary);
	stroke-linecap: round;
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	filter: drop-shadow(0 0 6px var(--ted-primary));
	animation: ted-pre-charge 1.6s ease-in infinite;
}
.ted-pre-defib__bolt {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 2.6rem;
	color: var(--ted-primary);
	animation: ted-pre-zap 1.6s steps(1) infinite;
}

/* Cuore */
.ted-pre-heart { position: relative; width: 90px; height: 90px; margin: 0 auto; display: grid; place-items: center; }
.ted-pre-heart svg { width: 60px; height: 60px; fill: var(--ted-primary); filter: drop-shadow(0 0 14px var(--ted-glow)); animation: ted-lubdub 1s ease-in-out infinite; }
.ted-pre-heart__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ted-primary); animation: ted-ring-pre 2s ease-out infinite; }
.ted-pre-heart__ring + .ted-pre-heart__ring { border-color: var(--ted-beacon); animation-delay: 1s; }

.ted-sc--logo { text-align: center; line-height: 1; padding: 3rem 0; overflow: hidden; }

/* ================================================================
 * Keyframes
 * ================================================================ */
/* doppio lampo "wig-wag" dei mezzi di soccorso */
@keyframes ted-wig {
	0%, 100% { opacity: 0; }
	3% { opacity: 1; }
	8% { opacity: .08; }
	12% { opacity: 1; }
	17%, 99% { opacity: 0; }
}
@keyframes ted-wig-both {
	0%, 100% { opacity: 0; }
	3%, 12%, 53%, 62% { opacity: .9; }
	8%, 58% { opacity: .1; }
	17%, 50%, 67%, 99% { opacity: 0; }
}
@keyframes ted-wig-bg {
	0%, 100% { opacity: 0; }
	3% { opacity: .55; }
	8% { opacity: .06; }
	12% { opacity: .5; }
	18%, 99% { opacity: 0; }
}
@keyframes ted-sheen { 0% { background-position: 120% 0; } 55%, 100% { background-position: -20% 0; } }
@keyframes ted-sweep { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes ted-lamp { 0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(.9); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } }

@keyframes ted-defib-text {
	0%, 52% { color: transparent; -webkit-text-stroke-color: color-mix(in srgb, var(--ted-primary) 40%, transparent); transform: none; filter: none; }
	53.5% { color: #fff; -webkit-text-stroke-color: #fff; transform: scale(1.05) translateX(-.02em); filter: drop-shadow(0 0 30px #fff); }
	55.5% { transform: scale(.98) translateX(.02em); }
	58% { color: var(--ted-primary-2); -webkit-text-stroke-color: var(--ted-primary-2); transform: none; }
	64%, 100% { color: var(--ted-primary); -webkit-text-stroke-color: var(--ted-primary); filter: drop-shadow(0 0 calc(30px * var(--g)) var(--ted-glow)); }
}
@keyframes ted-defib-flash { 0%, 53% { opacity: 0; } 54% { opacity: 1; } 56% { opacity: .15; } 57% { opacity: .7; } 63%, 100% { opacity: 0; } }
@keyframes ted-defib-flat { 0%, 53% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes ted-defib-beat { 0%, 58% { stroke-dashoffset: 1000; opacity: 0; } 59% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes ted-defib-bolt { 0%, 53% { opacity: 0; } 53.5% { opacity: 1; } 55% { opacity: 0; } 55.5% { opacity: 1; } 57% { opacity: 0; } 100% { opacity: 0; } }
@keyframes ted-defib-bolt2 { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes ted-defib-charge { 0%, 10% { transform: scaleX(0); } 50%, 53% { transform: scaleX(1); } 54%, 100% { transform: scaleX(0); } }
@keyframes ted-defib-bolt-icon { 0%, 48% { opacity: .5; } 49%, 53% { opacity: 1; text-shadow: 0 0 10px #fff; } 54%, 100% { opacity: .5; } }
@keyframes ted-st1 { 0% { opacity: 1; } 53% { opacity: 0; } }
@keyframes ted-st2 { 0% { opacity: 0; } 53% { opacity: 1; } 60% { opacity: 0; } }
@keyframes ted-st3 { 0% { opacity: 0; } 60% { opacity: 1; } }

@keyframes ted-mon-mask {
	from { -webkit-mask-position: -240% 0; mask-position: -240% 0; }
	to { -webkit-mask-position: 340% 0; mask-position: 340% 0; }
}
@keyframes ted-mon-sweep {
	0% { left: -2%; opacity: 1; }
	58.6% { left: 100%; opacity: 1; }
	59%, 100% { left: 100%; opacity: 0; }
}

@keyframes ted-lubdub {
	0%, 100% { transform: scale(1); }
	10% { transform: scale(1.05); }
	18% { transform: scale(.99); }
	27% { transform: scale(1.03); }
	40% { transform: scale(1); }
}
@keyframes ted-ring {
	0% { transform: translate(-50%, -50%) scale(.2); opacity: .95; }
	100% { transform: translate(-50%, -50%) scale(3.4); opacity: 0; }
}
@keyframes ted-ring-pre { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

@keyframes ted-neon {
	0%, 18%, 22%, 24%, 58%, 61%, 100% { opacity: 1; }
	19%, 23% { opacity: .35; }
	21% { opacity: .8; }
	59% { opacity: .55; }
}
@keyframes ted-neon-bad {
	0%, 30%, 34%, 70%, 100% { opacity: 1; }
	31%, 33% { opacity: .12; }
	32% { opacity: .6; }
	71% { opacity: .2; }
	72% { opacity: 1; }
	74% { opacity: .1; }
	76% { opacity: 1; }
}

@keyframes ted-hivis { from { background-position: 0 0; } to { background-position: .2546em 0; } }
@keyframes ted-spark {
	0%, 50% { transform: scale(0) rotate(0deg); opacity: 0; }
	56% { transform: scale(1.2) rotate(45deg); opacity: 1; }
	66%, 100% { transform: scale(0) rotate(90deg); opacity: 0; }
}

@keyframes ted-pre-lamp {
	0%, 100% { background: color-mix(in srgb, var(--ted-beacon) 25%, #0a0a0a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
	3%, 12% { background: #cfe0ff; box-shadow: 0 0 20px var(--ted-beacon), 0 0 50px var(--ted-beacon); }
	8% { background: var(--ted-beacon); box-shadow: 0 0 8px var(--ted-beacon); }
	17% { background: color-mix(in srgb, var(--ted-beacon) 25%, #0a0a0a); box-shadow: none; }
}
@keyframes ted-pre-charge { 0% { stroke-dashoffset: 100; } 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes ted-pre-zap { 0%, 79% { color: var(--ted-primary); text-shadow: none; } 80%, 90% { color: #fff; text-shadow: 0 0 20px #fff, 0 0 40px var(--ted-primary); } }

/* ================================================================
 * Adattamenti
 * ================================================================ */
@media (max-width: 900px) {
	.ted-logo__hud { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ted-logo *, .ted-logo__text { animation: none !important; }
	.ted-logo__text { color: var(--ted-primary) !important; opacity: 1 !important; }
	.ted-logo__fx, .ted-logo__halo, .ted-logo__beam, .ted-logo__lamp, .ted-logo__flash,
	.ted-logo__bolts, .ted-logo__sweep, .ted-logo__ring, .ted-logo__spark, .ted-logo__flat { display: none !important; }
	.ted-logo__beat { stroke-dashoffset: 0 !important; opacity: 1 !important; }
	.ted-logo--monitor .ted-logo__text { color: var(--ted-primary) !important; }
}
