/* ─── BLOG PAGES ─────────────────────────────────────
   Base .blog-grid / .blog-card card styles, plus the
   listing hero + article template.

   NOTE: every page stylesheet is loaded globally by
   index.html, so class names here must stay unique
   across the whole site.                              */

.blog-grid {
  display: grid;
  gap: 32px;
}
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-white);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.blog-media {
  position: relative;
  overflow: hidden;
}
.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.blog-card:hover .blog-media img { transform: scale(1.05); }
.blog-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 26px;
}
.blog-meta {
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 8px;
}
.blog-body h3 {
  font-family: var(--font);
  font-size: var(--tx-lg); font-weight: 700;
  color: var(--c-ink);
  line-height: 1.4;
  margin-bottom: 16px;
  flex: 1;
}
.blog-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--tx-sm); font-weight: 600;
  color: var(--c-primary);
  transition: gap .2s, color .2s;
}
.blog-card:hover .blog-link { gap: 12px; color: var(--c-accent-h); }

.blog-grid--listing { grid-template-columns: repeat(3,1fr); }
.blog-grid--listing .blog-media {
  aspect-ratio: 4 / 5;
  background: #edf2f8;
}
.blog-grid--listing .blog-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}
.blog-grid--listing .blog-card:hover .blog-media img { transform: none; }
@media (max-width: 991px) { .blog-grid--listing { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .blog-grid--listing { grid-template-columns: 1fr; } }

/* ── Blog hero background image ──
   Scoped to this page only — the shared .ab-hero (about.css) used
   on About/Services/Products/Research stays a plain gradient.    */
.ab-hero.ab-hero--blog {
  background:
    linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.72) 100%),
    linear-gradient(135deg, rgba(11,30,78,.55) 0%, rgba(22,56,131,.4) 50%, rgba(26,77,183,.5) 100%),
    url('../../../images/blogs/blog-banner.png') center / cover no-repeat;
}


/* ══════════════════════════════════════════════════
   ARTICLE — reading progress
══════════════════════════════════════════════════ */
.art-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1001;          /* .site-nav is 1000 */
  background: transparent;
  pointer-events: none;
}
.art-progress > i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--c-primary), #4d86ff);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ══════════════════════════════════════════════════
   ARTICLE — cinematic hero
══════════════════════════════════════════════════ */
.art-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(420px, 62vh, 580px);
  padding: 140px 0 54px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(61,112,226,.34), transparent 31%),
    radial-gradient(circle at 12% 88%, rgba(30,77,183,.24), transparent 34%),
    linear-gradient(135deg, #071229 0%, #0b1f49 52%, #102e6d 100%);
  isolation: isolate;
}
.art-hero { display: none; }
.art-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4,11,26,.18) 0%, transparent 40%, rgba(4,11,26,.5) 100%),
    linear-gradient(90deg, rgba(4,11,26,.28) 0%, transparent 65%);
}
.art-hero__inner { position: relative; z-index: 2; max-width: 900px; }

