@font-face {
    font-family: "CinzelLocal";
    src: url("../fonts/cinzel-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "CinzelLocal";
    src: url("../fonts/cinzel-900.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "MedievalSharpLocal";
    src: url("../fonts/medievalsharp-400.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "OrbitronLocal";
    src: url("../fonts/orbitron-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "OrbitronLocal";
    src: url("../fonts/orbitron-900.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SpaceGroteskLocal";
    src: url("../fonts/space-grotesk-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "BaskervvilleLocal";
    src: url("../fonts/baskervville-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "StoneAgeLocal";
    src: url("../fonts/Stone Age.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "ErasaurLocal";
    src: url("../fonts/Erasaur.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --fg: #f4f4ef;
    --muted: rgba(244, 244, 239, 0.62);
    --line: rgba(244, 244, 239, 0.18);
    --accent: #5f95c4;
    --accent-soft: rgba(95, 149, 196, 0.22);
    --accent-strong: rgba(95, 149, 196, 0.78);
    --glitch-top: rgba(95, 149, 196, 0.9);
    --glitch-bottom: rgba(244, 244, 239, 0.92);
    --app-bg:
    linear-gradient(180deg, rgba(92, 123, 154, 0.9) 0%, rgba(79, 93, 108, 0.76) 34%, rgba(38, 44, 52, 0.82) 68%, rgba(14, 18, 24, 1) 100%);
    --era-texture:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.014) 0 1px, transparent 1px 82px);
    --display: "SpaceGroteskLocal", Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", "Helvetica Neue", Arial, sans-serif;
    --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --timeline-center-y: 40%;
    --timeline-axis-offset: -13px;
    --timeline-live-badge-offset: -46px;
    --cursor-readout-offset: 170px;
    --cursor-stem-full-height: 128px;
    --cursor-stem-short-height: 32px;
    --timeline-top-clearance: 164px;
    --timeline-bottom-clearance: 210px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #101722;
    color: var(--fg);
    font-family: var(--body);
}

body {
    overflow: hidden;
}

html.timeline-embed,
html.timeline-embed body {
    background: transparent !important;
}

body.shared-page--embed {
    background: transparent;
}

body.shared-page--embed .shared-header,
body.shared-page--embed .shared-bottom-nav,
body.shared-page--embed .session-modal,
body.shared-page--embed .shared-page-transition {
    display: none !important;
}

body.shared-page--embed .era-backdrop,
body.shared-page--embed .era-backdrop-next {
    display: none !important;
}

body.shared-page--embed .app {
    min-height: 100vh;
    background: transparent !important;
}

body.shared-page--embed .shell {
    min-height: 100vh;
    height: 100vh;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.shared-page--embed .timeline-wrap {
    --timeline-top-clearance: 32px;
    --timeline-bottom-clearance: 44px;
    --timeline-center-y: 48%;
    --cursor-readout-offset: 124px;
}

body.shared-page--embed .cursor-readout {
    position: absolute;
    inset: 0;
    width: 100%;
    transform: none;
    display: block !important;
    pointer-events: none;
    z-index: 9;
}

body.shared-page--embed .center-cursor::before {
    display: none !important;
}

body.shared-page--embed .track::before,
body.shared-page--embed .track::after {
    display: none !important;
    opacity: 0 !important;
}

body.shared-page--embed .cursor-era {
    position: absolute;
    top: 24px;
    left: 26px;
    min-height: 1em;
    font-size: clamp(1.3rem, 2.5vw, 2.15rem);
    letter-spacing: 0.08em;
    text-align: left;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

body.shared-page--embed .cursor-meta {
    position: absolute;
    top: 18px;
    right: 22px;
    display: inline-grid !important;
    justify-items: center;
    gap: 0 14px;
    padding: 11px 16px 10px;
    background: rgba(8, 12, 18, 0.22);
    border-color: rgba(244, 244, 239, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.shared-page--embed .cursor-meta-group {
    min-width: 112px;
}

body.shared-page--embed .cursor-time,
body.shared-page--embed .cursor-year {
    font-size: 1.08rem;
}

body.shared-page--embed .cursor-meta-label {
    font-size: 0.6rem;
}

body.shared-page--embed .app::before,
body.shared-page--embed .app::after {
    display: none !important;
    opacity: 0 !important;
}

.app {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--app-bg);
    transition: background 800ms ease;
}

.app::before,
.app::after,
.app::marker {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.era-backdrop,
.era-backdrop-next {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transform: scale(1.03);
    mix-blend-mode: soft-light;
    filter: saturate(0.9) contrast(1.04) brightness(0.58);
    transition: opacity 700ms ease, transform 1.2s ease, filter 700ms ease;
    pointer-events: none;
    will-change: opacity, transform, filter;
}

.era-backdrop.is-visible,
.era-backdrop-next.is-visible {
    opacity: 1;
    transform: scale(1);
}

.app::before {
    background:
    var(--era-texture),
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 22%, transparent 70%, rgba(0,0,0,0.06));
    z-index: 1;
    opacity: 0.92;
    transform: scale(1.04);
    transform-origin: center center;
    animation: textureFloat 24s ease-in-out infinite alternate;
    will-change: transform, opacity;
    transition: opacity 240ms ease, transform 300ms ease;
}

.app::after {
    background:
    radial-gradient(900px 220px at 20% 100%, rgba(10, 13, 18, 0.9), transparent 64%),
    radial-gradient(1000px 220px at 58% 100%, rgba(28, 36, 46, 0.82), transparent 62%),
    radial-gradient(760px 200px at 92% 100%, rgba(9, 12, 16, 0.98), transparent 58%);
    opacity: 0.95;
    z-index: 1;
}

.app.is-time-shifted::after {
    background:
    radial-gradient(900px 220px at 20% 100%, rgba(10, 13, 18, 0.9), transparent 64%),
    radial-gradient(1000px 220px at 58% 100%, rgba(28, 36, 46, 0.82), transparent 62%),
    radial-gradient(760px 200px at 92% 100%, rgba(9, 12, 16, 0.98), transparent 58%);
    opacity: 0.95;
    mix-blend-mode: normal;
    animation: none;
}

.app.is-time-shifted .shell {
    filter: saturate(1.1) contrast(1.06);
}

.app.is-time-shifted::before {
    opacity: 1 !important;
    transform: scale(1.06);
    filter: saturate(1.24) contrast(1.08) brightness(1.02);
}

.app.is-time-shifted .era-backdrop,
.app.is-time-shifted .era-backdrop-next {
    filter: saturate(1.08) contrast(1.12) brightness(0.54);
}

.app.is-time-shifted-future::after {
    background:
    radial-gradient(900px 220px at 20% 100%, rgba(10, 13, 18, 0.9), transparent 64%),
    radial-gradient(1000px 220px at 58% 100%, rgba(28, 36, 46, 0.82), transparent 62%),
    radial-gradient(760px 200px at 92% 100%, rgba(9, 12, 16, 0.98), transparent 58%);
}

.app.is-time-shifted-future .shell {
    filter: saturate(1.12) contrast(1.06);
}

.app.is-time-shifted-future .era-backdrop,
.app.is-time-shifted-future .era-backdrop-next {
    filter: saturate(1.16) contrast(1.16) brightness(0.52);
}

.app.is-time-shifted-past::after {
    background:
    radial-gradient(900px 220px at 20% 100%, rgba(10, 13, 18, 0.9), transparent 64%),
    radial-gradient(1000px 220px at 58% 100%, rgba(28, 36, 46, 0.82), transparent 62%),
    radial-gradient(760px 200px at 92% 100%, rgba(9, 12, 16, 0.98), transparent 58%);
}

.app.is-time-shifted-past .shell {
    filter: saturate(1.02) contrast(1.04) sepia(0.14);
}

.app.is-time-shifted-past .era-backdrop,
.app.is-time-shifted-past .era-backdrop-next {
    filter: saturate(1.04) contrast(1.12) brightness(0.54) sepia(0.08);
}

.app.is-scrubbing::before {
    opacity: 0.92 !important;
    transform: scale(1.04);
    animation: textureFloat 24s ease-in-out infinite alternate;
}

@keyframes textureFloat {
    0% {
    transform: scale(1.04) translate3d(-0.8%, -0.6%, 0);
    opacity: 0.86;
    }

    100% {
    transform: scale(1.08) translate3d(0.9%, 0.7%, 0);
    opacity: 0.96;
    }
}

@keyframes timeShiftVeil {
    0% {
    transform: translate3d(-0.6%, 0, 0) scale(1);
    }
    100% {
    transform: translate3d(0.7%, 0, 0) scale(1.012);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app::before {
    animation: none;
    transform: none;
    }

    .app.is-time-shifted::after {
    animation: none;
    }
}

.shell {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.timeline-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    --safe-axis-y: clamp(var(--timeline-top-clearance), var(--timeline-center-y), calc(100% - var(--timeline-bottom-clearance)));
    --safe-readout-y: min(calc(var(--safe-axis-y) + var(--cursor-readout-offset)), calc(100% - 84px));
    --scrub-glow-shift: 0px;
    --scrub-glow-opacity: 0;
    --scrub-drift: 0px;
    --scrub-pattern-offset: 0px;
}

.scrub-indicator {
    display: none;
}

.timeline-wrap::before,
.timeline-wrap::after {
    display: none;
}

.era-tick {
    display: none;
}

.viewport {
    position: absolute;
    inset: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: none;
    scrollbar-width: none;
}

.viewport::-webkit-scrollbar {
    display: none;
}

.viewport.dragging {
    cursor: grabbing;
    user-select: none;
}

.track {
    position: relative;
    width: var(--track-width, 2720px);
    min-width: var(--track-width, 2720px);
    height: 100%;
    padding: 100px 0 180px;
    --axis-left: 120px;
    --axis-right: 120px;
    --progress-x: 120px;
}

.track::before,
.track::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.track::before {
    left: var(--future-lock-start, 0px);
    top: calc(var(--safe-axis-y) - 75px);
    width: var(--future-lock-width, 0px);
    height: 150px;
    opacity: 0;
    z-index: 1;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(12, 18, 28, 0.1), rgba(12, 18, 28, 0.16)),
        repeating-linear-gradient(
            135deg,
            rgba(157, 199, 255, 0.08) 0 12px,
            rgba(157, 199, 255, 0) 12px 24px
        );
    background-position: 0 0, 0 0;
    transition: opacity 260ms ease;
    animation: futureLockedField 1.8s linear infinite;
    mask-image: linear-gradient(90deg, rgba(0,0,0,0.96) 0, #000 18px, #000 calc(100% - 18px), rgba(0,0,0,0.96) 100%);
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.96) 0, #000 18px, #000 calc(100% - 18px), rgba(0,0,0,0.96) 100%);
}

.app.is-future-locked .track::before {
    opacity: 0.34;
}

.app.is-future-unlocked .track::before {
    opacity: 0;
    animation: none;
}

.track::after {
    left: var(--future-lock-start, 0px);
    top: var(--safe-axis-y);
    width: var(--future-lock-width, 0px);
    height: 2px;
    transform: translateY(-50%);
    z-index: 4;
    opacity: 0;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(244, 244, 239, 0.68) 0 16px,
            rgba(244, 244, 239, 0) 16px 28px
        );
    transition: opacity 220ms ease;
}

.app.is-future-locked .track::after {
    opacity: 1;
}

.app.is-future-unlocked .track::after {
    opacity: 0;
}

.axis {
    position: absolute;
    left: var(--axis-left);
    right: var(--axis-right);
    top: var(--safe-axis-y);
    height: 2px;
    background: rgba(244, 244, 239, 0.42);
    transform: translateY(-50%);
    transition: background 180ms ease, opacity 180ms ease;
}

.progress {
    position: absolute;
    left: var(--axis-left);
    top: var(--safe-axis-y);
    height: 2px;
    width: calc(var(--progress-x) - var(--axis-left));
    background: rgba(255,255,255,0.92);
    box-shadow: 0 0 24px var(--accent-soft);
    transition: width 600ms ease;
    z-index: 1;
    transform: translateY(-50%);
    transition: width 600ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.live-marker {
    position: absolute;
    top: var(--safe-axis-y);
    left: var(--progress-x);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    box-shadow:
    0 0 0 10px color-mix(in srgb, var(--accent) 16%, transparent),
    0 0 0 20px color-mix(in srgb, var(--accent) 8%, transparent),
    0 0 16px color-mix(in srgb, var(--accent) 30%, transparent);
    opacity: 0;
    pointer-events: none;
    z-index: 9;
    overflow: visible;
    transition: opacity 180ms ease;
    animation: liveMarkerPulse 2s ease-in-out infinite;
}

.live-marker.is-visible {
    opacity: 1;
}

.live-marker.has-burst {
    opacity: 1;
}

.live-marker__burst-layer {
    position: absolute;
    inset: 0;
    overflow: visible;
    pointer-events: none;
}

.live-marker__burst {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    font-size: 25px;
    line-height: 1;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
    animation: liveMarkerBurst 1120ms cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
    will-change: transform, opacity;
}

.live-marker__burst--photo {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: #ffffff;
    background: color-mix(in srgb, var(--accent) 70%, rgba(8, 12, 18, 0.9));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.24),
        0 3px 8px rgba(0, 0, 0, 0.22);
    font-size: 15px;
}

@keyframes liveMarkerBurst {
    0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotate(0deg);
    }
    18% {
    opacity: 1;
    transform: translate(calc(-50% + (var(--burst-x) * 0.28)), calc(-50% - (var(--burst-rise) * 0.32))) scale(var(--burst-scale)) rotate(calc(var(--burst-rotate) * 0.5));
    }
    100% {
    opacity: 0;
    transform: translate(calc(-50% + (var(--burst-x) * 1.12)), calc(-50% - (var(--burst-rise) * 1.78))) scale(calc(var(--burst-scale) * 0.84)) rotate(var(--burst-rotate));
    }
}

.center-cursor {
    position: absolute;
    left: 50%;
    top: var(--safe-axis-y);
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
    0 0 0 16px color-mix(in srgb, var(--accent) 36%, transparent),
    0 0 0 32px color-mix(in srgb, var(--accent) 18%, transparent),
    0 0 28px color-mix(in srgb, var(--accent) 56%, transparent);
    z-index: 8;
    pointer-events: none;
    transition: background 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    animation: livePulse 2.2s ease-in-out infinite;
}

.timeline-wrap.is-scrubbing .axis {
    background: rgba(244, 244, 239, 0.42);
    box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 16%, transparent);
}

.timeline-wrap.is-scrubbing .progress {
    opacity: 1;
    box-shadow:
    0 0 22px color-mix(in srgb, var(--accent) 34%, transparent),
    0 0 56px color-mix(in srgb, var(--accent) 16%, transparent);
}

.center-cursor.is-detached {
    background: color-mix(in srgb, var(--accent) 56%, rgba(244, 244, 239, 0.34));
    box-shadow:
    0 0 0 16px color-mix(in srgb, var(--accent) 18%, transparent),
    0 0 0 32px color-mix(in srgb, var(--accent) 8%, transparent),
    0 0 18px color-mix(in srgb, var(--accent) 20%, transparent);
    animation: none;
}

@keyframes livePulse {
    0% {
    box-shadow:
        0 0 0 16px color-mix(in srgb, var(--accent) 24%, transparent),
        0 0 0 32px color-mix(in srgb, var(--accent) 12%, transparent),
        0 0 20px color-mix(in srgb, var(--accent) 34%, transparent);
    }
    50% {
    box-shadow:
        0 0 0 26px color-mix(in srgb, var(--accent) 32%, transparent),
        0 0 0 56px color-mix(in srgb, var(--accent) 14%, transparent),
        0 0 42px color-mix(in srgb, var(--accent) 52%, transparent);
    }
    100% {
    box-shadow:
        0 0 0 16px color-mix(in srgb, var(--accent) 24%, transparent),
        0 0 0 32px color-mix(in srgb, var(--accent) 12%, transparent),
        0 0 20px color-mix(in srgb, var(--accent) 34%, transparent);
    }
}

@keyframes scrubBandBreathe {
    0% {
    filter: saturate(1) blur(1px);
    }
    100% {
    filter: saturate(1.08) blur(2px);
    }
}

@keyframes scrubTrackDrift {
    0% {
    background-position: 0 0, 0 0, 0 0;
    }
    100% {
    background-position: 58px 0, 118px 0, 0 0;
    }
}

@keyframes liveMarkerPulse {
    0% {
    box-shadow:
        0 0 0 8px color-mix(in srgb, var(--accent) 14%, transparent),
        0 0 0 16px color-mix(in srgb, var(--accent) 6%, transparent),
        0 0 12px color-mix(in srgb, var(--accent) 24%, transparent);
    }
    50% {
    box-shadow:
        0 0 0 12px color-mix(in srgb, var(--accent) 18%, transparent),
        0 0 0 24px color-mix(in srgb, var(--accent) 8%, transparent),
        0 0 20px color-mix(in srgb, var(--accent) 30%, transparent);
    }
    100% {
    box-shadow:
        0 0 0 8px color-mix(in srgb, var(--accent) 14%, transparent),
        0 0 0 16px color-mix(in srgb, var(--accent) 6%, transparent),
        0 0 12px color-mix(in srgb, var(--accent) 24%, transparent);
    }
}

.center-cursor::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: var(--cursor-stem-active-height, var(--cursor-stem-full-height));
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--accent-strong), transparent);
}

.cursor-readout {
    position: absolute;
    left: 50%;
    top: var(--safe-readout-y);
    transform: translateX(-50%);
    display: grid;
    gap: 15px;
    justify-items: center;
    text-align: center;
    z-index: 6;
    pointer-events: auto;
    pointer-events:none;
    transition: opacity 220ms ease, transform 220ms ease;
}

.cursor-meta {
    display: inline-grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 0 12px;
    padding: 9px 14px 8px;
    border: 1px solid rgba(244, 244, 239, 0.12);
    border-radius: 999px;
    background: rgba(8, 12, 18, 0.24);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.timeline-wrap.is-scrubbing .cursor-readout {
    opacity: 1;
    transform: translateX(-50%);
}

.cursor-meta-group {
    display: grid;
    gap: 2px;
    justify-items: center;
    min-width: 96px;
}

.return-live {
    position: absolute;
    display:none !important;
    opacity:0 !important;
    visibility:hidden !important;
    left: 50%;
    margin-top:-20px;
    top: calc(var(--safe-axis-y) + var(--timeline-live-badge-offset));
    transform: translate(-50%, -100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 34px;
    padding: 0 12px 0 10px;
    border: 1px solid rgba(244, 244, 239, 0.14);
    border-radius: 999px;
    background: rgba(8, 12, 18, 0.58);
    color: rgba(244, 244, 239, 0.9);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    opacity: 0;
    pointer-events: none !important;
        z-index: 5;
    cursor: pointer;
    transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.return-live::after {
    content: "LIVE";
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(244, 244, 239, 0.7);
}

.return-live.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.return-live.is-activating {
    transform: translate(-50%, -100%) scale(0.96);
    border-color: rgba(62, 164, 255, 0.7);
    background: color-mix(in srgb, var(--accent) 28%, rgba(14, 22, 34, 0.92));
}

.return-live:hover {
    border-color: color-mix(in srgb, var(--accent) 62%, white);
    background: color-mix(in srgb, var(--accent) 16%, rgba(20, 28, 40, 0.72));
}

.edge-live {
    position: absolute;
    top: var(--safe-readout-y);
    margin-top: 57px;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(244, 244, 239, 0.18);
    border-radius: 999px;
    background: rgba(10, 15, 22, 0.4);
    color: rgba(244, 244, 239, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    z-index: 7;
    padding-top: 7px;
    font-family: arial !important;
    transition: opacity 180ms ease, border-color 180ms ease, background 180ms ease;
}

.edge-live.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.edge-live.is-activating {
    transform: translateY(-50%) scale(0.92);
    border-color: rgba(62, 164, 255, 0.7);
    background: color-mix(in srgb, var(--accent) 28%, rgba(14, 22, 34, 0.92));
}

.edge-live:hover {
    border-color: color-mix(in srgb, var(--accent) 62%, white);
    background: color-mix(in srgb, var(--accent) 16%, rgba(20, 28, 40, 0.72));
}

.edge-live-left {
    left: 18px;
}

.edge-live-right {
    right: 18px;
}

.cursor-era {
    position: relative;
    min-height: 1em;
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    line-height: 0.96;
    white-space: nowrap;
}

.cursor-era-face {
    position: absolute;
    inset: 0;
    font-family: var(--face-display, var(--body));
    font-weight: var(--face-weight, 900);
    text-transform: uppercase;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 140ms ease;
    pointer-events: none;
}

.cursor-era-face.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.cursor-time {
    color: rgba(244, 244, 239, 0.94);
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cursor-time-stack {
    position: relative;
    min-height: 1em;
    min-width: 4.5ch;
}

.cursor-time-face {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease;
    pointer-events: none;
    font-family: var(--face-display, var(--body));
}

.cursor-time-face.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.cursor-year {
    color: rgba(244, 244, 239, 0.88);
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-family: var(--year-display, var(--body));
}

.cursor-meta-label {
    color: var(--meta-label-color, rgba(244, 244, 239, 0.52));
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cursor-divider {
    width: 1px;
    height: 14px;
    background: rgba(244, 244, 239, 0.18);
}

.milestone {
    position: absolute;
    top: calc(var(--safe-axis-y) + var(--timeline-axis-offset));
    width: 320px;
    margin-left: -160px;
    z-index: 5;
}

.track .milestone-month:first-child, .track .milestone-pin:first-child{
    opacity:0 !important;
    display:none;
}

.milestone-month {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--body);
    font-weight: 800;
    font-size: 0.96rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: transform 180ms ease, opacity 180ms ease;
}

.milestone-pin {
    position: absolute;
    left: 50%;
    top: 6px;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-radius: 50%;
    border: 2px solid rgba(244, 244, 239, 0.72);
    background: rgba(244, 244, 239, 0.08);
    box-shadow: 0 0 0 1px rgba(12, 18, 28, 0.16);
    z-index: 2;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.milestone-pin::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: rgba(12, 18, 28, 0.72);
}

.milestone.active .milestone-pin,
.milestone:hover .milestone-pin {
    transform: scale(1.1);
    background: color-mix(in srgb, var(--era-chip, var(--accent)) 88%, white);
    border-color: color-mix(in srgb, var(--era-chip, var(--accent)) 84%, white);
    box-shadow:
    0 0 0 1px color-mix(in srgb, var(--era-chip, var(--accent)) 18%, rgba(12, 18, 28, 0.18)),
    0 0 18px color-mix(in srgb, var(--era-chip, var(--accent)) 24%, transparent);
}

.milestone.is-near-cursor .milestone-pin {
    transform: scale(1.28);
    border-color: color-mix(in srgb, var(--era-chip, var(--accent)) 88%, white);
    background: color-mix(in srgb, var(--era-chip, var(--accent)) 72%, rgba(255,255,255,0.08));
    box-shadow:
    0 0 0 1px color-mix(in srgb, var(--era-chip, var(--accent)) 22%, rgba(12, 18, 28, 0.18)),
    0 0 26px color-mix(in srgb, var(--era-chip, var(--accent)) 38%, transparent);
    animation: milestonePinScrubPulse 520ms ease-out;
}

.milestone.is-near-cursor .milestone-pin::before {
    background: color-mix(in srgb, var(--era-chip, var(--accent)) 90%, white);
}

.milestone.active .milestone-pin::before,
.milestone:hover .milestone-pin::before {
    background: color-mix(in srgb, var(--era-chip, var(--accent)) 88%, white);
}

.milestone.passed .milestone-pin {
    border-color: color-mix(in srgb, var(--era-chip, var(--accent)) 84%, white);
    background: color-mix(in srgb, var(--era-chip, var(--accent)) 24%, rgba(255,255,255,0.04));
    box-shadow:
    0 0 0 1px color-mix(in srgb, var(--era-chip, var(--accent)) 18%, rgba(12, 18, 28, 0.18)),
    0 0 14px color-mix(in srgb, var(--era-chip, var(--accent)) 18%, transparent);
}

.milestone.passed .milestone-pin::before {
    background: color-mix(in srgb, var(--era-chip, var(--accent)) 88%, white);
}

@keyframes milestonePinScrubPulse {
    0% {
    transform: scale(1);
    }
    45% {
    transform: scale(1.28);
    }
    100% {
    transform: scale(1.18);
    }
}

.milestone-stem-top {
    position: absolute;
    left: 50%;
    top: -86px;
    width: 1px;
    height: 72px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(244, 244, 239, 0.18), transparent);
}

.milestone-label-top {
    position: absolute;
    left: 50%;
    top: -128px;
    transform: translateX(-50%);
    text-align: center;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    white-space: nowrap;
    transition: transform 180ms ease, opacity 180ms ease;
}

.milestone-label-top::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid rgba(244, 244, 239, 0.42);
}

.milestone-card {
    position: absolute;
    top: 68px;
    left: 50%;
    display: grid;
    gap: 8px;
    justify-items: start;
    text-align: left;
    min-width: 240px;
    max-width: 360px;
    transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
}

.milestone-chip {
    position: relative;
    display: inline-block;
    padding: 12px 18px;
    background: var(--chip, rgba(62, 164, 255, 0.92));
    color: #fff;
    font-family: var(--chip-display, var(--display));
    font-weight: var(--chip-weight, 900);
    font-size: 0.92rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.milestone-chip::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 100%;
    width: 1px;
    height: 39px;
    transform: translateX(-50%);
    background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--chip, rgba(62, 164, 255, 0.92)) 54%, rgba(244, 244, 239, 0.18)),
    transparent
    );
}

.milestone-range {
    color: rgba(244, 244, 239, 0.88);
    font-size: 0.88rem;
    white-space: nowrap;
}

.milestone.active .milestone-chip {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 24px color-mix(in srgb, var(--accent) 24%, transparent);
}

.milestone-chip-text,
.milestone-range-text,
.timeline-end-label-text {
    display: inline-block;
    transition: opacity 420ms ease, transform 420ms ease;
}

.milestone[data-era="future"].is-locked {
    cursor: default;
}

.milestone-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    font-size: 0.82rem;
    opacity: 0;
    transform: translateY(1px) scale(0.92);
    transition: opacity 240ms ease, transform 240ms ease;
}

body.shared-page--embed .milestone-lock {
    display: none !important;
}

.milestone[data-era="future"].is-locked .milestone-lock {
    opacity: 0.92;
    transform: translateY(0) scale(1);
}

.timeline-end.is-locked .timeline-end-label-text,
.timeline-end.is-locked .milestone-stem-top,
.timeline-end.is-locked .timeline-end-label::after {
    opacity: 0;
    visibility: hidden;
}

.timeline-end.is-revealing .timeline-end-label-text {
    animation: futureUnlockReveal 560ms ease forwards;
}

@keyframes futureUnlockReveal {
    0% {
    opacity: 0;
    transform: translateY(6px);
    }
    100% {
    opacity: 1;
    transform: translateY(0);
    }
}

@keyframes futureLockedField {
    0% {
    background-position: 0 0;
    opacity: 0.34;
    }
    50% {
    opacity: 0.5;
    }
    100% {
    background-position: 28px 0;
    opacity: 0.34;
    }
}

.timeline-wrap.is-scrubbing .milestone-card {
    opacity: 1;
    transform: none;
    filter: none;
}

.timeline-wrap.is-scrubbing .milestone-month,
.timeline-wrap.is-scrubbing .milestone-label-top,
.timeline-wrap.is-scrubbing .milestone-range,
.timeline-wrap.is-scrubbing .timeline-end .milestone-month,
.timeline-wrap.is-scrubbing .timeline-end-label,
.timeline-wrap.is-scrubbing .return-live {
    opacity: 1;
}

.timeline-end {
    position: absolute;
    top: calc(var(--safe-axis-y) + var(--timeline-axis-offset));
    width: 220px;
    margin-left: -110px;
    z-index: 3;
    pointer-events: none;
}

.timeline-end .milestone-month {
    font-family: var(--body);
    font-weight: 800;
    font-size: 0.96rem;
    letter-spacing: 0.03em;
    transition: transform 180ms ease, opacity 180ms ease;
}

.profile-moment {
    position: absolute;
    top: var(--safe-axis-y);
    height: 0;
    z-index: 2;
    pointer-events: none;
}

@keyframes profileMomentLabelPulse {
    0%,
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
        filter: brightness(1);
        text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 12px color-mix(in srgb, var(--moment-accent-start, var(--accent)) 14%, transparent);
    }
    50% {
        transform: translateX(-50%) translateY(-3px) scale(1.04);
        filter: brightness(1.14);
        text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.14),
        0 0 22px color-mix(in srgb, var(--moment-accent-start, var(--accent)) 38%, transparent);
    }
}

@keyframes profileMomentLineSweep {
    0% {
        opacity: 0.72;
        box-shadow: 0 0 0 color-mix(in srgb, var(--moment-accent-start, var(--accent)) 0%, transparent);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 18px color-mix(in srgb, var(--moment-accent-start, var(--accent)) 34%, transparent);
    }
    100% {
        opacity: 0.72;
        box-shadow: 0 0 0 color-mix(in srgb, var(--moment-accent-start, var(--accent)) 0%, transparent);
    }
}

@keyframes profileMomentArrowFlow {
    0% {
        background-position: 0 center;
        opacity: 0.46;
    }
    50% {
        opacity: 0.78;
    }
    100% {
        background-position: 52px center;
        opacity: 0.46;
    }
}

.profile-moment-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 12px 6px;
    border-radius: 999px;
    bottom: 100%;
    margin-bottom: 25px;
    color: transparent;
    background-image:
    linear-gradient(
        90deg,
        var(--moment-label-start, color-mix(in srgb, var(--moment-accent-start, var(--moment-accent, var(--accent))) 72%, white)) 0%,
        var(--moment-label-end, color-mix(in srgb, var(--moment-accent-end, var(--moment-accent, var(--accent))) 72%, white)) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    isolation: isolate;
    text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 12px color-mix(in srgb, var(--moment-accent-start, var(--accent)) 14%, transparent);
    animation: profileMomentLabelPulse 2.6s ease-in-out infinite;
}

.profile-moment-label::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(8, 12, 18, 0.56);
    z-index: -1;
}

