/* ================================================================
   BLOG / "NEW AT FSE" (blog.html), Figma frame "blog" (78:1443).
   Dark hero, then a white grid of every case study.
   ================================================================ */
.blog .div-hero{ border-bottom: 0; background: #000; }
.blog .div-hero__inner{ padding-bottom: 87px; }
.blog .div-hero__title{ line-height: 1.07; }
.blog-hero__sub{ max-width: 815px; font-size: 15px; line-height: 23.61px; color: #fff; }

/* Stories grid: dark hero above, then a white section listing every case
   study as a large card, two per row (reference: agr.studio/projects). */
.work{ background: #fff; color: #000; }
.work__grid{ max-width: var(--maxw); margin: 0 auto; padding: var(--gap) var(--gap) 120px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px 24px; }
.work-card{ display: block; }
.work-card__img{ display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: #f2f2f2; }
.work-card__img img{ display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.work-card:hover .work-card__img img{ transform: scale(1.03); }
.work-card__info{ display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 16px; }
.work-card__info h2{ font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.work-card__info span{ font-size: 15px; color: #000; text-align: right; }
.work-card:hover h2{ text-decoration: underline; text-underline-offset: 4px; }

/* CTA: .media-cta band; 60% black scrim lives in style.css */
.blog .media-cta__copy{ max-width: 470px; }

@media (max-width: 1000px){
  .blog .div-hero__inner{ padding-bottom: calc(var(--gap) + 24px); }
  .blog-hero__sub{ margin-top: 16px; font-size: clamp(16px, 4.3vw, 19px); line-height: 1.55; }
}
@media (max-width: 720px){
  .work__grid{ grid-template-columns: 1fr; gap: 40px; padding-bottom: 72px; }
  .work-card__info{ flex-direction: column; gap: 4px; }
  .work-card__info span{ text-align: left; }
}
@media (prefers-reduced-motion: reduce){
  .work-card__img img{ transition: none; }
}

/* Posts (feedback round 2): real posts replace the case-study placeholders */
.posts{ background: #fff; color: #000; }
.posts__grid{ max-width: var(--maxw); margin: 0 auto; padding: var(--gap) var(--gap) 120px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.posts .home-post h2{ font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.blog-hero__sub a{ text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px){ .posts__grid{ grid-template-columns: 1fr; padding-bottom: 60px; } }

/* ---------- Single post (post-*.html, generated by tools/import-blog.py) ---------- */
.post-hero .div-hero__eyebrow a{ color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.post-hero .div-hero__title{ max-width: 980px; font-size: clamp(34px, calc(var(--u) * 64), 64px); line-height: 1.06; }
.post-hero__meta{ margin-top: 20px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.post__body{ max-width: 760px; margin: 0 auto; padding: 72px var(--gap) 90px; background: #fff; color: #111; font-size: 18px; line-height: 1.7; }
.post .post__body{ box-sizing: content-box; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); }
.post__body p{ margin: 0 0 1.1em; }
.post__body h2{ margin: 1.8em 0 .6em; font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: #000; }
.post__body strong{ font-weight: 700; color: #000; }
.post__body a{ text-decoration: underline; text-underline-offset: 3px; }
.post__body ul{ margin: 0 0 1.2em; padding-left: 1.2em; }
.post__body .post__checks{ list-style: none; padding: 0; }
.post__checks li{ position: relative; padding-left: 30px; margin-bottom: .4em; }
.post__checks li::before{ content: ''; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid #000; border-bottom: 3px solid #000; transform: rotate(-45deg); }
.post__cover{ margin: 0 0 48px; }
.post__cover img{ display: block; max-width: 100%; height: auto; margin: 0 auto; }
.post__more{ background: #f5f5f5; color: #000; }
.post__more-inner{ max-width: var(--maxw); margin: 0 auto; padding: 72px var(--gap); }
.post__more h2{ font-size: clamp(28px, 2.8vw, 40px); font-weight: 500; letter-spacing: -.04em; margin-bottom: 32px; }
.post__more-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post__more .home-post{ background: #fff; }
.post .media-cta__scrim{ background: rgba(0,0,0,.6); }
@media (max-width: 1000px){
  .post__body{ padding: 48px var(--gap) 60px; font-size: 17px; }
  .post__more-grid{ grid-template-columns: 1fr; }
  .post__more-inner{ padding: 56px var(--gap); }
}
