* ─── TIMELINE SERVICES ─── */ #timeline-services {
    padding: 140px 0;
    background: var(--ink);
    position: relative;
    overflow: hidden;
}

#timeline-services::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'><rect x='5' y='5' width='10' height='10' rx='2' fill='rgba(255,255,255,0.018)'/></svg>");
}

.tl-header {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 48px;
    text-align: center;
}

.tl-header .section-label {
    justify-content: center;
}

.tl-header .section-label::before {
    display: none;
}

.tl-header .section-label::after {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--ruby);
}

.tl-header .section-title {
    font-size: clamp(40px, 5vw, 64px);
}

.tl-header .section-desc {
    max-width: 520px;
    margin: 18px auto 0;
    font-size: 14px;
    color: var(--silver);
    line-height: 1.8;
}

/* The rail wrapper */
.tl-rail-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
    position: relative;
}

/* Centre vertical line */
.tl-rail-wrap::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom,
            #A0002A 0%,
            #C4003A 20%,
            #8B0045 40%,
            #6A0050 60%,
            #4B005A 80%,
            #2D0060 100%);
    box-shadow: 0 0 18px rgba(160, 0, 42, 0.35);
    z-index: 1;
}

/* Each service row */
.tl-item {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    margin-bottom: 72px;
    position: relative;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Node in center column */
.tl-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    gap: 6px;
}

.tl-node-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
}

.tl-item:hover .tl-node-circle {
    transform: scale(1.15);
    box-shadow: 0 0 28px rgba(160, 0, 42, 0.5);
}

.tl-node-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: var(--silver);
}

/* Horizontal connector lines */
.tl-connector-left,
.tl-connector-right {
    position: absolute;
    top: 22px;
    height: 1px;
    width: 32px;
    z-index: 1;
}

.tl-connector-left {
    right: 100%;
    background: linear-gradient(to left, transparent, rgba(160, 0, 42, 0.5));
}

.tl-connector-right {
    left: 100%;
    background: linear-gradient(to right, transparent, rgba(160, 0, 42, 0.5));
}

/* Content panels */
.tl-content {
    padding: 32px 36px;
    background: var(--ink2);
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.tl-item:hover .tl-content {
    background: var(--ink3);
}

.tl-content::before {
    content: '';
    position: absolute;
    top: 0;
    height: 2px;
    left: 0;
    right: 100%;
    transition: right 0.5s ease;
}

.tl-item:hover .tl-content::before {
    right: 0;
}

/* Left-side content (clip angles toward center) */
.tl-content-left {
    clip-path: polygon(0 0, 97% 0, 100% 8%, 100% 100%, 3% 100%, 0% 92%);
    text-align: right;
}

.tl-content-left::before {
    background: linear-gradient(to left, var(--ruby), transparent);
    right: 100%;
    left: 0;
}

.tl-item:hover .tl-content-left::before {
    right: 0;
    left: 0;
}

/* Right-side content */
.tl-content-right {
    clip-path: polygon(0 8%, 3% 0, 100% 0, 100% 92%, 97% 100%, 0 100%);
    text-align: left;
}

.tl-content-right::before {
    background: linear-gradient(to right, var(--ruby), transparent);
    left: 0;
    right: 100%;
}

.tl-item:hover .tl-content-right::before {
    right: 0;
}

/* Odd = content LEFT, empty RIGHT */
.tl-item:nth-child(odd) .tl-content {
    grid-column: 1;
}

.tl-item:nth-child(odd) .tl-node {
    grid-column: 2;
}

.tl-item:nth-child(odd) .tl-empty {
    grid-column: 3;
}

/* Even = empty LEFT, content RIGHT */
.tl-item:nth-child(even) .tl-empty {
    grid-column: 1;
}

.tl-item:nth-child(even) .tl-node {
    grid-column: 2;
}

.tl-item:nth-child(even) .tl-content {
    grid-column: 3;
}

.tl-empty {
    /* placeholder */
}

/* Tag floating near node */
.tl-tag {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 3px 10px;
    border: 1px solid;
    margin-bottom: 12px;
}

.tl-service-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 2.5vw, 30px);
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.tl-service-desc {
    font-size: 13px;
    color: var(--silver);
    line-height: 1.8;
}