.profile-moment-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: linear-gradient(
    90deg,
    var(--moment-accent-start, color-mix(in srgb, var(--moment-accent, var(--accent)) 78%, rgba(255,255,255,0.2))) 0%,
    var(--moment-accent-end, color-mix(in srgb, var(--moment-accent, var(--accent)) 78%, rgba(255,255,255,0.2))) 100%
    );
    opacity: 0.9;
    overflow: hidden;
    box-shadow:
    0 0 0 1px color-mix(in srgb, white 10%, transparent),
    0 0 14px color-mix(in srgb, var(--moment-accent-start, var(--accent)) 18%, transparent);
    animation: profileMomentLineSweep 2.6s ease-in-out infinite;
}

.profile-moment-line::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image:
    linear-gradient(
        135deg,
        transparent 0 28%,
        rgba(255, 255, 255, 0.88) 28% 42%,
        rgba(255, 255, 255, 0.28) 42% 50%,
        transparent 50% 100%
    ),
    linear-gradient(
        45deg,
        transparent 0 28%,
        rgba(255, 255, 255, 0.44) 28% 42%,
        rgba(255, 255, 255, 0.18) 42% 50%,
        transparent 50% 100%
    );
    background-size: 26px 100%;
    background-repeat: repeat-x;
    background-position: 0 center;
    z-index: 1;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.18));
    animation: profileMomentArrowFlow 1.45s linear infinite;
    pointer-events: none;
}

