/* ============================================================
   Mind Fox — Blog / Insights CSS
   ============================================================ */

.mf-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  /* Safety net — auto-reveal after 1.2s in case JS observer doesn't fire */
  animation: mf-reveal-fallback 0.65s ease 1.2s forwards;
}
.mf-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
.mf-reveal-delay-1 { transition-delay: 0.12s; }
.mf-reveal-delay-2 { transition-delay: 0.24s; }

@keyframes mf-reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}

.mf-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.mf-text--orange { color: var(--orange); }

/* ── BLOG INDEX HERO ───────────────────────────────────── */
.bl-hero {
  position: relative;
  padding: calc(var(--section-padding) + 80px) 0 calc(var(--section-padding) - 30px);
  background: var(--bg-primary);
  overflow: hidden;
}
.bl-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(255, 123, 28, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(255, 123, 28, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.bl-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.bl-hero__content {
  position: relative;
  max-width: 620px;
}
.bl-hero__content h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.bl-hero__content p {
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 28px;
}

/* Topic pills */
.bl-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.bl-topics li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.bl-topics li:hover {
  border-color: rgba(255, 123, 28, 0.3);
  color: var(--text-primary);
  background: rgba(255, 123, 28, 0.04);
}
.bl-topics__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ── HERO VISUAL — Featured article cover ──────────────── */
.bl-hero__visual {
  position: relative;
  min-height: 460px;
}

.bl-feature {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #161618 0%, #0e0e10 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: absolute;
  inset: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.5s ease,
              border-color 0.4s ease;
}

/* Background card peeking from behind */
.bl-feature--back {
  inset: 18px -18px -18px 18px;
  z-index: 1;
  opacity: 0.55;
  transform: rotate(2deg);
  pointer-events: none;
}
.bl-feature--back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.5) brightness(0.6);
}

/* Front featured card */
.bl-feature--front {
  z-index: 2;
  transform: perspective(1400px) rotateY(-4deg) rotateX(1deg);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 80px rgba(255, 123, 28, 0.10);
}
.bl-feature--front:hover {
  transform: perspective(1400px) rotateY(0) rotateX(0) translateY(-4px);
  border-color: rgba(255, 123, 28, 0.35);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 123, 28, 0.15),
    0 0 100px rgba(255, 123, 28, 0.18);
}

.bl-feature__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.bl-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.bl-feature--front:hover .bl-feature__media img {
  transform: scale(1.04);
}
.bl-feature__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0) 40%, rgba(10, 10, 12, 0.85) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(255, 123, 28, 0.22) 0%, transparent 60%);
}
.bl-feature__pill {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 123, 28, 0.4);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.06em;
}

.bl-feature__content {
  padding: 24px 26px 26px;
}
.bl-feature__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 123, 28, 0.10);
  border: 1px solid rgba(255, 123, 28, 0.22);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.bl-feature__content h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.bl-feature__content p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 18px;
}

.bl-feature__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted, #888);
}
.bl-feature__author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 600;
}
.bl-feature__author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 123, 28, 0.4);
}
.bl-feature__dot { opacity: 0.6; }

/* Responsive */
@media (max-width: 992px) {
  .bl-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .bl-hero__content { max-width: 100%; }
  .bl-hero__content p { max-width: 100%; }

  /* Switch from absolute-positioned stack to natural flow */
  .bl-hero__visual {
    min-height: 0;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }
  .bl-feature {
    position: relative;
    inset: auto;
  }
  /* Hide the peeking back card on mobile — keep it clean */
  .bl-feature--back { display: none; }

  .bl-feature--front {
    transform: none;
    width: 100%;
  }
  .bl-feature--front:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 768px) {
  .bl-feature__content { padding: 18px 20px 22px; }
  .bl-feature__pill { font-size: 0.66rem; padding: 5px 10px; top: 12px; left: 12px; }
}

@media (max-width: 480px) {
  .bl-feature__content h3 { font-size: 1.05rem; }
  .bl-feature__content p { font-size: 0.85rem; margin-bottom: 14px; }
  .bl-feature__meta { font-size: 0.74rem; flex-wrap: wrap; }
}

/* ── POST GRID (index page) ────────────────────────────── */
.bl-grid {
  padding: var(--section-padding) 0;
}
.bl-grid__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.bl-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 32px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.bl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 123, 28, 0.32);
  background: rgba(255, 123, 28, 0.03);
}

