
/* ================================================================
   Intro: título + Rio do Tempo
   ================================================================ */
.proj-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 48px;
}

.proj-page-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    color: #18452b;
    text-transform: uppercase;
    line-height: 1.05;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 3px solid #481B15;
    display: inline-block;
}

.proj-description {
    font-size: 14px;
    color: #444;
    line-height: 1.75;
}

.proj-description p {
    margin: 0 0 12px;
}

.proj-intro__right {
    text-align: right;
    padding-top: 8px;
}

.proj-river-title {
    font-size: 20px;
    font-weight: 700;
    color: #18452b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.proj-river-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* ================================================================
   Timeline scroll container
   ================================================================ */
.proj-timeline-outer {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: #cba77d transparent;
}

.proj-timeline-outer::-webkit-scrollbar {
    height: 4px;
}

.proj-timeline-outer::-webkit-scrollbar-thumb {
    background: #cba77d;
    border-radius: 2px;
}

.proj-timeline-scroll {
    display: block;
    cursor: grab;
    user-select: none;
}

.proj-timeline-scroll.is-dragging {
    cursor: grabbing;
}

/* Botões de rolagem (visíveis apenas em telas < 600px) */
.proj-scroll-btns {
    display: none;
    justify-content: center;
    gap: 16px;
    padding: 12px 0 4px;
}

.proj-scroll-btns.is-visible {
    display: flex;
}

.proj-scroll-btn {
    background: rgba(255,255,255,.9);
    border: 1px solid #e5e1dc;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #3B5026;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: opacity .2s;
    padding: 0;
}

.proj-scroll-btn:hover {
    opacity: .8;
}

/* ================================================================
   Timeline canvas
   ================================================================ */
.proj-timeline-canvas {
    position: relative;
    width: 100%;
    height: 420px;
}

/* ================================================================
   River SVG
   ================================================================ */
.proj-river-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

/* ================================================================
   Project items
   ================================================================ */
.proj-item {
    position: absolute;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity .3s;
}

.proj-item.is-positioned {
    opacity: 1;
}

/* Above: label → stem → pin (bottom at river y) */
.proj-item--above {
    flex-direction: column;
    transform: translate(-50%, -100%);
}

/* Below: pin → stem → label (top at river y - pin_height) */
.proj-item--below {
    flex-direction: column-reverse;
    transform: translateX(-50%);
}

/* ================================================================
   Pin
   ================================================================ */
.proj-item__pin {
    display: block;
    flex-shrink: 0;
    transition: transform .2s;
    line-height: 0;
    position: relative;
    z-index: 2;
}

.proj-item--above .proj-item__pin {
    margin-top: 5px;
}

.proj-item--below .proj-item__stem {
    margin-top: 5px;
}

.proj-item__pin svg {
    width: 26px;
    height: 68px;
}

.proj-item__pin:hover {
    transform: translateY(-4px);
}

/* ================================================================
   Stem (connector)
   ================================================================ */
.proj-item__stem {
    width: 1.5px;
    height: 18px;
    background: #18452b;
    opacity: .35;
    flex-shrink: 0;
}

/* ================================================================
   Label
   ================================================================ */
.proj-item__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 110px;
    gap: 2px;
    padding: 4px 0;
}

.proj-item__year {
    font-size: 19px;
    font-weight: 700;
    color: #18452b;
    line-height: 1.2;
    display: block;
}

.proj-item__name {
    font-size: 16px;
    color: #333;
    line-height: 1.3;
    display: block;
}

.proj-item__status {
    font-size: 15px;
    color: #777;
    line-height: 1.25;
    display: block;
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 767px) {
    .proj-section {
        padding: 32px 16px 60px;
    }

    .proj-intro {
        grid-template-columns: 1fr;
    }

    .proj-intro__right {
        text-align: left;
    }

    .proj-page-title {
        font-size: 34px;
    }
}
