/* EsoTech AI brand: logo, logo animations and the page loader. Colours: teal #0F766E mixed with near-black #111111. */
:root { --et-teal: #0F766E; --et-teal-2: #0B5F58; --et-teal-3: #14B8A6; --et-teal-soft: #E6F4F2; --et-black: #111111; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --et-teal: #2DD4BF; --et-teal-2: #5EEAD4; --et-teal-3: #14B8A6; --et-teal-soft: #0f2e2b; } }

.et-logo { display: block; flex: none; color: inherit; overflow: visible; }
.et-logo .et-ring { fill: none; stroke: currentColor; stroke-width: 22.4; }
.et-logo .et-rays { fill: currentColor; transform-origin: 500px 500px; }
.et-logo .et-rays path { transform-origin: 500px 500px; transition: transform .09s linear, opacity .09s linear; }
.et-logo .et-e { fill: #0F766E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .et-logo .et-e { fill: #14B8A6; } }

/* Loading: rays turn around the centre (2.5 s per turn); E and ring stay still. */
.et-logo.spin .et-rays { animation: et-spin 2.5s linear infinite; }
.et-logo.spin.fast .et-rays { animation-duration: 1.2s; }
/* Intro: E, then the 22 rays clockwise, then the ring is drawn; afterwards the rays keep turning. */
.et-logo.intro .et-e { animation: et-pop .35s ease-out both; transform-origin: 500px 500px; }
.et-logo.intro .et-rays path { animation: et-ray .28s ease-out both; animation-delay: calc(.25s + var(--i) * .045s); }
.et-logo.intro .et-ring { stroke-dasharray: 1; stroke-dashoffset: 1; animation: et-draw .6s ease-in-out 1.25s forwards; }
.et-logo.intro .et-rays { animation: et-spin 2.5s linear 1.9s infinite; }
/* Breathing (thinking in voice mode). */
.et-logo.breathe { animation: et-breathe 1.6s ease-in-out infinite; }
@keyframes et-spin { to { transform: rotate(360deg); } }
@keyframes et-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes et-ray { from { opacity: 0; transform: scale(.45); } to { opacity: 1; transform: none; } }
@keyframes et-draw { to { stroke-dashoffset: 0; } }
@keyframes et-breathe { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .et-logo .et-rays, .et-logo .et-rays path, .et-logo .et-e, .et-logo .et-ring { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }

/* Page loader: only appears if loading takes longer than ~350 ms (fast pages never show it). */
.et-page-loader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: rgba(255,255,255,.86); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; pointer-events: none; color: #111; }
.et-page-loader .et-loader-box { display: flex; flex-direction: column; align-items: center; gap: 14px; font: 500 13px/1.4 "Inter", system-ui, sans-serif; color: #6e6e6e; }
html.et-loading .et-page-loader { opacity: 1; visibility: visible; transition-delay: .35s, 0s; pointer-events: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .et-page-loader { background: rgba(23,23,23,.86); color: #ececec; } }

/* Small inline loader (e.g. buttons, viewers). */
.et-inline-loader { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: 13px; }
.et-center-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 16px; color: #6e6e6e; font-size: 13px; text-align: center; }