.icon-glyph {
    display: inline-block;
    font-size: 30px !important;
    font-family:arial !important;
    margin-top: -3px;
    line-height: 1;
    font-weight: 800;
    color: var(--accent);
    transform: translateY(-0.01em);
}

.return-live .icon-glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    font-size: 0.98rem;
    line-height: 1;
    transform: translateY(0);
}

.timeline-end .milestone-pin {
    background: rgba(255,255,255,0.08);
}

.timeline-end-label {
    position: absolute;
    left: 50%;
    top: -128px;
    transform: translateX(-50%);
    text-align: center;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    white-space: nowrap;
    transition: transform 180ms ease, opacity 180ms ease;
}

.timeline-end-label::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid rgba(244, 244, 239, 0.42);
}

@media (max-width: 980px) {
    body {
    overflow: hidden;
    }

    :root {
    --timeline-center-y: 37%;
    --cursor-readout-offset: 186px;
    --cursor-stem-full-height: 138px;
    --cursor-stem-short-height: 34px;
    --timeline-top-clearance: 142px;
    --timeline-bottom-clearance: 204px;
    }

    .track {
    width: var(--track-width, 2200px);
    min-width: var(--track-width, 2200px);
    }

    .axis,
    .progress {
    left: var(--axis-left);
    right: var(--axis-right);
    }

    .milestone {
    width: 260px;
    margin-left: -130px;
    }

    .timeline-wrap::before {
    width: 360px;
    height: 62px;
    }

    .timeline-wrap::after {
    width: 520px;
    height: 96px;
    top: calc(var(--safe-axis-y) - 48px);
    }

}

