/* Development timeline. Builds on the site's style.css tokens (--gold, --amber, --surface, Cinzel/Fira Sans). */

.tl-hero {
    position: relative;
    padding: 160px 24px 72px;
    text-align: center;
    overflow: hidden;
}

.tl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(200, 122, 46, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 50% 100%, rgba(184, 149, 74, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.tl-eyebrow {
    position: relative;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--amber-light);
    margin-bottom: 18px;
}

.tl-title {
    position: relative;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: clamp(40px, 7vw, 76px);
    letter-spacing: 4px;
    color: var(--gold-bright);
    text-shadow: 0 0 40px rgba(240, 216, 144, 0.25), 0 2px 0 rgba(0, 0, 0, 0.6);
    line-height: 1.05;
}

.tl-lede {
    position: relative;
    max-width: 640px;
    margin: 22px auto 0;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ── Stat band ── */
.tl-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 960px;
    margin: 0 auto 88px;
    border: 1px solid var(--chrome-border);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(26, 28, 35, 0.9), rgba(18, 20, 26, 0.9));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.tl-stat {
    padding: 26px 18px;
    text-align: center;
}

.tl-stat + .tl-stat { border-left: 1px solid var(--chrome-border); }

.tl-stat-value {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 30px;
    color: var(--gold-light);
}

.tl-stat-label {
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── Timeline spine ── */
.tl {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px 120px;
}

.tl::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 80px;
    left: 50%;
    width: 2px;
    transform: translateX(-1px);
    background: linear-gradient(180deg, transparent 0%, var(--gold) 4%, var(--amber) 60%, rgba(200, 122, 46, 0.15) 100%);
    box-shadow: 0 0 12px rgba(200, 122, 46, 0.35);
}

.tl-chapter {
    position: relative;
    margin: 72px 0 36px;
    text-align: center;
}

.tl-chapter:first-child { margin-top: 0; }

.tl-chapter-label {
    display: inline-block;
    position: relative;
    padding: 10px 26px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-bright);
    background: var(--surface);
    border: 1px solid rgba(184, 149, 74, 0.5);
    border-radius: 999px;
    box-shadow: 0 0 24px rgba(184, 149, 74, 0.2);
}

.tl-chapter-sub {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.tl-entry {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    margin-bottom: 44px;
    align-items: center;
}

.tl-entry::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 28px;
    width: 14px;
    height: 14px;
    transform: translate(-50%, 0) rotate(45deg);
    background: var(--surface);
    border: 2px solid var(--gold-light);
    box-shadow: 0 0 14px rgba(240, 176, 80, 0.55);
}

.tl-entry.is-major::before {
    width: 20px;
    height: 20px;
    top: 25px;
    background: radial-gradient(circle, var(--amber-bright) 0%, var(--amber) 70%);
    border-color: var(--gold-bright);
}

.tl-entry > .tl-card { grid-column: 1; }
.tl-entry > .tl-media { grid-column: 2; }
.tl-entry:nth-of-type(even) > .tl-card { grid-column: 2; grid-row: 1; }
.tl-entry:nth-of-type(even) > .tl-media { grid-column: 1; grid-row: 1; }
.tl-entry.no-media > .tl-card { grid-column: 1; }
.tl-entry.no-media:nth-of-type(even) > .tl-card { grid-column: 2; }

.tl-card {
    padding: 22px 26px;
    background: linear-gradient(180deg, rgba(26, 28, 35, 0.92) 0%, rgba(20, 22, 28, 0.92) 100%);
    border: 1px solid var(--chrome-border);
    border-radius: 6px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s, transform 0.2s;
}

.tl-card:hover {
    border-color: rgba(200, 122, 46, 0.45);
    transform: translateY(-2px);
}

.tl-date {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--amber-light);
}

.tl-card h3 {
    margin: 8px 0 10px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 21px;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.tl-card p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
}

.tl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
    list-style: none;
}

.tl-tags li {
    padding: 3px 9px;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--gold-light);
    background: rgba(184, 149, 74, 0.08);
    border: 1px solid rgba(184, 149, 74, 0.25);
    border-radius: 3px;
}

.tl-media {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--chrome-border);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
    cursor: zoom-in;
    background: #0b0c10;
    aspect-ratio: 16 / 9;
}

.tl-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s;
    filter: saturate(0.95);
}

.tl-media:hover img { transform: scale(1.04); filter: saturate(1.1); }

.tl-media figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 14px 10px;
    font-size: 12px;
    color: var(--text-primary);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}

/* ── "Interesting bits" callouts ── */
.tl-aside {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 12px auto 56px;
    padding: 22px 28px 22px 64px;
    background: linear-gradient(90deg, rgba(200, 122, 46, 0.12), rgba(26, 28, 35, 0.92) 40%);
    border: 1px solid rgba(200, 122, 46, 0.35);
    border-radius: 6px;
}

.tl-aside::before {
    content: '✦';
    position: absolute;
    left: 24px;
    top: 20px;
    font-size: 20px;
    color: var(--amber-bright);
    text-shadow: 0 0 12px rgba(240, 176, 80, 0.6);
}

.tl-aside strong {
    display: block;
    margin-bottom: 6px;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-light);
}

.tl-aside p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
}

.tl-next {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto 120px;
    padding: 0 24px;
    text-align: center;
}

.tl-next h2 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    letter-spacing: 3px;
    color: var(--gold-bright);
    margin-bottom: 26px;
}

.tl-next ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
    text-align: left;
}

.tl-next li {
    padding: 18px 20px;
    border: 1px dashed rgba(184, 149, 74, 0.35);
    border-radius: 6px;
    background: rgba(18, 20, 26, 0.7);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.tl-next li b {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ── Lightbox ── */
.tl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(6, 7, 10, 0.92);
    backdrop-filter: blur(6px);
    cursor: zoom-out;
}

.tl-lightbox.is-open { display: flex; }

.tl-lightbox img {
    max-width: min(1600px, 100%);
    max-height: 100%;
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.nav-links a[aria-current="page"] { color: var(--gold-light); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ── Reveal on scroll (progressive enhancement) ── */
.js .tl-entry, .js .tl-aside { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .tl-entry.is-visible, .js .tl-aside.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .js .tl-entry, .js .tl-aside { opacity: 1; transform: none; transition: none; }
    .tl-media img, .tl-card { transition: none; }
}

/* ── Mobile ── */
@media (max-width: 860px) {
    .tl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 64px; }
    .tl-stat:nth-child(3) { border-left: 0; }
    .tl-stat:nth-child(n+3) { border-top: 1px solid var(--chrome-border); }
    .tl::before { left: 18px; }
    .tl-entry, .tl-entry:nth-of-type(even) {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-left: 40px;
    }
    .tl-entry::before { left: 19px; }
    .tl-entry > .tl-card, .tl-entry > .tl-media,
    .tl-entry:nth-of-type(even) > .tl-card, .tl-entry:nth-of-type(even) > .tl-media,
    .tl-entry.no-media > .tl-card, .tl-entry.no-media:nth-of-type(even) > .tl-card { grid-column: 1; grid-row: auto; }
    .tl-chapter { text-align: left; padding-left: 40px; }
    .tl-aside { margin-left: 40px; padding-left: 52px; }
    .tl-aside::before { left: 18px; }
    .tl-next ul { grid-template-columns: 1fr; }
    .nav { padding: 0 20px; }
    .nav-links { gap: 18px; }
}
