/* ─── Ajax · the crest ───────────────────────────────────────────────────── */

.badge-stage {
    --ink: #0d0d0f;
    --paper: #f7f5f2;
    --red: #d2122e;
}

/* Break out of the site's centred 720px column */
main.ajax-main {
    max-width: none;
    padding: 0;
}

.badge-stage {
    min-height: calc(100vh - 56px);   /* 56px = site nav */
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.badge-wrap {
    width: min(360px, 72vw);
    cursor: pointer;
}

.badge { width: 100%; height: auto; display: block; }

.badge__line { fill: var(--paper); }
.badge__arc  { fill: var(--red); }

/* Each of the 11 portrait lines is revealed by an animated centerline mask
   stroke so the authentic filled outline draws cleanly end-to-end. */
.badge__mask-path {
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1 2;
    stroke-dashoffset: 1.05;
    opacity: 0;
    animation: draw-line var(--dur, 0.45s) cubic-bezier(0.35, 0, 0.2, 1) var(--delay, 0s) forwards;
}

@keyframes draw-line {
    0% {
        stroke-dashoffset: 1.05;
        opacity: 0;
    }
    2% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Frame the finished 11-line portrait with the red outer rings and lettering. */
.badge__arc {
    opacity: 0;
    animation: fade-in 0.75s ease-out 2.35s forwards;
}

.badge__letter {
    opacity: 0;
    animation: fade-in 0.65s ease-out 2.55s forwards;
}

@keyframes fade-in {
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .badge__mask-path {
        animation: none;
        stroke-dashoffset: 0;
        opacity: 1;
    }

    .badge__arc,
    .badge__letter {
        animation: none;
        opacity: 1;
    }
}