@media (max-width: 720px) {
    :root {
    --timeline-center-y: 34%;
    --cursor-readout-offset: 184px;
    --cursor-stem-full-height: 146px;
    --cursor-stem-short-height: 32px;
    --timeline-top-clearance: 128px;
    --timeline-bottom-clearance: 210px;
    }

    .viewport {
    touch-action: pan-x pinch-zoom;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    }

    .cursor-era {
    font-size: 1.1rem;
    }

    .cursor-meta {
    gap: 0 10px;
    padding: 8px 12px 7px;
    }

    .cursor-meta-group {
    min-width: 84px;
    }

    .cursor-time,
    .cursor-year {
    font-size: 0.88rem;
    }

    .cursor-meta-label {
    font-size: 0.54rem;
    }

    .return-live.is-activating {
    transform: translate(-50%, -100%) scale(0.96);
    }

    .edge-live-left {
    left: 10px;
    }

    .edge-live-right {
    right: 10px;
    }

    .timeline-wrap::before {
    width: 250px;
    height: 52px;
    top: calc(var(--safe-axis-y) - 26px);
    }

    .timeline-wrap::after {
    width: 340px;
    height: 72px;
    top: calc(var(--safe-axis-y) - 36px);
    }

    .edge-live .icon-glyph {
    font-size: 1.42rem;
    line-height: 1;
    transform: translateY(-0.04em);
    }

    .return-live .icon-glyph {
    width: 14px;
    height: 14px;
    font-size: 0.98rem;
    transform: translateY(0);
    }

    .era-backdrop,
    .era-backdrop-next {
    transform: none;
    transition: opacity 360ms ease;
    filter: saturate(0.86) contrast(1.02) brightness(0.6);
    }

    .app::before {
    animation: none;
    transform: none;
    opacity: 0.9;
    }

}
