/* Blog and case-study lists: a short dark head with the page name, then the list. */
.lst-hero { padding: 58px 0 clamp(48px, 6vw, 96px); }
.lst-hero__h1 { margin-top: clamp(48px, 8vw, 120px); font-size: clamp(56px, 9vw, 156px); font-weight: 300; line-height: 0.92; letter-spacing: -0.065em; }
.lst { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(84px, 10vw, 160px); }

/* blog rows: title, summary, a "read" label; the card picture follows the mouse row */
.lst-post { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto 22px; padding-block: 28px; }
.lst-post .post__title { max-width: 30ch; font-size: clamp(20px, 1.7vw, 26px); }
.lst-post__text { max-width: 52ch; font-size: 15px; line-height: 1.45; color: var(--muted); }
.lst-post__more { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.lst-post .post__img { right: clamp(80px, 9vw, 160px); }
@media (max-width: 1100px) { .lst-post__more { display: none; } .lst-post { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 22px; } }
@media (hover: none), (pointer: coarse) {
  .lst-post { grid-template-columns: minmax(0, 1fr) 96px; }
  .lst-post .post__title, .lst-post__text { grid-column: 1; }
  .lst-post .post__img { grid-row: 1 / span 2; }
}
@media (max-width: 700px) { .lst-post__text { display: none; } }

/* case cards: picture, title, summary */
.lst-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px) 8px; }
.lst-case { display: grid; gap: 14px; text-decoration: none; }
.lst-case__img { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; background: var(--deep); margin-bottom: 10px; }
.lst-case__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: 0.85; transition: filter 0.7s var(--ease), opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.lst-case:hover .lst-case__img img, .lst-case:focus-visible .lst-case__img img { filter: none; opacity: 1; transform: scale(1.03); }
.lst-case h2 { max-width: 24ch; font-size: clamp(24px, 2.2vw, 34px); font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; }
.lst-case p { max-width: 52ch; color: var(--muted); }
.lst-case .link { justify-self: start; margin-top: 4px; }
@media (max-width: 900px) { .lst-cases { grid-template-columns: 1fr; } }

