/* Construction methods landing (cm-*). Sections alternate: navy hero, white (.section--light),
   navy (default) and paper. */

.cm-life, .cm-principles, .cm-groups, .cm-group, .cm-solutions, .cm-projects { scroll-margin-top: 120px; }

/* Hero */
.cm-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--c-text); }
.cm-hero__media, .cm-hero__media picture, .cm-hero__media img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cm-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 22, 44, .95) 0%, rgba(11, 26, 48, .86) 55%, rgba(11, 26, 48, .55) 100%); }
.cm-hero__inner { padding-top: 40px; padding-bottom: 48px; }
@media (min-width: 1024px) { .cm-hero__inner { padding-top: 64px; padding-bottom: 72px; } }
.cm-hero .hero__title { margin-top: 8px; max-width: 20ch; }
.cm-hero__lead { margin: 0 0 24px; max-width: 68ch; color: var(--c-text-2); line-height: 1.7; }
.cm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cm-hero .btn--ghost { border-color: rgba(255, 255, 255, .55); }
.cm-hero__facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 32px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--c-line); color: var(--c-text-2); }
.cm-hero__facts strong { font-family: var(--f-display); font-size: 2rem; line-height: 1; color: var(--c-accent); margin-right: 6px; }

/* Project sequence */
.cm-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); counter-reset: step; }
.cm-step a { position: relative; display: grid; gap: 8px; align-content: start; height: 100%; padding: 18px 16px 16px; background: var(--c-paper-2); color: var(--c-text-dark); text-decoration: none; border-top: 3px solid var(--c-ink); transition: border-color .15s, transform .15s; }
.cm-step a:hover, .cm-step a:focus-visible { border-top-color: var(--c-brand); transform: translateY(-2px); }
.cm-step__no { font-family: var(--f-display); font-size: .875rem; letter-spacing: .08em; color: var(--c-brand); }
.cm-step__icon { color: var(--c-accent-dark); }
.cm-step__title { font-weight: 700; line-height: 1.3; }
.cm-step__count { font-size: .8125rem; color: var(--c-text-dark-2); }
@media (min-width: 1200px) {
  .cm-step:not(:last-child) a::after { content: ''; position: absolute; right: -10px; top: 26px; width: 8px; height: 8px; border-top: 2px solid var(--c-brand); border-right: 2px solid var(--c-brand); transform: rotate(45deg); }
}

/* Principles */
.cm-principles__list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cm-card { display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--c-ink-2); border: 1px solid var(--c-line); border-top: 3px solid var(--c-accent); }
.cm-card__no { font-family: var(--f-display); font-size: 1.75rem; line-height: 1; color: var(--c-accent); }
.cm-card__title { margin: 0; font-size: 1.125rem; line-height: 1.3; }
.cm-card p { margin: 0; color: var(--c-text-2); line-height: 1.6; }

/* Method library */
.cm-group { padding: 28px 0; border-top: 1px solid #E2DDD1; }
.cm-group:first-of-type { border-top: 0; padding-top: 8px; }
.cm-group__head { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; margin-bottom: 18px; }
.cm-group__no { font-family: var(--f-display); font-size: 2rem; line-height: 1; color: var(--c-brand); }
.cm-group__title { margin: 0; font-size: 1.375rem; line-height: 1.25; }
.cm-group__lead { margin: 6px 0 0; max-width: 72ch; color: var(--c-text-dark-2); line-height: 1.6; }
.cm-group__all { grid-column: 2; justify-self: start; }
@media (min-width: 768px) { .cm-group__head { grid-template-columns: auto 1fr auto; } .cm-group__all { grid-column: auto; align-self: center; } }
.cm-posts { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cm-post a { display: flex; flex-direction: column; height: 100%; background: var(--c-paper); border: 1px solid #E2DDD1; color: var(--c-text-dark); text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.cm-post a:hover, .cm-post a:focus-visible { border-color: var(--c-ink); box-shadow: 0 10px 24px rgba(11, 26, 48, .12); }
.cm-post__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.cm-post__body { display: grid; gap: 8px; padding: 16px 18px 18px; flex: 1; align-content: start; }
.cm-post__title { font-weight: 700; line-height: 1.35; }
.cm-post__excerpt { font-size: .9375rem; line-height: 1.55; color: var(--c-text-dark-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cm-post__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .875rem; font-weight: 700; color: var(--c-brand); }

/* Related solutions */
.cm-links { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cm-link { display: flex; gap: 14px; height: 100%; padding: 18px; background: var(--c-ink-2); border: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; transition: border-color .15s; }
.cm-link:hover, .cm-link:focus-visible { border-color: var(--c-accent); }
.cm-link__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: var(--c-ink-3); color: var(--c-accent); }
.cm-link strong { display: block; margin-bottom: 4px; line-height: 1.3; }
.cm-link span span { display: block; font-size: .875rem; line-height: 1.5; color: var(--c-text-2); }


/* Projects */
.cm-proj-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
