/* ==========================================================
   About Us - Journey Timeline v2 (ab-journey)
   Fonts come from suffesv3-main-heading / suffesv3-sub-heading /
   suffesv3-sub-para; this file only sets layout & colours
   ========================================================== */
.ab-journey {
    --aj-red: #e92b26;
    --aj-bg: #0d0f13;
    --aj-card: rgba(255, 255, 255, 0.035);
    --aj-line: rgba(255, 255, 255, 0.09);
    --aj-text: #f4f4f5;
    --aj-muted: rgba(244, 244, 245, 0.62);
    position: relative;
    overflow: hidden;
    padding: 70px 0;
    background: var(--aj-bg);
    color: var(--aj-text);
    isolation: isolate;
}

/* ---------- Background ---------- */
.ab-journey__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.ab-journey__glow {
    position: absolute;
    top: 10%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 43, 38, 0.18), transparent 65%);
    filter: blur(40px);
}
.ab-journey__glow--2 {
    top: auto;
    left: auto;
    right: -15%;
    bottom: -10%;
    background: radial-gradient(circle, rgba(255, 122, 69, 0.12), transparent 65%);
}
.ab-journey__marquee {
    position: absolute;
    top: 50%;
    left: 0;
    margin: 0;
    font-size: clamp(120px, 18vw, 280px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    transform: translateY(-50%);
    will-change: transform;
}

/* ---------- Layout ---------- */
.ab-journey__wrap {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: start;
}

/* ---------- Intro (pinned on desktop) ---------- */
.ab-journey__intro {
    padding-top: 10px;
}
.ab-journey__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.ab-journey__eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--aj-red);
}
.ab-journey__title {
    margin-bottom: 22px;
}
.ab-journey__title-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
}
.ab-journey__title-line > span {
    display: inline-block;
}
.ab-journey__title em {
    font-style: normal;
    background: linear-gradient(100deg, var(--aj-red), #ff7a45);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ab-journey__lead {
    max-width: 420px;
    margin-bottom: 48px;
}

/* Big live year */
.ab-journey__year {
    display: flex;
    align-items: flex-end;
    gap: 18px;
}
.ab-journey__year-num {
    position: relative;
    display: block;
    height: 1em;
    margin: 0;
    overflow: hidden;
    line-height: 1; /* height mask for the rolling year */
}
.ab-journey__year-num span {
    display: block;
}
.ab-journey__year-meta {
    padding-bottom: 4px;
}
.ab-journey__year-meta .suffesv3-sub-heading {
    display: block;
    margin-bottom: 2px;
}
.ab-journey__progress {
    position: relative;
    width: 100%;
    max-width: 340px;
    height: 2px;
    margin-top: 26px;
    border-radius: 2px;
    background: var(--aj-line);
    overflow: hidden;
}
.ab-journey__progress span {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--aj-red), #ff7a45);
    transform-origin: left;
    transform: scaleX(0);
}

/* ---------- Timeline ---------- */
.ab-journey__timeline {
    position: relative;
    padding-left: 56px;
}
.ab-journey__rail {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 15px;
    width: 2px;
    border-radius: 2px;
    background: var(--aj-line);
}
.ab-journey__rail-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, var(--aj-red), #ff7a45);
    box-shadow: 0 0 18px rgba(233, 43, 38, 0.6);
    transform-origin: top;
    transform: scaleY(0);
}

.ab-journey__item {
    position: relative;
    padding-bottom: 28px;
}
.ab-journey__item:last-child {
    padding-bottom: 0;
}
.ab-journey__node {
    position: absolute;
    top: 30px;
    left: -48px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: var(--aj-bg);
    transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.ab-journey__item.is-active .ab-journey__node {
    border-color: var(--aj-red);
    background: var(--aj-red);
    box-shadow: 0 0 0 6px rgba(233, 43, 38, 0.18), 0 0 20px rgba(233, 43, 38, 0.6);
    transform: scale(1.1);
}

/* Card */
.ab-journey__card {
    --mx: 50%;
    --my: 50%;
    position: relative;
    padding: 30px 32px;
    border: 1px solid var(--aj-line);
    border-radius: 22px;
    background: var(--aj-card);
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease;
}
.ab-journey__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(380px circle at var(--mx) var(--my), rgba(233, 43, 38, 0.14), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.ab-journey__card:hover {
    border-color: rgba(233, 43, 38, 0.4);
    transform: translateX(6px);
}
.ab-journey__card:hover::before {
    opacity: 1;
}
.ab-journey__item.is-active .ab-journey__card {
    background: rgba(255, 255, 255, 0.055);
}
.ab-journey__card-head {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.ab-journey__card-head .suffesv3-sub-heading {
    margin: 0;
}
.ab-journey__card-year {
    flex-shrink: 0;
    transition: color 0.4s ease, -webkit-text-stroke-color 0.4s ease;
}
.ab-journey__card ul {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ab-journey__card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}
.ab-journey__card li:last-child {
    margin-bottom: 0;
}
.ab-journey__card li::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 0;
    width: 8px;
    height: 1px;
    background: var(--aj-red);
}
.ab-journey__card a {
    text-decoration: underline;
    text-decoration-color: var(--aj-red);
    text-underline-offset: 3px;
    cursor: pointer;
}

/* ---------- Text colours on the dark background ----------
   (the font classes set dark text, so these use higher specificity) */
.ab-journey .ab-journey__eyebrow.suffesv3-sub-para {
    color: var(--aj-red);
}
.ab-journey .ab-journey__title.suffesv3-main-heading,
.ab-journey .ab-journey__year-num.suffesv3-main-heading,
.ab-journey .ab-journey__year-meta .suffesv3-sub-heading,
.ab-journey .ab-journey__card-head h3.suffesv3-sub-heading,
.ab-journey .ab-journey__card a {
    color: #fff;
}
.ab-journey .ab-journey__lead.suffesv3-sub-para,
.ab-journey .ab-journey__year-meta .suffesv3-sub-para,
.ab-journey .ab-journey__card li.suffesv3-sub-para {
    color: var(--aj-muted);
}
.ab-journey .ab-journey__title.suffesv3-main-heading,
.ab-journey .ab-journey__title-line > span {
    color: #fff !important;
}
/* outlined year that fills red when active / hovered */
.ab-journey .ab-journey__card-year.suffesv3-sub-heading {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}
.ab-journey .ab-journey__item.is-active .ab-journey__card-year.suffesv3-sub-heading,
.ab-journey .ab-journey__card:hover .ab-journey__card-year.suffesv3-sub-heading,
.ab-journey .ab-journey__card a:hover {
    color: var(--aj-red);
    -webkit-text-stroke-color: var(--aj-red);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .ab-journey { padding: 90px 0; }
    .ab-journey__wrap { grid-template-columns: 1fr; gap: 48px; }
    .ab-journey__lead { max-width: none; margin-bottom: 0; }
    .ab-journey__year,
    .ab-journey__progress { display: none; }
}
@media (max-width: 575px) {
    .ab-journey { padding: 70px 0; }
    .ab-journey__timeline { padding-left: 36px; }
    .ab-journey__rail { left: 7px; }
    .ab-journey__node { left: -36px; top: 26px; width: 14px; height: 14px; }
    .ab-journey__card { padding: 22px 20px; border-radius: 18px; }
    .ab-journey__card-head { flex-direction: column-reverse; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .ab-journey *,
    .ab-journey *::before,
    .ab-journey *::after {
        transition: none !important;
    }
}
