/* Team story timeline on the About page */
.st-story {
    --st-gold: #f2c94c;
    --st-gold-ink: #a87908;
    --st-navy: #0b2a4f;
    --st-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}
[data-theme="dark"] .st-story { --st-gold-ink: #f2c94c; --st-navy: #e2e8f0; }
.st-gold { color: var(--st-gold-ink); }

/* Intro */
.st-intro { padding: 5.5rem 0 3rem; }
.st-intro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 3.5rem; }
.st-intro .v2-eyebrow { color: var(--st-gold-ink); border-color: rgba(217, 169, 42, 0.45); }
.st-intro .v2-eyebrow::before { background: var(--st-gold-ink); }
.st-intro h2 { margin: 0 0 1.1rem; color: var(--text-main); font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem); font-weight: 800; line-height: 1.2; text-wrap: balance; }
.st-intro h2 .st-gold { display: block; }
.st-intro-grid > div > p { max-width: 36rem; margin: 0; color: var(--text-muted); font-size: 1.15rem; line-height: 1.95; }

.st-origin {
    position: relative;
    margin: 0;
    padding: 2.25rem;
    overflow: hidden;
    border-radius: 1.75rem;
    color: #fff;
    background:
        radial-gradient(70% 70% at 90% 0%, rgba(242, 201, 76, 0.22), transparent 70%),
        linear-gradient(150deg, #0b2a4f, #081f3b 70%);
    box-shadow: 0 30px 60px rgba(8, 31, 59, 0.3);
    isolation: isolate;
}
.st-origin::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 320px;
    aspect-ratio: 1;
    inset-inline-end: -120px;
    bottom: -160px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    box-shadow: inset 0 0 0 50px rgba(255, 255, 255, 0.025);
}
.st-origin time { color: var(--st-gold); font-weight: 700; font-size: 0.95rem; }
.st-origin blockquote { margin: 1rem 0 1.25rem; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 800; line-height: 1.4; }
.st-origin figcaption { color: rgba(255, 255, 255, 0.7); }

