/* Caterman — blog (dark editorial). Builds on the shared .cm-os system. */
.cm-blog { background: #000; color: #fff; font-family: 'Manrope', system-ui, sans-serif; }

/* neutralise the theme content wrapper padding/title on blog index + single */
.page-id-559 #content.site-content, .single-post #content.site-content { padding: 0 !important; }
.cm-blog-index { position: relative; width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.cm-blog-index .cm-os-section { padding-top: clamp(46px, 6vw, 80px); }  /* trim deadspace above the "Journal *" heading */
.cm-blog-index .cm-os-intro { max-width: 640px; }  /* consistent hero intro width across pages */
.page-id-559 #content.site-content .container, .page-id-559 #content.site-content .row,
.page-id-559 #content.site-content [class*="col-"], .page-id-559 .kl-blog-page-content,
.page-id-559 .kl-blog-page-body, .page-id-559 #th-content-page { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
.page-id-559 .entry-title, .page-id-559 .page-title, .page-id-559 .page-header,
.single-post .entry-title, .single-post .page-header, .single-post .kl-blog-single-nav { display: none !important; }
.single-post #content.site-content .container, .single-post #content.site-content .row,
.single-post #content.site-content [class*="col-"] { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }

/* ---- single post hero ---- */
.cm-blog__hero {
  position: relative; min-height: clamp(380px, 56vh, 620px);
  display: flex; align-items: flex-end; overflow: hidden;
  background: #111 center/cover no-repeat;
}
.cm-blog__hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,.86) 100%);
}
.cm-blog__hero-inner { position: relative; width: 100%; max-width: 860px; margin: 0 auto; padding: 0 6vw clamp(40px, 6vw, 72px); }
.cm-blog__kicker { margin: 0 0 14px; font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #d6d6d6; }
.cm-blog__title {
  margin: 0; font-family: 'Roboto Condensed', 'Manrope', sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(32px, 4.6vw, 64px); line-height: .98; letter-spacing: -.03em; color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
}

/* ---- single post body (reading column) ---- */
.cm-blog__body { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) 6vw 0; }
.cm-blog__body > * { margin: 0 0 1.15em; }
.cm-blog__body p, .cm-blog__body li { font-size: clamp(16px, 1.45vw, 19px); line-height: 1.72; color: #d3d3d3; }
.cm-blog__body h2 {
  margin: 1.7em 0 .55em; font-family: 'Roboto Condensed', 'Manrope', sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(24px, 2.8vw, 38px); line-height: 1.05; letter-spacing: -.02em; color: #fff;
}
.cm-blog__body h2::after, .cm-blog__body h3::after { content: "\00a0*"; color: #fff; font-style: normal; }
.cm-blog__body h3 { margin: 1.5em 0 .5em; font-family: 'Roboto Condensed', sans-serif; font-weight: 700; font-size: clamp(19px, 1.9vw, 24px); color: #fff; }
.cm-blog__body strong { color: #fff; }
.cm-blog__body a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.cm-blog__body ul, .cm-blog__body ol { padding-left: 1.2em; }
.cm-blog__body li { margin-bottom: .5em; }
.cm-blog__body blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 26px; border-left: 2px solid rgba(255,255,255,.35);
  font-family: 'Roboto Condensed', sans-serif; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.25; color: #fff;
}
.cm-blog__body h2:first-child, .cm-blog__body p:first-child { margin-top: 0; }

/* ---- single post foot CTA ---- */
.cm-blog__foot { max-width: 760px; margin: clamp(40px,6vw,72px) auto 0; padding: clamp(40px,6vw,70px) 6vw clamp(70px,9vw,110px); border-top: 1px solid rgba(255,255,255,.12); }
.cm-blog__foot-lead { margin: 0 0 18px; font-family: 'Roboto Condensed', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(22px,3vw,40px); letter-spacing: -.02em; color: #fff; }
.cm-blog__pill, .cm-blog-index .cm-blog__pill {
  display: inline-block; padding: 10px 30px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; background: #000;
  font-family: 'Roboto Condensed', sans-serif; font-weight: 700; font-size: clamp(18px,1.8vw,24px); text-transform: uppercase;
  color: #fff; text-decoration: none; transition: background .25s cubic-bezier(.16,1,.3,1);
}
.cm-blog__pill:hover { background: rgba(255,255,255,.1); }

/* ---- blog index ---- */
.cm-blog-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(18px, 2vw, 28px);
  row-gap: clamp(22px, 2.4vw, 34px);
}
@media (max-width: 900px) { .cm-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cm-blog-grid { grid-template-columns: 1fr; } }

/* the grid item: holds reveal; perspective for the child's tilt */
.cm-blog-card { position: relative; display: block; text-decoration: none; color: #fff; perspective: 900px; }

/* appear-on-scroll (transform on the OUTER item; tilt lives on the inner panel) */
.cm-blog-card.cm-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * .07s); }
.cm-blog-card.cm-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .cm-blog-card.cm-reveal { opacity: 1; transform: none; transition: none; } }

/* the card panel — the actual "card" the post lives on */
.cm-blog-card__inner {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #0c0c0c; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
  transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .4s ease, border-color .4s ease;
}
.cm-blog-card:hover .cm-blog-card__inner { border-color: rgba(255,255,255,.24); box-shadow: 0 28px 55px -22px rgba(0,0,0,.85); }
/* during an active tilt, drop the transition so the panel tracks the cursor 1:1 */
.cm-blog-card.is-tilting .cm-blog-card__inner { transition: box-shadow .4s ease, border-color .4s ease; }

.cm-blog-card__media {
  display: block; aspect-ratio: 16 / 10; background: #1b1b1b center/cover no-repeat;
  transform: translateZ(22px); /* slight pop forward under tilt */
}
.cm-blog-card__body { display: flex; flex-direction: column; flex: 1 0 auto; padding: clamp(18px, 1.5vw, 24px); transform: translateZ(38px); }
.cm-blog-card__date { margin: 0 0 9px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8f8f8f; }
.cm-blog-card__title { font-family: 'Roboto Condensed', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.08; letter-spacing: -.01em; color: #fff; }
.cm-blog-card__excerpt { margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: #aeaeae; }

/* cursor-tracking sheen */
.cm-blog-card__glow {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit; transform: translateZ(60px);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.10), transparent 46%);
  opacity: 0; transition: opacity .3s ease;
}
.cm-blog-card:hover .cm-blog-card__glow { opacity: 1; }
