/* The shared layer changes ink automatically across dark and light surfaces. */
body {
    isolation: isolate;
}

.brand-backdrop {
    --brand-angle: -55deg;
    --brand-speed: 20;
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    opacity: .05;
    mix-blend-mode: difference;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    contain: strict;
}

.brand-backdrop-plane {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--brand-angle));
    font-family: var(--font);
    font-size: clamp(72px, 8.333333vw, 120px);
    font-weight: 700;
    line-height: .8;
    letter-spacing: -.02em;
    color: transparent;
    -webkit-text-stroke: 1px #fff;
}

.brand-backdrop-row {
    display: flex;
    width: max-content;
    animation: ki-brand-drift var(--brand-duration) linear infinite;
    animation-delay: var(--brand-delay);
}

.brand-backdrop-row:nth-child(even) {
    animation-direction: reverse;
}

.brand-backdrop-copy {
    display: block;
    flex-shrink: 0;
    white-space: nowrap;
}

.brand-backdrop.is-paused .brand-backdrop-row {
    animation-play-state: paused;
}

.brand-backdrop--panel {
    position: absolute;
    z-index: -1;
    mix-blend-mode: normal;
}

/* Keep every foreground surface above the shared decorative layer. */
.hero,
.about {
    z-index: 2;
}

.features > *,
.atmosphere > .section-shell,
.installation > :not(.brand-backdrop),
.faq > *,
.site-footer > *,
.legal-main,
.legal-footer,
.noscript-note {
    position: relative;
    z-index: 2;
}

.install-panel > .brand-backdrop {
    z-index: -1;
}

@keyframes ki-brand-drift {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .brand-backdrop-row {
        animation: none;
    }
}

@media print {
    .brand-backdrop {
        display: none;
    }
}