/* legal pages: the current site's text in a readable column */
.lst-hero__h1--legal { font-size: clamp(44px, 6.4vw, 110px); }
.legal { max-width: 74ch; }
.legal h2 { margin: 44px 0 14px; font-size: clamp(22px, 2vw, 28px); font-weight: 400; letter-spacing: -0.02em; }
.legal h2 strong { font-weight: inherit; }
.legal p, .legal li { color: rgba(2, 39, 31, 0.8); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0; padding-left: 20px; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- blog: featured in the head, three latest, then all articles with a topic and word filter ---------- */
/* featured: the full width under the page name, a large picture and a large headline on the dark page */
.blg-hero__top { margin: clamp(40px, 6vw, 96px) 0 clamp(32px, 4vw, 64px); }
.blg-hero .lst-hero__h1 { margin-top: 0; }
.blg-feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: center; padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); text-decoration: none; }
.blg-feat__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: var(--deep); }
.blg-feat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.blg-feat:hover .blg-feat__img img { transform: scale(1.025); }
.blg-feat__body { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.blg-feat h2 { font-size: clamp(32px, 3.6vw, 60px); font-weight: 300; line-height: 1.02; letter-spacing: -0.045em; max-width: 14ch; }
.blg-feat__text { max-width: 44ch; font-size: 17px; color: var(--muted); }
.blg-feat .btn { margin-top: 6px; }
.blg-feat:hover .btn svg { transform: translateX(3px); }
.blg-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.blg-flag { padding: 2px 7px; border-radius: 4px; background: var(--lime); color: var(--green); }

.blg-h2 { font-size: clamp(34px, 3.8vw, 62px); font-weight: 300; line-height: 1.02; letter-spacing: -0.048em; margin-bottom: clamp(28px, 3vw, 48px); }
.blg-latest { padding-bottom: 0; }
.blg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px clamp(16px, 2vw, 32px); }
.blg-card { display: grid; gap: 12px; text-decoration: none; }
.blg-card__img { aspect-ratio: 10 / 7; overflow: hidden; border-radius: 8px; background: var(--sage-100); margin-bottom: 6px; }
.blg-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.blg-card:hover .blg-card__img img { transform: scale(1.03); }
.blg-card h3 { font-size: clamp(20px, 1.6vw, 24px); font-weight: 400; line-height: 1.15; letter-spacing: -0.025em; }
.blg-card__text { font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.blg-all { padding-top: clamp(72px, 8vw, 128px); }
.blg-all__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.blg-count { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
/* the tools stay under the menu while the list scrolls */
.blg-tools { position: sticky; top: 52px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 8px; padding: 12px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.blg-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.blg-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 6px; background: rgba(2, 39, 31, 0.06); color: var(--green); font-size: 14px; transition: background-color 0.2s, color 0.2s; }
.blg-chip span { font-family: var(--mono); font-size: 11px; color: rgba(2, 39, 31, 0.55); }
.blg-chip:hover { background: rgba(2, 39, 31, 0.12); }
.blg-chip[aria-pressed="true"] { background: var(--green); color: var(--lime); }
.blg-chip[aria-pressed="true"] span { color: rgba(201, 215, 44, 0.75); }
.blg-search { position: relative; display: flex; align-items: center; flex: 0 1 280px; }
.blg-search svg { position: absolute; left: 12px; width: 16px; height: 16px; color: rgba(2, 39, 31, 0.55); pointer-events: none; }
.blg-search input { width: 100%; min-height: 40px; padding: 0 12px 0 36px; border: 1px solid rgba(2, 39, 31, 0.3); border-radius: 6px; background: var(--white); color: var(--green); font: inherit; font-size: 15px; }
.blg-search input::placeholder { color: rgba(2, 39, 31, 0.55); }
.blg-search input:focus-visible { border-color: var(--green); }
.blg-row__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.blg-all .lst-post { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 22px; row-gap: 8px; }
.blg-empty { padding: 48px 0; display: grid; gap: 18px; justify-items: start; }
.blg-empty p { font-size: 20px; }
@media (max-width: 900px) {
  .blg-feat { grid-template-columns: 1fr; gap: 24px; }
  .blg-cards { grid-template-columns: 1fr; gap: 32px; }
  .blg-tools { top: 56px; }
  .blg-topics { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .blg-topics::-webkit-scrollbar { display: none; }
  .blg-chip { flex: none; }
  .blg-search { flex: 1 1 100%; }
}
@media (hover: none), (pointer: coarse) { .blg-all .lst-post { grid-template-columns: minmax(0, 1fr) 96px; } .blg-all .lst-post .post__img { grid-row: 2 / span 2; } }

/* pager: numbers with gaps, previous / next, "13–24 of 62" */
.blg-pager { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.blg-pg__nums { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.blg-pg { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 6px; background: rgba(2, 39, 31, 0.06); color: var(--green); font-family: var(--mono); font-size: 14px; transition: background-color 0.2s, color 0.2s; }
.blg-pg:hover:not(:disabled) { background: rgba(2, 39, 31, 0.12); }
.blg-pg[aria-current="page"] { background: var(--green); color: var(--lime); }
.blg-pg:disabled { opacity: 0.35; cursor: default; }
.blg-pg svg { width: 16px; height: auto; aspect-ratio: 20 / 13; }
.blg-pg[data-prev] svg { transform: scaleX(-1); }
.blg-pg__gap { display: grid; place-items: center; min-width: 24px; color: var(--muted); }
.blg-pg__info { margin-left: auto; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
@media (max-width: 600px) { .blg-pg__info { flex: 1 1 100%; margin: 8px 0 0; } }
