/* About page, "Who we are": a live panel of MN Solutions products and services
   (replaces the old stock team photo). */
.about-glance { flex: 0 0 48%; max-width: 48%; }
.about-glance::before { display: none; }

.ag-panel {
  position: relative; isolation: isolate; overflow: hidden; width: 100%;
  padding: 26px; border-radius: 20px; color: #e9edf7;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(240, 106, 46, .28), transparent 70%),
    radial-gradient(50% 45% at 0% 100%, rgba(80, 120, 255, .22), transparent 70%),
    linear-gradient(160deg, #10214a, #0c1a35 60%, #0a1430);
  box-shadow: 0 30px 60px -30px rgba(12, 26, 53, .65);
}
.ag-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px; animation: agGrid 14s linear infinite;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent); mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent);
}
.ag-panel::after {
  content: ""; position: absolute; left: -40%; top: 0; width: 40%; height: 100%; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); transform: skewX(-18deg);
  animation: agSheen 7s ease-in-out infinite;
}

.ag-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ag-head--services { margin: 22px 0 12px; }
.ag-kicker { font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: #ffb38f; }
.ag-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); }
.ag-live i { width: 7px; height: 7px; border-radius: 50%; background: #5fe3a1; box-shadow: 0 0 8px #5fe3a1; animation: agPulse 1.8s ease-in-out infinite; }

.ag-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ag-item {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; text-decoration: none; color: inherit;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  transition: transform .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.ag-item:hover, .ag-item:focus-visible { transform: translateY(-3px); background: rgba(255,255,255,.09); border-color: rgba(255,179,143,.45); box-shadow: 0 14px 30px -18px rgba(240,106,46,.7); }
.ag-item img { flex: none; width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.ag-item-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ag-item-text b { font-size: 15px; line-height: 1.2; color: #fff; }
.ag-item-text span { font-size: 12.5px; line-height: 1.35; color: rgba(233,237,247,.7); }
.ag-item-text em { font-style: normal; font-weight: 700; color: #ffb38f; }

.ag-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ag-services a {
  display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; text-decoration: none; color: inherit;
  background: rgba(240,106,46,.08); border: 1px solid rgba(240,106,46,.25); transition: transform .3s ease, background .3s ease;
}
.ag-services a:hover, .ag-services a:focus-visible { transform: translateY(-3px); background: rgba(240,106,46,.16); }
.ag-services svg { width: 22px; height: 22px; color: #ff9a66; margin-bottom: 4px; }
.ag-services b { font-size: 14px; color: #fff; }
.ag-services span { font-size: 12px; line-height: 1.35; color: rgba(233,237,247,.7); }

#who-we-are .feature-checklist b { color: var(--navy, #153292); }
.ag-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.ag-link { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--navy, #153292); text-decoration: none; }
.ag-link--main { color: var(--orange, #f06a2e); }
.ag-link svg { width: 18px; height: 18px; transition: transform .25s ease; }
.ag-link:hover svg { transform: translateX(4px); }

@keyframes agGrid { to { background-position: 28px 28px; } }
@keyframes agSheen { 0%, 60% { left: -40%; } 100% { left: 120%; } }
@keyframes agPulse { 50% { opacity: .35; } }

@media (max-width: 991px) {
  .about-glance { flex: 1 1 auto; max-width: 100%; width: 100%; }
}
@media (max-width: 560px) {
  .ag-panel { padding: 18px; border-radius: 16px; }
  .ag-grid { grid-template-columns: minmax(0, 1fr); }
  .ag-services { grid-template-columns: minmax(0, 1fr); }
  .ag-services a { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; }
  .ag-services svg { margin: 0; }
  .ag-services span { flex-basis: 100%; padding-left: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-panel::before, .ag-panel::after, .ag-live i { animation: none; }
}

#who-we-are .section-heading { text-wrap: balance; }

/* ---------- About page, "Our story": timeline from 2011 to today ---------- */
#our-story .section-heading { text-wrap: balance; }
.tl { position: relative; }
.tl-list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tl-line { position: absolute; left: 12.5%; right: 12.5%; top: 22px; height: 3px; border-radius: 3px; background: #d7dce3; overflow: hidden; }
.tl-line i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #f06a2e, #ff9a66 55%, #6ea8ff); transform-origin: left center; }
.tl-item { display: flex; flex-direction: column; align-items: center; }
.tl-node {
  position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 3px solid #f06a2e; box-shadow: 0 0 0 6px rgba(240,106,46,.12);
}
.tl-node i { width: 14px; height: 14px; border-radius: 50%; background: #f06a2e; }
.tl-item--now .tl-node { background: #0c1a35; border-color: #6ea8ff; box-shadow: 0 0 0 6px rgba(110,168,255,.18), 0 0 24px rgba(110,168,255,.55); }
.tl-item--now .tl-node i { background: #6ea8ff; }
.tl-item--now .tl-node::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #6ea8ff; animation: tlPulse 2.2s ease-out infinite; }
.tl-year { margin: 14px 0 18px; font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--navy, #153292); }
.tl-item--now .tl-year { background: linear-gradient(90deg, #f06a2e, #6ea8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl-card {
  flex: 1; width: 100%; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid #e6e9ef;
  box-shadow: 0 18px 40px -28px rgba(12,26,53,.35); transition: transform .3s ease, box-shadow .3s ease;
}
.tl-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(12,26,53,.45); }
.tl-item--now .tl-card {
  color: #e9edf7; border-color: transparent;
  background: radial-gradient(70% 60% at 100% 0%, rgba(110,168,255,.25), transparent 70%), linear-gradient(160deg, #10214a, #0c1a35);
}
.tl-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.tl-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff1ea; color: #f06a2e; }
.tl-icon svg { width: 22px; height: 22px; }
.tl-item--now .tl-icon { background: rgba(255,255,255,.08); color: #ffb38f; }
.tl-tag { font: 600 10.5px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; text-align: right; color: #5c6779; }
.tl-item--now .tl-tag { color: rgba(255,255,255,.65); }
.tl-title { margin: 0 0 8px; font-size: 19px; line-height: 1.25; font-weight: 700; color: var(--navy, #153292); }
.tl-item--now .tl-title { color: #fff; }
.tl-text { margin: 0; font-size: 14.5px; line-height: 1.6; color: #5c6779; }
.tl-item--now .tl-text { color: rgba(233,237,247,.8); }

/* reveal: the line draws across, then each stop rises in turn (only when JS is running) */
.tl.is-anim .tl-line i { transform: scaleX(0); transition: transform 1.8s cubic-bezier(.4,0,.2,1) .2s; }
.tl.is-anim .tl-item { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i) * .35s + .2s); }
.tl.is-in .tl-line i { transform: none; }
.tl.is-in .tl-item { opacity: 1; transform: none; }

@keyframes tlPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }

@media (max-width: 991px) {
  .tl-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tl-line { left: 22px; right: auto; top: 23px; bottom: 60px; width: 3px; height: auto; }
  .tl-line i { transform-origin: center top; }
  .tl.is-anim .tl-line i { transform: scaleY(0); }
  .tl.is-in .tl-line i { transform: none; }
  .tl-item { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .tl-node { grid-row: 1 / span 2; }
  .tl-year { margin: 8px 0 14px; font-size: 26px; }
  .tl-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-item--now .tl-node::after { animation: none; }
  .tl.is-anim .tl-line i, .tl.is-anim .tl-item { transition: none; opacity: 1; transform: none; }
}