.tl-service-meta {
    margin-top: 16px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ruby-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tl-content-left .tl-service-meta {
    justify-content: flex-end;
}

.tl-service-meta::before,
.tl-service-meta::after {
    content: '';
    height: 1px;
    width: 20px;
    background: var(--ruby);
    opacity: 0.5;
}

/* Node color variants per item */
.tl-item:nth-child(1) .tl-node-circle {
    border-color: #A0002A;
    box-shadow: 0 0 16px rgba(160, 0, 42, 0.3);
}

.tl-item:nth-child(2) .tl-node-circle {
    border-color: #B8003A;
    box-shadow: 0 0 16px rgba(184, 0, 58, 0.3);
}

.tl-item:nth-child(3) .tl-node-circle {
    border-color: #8B0045;
    box-shadow: 0 0 16px rgba(139, 0, 69, 0.3);
}

.tl-item:nth-child(4) .tl-node-circle {
    border-color: #6A0050;
    box-shadow: 0 0 16px rgba(106, 0, 80, 0.3);
}

.tl-item:nth-child(5) .tl-node-circle {
    border-color: #4B005A;
    box-shadow: 0 0 16px rgba(75, 0, 90, 0.3);
}

.tl-item:nth-child(6) .tl-node-circle {
    border-color: #2D0060;
    box-shadow: 0 0 16px rgba(45, 0, 96, 0.3);
}

.tl-item:nth-child(7) .tl-node-circle {
    border-color: #1A006E;
    box-shadow: 0 0 16px rgba(26, 0, 110, 0.3);
}

.tl-item:nth-child(8) .tl-node-circle {
    border-color: #0A0078;
    box-shadow: 0 0 16px rgba(10, 0, 120, 0.3);
}

.tl-item:nth-child(1) .tl-tag {
    border-color: #A0002A;
    color: #A0002A;
}

.tl-item:nth-child(2) .tl-tag {
    border-color: #B8003A;
    color: #B8003A;
}

.tl-item:nth-child(3) .tl-tag {
    border-color: #8B0045;
    color: #9B3060;
}

.tl-item:nth-child(4) .tl-tag {
    border-color: #6A0050;
    color: #9A5070;
}

.tl-item:nth-child(5) .tl-tag {
    border-color: #4B005A;
    color: #8B5090;
}

.tl-item:nth-child(6) .tl-tag {
    border-color: #2D0060;
    color: #7050A0;
}

.tl-item:nth-child(7) .tl-tag {
    border-color: #1A006E;
    color: #6060B8;
}

.tl-item:nth-child(8) .tl-tag {
    border-color: #0A0078;
    color: #5070CC;
}

/* Responsive */
@media (max-width: 768px) {
    .tl-rail-wrap::before {
        left: 24px;
    }

    .tl-item {
        grid-template-columns: 56px 1fr !important;
        grid-template-rows: auto;
        margin-bottom: 40px;
    }

    .tl-item .tl-node {
        grid-column: 1 !important;
        grid-row: 1;
    }

    .tl-item .tl-content {
        grid-column: 2 !important;
        grid-row: 1;
        text-align: left !important;
    }

    .tl-item .tl-empty {
        display: none;
    }

    .tl-content-left {
        clip-path: polygon(0 8%, 3% 0, 100% 0, 100% 100%, 0 100%);
    }

    .tl-content-left .tl-service-meta {
        justify-content: flex-start;
    }

    .tl-node-circle {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .tl-content {
        padding: 20px 20px;
    }

    .tl-rail-wrap {
        padding: 0 16px;
    }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.25s;
}

.delay-3 {
    animation-delay: 0.4s;
}

.delay-4 {
    animation-delay: 0.55s;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-right {
        display: none;
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-card:nth-child(1) {
        grid-column: span 1;
    }

    .service-card:nth-child(4) {
        grid-column: span 1;
    }

    .why-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .area-inner {
        grid-template-columns: 1fr;
    }

    .cities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .featured-inner {
        grid-template-columns: 1fr;
    }

    .faq-split {
        grid-template-columns: 1fr;
    }

    .faq-questions {
        max-height: 300px;
    }

    .contact-inner {
        grid-template-columns: 1fr;
    }
}