.teslian-brand {
    --teslian-mark-size: 78px;
    display: inline-grid;
    place-items: center;
    isolation: isolate;
}
.teslian-brand__mark {
    position: relative;
    width: var(--teslian-mark-size);
    height: var(--teslian-mark-size);
    animation: teslianMarkIdle 5.8s ease-in-out infinite;
}
.teslian-brand__aura {
    position: absolute;
    inset: 3%;
    z-index: -1;
    border-radius: 50%;
    background: rgba(143, 220, 255, .42);
    filter: blur(15px);
    animation: teslianAura 5.8s ease-in-out infinite;
}
.teslian-brand__halo,
.teslian-brand__ripple {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    pointer-events: none;
}
.teslian-brand__halo {
    border: 1px solid rgba(20, 25, 32, .12);
    background: conic-gradient(from 0deg, transparent 0 18%, rgba(143, 220, 255, .78) 22%, transparent 27% 62%, rgba(20, 25, 32, .22) 67%, transparent 73% 100%);
    -webkit-mask: radial-gradient(circle, transparent 71%, #000 72.5%, #000 74%, transparent 75.5%);
    mask: radial-gradient(circle, transparent 71%, #000 72.5%, #000 74%, transparent 75.5%);
    animation: teslianHalo 7s linear infinite;
}
.teslian-brand__ripple {
    border: 1px solid rgba(143, 220, 255, .5);
    animation: teslianRipple 3.8s ease-out infinite;
}
.teslian-brand__ripple--delay { animation-delay: 1.9s; }
.teslian-brand__badge {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(18, 22, 28, .1);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #fff, transparent 24%), linear-gradient(145deg, #fff, #f5f6f8 42%, #dfe4ea);
    box-shadow: 0 14px 28px rgba(18, 22, 28, .16), inset 0 8px 14px rgba(255, 255, 255, .62), inset 0 -10px 18px rgba(18, 22, 28, .06);
}
.teslian-brand__inner-ring {
    position: absolute;
    inset: 8%;
    border: 1px solid rgba(18, 22, 28, .07);
    border-radius: 50%;
    box-shadow: inset 0 0 12px rgba(18, 22, 28, .05);
}
.teslian-brand__canvas {
    position: relative;
    z-index: 2;
    width: 69%;
    height: 69%;
    filter: drop-shadow(0 7px 9px rgba(18, 22, 28, .16));
}
.teslian-brand__shine {
    position: absolute;
    inset: -55%;
    z-index: 3;
    background: linear-gradient(115deg, transparent 41%, rgba(255, 255, 255, .92) 50%, rgba(143, 220, 255, .3) 53%, transparent 62%);
    transform: translateX(-92%) rotate(9deg);
    animation: teslianShine 5.8s cubic-bezier(.22, .9, .24, 1) infinite;
    pointer-events: none;
}
.teslian-brand--sidebar { --teslian-mark-size: 54px; }
.teslian-brand--nav { --teslian-mark-size: 46px; }
.teslian-brand--login { --teslian-mark-size: 128px; }
.teslian-brand--hero { --teslian-mark-size: 168px; }
.teslian-brand--full {
    position: relative;
    display: grid;
    width: min(100%, 720px);
    min-height: calc(var(--teslian-mark-size) + 52px);
    place-items: center;
    padding: 26px;
    overflow: hidden;
}
.teslian-brand__soft-aura {
    position: absolute;
    width: 78%;
    height: 58%;
    border-radius: 999px;
    background: radial-gradient(circle at 32% 48%, rgba(0, 0, 0, .09), transparent 45%), radial-gradient(circle at 64% 50%, rgba(143, 220, 255, .34), transparent 52%);
    filter: blur(28px);
    animation: teslianFullAura 7.4s ease-in-out infinite;
    pointer-events: none;
}
.teslian-brand__lockup {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(26px, 5vw, 56px);
    animation: teslianLockupLoop 7.4s cubic-bezier(.16, .84, .28, 1) infinite;
}
.teslian-brand__full-mark { position: relative; display: grid; flex: 0 0 auto; place-items: center; }
.teslian-brand__connector {
    position: absolute;
    top: 50%;
    left: calc(100% + 6px);
    width: clamp(28px, 5vw, 62px);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(20, 25, 32, .48), rgba(143, 220, 255, .3), transparent);
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    animation: teslianConnectorLoop 7.4s ease infinite;
}
.teslian-brand__wordmark {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: .84;
    text-align: left;
    text-transform: uppercase;
}
.teslian-brand__wordmark::before,
.teslian-brand__wordmark::after {
    position: absolute;
    left: 0;
    width: min(100%, 330px);
    height: 1px;
    content: "";
    background: linear-gradient(90deg, rgba(20, 25, 32, .18), rgba(143, 220, 255, .34), transparent);
    transform: scaleX(0);
    transform-origin: left center;
    animation: teslianLineLoop 7.4s ease infinite;
}
.teslian-brand__wordmark::before { top: -14px; }
.teslian-brand__wordmark::after { bottom: -18px; height: 2px; animation-delay: .18s; }
.teslian-brand__word { display: block; white-space: nowrap; }
.teslian-brand__word + .teslian-brand__word { margin-top: 12px; }
.teslian-brand__word b {
    position: relative;
    display: inline-block;
    color: transparent;
    background: linear-gradient(180deg, #12161b, #3c4550 48%, #111418);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: clamp(40px, 6vw, 74px);
    font-weight: 800;
    letter-spacing: -.065em;
    opacity: 0;
    text-shadow: 0 12px 24px rgba(18, 22, 28, .1);
    transform: translateY(24px) rotateX(72deg) scale(.94);
    transform-origin: 50% 100%;
    animation: teslianLetterLoop 7.4s cubic-bezier(.17, .84, .23, 1) infinite;
    animation-delay: calc(var(--i) * 58ms);
}
.teslian-brand__word b::before {
    position: absolute;
    inset: 0;
    color: transparent;
    content: attr(data-letter);
    background: linear-gradient(100deg, transparent 14%, rgba(255, 255, 255, .75), rgba(143, 220, 255, .28), transparent 54%);
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0;
    animation: teslianLetterShineLoop 7.4s ease infinite;
    animation-delay: calc(.9s + var(--i) * 31ms);
}
.teslian-brand__wordmark small {
    margin-top: 24px;
    color: rgba(20, 25, 32, .5);
    font-size: clamp(7px, 1vw, 11px);
    font-weight: 800;
    letter-spacing: .38em;
    line-height: 1.4;
    opacity: 0;
    animation: teslianSubtitleLoop 7.4s ease infinite;
}
.teslian-brand__spark {
    position: absolute;
    top: -7px;
    left: -8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff, rgba(143, 220, 255, .72) 38%, rgba(20, 25, 32, .18) 60%, transparent 74%);
    filter: drop-shadow(0 0 10px rgba(143, 220, 255, .65));
    opacity: 0;
    animation: teslianSparkLoop 7.4s ease infinite;
}
.teslian-brand__micro-dots { position: absolute; inset: 0; pointer-events: none; }
.teslian-brand__micro-dots i {
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(20, 25, 32, .18);
    opacity: 0;
    animation: teslianMicroDrift var(--d) ease-in-out var(--delay) infinite;
}
@keyframes teslianMarkIdle { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-5px) rotate(1deg); } }
@keyframes teslianAura { 0%, 100% { opacity: .42; transform: scale(.84); } 50% { opacity: .95; transform: scale(1.2); } }
@keyframes teslianHalo { to { transform: rotate(360deg); } }
@keyframes teslianRipple { 0% { opacity: .58; transform: scale(.76); } 75%, 100% { opacity: 0; transform: scale(1.28); } }
@keyframes teslianShine { 0%, 42% { transform: translateX(-92%) rotate(9deg); } 72%, 100% { transform: translateX(92%) rotate(9deg); } }
@keyframes teslianFullAura { 0%, 100% { opacity: 0; transform: scale(.86); } 16%, 78% { opacity: .76; transform: scale(1); } 48% { opacity: .9; transform: scale(1.05); } }
@keyframes teslianLockupLoop { 0%, 100% { opacity: 0; filter: blur(10px); transform: translateY(18px) scale(.97); } 12%, 86% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); } }
@keyframes teslianConnectorLoop { 0%, 20%, 100% { opacity: 0; transform: translateY(-50%) scaleX(0); } 34%, 84% { opacity: .9; transform: translateY(-50%) scaleX(1); } }
@keyframes teslianLineLoop { 0%, 30%, 100% { opacity: 0; transform: scaleX(0); } 44%, 84% { opacity: 1; transform: scaleX(1); } }
@keyframes teslianLetterLoop { 0%, 28%, 100% { opacity: 0; filter: blur(7px); transform: translateY(24px) rotateX(72deg) scale(.94); } 42%, 84% { opacity: 1; filter: blur(0); transform: translateY(0) rotateX(0) scale(1); } }
@keyframes teslianLetterShineLoop { 0%, 42%, 100% { opacity: 0; transform: translateX(-125%); } 54% { opacity: .72; } 68% { opacity: 0; transform: translateX(125%); } }
@keyframes teslianSubtitleLoop { 0%, 50%, 100% { opacity: 0; transform: translateY(10px); } 62%, 84% { opacity: 1; transform: translateY(0); } }
@keyframes teslianSparkLoop { 0%, 31%, 100% { opacity: 0; transform: translateX(0) scale(.5); } 38% { opacity: 1; } 60% { opacity: 0; transform: translateX(280px) scale(.2); } }
@keyframes teslianMicroDrift { 0%, 100% { opacity: 0; transform: translate3d(0, 16px, 0) scale(.5); } 35%, 68% { opacity: .34; } 50% { transform: translate3d(14px, -22px, 0) scale(1); } }
@media (max-width: 700px) {
    .teslian-brand--full { min-height: calc(var(--teslian-mark-size) + 168px); padding: 22px 12px; }
    .teslian-brand__lockup { flex-direction: column; gap: 22px; text-align: center; }
    .teslian-brand__connector { display: none; }
    .teslian-brand__wordmark { align-items: center; text-align: center; }
    .teslian-brand__wordmark::before,
    .teslian-brand__wordmark::after { left: 50%; transform-origin: center; translate: -50% 0; }
    .teslian-brand__word b { font-size: clamp(34px, 12vw, 58px); }
    .teslian-brand__wordmark small { letter-spacing: .25em; }
}
@media (prefers-reduced-motion: reduce) {
    .teslian-brand * { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
