/* =========================================================
   ASBM University — About / The ASBM Legacy
   ========================================================= */

/* ---------- Our story ---------- */
.lg-story-lead { font-size: 1.12rem; line-height: 1.6; color: var(--ink); margin-bottom: 16px; }

/* ---------- Milestones ---------- */
.lg-milestones {
    padding: 84px 0 64px; color: #fff;
    background: radial-gradient(circle at 10% 0%, rgba(245, 179, 36, .1), transparent 35%), var(--navy-900);
}
.lg-timeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.lg-timeline::before,
.lg-timeline::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; }
.lg-timeline::before { background: rgba(255, 255, 255, .12); }
.lg-timeline::after { background: linear-gradient(90deg, var(--gold), rgba(245, 179, 36, .35)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.lg-timeline.is-visible::after { transform: scaleX(1); }

.lg-step { position: relative; z-index: 1; opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(.3s + var(--i) * .25s); }
.lg-timeline.is-visible .lg-step { opacity: 1; transform: none; }
.lg-dot {
    display: block; width: 22px; height: 22px; border-radius: 50%; margin-bottom: 18px;
    background: var(--navy-900); border: 2px solid var(--gold); position: relative;
}
.lg-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--gold); }
.lg-timeline.is-visible .lg-dot { animation: lgPing 1.2s var(--ease) both; animation-delay: calc(.3s + var(--i) * .25s); }
.lg-year { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 2rem; line-height: 1; margin-bottom: 10px; }
.lg-step strong { display: block; font-size: .92rem; margin-bottom: 6px; }
.lg-step p { font-size: .82rem; line-height: 1.6; color: rgba(255, 255, 255, .65); margin: 0; }
.lg-source { font-size: .72rem; color: rgba(255, 255, 255, .45); margin: 44px 0 0; }
@keyframes lgPing { 0% { box-shadow: 0 0 0 0 rgba(245, 179, 36, .6); } 100% { box-shadow: 0 0 0 14px rgba(245, 179, 36, 0); } }

/* ---------- Founder ---------- */
.lg-founder-photo { border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.lg-founder-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.lg-founder-photo:hover img { transform: scale(1.04); }
.lg-founder-placeholder {
    height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(160deg, var(--navy-100), #f6f1e6); color: var(--navy-700);
}
.lg-founder-placeholder i { font-size: 5rem; opacity: .5; }
.lg-founder-placeholder span { font-size: .78rem; color: var(--muted); }
.lg-founder-tag { font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }

/* ---------- Vision ---------- */
.lg-vision { position: relative; overflow: hidden; background: var(--navy-900); }
.lg-vision-bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: pageHeroZoom 22s ease-in-out infinite alternate; }
.lg-vision::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 27, 63, .94), rgba(10, 27, 63, .7) 55%, rgba(10, 27, 63, .35)); }
.lg-vision > .container { position: relative; z-index: 2; }
.lg-vision-inner { max-width: 620px; padding: 96px 0; }
.lg-vision-quote { font-family: var(--font-serif); font-weight: 500; color: #fff; font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.35; margin: 0 0 26px; }

/* ---------- Explore cards ---------- */
.lg-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.lg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--ink); }
.lg-card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.lg-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.lg-card:hover .lg-card-img img { transform: scale(1.08); }
.lg-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.lg-card-body strong { font-family: var(--font-serif); font-weight: 600; font-size: 1.08rem; color: var(--navy-900); }
.lg-card-body .link-arrow { font-size: .82rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991.98px) {
    .lg-milestones { padding: 64px 0 52px; }
    .lg-timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .lg-timeline::before, .lg-timeline::after { display: none; }
    .lg-vision-inner { padding: 72px 0; }
}
@media (max-width: 575.98px) {
    /* vertical timeline */
    .lg-timeline { grid-template-columns: 1fr; gap: 28px; padding-left: 36px; }
    .lg-timeline::before, .lg-timeline::after { display: block; left: 10px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
    .lg-timeline::after { transform: scaleY(0); transform-origin: top; }
    .lg-timeline.is-visible::after { transform: scaleY(1); }
    .lg-dot { position: absolute; left: -36px; top: 2px; margin: 0; }
    .lg-year { font-size: 1.7rem; }
    .lg-founder-photo { max-width: 320px; margin: 0 auto; }
    .lg-card-body { padding: 12px; }
    .lg-card-body strong { font-size: .95rem; }
}
