/* The reference's nine-post gallery, with Centropol's shared typography and alignment. */
.home-social {
  position: relative;
  padding: clamp(56px, 6vw, 96px) var(--gutter);
  background: #e5e3d9;
  color: #354139;
  scroll-margin-top: 68px;
  font-family: var(--sans);
}
.social-inner { width: 100%; margin: 0 auto; }
.social-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}
.home-social h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.035em;
}
.home-social .social-profile {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  font: 400 16px/1.5 var(--sans);
  transition: color .2s ease;
}
.social-profile svg { width: 22px; height: 22px; flex: none; }
.social-profile:hover { color: #65725e; }
.social-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 16px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.social-posts li { min-width: 0; margin: 0; padding: 0; }
.home-social .social-post {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #eeece4;
  color: #f4f1e8;
  text-decoration: none;
}
.social-post > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.social-video-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 5px;
  border-radius: 50%;
  background: rgba(53,65,57,.72);
  color: #f4f1e8;
  pointer-events: none;
}
.social-post-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  padding: clamp(18px, 2vw, 32px);
  background: linear-gradient(0deg, rgba(40,52,44,.94), rgba(40,52,44,.6) 52%, rgba(40,52,44,.08));
  color: #f4f1e8;
  font: 400 15px/1.65 var(--sans);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.social-post-overlay > span { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.social-post-overlay svg { width: 22px; height: 22px; flex: none; }
@media (hover:hover) { .social-post:hover .social-post-overlay { opacity: 1; } }
.social-post:focus-visible .social-post-overlay { opacity: 1; }
.home-social a:focus-visible { outline: 2px solid #354139; outline-offset: 4px; z-index: 1; }
@media (max-width:600px) {
  .social-heading-row { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .home-social .social-profile { font-size: 15px; }
  .social-posts { gap: 6px; }
  .social-video-icon { top: 6px; right: 6px; width: 24px; height: 24px; padding: 4px; }
  .social-post-overlay { padding: 8px; font-size: 11px; line-height: 1.4; gap: 8px; }
  .social-post-overlay > span { -webkit-line-clamp: 3; }
  .social-post-overlay svg { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion:reduce) { .home-social a, .social-post-overlay { transition: none; } }

/* Only JavaScript-enhanced, initially offscreen items receive entrance motion. */
@media (prefers-reduced-motion:no-preference) {
  .home-social .social-reveal-item:not(.social-reveal-pending) {
    transition: opacity 850ms cubic-bezier(.22,1,.36,1) var(--social-reveal-delay,0ms),
                transform 950ms cubic-bezier(.22,1,.36,1) var(--social-reveal-delay,0ms);
  }
  .home-social .social-reveal-pending { opacity: 0; transform: translate3d(0,28px,0); }
  .home-social .social-reveal-item:focus-within { opacity: 1; transform: none; transition: none; }
}
