/* Blog: listing, article and cards. Hover only changes colour, shadow and inner image zoom, so nothing shifts size. */

/* Hero ------------------------------------------------------------------- */
.bl-hero { min-height: 72svh; }
.bl-hero__stats { display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 56px); margin: 34px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .16); animation: xFade 1s .5s both; }
.bl-hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.bl-hero__stats strong { color: #fff; font-family: var(--font-head); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.bl-hero__stats strong i { color: var(--red); font-size: .8em; }
.bl-hero__stats span { color: rgba(255, 255, 255, .62); font-size: .8125rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

/* Hashtag ticker: about 50px/s and pauses on hover */
.bl-ticker .x-ticker__track { animation-duration: var(--bl-ticker-duration, 60s); }
.bl-ticker:hover .x-ticker__track { animation-play-state: paused; }
.bl-ticker .x-ticker__group span { text-transform: none; letter-spacing: .01em; }
.bl-ticker .bl-ticker__brand { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; border-radius: 999px; background: var(--ink); }
.bl-ticker .bl-ticker__brand .bi-stars { color: var(--red); font-size: .85rem; opacity: 1; }

/* Board ------------------------------------------------------------------ */
.bl-board__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.bl-clear { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; color: var(--text-dark); font-size: .9rem; font-weight: 600; border: 1px solid var(--line-dark); border-radius: 999px; background: #fff; transition: color .25s, border-color .25s, background .25s; }
.bl-clear:hover { color: #fff; background: var(--red); border-color: var(--red); }

.bl-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 clamp(28px, 4vw, 44px); }
.bl-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; color: var(--text-dark); font-size: .875rem; font-weight: 600;
  border: 1px solid var(--line-dark); border-radius: 999px; background: #fff; transition: color .25s, background .25s, border-color .25s, box-shadow .25s;
}
.bl-chip em { min-width: 22px; padding: 1px 7px; color: var(--text-dark-dim); font-size: .75rem; font-style: normal; text-align: center; border-radius: 999px; background: var(--paper-2); transition: color .25s, background .25s; }
.bl-chip:hover { color: var(--red-deep); border-color: rgba(242, 29, 53, .45); box-shadow: 0 10px 22px -16px rgba(242, 29, 53, .7); }
.bl-chip.is-on { color: #fff; background: var(--red); border-color: var(--red); }
.bl-chip.is-on em { color: var(--red-deep); background: #fff; }
.bl-chip .bi-stars { color: inherit; }

/* Cards ------------------------------------------------------------------ */
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.bl-card { height: 100%; perspective: 1100px; }
.bl-card__in {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; color: var(--text-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 24px 50px -36px rgba(0, 0, 0, .5);
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transform-style: preserve-3d;
  transition: transform .25s ease-out, box-shadow .4s, border-color .4s;
}
.bl-card__in:hover { border-color: rgba(242, 29, 53, .45); box-shadow: 0 36px 60px -32px rgba(242, 29, 53, .45); }
.bl-card__glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .45), transparent 45%); mix-blend-mode: soft-light; transition: opacity .4s; }
.bl-card__in:hover .bl-card__glare { opacity: 1; }

.bl-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.bl-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 7, 7, .45), transparent 55%); }
.bl-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.bl-card__in:hover .bl-card__media img { transform: scale(1.07); }
.bl-card__placeholder { display: grid; place-items: center; height: 100%; color: #fff; font-size: 2.4rem; background: linear-gradient(145deg, var(--red), var(--red-deep)); }
.bl-card__date {
  position: absolute; top: 16px; left: 16px; z-index: 1; display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 10px;
  color: var(--text-dark); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.1;
  border-radius: 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .6);
}
.bl-card__cat {
  position: absolute; top: 16px; right: 16px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; background: rgba(242, 29, 53, .92); box-shadow: 0 10px 22px -12px rgba(242, 29, 53, .9); transition: background .25s, color .25s;
}
.bl-card__cat:hover { color: var(--red-deep); background: #fff; }
.bl-card__cat .bi-stars { color: inherit; }
.bl-card__date strong { color: var(--red); font-family: var(--font-head); font-size: 1.35rem; letter-spacing: -.03em; }

.bl-card__body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 22px 24px 24px; }
.bl-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text-dark-dim); font-size: .8125rem; }
.bl-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.bl-card__meta i { color: var(--red); }
.bl-card__title { margin: 0; font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.bl-card__title a { color: inherit; transition: color .25s; }
.bl-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.bl-card__in:hover .bl-card__title a { color: var(--red-deep); }
.bl-card__excerpt { margin: 0; color: var(--text-dark-dim); font-size: .95rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card__more { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; font-size: .9rem; font-weight: 600; }
.bl-card__more i { color: var(--red); transition: transform .3s var(--ease); }
.bl-card__in:hover .bl-card__more i { transform: translateX(6px); }

/* Featured (first) post */
.bl-card--feature { margin-bottom: clamp(20px, 2.4vw, 32px); }
.bl-card--feature .bl-card__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.bl-card--feature .bl-card__media { aspect-ratio: auto; min-height: 380px; }
.bl-card--feature .bl-card__body { justify-content: center; gap: 16px; padding: clamp(28px, 4vw, 52px); }
.bl-card--feature .bl-card__title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.2; }
.bl-card--feature .bl-card__excerpt { font-size: 1.05rem; -webkit-line-clamp: 4; }
.bl-card--feature .bl-card__body::before { content: "Featured"; align-self: flex-start; padding: 5px 12px; color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-radius: 999px; background: var(--red); }

/* Hashtags (sit above the card's stretched link) */
.bl-tags { position: relative; z-index: 4; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bl-tags a { display: inline-block; padding: 4px 11px; color: var(--red-deep); font-size: .8rem; font-weight: 600; border-radius: 999px; background: rgba(242, 29, 53, .08); transition: color .25s, background .25s; }
.bl-tags a:hover { color: #fff; background: var(--red); }
.bl-tags--lg a { padding: 7px 15px; font-size: .9rem; }
.bl-tags a.bl-tags__brand { color: #fff; background: var(--ink); }
.bl-tags a.bl-tags__brand:hover { background: var(--red); }

/* Pagination & empty */
.bl-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: clamp(36px, 5vw, 56px); }
.bl-pages a { display: grid; place-items: center; width: 46px; height: 46px; color: var(--text-dark); font-weight: 600; border: 1px solid var(--line-dark); border-radius: 50%; background: #fff; transition: color .25s, background .25s, border-color .25s; }
.bl-pages a:hover { color: var(--red-deep); border-color: rgba(242, 29, 53, .45); }
.bl-pages a.is-on { color: #fff; background: var(--red); border-color: var(--red); }
.bl-pages a.is-off { pointer-events: none; opacity: .4; }
.bl-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: clamp(40px, 6vw, 72px) 20px; text-align: center; border: 1px dashed var(--line-dark); border-radius: var(--radius-lg); background: #fff; }
.bl-empty i { color: var(--red); font-size: 2.4rem; }
.bl-empty strong { font-family: var(--font-head); font-size: 1.3rem; }
.bl-empty p { margin: 0 0 8px; color: var(--text-dark-dim); }

/* Card reveal: staggered rise; the inner element owns the tilt */
.js .bl-card.reveal { transform: translateY(40px); }
.js .bl-card.reveal.visible { transform: none; }

/* Article ---------------------------------------------------------------- */
.bl-post .x-title { max-width: 1040px; font-size: clamp(1.6rem, 3.3vw, 3.1rem); }
.bl-post__hero { min-height: 78svh; }
.bl-post__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .8); font-size: .95rem; animation: xFade 1s .6s both; }
.bl-post__meta li { display: inline-flex; align-items: center; gap: 8px; }
.bl-post__meta i { color: var(--red); }

.bl-post__body { padding: clamp(56px, 8vw, 110px) 0; color: var(--text-dark); background: var(--paper-2); }
.bl-post__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }

.bl-prose {
  padding: clamp(28px, 4.5vw, 64px); color: #2b2b30; font-size: 1.075rem; line-height: 1.85;
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 30px 60px -44px rgba(0, 0, 0, .5);
}
.bl-prose > p:first-child { color: var(--text-dark); font-size: 1.22rem; line-height: 1.7; }
.bl-prose p { margin: 0 0 1.3em; }
.bl-prose h2, .bl-prose h3 { position: relative; margin: 2em 0 .7em; padding-left: 18px; color: var(--text-dark); font-family: var(--font-head); font-weight: 600; letter-spacing: -.03em; line-height: 1.25; }
.bl-prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.bl-prose h3 { font-size: 1.25rem; }
.bl-prose h2::before, .bl-prose h3::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: linear-gradient(var(--red), var(--red-deep)); }
.bl-prose a { color: var(--red-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: rgba(242, 29, 53, .3); transition: text-decoration-color .25s; }
.bl-prose a:hover { text-decoration-color: var(--red); }
.bl-prose ul, .bl-prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.bl-prose li { margin-bottom: .45em; }
.bl-prose li::marker { color: var(--red); }
.bl-prose blockquote { margin: 1.6em 0; padding: 18px 24px; color: var(--text-dark); font-size: 1.15rem; font-style: italic; border-left: 4px solid var(--red); border-radius: 0 16px 16px 0; background: rgba(242, 29, 53, .05); }
.bl-prose img { max-width: 100%; height: auto; margin: 1em 0; border-radius: 16px; }
.bl-prose pre, .bl-prose code { border-radius: 8px; background: var(--paper); }
.bl-post__tags { display: flex; flex-direction: column; gap: 14px; margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid var(--line-dark); }
.bl-prose [id] { scroll-margin-top: calc(var(--nav-h) + 28px); }
.bl-keys { margin: 0 0 2em; padding: 22px 26px 8px; border: 1px solid rgba(242, 29, 53, .22); border-radius: 18px; background: linear-gradient(135deg, rgba(242, 29, 53, .07), rgba(242, 29, 53, .015)); }
.bl-prose .bl-keys h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; }
.bl-prose .bl-keys h2::before { content: none; }
.bl-keys h2 i { display: grid; place-items: center; width: 32px; height: 32px; color: #fff; font-size: .95rem; border-radius: 10px; background: var(--red); }
.bl-prose .bl-keys ul { padding-left: 1.2em; }
.bl-prose .bl-keys li { margin-bottom: .55em; color: var(--text-dark); font-size: 1rem; line-height: 1.6; }
.bl-prose h3 + p { margin-top: -.2em; }

.bl-post__pill { transition: background .25s, border-color .25s; }
.bl-post__pill:hover { color: #fff; background: rgba(242, 29, 53, .35); border-color: rgba(242, 29, 53, .6); }

.bl-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.bl-toc li { counter-increment: toc; }
.bl-toc a { position: relative; display: block; padding: 8px 10px 8px 34px; color: var(--text-dark-dim); font-size: .9rem; line-height: 1.4; border-radius: 10px; transition: color .25s, background .25s; }
.bl-toc a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 8px; top: 9px; color: var(--red); font-size: .72rem; font-weight: 700; }
.bl-toc a:hover, .bl-toc a.is-on { color: var(--text-dark); background: rgba(242, 29, 53, .07); }
.bl-toc a.is-on { font-weight: 600; }
.bl-prose .bl-tags { margin: 0; padding: 0; }
.bl-prose .bl-tags li { margin: 0; }
.bl-prose .bl-tags a { text-decoration: none; }
.bl-post__tags > span { color: var(--text-dark-dim); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.bl-side { align-self: stretch; display: flex; flex-direction: column; gap: 18px; }
.bl-side .bl-toc { position: sticky; top: calc(var(--nav-h) + 24px); z-index: 1; }
.bl-side__card { padding: 24px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 24px 50px -40px rgba(0, 0, 0, .5); }
.bl-side__title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--text-dark); font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; }
.bl-side__title i { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; font-size: .95rem; border-radius: 10px; background: var(--red); }
.bl-side__card--cta { color: #fff; border-color: transparent; background: radial-gradient(circle at 100% 0%, rgba(242, 29, 53, .45), transparent 55%), var(--ink); }
.bl-side__card--cta .bl-side__title { color: #fff; }
.bl-side__card--cta p { margin: 0 0 16px; color: rgba(255, 255, 255, .72); font-size: .95rem; }

.bl-share { display: flex; gap: 10px; margin-bottom: 16px; }
.bl-share a { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; font-size: 1.05rem; border-radius: 50%; background: var(--ink); transition: background .25s, box-shadow .25s; }
.bl-share a:hover { background: var(--red); box-shadow: 0 12px 22px -12px rgba(242, 29, 53, .8); }
.bl-url { display: flex; align-items: stretch; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 12px; background: var(--paper); }
.bl-url input { flex: 1; min-width: 0; padding: 10px 12px; color: var(--text-dark-dim); font-size: .8125rem; border: 0; background: transparent; outline: 0; }
.bl-url__copy { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; color: #fff; font-size: .8125rem; font-weight: 600; border: 0; background: var(--ink); transition: background .25s; }
.bl-url__copy:hover, .bl-url__copy.is-done { background: var(--red); }

.bl-related .services { background: var(--paper); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1199px) {
  .bl-post__grid { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 991px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-card--feature .bl-card__in { grid-template-columns: 1fr; }
  .bl-card--feature .bl-card__media { min-height: 0; aspect-ratio: 16 / 9; }
  .bl-post__grid { grid-template-columns: 1fr; }
  .bl-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-side .bl-toc { position: static; grid-column: 1 / -1; order: -1; }
}
@media (max-width: 575px) {
  .bl-grid { grid-template-columns: 1fr; }
  .bl-side { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bl-card__in, .bl-card__media img, .bl-card__glare { transition: none; }
  .bl-ticker .x-ticker__track { animation: none; }
  .bl-hero__stats, .bl-post__meta { animation: none; }
}