.art-crumb {
  margin-bottom: 22px;
  color: rgba(255,255,255,.62);
  font-size: var(--tx-xs);
}
.art-crumb a { color: rgba(255,255,255,.62); transition: color .2s; }
.art-crumb a:hover { color: #fff; }
.art-crumb span { margin: 0 7px; }
.art-crumb span:last-child { margin: 0; color: #fff; }

.art-tag {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 15px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: var(--tx-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.art-title {
  margin-bottom: 22px;
  color: #fff;
  font-family: var(--font);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
  color: rgba(255,255,255,.72);
  font-size: var(--tx-sm);
}
.art-meta span + span::before { content: '·'; margin: 0 10px; }

/* ══════════════════════════════════════════════════
   ARTICLE — two-column reading layout
══════════════════════════════════════════════════ */
.art-layout {
  display: grid;
  grid-template-columns: minmax(0, 900px) 240px;
  gap: clamp(40px, 5vw, 76px);
  justify-content: center;
  padding: clamp(116px, 10vw, 150px) 12px clamp(58px, 7vw, 92px);
}
.art-body { grid-column: 1; grid-row: 1; }
.art-aside { grid-column: 2; grid-row: 1; }
.art-aside__sticky { position: sticky; top: 108px; }
.art-aside__label {
  margin: 0 0 14px;
  color: var(--c-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Table of contents */
.art-toc { display: flex; flex-direction: column; border-left: 2px solid var(--c-line); }
.art-toc a {
  padding: 9px 0 9px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--c-muted);
  font-size: var(--tx-sm);
  line-height: 1.45;
  transition: color .2s, border-color .2s;
}
.art-toc a:hover { color: var(--c-primary); }
.art-toc a.is-current { border-left-color: var(--c-primary); color: var(--c-primary); font-weight: 600; }

/* Share */
.art-share { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--c-line); }
.art-share__row { display: flex; gap: 10px; }
.art-share__row button,
.art-share__row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: #fff;
  color: var(--c-muted);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s;
}
.art-share__row button:hover,
.art-share__row a:hover { border-color: var(--c-primary); color: var(--c-primary); transform: translateY(-2px); }
.art-share__done { margin: 10px 0 0; color: var(--c-primary); font-size: var(--tx-xs); font-weight: 600; }

/* ══════════════════════════════════════════════════
   ARTICLE — prose
══════════════════════════════════════════════════ */
.art-body {
  color: var(--c-ink2);
  font-size: 1.0625rem;
  line-height: 1.85;
}
.art-inline-head {
  margin-bottom: clamp(38px, 5vw, 58px);
  padding-bottom: clamp(28px, 4vw, 42px);
  border-bottom: 1px solid var(--c-line);
}
.art-inline-head__tag {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(22,56,131,.09);
  color: var(--c-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.art-inline-head h1 {
  max-width: 850px;
  margin: 0;
  color: var(--c-ink);
  font-family: var(--font);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: .98;
}
.art-inline-head p {
  margin: 22px 0 0;
  color: var(--c-muted);
  font-size: var(--tx-sm);
  letter-spacing: .02em;
}
.art-body::after {
  clear: both;
  content: '';
  display: table;
}

/* The feature image leads from the left while the opening copy wraps on
   its right, then naturally resumes at full width below the image. */
.art-lead-media {
  float: left;
  width: min(58%, 520px);
  aspect-ratio: 4 / 5;
  margin: 0 clamp(30px, 4vw, 52px) 42px 0;
  overflow: hidden;
  border-radius: 22px;
  background: #e9eef8;
  box-shadow: 0 22px 55px rgba(12,33,78,.15);
}
.art-lead-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transition: transform .65s var(--ease);
}
.art-lead-media:hover img { transform: none; }
.art-body > h2:first-of-type { clear: both; }

/* Lead paragraph */
.art-body > p:first-of-type {
  color: var(--c-ink);
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 30px;
}
.art-body h2 {
  position: relative;
  margin: 52px 0 18px;
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
  color: var(--c-ink);
  font-family: var(--font);
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  scroll-margin-top: 100px;
}
.art-body h2::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 46px;
  height: 2px;
  background: var(--c-primary);
}
.art-body p { margin-bottom: 22px; }
.art-body ul { margin: 0 0 26px; padding-left: 0; list-style: none; }
.art-body ul li { position: relative; margin-bottom: 12px; padding-left: 26px; }
.art-body ul li::before {
  content: '';
  position: absolute;
  top: .68em; left: 4px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-primary);
}
.art-body strong { color: var(--c-ink); font-weight: 700; }
.art-body a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }

/* ══════════════════════════════════════════════════
   ARTICLE — closing CTA
══════════════════════════════════════════════════ */
.art-outro { padding-bottom: clamp(48px, 6vw, 72px); }
.art-cta {
  max-width: 1022px;          /* aside + gap + column, so it lines up */
  margin-inline: auto;
  padding: clamp(30px, 4vw, 44px);
  border-radius: 20px;
  background: var(--c-primary);
  color: #fff;
}
.art-cta h4 {
  margin-bottom: 10px;
  color: #fff;
  font-family: var(--font);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.art-cta > p {
  max-width: 560px;
  margin-bottom: 26px;
  color: rgba(255,255,255,.75);
  font-size: var(--tx-base);
  line-height: 1.7;
}
.art-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.art-cta-row a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: var(--r-pill);
  color: #fff;
  font-size: var(--tx-sm);
  font-weight: 700;
  transition: background .2s, border-color .2s, transform .15s;
}
.art-cta-row a:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); transform: translateY(-2px); }
.art-cta-row a:first-child { background: #fff; border-color: #fff; color: var(--c-primary); }
.art-cta-row a:first-child:hover { background: var(--c-bg-soft); color: var(--c-primary); }

/* ══════════════════════════════════════════════════
   ARTICLE — continue reading
══════════════════════════════════════════════════ */
.art-more { background: #f7f9fc; border-top: 1px solid var(--c-line); padding-block: clamp(52px, 7vw, 84px); }
.art-more__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 34px;
}
.art-more__head h2 {
  margin: 0;
  color: var(--c-ink);
  font-family: var(--font);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -.025em;
}
.art-more__head > a { color: var(--c-primary); font-size: var(--tx-sm); font-weight: 700; }
.art-more__head > a:hover { text-decoration: underline; }
.art-more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.art-more-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  background: #fff;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.art-more-card:hover {
  border-color: rgba(22,56,131,.4);
  box-shadow: 0 16px 38px rgba(16,43,94,.1);
  transform: translateY(-4px);
}
.art-more-card__img { aspect-ratio: 4 / 5; overflow: hidden; background: #edf2f8; }
.art-more-card__img img {
  width: 100%; height: 100%;
  max-width: none;
  object-fit: contain;
  transition: transform .5s var(--ease);
}
.art-more-card:hover .art-more-card__img img { transform: none; }
.art-more-card__body { padding: 22px 22px 26px; }
.art-more-card__tag {
  display: block;
  margin-bottom: 10px;
  color: var(--c-primary);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.art-more-card h3 {
  margin: 0;
  color: var(--c-ink);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .art-hero { min-height: 400px; padding: 116px 0 44px; }
  .art-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 100px; }
  .art-aside { grid-column: 1; grid-row: 1; }
  .art-body { grid-column: 1; grid-row: 2; }

  /* TOC becomes a boxed panel above the prose */
  .art-aside__sticky { position: static; }
  .art-aside {
    padding: 22px 22px 8px;
    border: 1px solid var(--c-line);
    border-radius: 16px;
    background: #f7f9fc;
  }
  .art-toc { border-left: 0; }
  .art-toc a { padding-left: 14px; }
  .art-share { margin-top: 22px; padding-top: 20px; }

  .art-more__grid { grid-template-columns: repeat(2, 1fr); }
  .art-more__grid > :nth-child(3) { display: none; }
}

@media (max-width: 640px) {
  .art-hero { min-height: 340px; padding: 104px 0 36px; }
  .art-body { font-size: 1rem; }
  .art-inline-head h1 { font-size: clamp(2.2rem, 12vw, 3.25rem); }
  .art-body > p:first-of-type { font-size: 1.12rem; }
  .art-lead-media {
    float: none;
    width: 100%;
    aspect-ratio: 4 / 5;
    margin: 0 0 30px;
    border-radius: 18px;
  }
  .art-cta-row a { width: 100%; justify-content: center; }
  .art-more__grid { grid-template-columns: 1fr; }
  .art-more__grid > :nth-child(3) { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .art-more-card,
  .art-more-card__img img,
  .art-lead-media img { transition-duration: .01ms !important; }
}
