.tarina {
    padding-top: 72px;
}

/* Hero */
.tarina-hero {
    position: relative;
    height: 70vh;
    min-height: 440px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.tarina-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tarina-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(61,31,20,0.92) 0%,
                                rgba(61,31,20,0.45) 50%,
                                rgba(61,31,20,0.15) 100%
    );
}
.tarina-hero__content {
    position: relative;
    z-index: 1;
    padding: 0 max(24px, calc((100vw - 1100px) / 2 + 24px)) 64px;
    color: white;
}
.tarina-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}
.tarina-breadcrumb a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
}
.tarina-breadcrumb a:hover { color: var(--gold-light); }
.tarina-hero__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    color: white;
    margin: 8px 0;
    line-height: 1.05;
}
.tarina-hero__sub {
    font-family: var(--font-body);
    font-size: clamp(15px, 2vw, 19px);
    color: rgba(255,255,255,0.75);
    font-style: italic;
    max-width: 540px;
}
.tarina-hero__scroll {
    position: absolute;
    bottom: 40px;
    right: max(24px, calc((100vw - 1100px) / 2 + 24px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
}
.tarina-hero__scroll-text {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}
.tarina-hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* Intro-lainaus */
.tarina-intro {
    background: var(--deep-brown);
    padding: 72px 24px;
}
.tarina-intro__inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.tarina-intro__quote {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.8vw, 30px);
    font-style: italic;
    font-weight: 500;
    color: var(--gold-light);
    line-height: 1.55;
    margin: 0 0 16px;
}
.tarina-intro__attribution {
    font-family: var(--font-sans);
    font-size: 14px;
    color: rgba(250,246,240,0.5);
    margin: 0;
    letter-spacing: 0.04em;
}

/* Aikajana-wrapper */
.tarina-timeline {
    position: relative;
    padding: 96px 24px 80px;
    background: var(--cream);
    overflow: hidden;
}

/* Keskipylväs */
.tl-spine {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--border) 6%,
                                var(--border) 94%,
                                transparent 100%
    );
    transform: translateX(-50%);
}

.tl-inner {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 72px;
}

/* Yksittäinen aikajanapalkki */
.tl-item {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: start;
    opacity: 0;
    transition:
    opacity 0.65s ease var(--delay, 0s),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s);
}

.tl-item--left  { transform: translateX(-40px); }
.tl-item--right { transform: translateX(40px); }

.tl-item--visible {
    opacity: 1;
    transform: translateX(0);
}

/* Piste pylväälle */
.tl-item__dot {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 28px;
}
.tl-item__dot-inner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--rust);
    border: 3px solid var(--cream);
    box-shadow: 0 0 0 2px var(--rust);
    flex-shrink: 0;
}
.tl-item--visible .tl-item__dot-inner {
    animation: dotPop 0.4s calc(var(--delay, 0s) + 0.3s) ease both;
}
@keyframes dotPop {
    0%   { transform: scale(0.4); }
    60%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Kortit */
.tl-item--left  .tl-item__card { grid-column: 1; grid-row: 1; }
.tl-item--right .tl-item__card { grid-column: 3; grid-row: 1; }
.tl-item--left  .tl-item__dot  { grid-column: 2; grid-row: 1; }
.tl-item--right .tl-item__dot  { grid-column: 2; grid-row: 1; }

.tl-item__card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(61,31,20,0.07);
    transition: box-shadow 0.3s, transform 0.3s;
}
.tl-item__card:hover {
    box-shadow: 0 8px 32px rgba(61,31,20,0.14);
    transform: translateY(-3px);
}

.tl-item__year {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--rust);
    padding: 16px 20px 0;
    text-transform: uppercase;
}
.tl-item__image-wrap {
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-top: 12px;
}
.tl-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.tl-item__card:hover .tl-item__image {
    transform: scale(1.05);
}
.tl-item__body {
    padding: 20px 20px 24px;
}
.tl-item__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--deep-brown);
    margin: 0 0 10px;
    line-height: 1.3;
}
.tl-item__text {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-light);
    margin: 0;
}

.tl-item--last .tl-item__dot-inner {
    background: var(--gold);
    box-shadow: 0 0 0 2px var(--gold), 0 0 12px rgba(201,148,62,0.45);
}

/* CTA */
.tarina-cta .section-eyebrow { margin-bottom: 12px; }
.tarina-cta {
    background: var(--cream-dark);
    padding: 96px 24px;
    text-align: center;
}
.tarina-cta__inner {
    max-width: 600px;
    margin: 0 auto;
}
.tarina-cta__inner h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 40px);
    color: var(--deep-brown);
    margin: 10px 0 16px;
}
.tarina-cta__inner p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 32px;
}
.tarina-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobiili */
@media (max-width: 760px) {
    .tl-spine { left: 20px; }

    .tl-item {
        grid-template-columns: 40px 1fr;
    }
    .tl-item--left  .tl-item__card,
    .tl-item--right .tl-item__card {
        grid-column: 2;
        grid-row: 1;
    }
    .tl-item--left  .tl-item__dot,
    .tl-item--right .tl-item__dot {
        grid-column: 1;
        grid-row: 1;
    }
    .tl-item--left  { transform: translateX(-24px); }
    .tl-item--right { transform: translateX(-24px); }
}
