/* ==========================================================================
   About · 4 — How we work
   A human section: three real photographs, each captioned by its sentence.
       ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
       │  photograph  │ │  photograph  │ │  photograph  │
       │  partner MFI │ │  officer +   │ │  the team,   │
       │  session     │ │  client      │ │  3 places    │
       └──────────────┘ └──────────────┘ └──────────────┘
       Alongside our    Built for real   Lean and quick
       partners         users
   Photos live in assets/how/ (partners.jpg, users.jpg, lean.jpg). Until a
   file exists the frame shows a quiet placeholder naming the shot it needs
   (.is-empty, cleared by the img's onload). Natural colour, a whisper of
   grain; on hover the frame holds still and the photo settles 3% closer,
   the same gesture as the leaders' portraits. Prefixed .hw- and scoped to .hw.
   ========================================================================== */

.hw {
  padding: clamp(72px, 9vw, 120px) var(--page-px);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.hw-inner { max-width: var(--container); margin: 0 auto; }
.hw-title { margin-bottom: clamp(32px, 4vw, 48px); font-size: var(--fs-section-title); font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; }
.hw-title em { font-style: normal; color: var(--accent); }

.hw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.hw-tile { display: flex; flex-direction: column; }

.hw-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-raised);
}
.hw-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.hw-tile:hover .hw-photo img { transform: scale(1.03); }
/* a whisper of film grain and a hairline, so photos sit in the page */
.hw-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(10,47,107,0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* placeholder until the photograph arrives */
.hw-photo.is-empty {
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--border-strong);
  background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--text-muted) 6%, transparent) 10px 11px), var(--surface-raised);
}
.hw-photo.is-empty::before {
  content: 'Photo to come: ' attr(data-shot);
  max-width: 80%;
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
}
.hw-photo.is-empty::after { display: none; }

.hw-t { margin-top: 20px; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-primary); }
.hw-p { margin-top: 8px; max-width: 42ch; font-size: 15px; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }

@media (max-width: 900px) {
  .hw-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-photo img { transition: none; }
}
