/* ─── Alignment Drift promo banner (temporary) ───────────────────────────
   Self-contained module: removing the banner means deleting this file, the
   component template and its static images folder. */

.align-drift-banner {
    --adrift-bg: #070a0c;
    --adrift-text: #eaf1f0;
    --adrift-muted: #b4c0be;
    --adrift-accent: #52e0c4;
    --adrift-accent-ink: #04211b;
    --adrift-mono: ui-monospace, "SFMono-Regular", Menlo, "Cascadia Mono",
        Consolas, "Liberation Mono", monospace;

    position: relative;
    display: block;
    height: 64px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(82, 224, 196, 0.22);
    background: var(--adrift-bg);
    color: var(--adrift-text);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.align-drift-banner:hover {
    border-color: rgba(82, 224, 196, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color: var(--adrift-text);
}

.align-drift-banner:focus-visible {
    outline: 2px solid var(--adrift-accent);
    outline-offset: 2px;
}

.align-drift-banner__art {
    position: absolute;
    inset: 0;
    background: url("/static/images/promo/alignment-drift/art.jpg") center 46% / cover no-repeat;
}

.align-drift-banner__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(7, 10, 12, 0.97) 0%,
        rgba(7, 10, 12, 0.9) 42%,
        rgba(7, 10, 12, 0.62) 100%
    );
}

.align-drift-banner__scan {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -20%;
    width: 18%;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(82, 224, 196, 0),
        rgba(82, 224, 196, 0.1),
        rgba(82, 224, 196, 0)
    );
}

.align-drift-banner__inner {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    gap: clamp(8px, 1.5vw, 18px);
    padding-inline: clamp(12px, 1.6vw, 20px);
}

.align-drift-banner__icon {
    flex: none;
    width: 38px;
    height: 38px;
    background: url("/static/images/promo/alignment-drift/icon.jpg") center / 120% no-repeat;
    border-radius: 50%;
    -webkit-mask: radial-gradient(circle, #000 55%, transparent 72%);
    mask: radial-gradient(circle, #000 55%, transparent 72%);
}

.align-drift-banner__text {
    display: flex;
    flex: 1;
    align-items: baseline;
    gap: clamp(8px, 1.4vw, 16px);
    min-width: 0;
}

.align-drift-banner__eyebrow {
    display: none;
    font-family: var(--adrift-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--adrift-accent);
}

.align-drift-banner__title {
    flex: none;
    font-family: var(--adrift-mono);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.05;
}

.align-drift-banner__tagline {
    min-width: 0;
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--adrift-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.align-drift-banner__tagline--short {
    display: none;
}

.align-drift-banner__cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    height: 38px;
    padding-inline: 16px;
    border-radius: 8px;
    background: var(--adrift-accent);
    color: var(--adrift-accent-ink);
    font-family: var(--adrift-mono);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 0 0 1px rgba(82, 224, 196, 0.35), 0 0 18px rgba(82, 224, 196, 0.25);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.align-drift-banner:hover .align-drift-banner__cta {
    filter: brightness(1.08);
}

.align-drift-banner:active .align-drift-banner__cta {
    transform: scale(0.97);
}

.align-drift-banner__cta svg {
    width: 1em;
    height: 1em;
    flex: none;
}

@media (prefers-reduced-motion: no-preference) {
    .align-drift-banner__scan {
        animation: align-drift-scan 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }

    .align-drift-banner__cta {
        animation: align-drift-ping 3.2s ease-in-out infinite;
    }
}

@keyframes align-drift-scan {
    0%,
    62% { left: -20%; }
    100% { left: 105%; }
}

@keyframes align-drift-ping {
    0%,
    100% {
        box-shadow: 0 0 0 1px rgba(82, 224, 196, 0.35), 0 0 14px rgba(82, 224, 196, 0.18);
    }
    50% {
        box-shadow: 0 0 0 1px rgba(82, 224, 196, 0.55), 0 0 24px rgba(82, 224, 196, 0.4);
    }
}

@media (max-width: 999px) {
    .align-drift-banner__tagline--long {
        display: none;
    }

    .align-drift-banner__tagline--short {
        display: block;
    }
}

@media (max-width: 799px) {
    .align-drift-banner__tagline--short {
        display: none;
    }
}

@media (max-width: 639px) {
    .align-drift-banner {
        height: 164px;
        border-radius: 14px;
    }

    .align-drift-banner__art {
        background-position: 50% 26%;
    }

    .align-drift-banner__shade {
        background: linear-gradient(
            180deg,
            rgba(7, 10, 12, 0.15) 0%,
            rgba(7, 10, 12, 0.55) 38%,
            rgba(7, 10, 12, 0.93) 68%,
            rgba(7, 10, 12, 0.98) 100%
        );
    }

    .align-drift-banner__inner {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-end;
        gap: 10px;
        padding: 14px;
    }

    .align-drift-banner__icon {
        display: none;
    }

    .align-drift-banner__text {
        flex: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .align-drift-banner__eyebrow {
        display: block;
    }

    .align-drift-banner__title {
        font-size: 21px;
    }

    .align-drift-banner__tagline--short {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        font-size: 13px;
    }

    .align-drift-banner__cta {
        width: 100%;
        height: 40px;
    }
}