.bl-card__tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 123, 28, 0.10);
  border: 1px solid rgba(255, 123, 28, 0.22);
  padding: 4px 10px;
  border-radius: 4px;
}

.bl-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0;
}

.bl-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.bl-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted, #888);
  margin-top: auto;
  padding-top: 12px;
}
.bl-card__meta span:not(:last-child)::after {
  content: '·';
  margin-left: 12px;
  opacity: 0.6;
}

.bl-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  margin-top: 4px;
}

/* Coming Soon card */
.bl-card--ghost {
  background: transparent;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.10);
  cursor: default;
}
.bl-card--ghost:hover {
  transform: none;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
}
.bl-card--ghost h2 { color: var(--text-secondary); }

/* ── ARTICLE PAGE ──────────────────────────────────────── */
.bl-article {
  position: relative;
  padding: calc(var(--section-padding) + 60px) 0 var(--section-padding);
  background: var(--bg-primary);
  overflow: hidden;
}
.bl-article__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 123, 28, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.bl-article__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.bl-article__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  transition: color 0.2s ease;
}
.bl-article__back:hover { color: var(--orange); }

.bl-article__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 123, 28, 0.10);
  border: 1px solid rgba(255, 123, 28, 0.22);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 18px;
}

.bl-article h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.bl-article__lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 28px;
}

.bl-article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.bl-article__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bl-article__author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 123, 28, 0.4);
  flex-shrink: 0;
}
.bl-article__author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bl-article__author-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}
.bl-article__author-role {
  font-size: 0.78rem;
  color: var(--text-muted, #888);
}
.bl-article__meta-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
}
.bl-article__meta-info {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  color: var(--text-muted, #888);
  line-height: 1.5;
}

/* Article body typography — optimised for reading */
.bl-article__body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.bl-article__body > * + * { margin-top: 1.4em; }

.bl-article__body h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bl-article__body h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}

.bl-article__body p {
  margin: 0;
}
.bl-article__body strong { color: var(--text-primary); font-weight: 700; }
.bl-article__body em { color: var(--text-primary); }

.bl-article__body ul,
.bl-article__body ol {
  padding-left: 24px;
  list-style: disc;
}
.bl-article__body ol { list-style: decimal; }
.bl-article__body li { margin-top: 0.5em; }
.bl-article__body li::marker { color: var(--orange); }

.bl-article__body a {
  color: var(--orange);
  border-bottom: 1px dashed rgba(255, 123, 28, 0.4);
  transition: border-color 0.2s ease;
}
.bl-article__body a:hover { border-bottom-color: var(--orange); }

.bl-article__body blockquote {
  border-left: 3px solid var(--orange);
  padding: 8px 0 8px 22px;
  margin: 1.6em 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
}

.bl-article__body code {
  background: rgba(255, 123, 28, 0.10);
  border: 1px solid rgba(255, 123, 28, 0.18);
  color: var(--orange);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.88em;
}

.bl-article__body pre {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px 24px;
  overflow-x: auto;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-primary);
}
.bl-article__body pre code {
  background: transparent;
  border: none;
  color: inherit;
  padding: 0;
}

/* Callout box (e.g. takeaway / tip) */
.bl-callout {
  background: linear-gradient(135deg, rgba(255, 123, 28, 0.06), rgba(255, 123, 28, 0.02));
  border: 1px solid rgba(255, 123, 28, 0.22);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 1.8em 0;
}
.bl-callout > h3:first-child {
  margin-top: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 10px;
}
.bl-callout p { margin: 0; }
.bl-callout p + p { margin-top: 0.8em; }

/* Article footer / author bio */
.bl-author-bio {
  margin-top: 60px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}
.bl-author-bio__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 123, 28, 0.4);
}
.bl-author-bio__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bl-author-bio h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.bl-author-bio__role {
  font-size: 0.85rem;
  color: var(--orange);
  margin-bottom: 12px;
}
.bl-author-bio p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Article — Next steps CTA */
.bl-article__cta {
  margin-top: 50px;
  padding: 36px 32px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 123, 28, 0.10), rgba(255, 123, 28, 0.03));
  border: 1px solid rgba(255, 123, 28, 0.25);
  border-radius: 14px;
}
.bl-article__cta h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.bl-article__cta p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .bl-grid__list { grid-template-columns: 1fr; }
  .bl-author-bio { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .bl-article__body { font-size: 1rem; line-height: 1.8; }
  .bl-article__meta { gap: 12px; }
}