.st-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 3.5rem; }
.st-stat { padding: 1.4rem 1.5rem; border: 1px solid var(--border); border-radius: 1.25rem; background: var(--surface); }
.st-stat b { display: block; color: var(--st-navy); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.st-stat span { color: var(--text-muted); font-weight: 600; }
.st-stat::after { content: ""; display: block; width: 36px; height: 4px; margin-top: 0.9rem; border-radius: 4px; background: var(--st-gold); }

/* Timeline */
.st-line { position: relative; padding: 2rem 0 5rem; }
.st-track { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; border-radius: 3px; background: var(--border); }
.st-fill { position: absolute; inset: 0 0 auto; height: 0; border-radius: 3px; background: linear-gradient(var(--st-gold), #d9a92a); box-shadow: 0 0 12px rgba(242, 201, 76, 0.6); }
.st-year { position: relative; display: flex; justify-content: center; margin: 1.5rem 0 2rem; }
.st-year span {
    position: relative;
    padding: 0.4rem 1.4rem;
    border-radius: 999px;
    background: #0b2a4f;
    color: var(--st-gold);
    font-size: 1.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 0 0 6px var(--bg-body);
}
[data-theme="dark"] .st-year span { background: #132b4a; }

.st-ch { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); align-items: start; margin-bottom: 2.25rem; }
.st-ch:nth-of-type(odd) .st-card { grid-column: 1; }
.st-ch:nth-of-type(even) .st-card { grid-column: 3; }
.st-node {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    margin-top: 1.4rem;
    display: grid;
    place-items: center;
    border: 3px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.4s var(--st-ease);
}
.st-ch.on .st-node { border-color: var(--st-gold); background: #0b2a4f; color: var(--st-gold); transform: scale(1.12); }
.st-card {
    grid-row: 1;
    padding: 1.75rem 1.9rem;
    border: 1px solid var(--border);
    border-radius: 1.4rem;
    background: var(--surface);
    box-shadow: var(--v2-card-shadow);
    transition: opacity 0.6s var(--st-ease), transform 0.6s var(--st-ease), border-color 0.3s ease;
}
.st-ch.on .st-card { border-color: rgba(217, 169, 42, 0.5); }
.js-story .st-ch:not(.seen) .st-card { opacity: 0; transform: translateY(28px); }
.st-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.6rem; }
.st-num { color: var(--text-muted); font-size: 0.9rem; font-weight: 700; }
.st-meta time { color: var(--st-gold-ink); font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; }
.st-card h3 { margin: 0 0 1rem; color: var(--text-main); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); font-weight: 800; line-height: 1.35; }
.st-card p { margin: 0 0 1rem; color: var(--text-main); font-size: 1.05rem; line-height: 1.95; }
.st-card > :last-child { margin-bottom: 0; }

.st-quote {
    margin: 1.25rem 0;
    padding: 0.4rem 1.25rem;
    border-inline-start: 4px solid var(--st-gold);
    color: var(--st-navy);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.7;
}
.st-list { display: grid; gap: 0.85rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.st-list li { position: relative; padding-inline-start: 1.25rem; color: var(--text-main); font-size: 1.02rem; line-height: 1.9; }
.st-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.75em; width: 8px; height: 8px; border-radius: 50%; background: var(--st-gold); }
.st-list b { color: var(--st-navy); }

.st-harvest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.st-harvest li { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1rem; border-radius: 0.9rem; background: var(--bg-body); color: var(--text-main); font-weight: 700; line-height: 1.5; }
.st-harvest i { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #0b2a4f; color: var(--st-gold); font-size: 0.8rem; }

.st-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin: 0 0 1rem; padding: 0; list-style: none; counter-reset: sid; }
.st-steps li { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: 0.9rem; color: var(--text-main); font-weight: 700; counter-increment: sid; }
.st-steps li::before { content: counter(sid); flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--st-gold); color: #0b2a4f; font-weight: 800; }

.st-funnel { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; padding: 1.25rem; border-radius: 1.1rem; background: var(--bg-body); }
.st-funnel > div { flex: 1; text-align: center; }
.st-funnel b { display: block; color: var(--text-muted); font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.st-funnel .hi b { color: var(--st-gold-ink); }
.st-funnel span { color: var(--text-muted); font-size: 0.92rem; font-weight: 600; }
.st-funnel-arrow { color: var(--st-gold-ink); font-size: 1.3rem; }
html[dir="ltr"] .st-funnel-arrow, html[dir="ltr"] .st-join-btn i { transform: scaleX(-1); }

/* Join */
.st-join {
    position: relative;
    padding: 5.5rem 0;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(55% 60% at 85% 10%, rgba(242, 201, 76, 0.18), transparent 70%),
        radial-gradient(50% 55% at 10% 90%, rgba(52, 168, 83, 0.18), transparent 70%),
        linear-gradient(160deg, #0b2a4f 0%, #081f3b 55%, #0a3a5c 100%);
}
.st-join h2 { margin: 0 0 1rem; color: #fff; font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.5rem); font-weight: 800; line-height: 1.2; }
.st-join .st-gold { color: #f2c94c; }
.st-join p { max-width: 42rem; margin: 0 auto 2rem; color: rgba(255, 255, 255, 0.82); font-size: 1.12rem; line-height: 1.95; }
.st-join-btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.95rem 2rem; background: #f2c94c !important; color: #0b2a4f !important; font-weight: 800; font-size: 1.1rem; }
.st-join-btn:hover { background: #ffd85e !important; }
.st-join .st-sign { margin: 2.5rem auto 0; color: var(--st-gold, #f2c94c); font-weight: 700; font-size: 1.1rem; }

@media (max-width: 991px) {
    .st-intro-grid { grid-template-columns: 1fr; gap: 2rem; }
    .st-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2rem; }
    .st-track { left: 22px; margin-left: 0; }
    html[dir="rtl"] .st-track { left: auto; right: 22px; }
    .st-year { justify-content: flex-start; }
    .st-ch { grid-template-columns: 46px minmax(0, 1fr); gap: 0 0.9rem; }
    .st-ch:nth-of-type(odd) .st-card, .st-ch:nth-of-type(even) .st-card { grid-column: 2; }
    .st-node { grid-column: 1; }
}
@media (max-width: 600px) {
    .st-intro { padding-top: 3.5rem; }
    .st-origin { padding: 1.6rem; }
    .st-card { padding: 1.3rem 1.2rem; }
    .st-harvest, .st-steps { grid-template-columns: 1fr; }
    .st-funnel { gap: 0.5rem; padding: 1rem 0.5rem; }
    .st-join { padding: 4rem 0; }
}
@media (prefers-reduced-motion: reduce) {
    .st-card, .st-node { transition: none; }
    .js-story .st-ch:not(.seen) .st-card { opacity: 1; transform: none; }
}
.st-harvest { grid-template-columns: 1fr; }
.st-join h2 { text-wrap: balance; }
