.ait-timeline {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    color: #d8dee6;
    font-family: "Press Start 2P", "VT323", "Roboto Mono", ui-monospace, monospace;
    letter-spacing: 0.3px;
}

.ait-mobile-hint {
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #8f96a3;
}

.ait-mobile-hint-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: ait-mobile-hint-slide 3s ease-in-out infinite alternate;
	font-size: 8px;
}

.ait-mobile-hint-text::before,
.ait-mobile-hint-text::after {
    content: '‹';
    font-size: 1rem;
    color: #cbd5e1;
}

.ait-mobile-hint-text::after {
    content: '›';
}

@keyframes ait-mobile-hint-slide {
    0% {
        transform: translateX(-14px);
    }
    50% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(14px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ait-mobile-hint-text {
        animation: none;
    }
}

.ait-timeline-track {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    padding: 0 60px;
}

.ait-timeline-track::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.ait-timeline-events {
    --ait-line-offset: 58%;
    display: flex;
    gap: 22px;
    position: relative;
    width: max-content;
    padding: 14px 6px 14px;
}

.ait-timeline-track-wrapper {
    position: relative;
}

.ait-timeline-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 4px #363d49 solid;
    background: #14181f;
    color: #fff;
    box-shadow: inset 4px 4px #fff3, inset -4px -4px #0000004d, 4px 4px #00000080;
    display: grid;
    place-items: center;
    cursor: pointer;
    user-select: none;
    padding: 0;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    z-index: 2;
}

.ait-timeline-nav.is-prev {
    left: 0;
}

.ait-timeline-nav.is-next {
    right: 0;
}

.ait-timeline-nav:hover,
.ait-timeline-nav:focus-visible {
    border-color: #4b5563;
    background: #1b2029;
}

.ait-timeline-nav:active {
    transform: translateY(-50%) scale(0.96);
}

.ait-timeline-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ait-timeline-track.is-dragging {
    cursor: grabbing;
}

.ait-event {
    position: relative;
    min-width: 190px;
    max-width: 200px;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 12px 12px 14px;
    text-align: left;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-snap-align: start;
    box-shadow: none;
    transition: transform 0.2s ease;
    --ait-accent-color: #2258c3;
}

.ait-event.is-active {
    border-color: transparent;
    box-shadow: none;
    transform: translateY(-5px);
}

.ait-event:hover {
    background: transparent;
    box-shadow: none;
    border-color: transparent;
    transform: translateY(-5px);
}

.ait-event:active {
    transform: translateY(-5px);
}

.ait-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8f96a3;
    background: #393e46;
    border: 2px solid #2c2f39;
    box-shadow: inset 4px 4px #fff3, inset -4px -4px #0000004d, 4px 4px #00000080;
	font-family: "Press Start 2P", "VT323", "Roboto Mono", ui-monospace, monospace;
}

.ait-event.is-active .ait-year {
    color: #0f1218;
    background: var(--ait-accent-color);
    border-color: var(--ait-accent-color);
}


.ait-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f1218;
    padding: 12px;
    min-height: 120px;
    border: 2px solid #2a2d36;
    box-shadow: inset 4px 4px #fff3, inset -4px -4px #0000004d, 4px 4px #00000080;
}

.ait-event.is-active .ait-avatar {
    border-color: var(--ait-accent-color);
}

.ait-event-image {
    max-width: 100%;
    height: auto;
    transition: transform 0.2s ease;
}


.ait-avatar-placeholder {
    width: 80px;
    height: 110px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(133, 208, 122, 0.55), rgba(133, 208, 122, 0.2));
}

.ait-timeline-events::before {
    content: '';
    position: absolute;
    top: var(--ait-line-offset);
    left: 0;
    right: 0;
    height: 4px;
    background: #2b2f39;
    border-radius: 2px;
    opacity: 0.9;
}

.ait-marker {
    position: relative;
    display: block;
    width: 100%;
    height: 18px;
}

.ait-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #3c3f49;
    box-shadow: inset 4px 4px #fff3, inset -4px -4px #0000004d, 4px 4px #00000080;
}

.ait-event.is-filled .ait-dot {
    background: var(--ait-accent-color);
}
.ait-dot:hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background: #3c3f49;
    box-shadow: inset 4px 4px #fff3, inset -4px -4px #0000004d, 4px 4px #00000080;
}

.ait-title {
    font-size: 0.85rem;
	line-height: 1.25rem;
    text-transform: uppercase;
    color: #8f96a3;
	font-family: "Press Start 2P", "VT323", "Roboto Mono", ui-monospace, monospace;
}


.ait-excerpt {
    font-size: 0.7rem;
    opacity: 0.8;
    line-height: 1.5;
}

.ait-detail {
    position: relative;
    display: flex;
    justify-content: center;
}

.ait-detail-card {
    position: absolute;
    top: 0;
    left: 50%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 16px;
    row-gap: 12px;
    width: 70%;
    max-width: min(720px, 92vw);
    margin: 0;
    box-sizing: border-box;
    background: #14181f;
    border: 4px solid var(--ait-accent-color);
    border-radius: 8px;
    padding: 20px 22px;
    box-shadow: inset 4px 4px #fff3, inset -4px -4px #0000004d, 4px 4px #00000080;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(calc(-50% + var(--ait-card-offset, 100px))) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    will-change: transform, opacity;
}

.ait-detail-card.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
}

.ait-detail-card.is-exiting {
    opacity: 0;
    visibility: visible;
    transform: translateX(calc(-50% + var(--ait-card-exit-x, -100px))) scale(0.95);
}

.ait-detail-year {
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0;
    padding: 10px;
    background: var(--ait-accent-color);
    --ait-accent-color: #2258c3;
    box-shadow: inset 4px 4px #fff3, inset -4px -4px #0000004d, 4px 4px #00000080;
    transform: scale(0.8);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: 0.1s;
}

.ait-detail-card.is-active .ait-detail-year {
    transform: scale(1);
}

.ait-detail-title {
    margin: 0;
    text-transform: uppercase;
    font-family: "Press Start 2P", cursive;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: inherit;
    opacity: 0;
    transform: translateX(20px);
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.ait-detail-card.is-active .ait-detail-title {
    opacity: 1;
    transform: translateX(0);
}

.ait-detail-content {
    flex-basis: 100%;
    font-size: 18px;
	line-height: 1.6;
    color: #8f96a3;
	font-family: "VT323", monospace;
	text-align: left;
    word-break: break-word;
    overflow-wrap: anywhere;
    opacity: 0;
    transition: opacity 0.45s ease;
    transition-delay: 0.2s;
}

.ait-detail-card.is-active .ait-detail-content {
    opacity: 1;
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    .ait-timeline-nav {
        display: none;
    }

    .ait-event {
        min-width: 170px;
    }

    .ait-mobile-hint {
        display: flex;
    }
	.ait-detail-card {
        width: 92vw;
        max-width: 92vw;
        padding: 16px;
        --ait-card-offset: 0px;
        --ait-card-exit-x: 0px;
    }

    .ait-detail-title {
        font-size: 1.1rem;
        line-height: 1.6rem;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}
