/* clients.css — page-specific styles for /clients
   Inherits all brand tokens and base styles from styles.css */

.proof-bar strong {
  color: var(--gold);
}

.clients-intro {
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
  margin: 0 0 3rem;
  max-width: 58ch;
}

.cta-band .section-intro {
  max-width: 50ch;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.hero-emphasis {
  color: var(--gold-dark);
}

/* ── Hex Grid ─────────────────────────────────────────────────────────────── */

@keyframes hexPop {
  0%   { opacity: 0; transform: scale(0.72); }
  65%  { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.hex-grid-outer {
  display: flex;
  justify-content: center;
  overflow: visible;
}

.hex-grid-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 97px);
  grid-template-rows: 120px 158px;
  width: 679px;
  height: 318px;
  overflow: visible;
  isolation: isolate;
}

.hex-cell {
  position: relative;
  left: auto !important;
  top: auto !important;
  display: block;
  width: 180px;
  height: 158px;
  text-decoration: none;
  color: inherit;
  z-index: 1;
  cursor: pointer;
  animation: hexPop 0.6s cubic-bezier(.34, 1.46, .64, 1) both;
}

.hex-cell:nth-child(1) { grid-column: 1; grid-row: 1; animation-delay: 0.04s; }
.hex-cell:nth-child(2) { grid-column: 3; grid-row: 1; animation-delay: 0.14s; }
.hex-cell:nth-child(3) { grid-column: 5; grid-row: 1; animation-delay: 0.24s; }
.hex-cell:nth-child(4) { grid-column: 2; grid-row: 2; animation-delay: 0.34s; }
.hex-cell:nth-child(5) { grid-column: 4; grid-row: 2; animation-delay: 0.44s; }
.hex-cell:nth-child(6) { grid-column: 6; grid-row: 2; animation-delay: 0.54s; }

.hex-cell:hover,
.hex-cell:focus-visible {
  z-index: 50;
  outline: none;
}

.hex-cell svg {
  position: absolute;
  inset: 0;
  overflow: visible;
  transition: filter 0.3s ease;
  filter: drop-shadow(0 5px 14px rgba(33, 30, 30, 0.10));
}

.hex-cell:hover svg,
.hex-cell:focus-visible svg {
  filter: drop-shadow(0 14px 28px rgba(242, 113, 21, 0.30));
}

.hex-poly {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 1.5;
  transition: fill 0.28s ease, stroke 0.28s ease;
}

.hex-cell:hover .hex-poly,
.hex-cell:focus-visible .hex-poly {
  fill: var(--gold-soft);
  stroke: var(--gold-dark);
}

.hex-content {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
  transition: transform 0.28s cubic-bezier(.34, 1.46, .64, 1);
}

.hex-cell:hover .hex-content,
.hex-cell:focus-visible .hex-content {
  transform: translate(-50%, -52%);
}

.hex-logo {
  width: 100%;
  max-width: 100%;
  max-height: 62px;
  object-fit: contain;
  display: block;
}

.hex-fallback {
  display: none;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  transition: color 0.25s;
}

.hex-content.logo-failed .hex-logo {
  display: none;
}

.hex-content.logo-failed .hex-fallback {
  display: block;
}

.hex-cell:hover .hex-fallback,
.hex-cell:focus-visible .hex-fallback {
  color: var(--gold-dark);
}

.hex-tooltip {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.02em;
  z-index: 120;
}

.hex-cell:hover .hex-tooltip,
.hex-cell:focus-visible .hex-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.client-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.client-pill {
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

/* ── Engagement categories ───────────────────────────────────────────────── */

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.engagement-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.engagement-category-bottom {
  grid-column: 2;
}

.engagement-cat-header {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.engagement-cat-header--workforce { background: #e8f0fe; }
.engagement-cat-header--policy { background: #edf6f1; }
.engagement-cat-header--leadership { background: #f3eefb; }
.engagement-cat-header--classification { background: #fef3e0; }

.engagement-cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.engagement-cat-dot--workforce { background: #1565c0; }
.engagement-cat-dot--policy { background: #2c6e49; }
.engagement-cat-dot--leadership { background: #7b5ea7; }
.engagement-cat-dot--classification { background: #f27115; }

.engagement-cat-label {
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.engagement-cat-label--workforce { color: #1565c0; }
.engagement-cat-label--policy { color: #2c6e49; }
.engagement-cat-label--leadership { color: #7b5ea7; }
.engagement-cat-label--classification { color: #f27115; }

.engagement-row {
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.engagement-row:last-child {
  border-bottom: none;
}

.engagement-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(33, 30, 30, 0.13);
}

.engagement-bar {
  width: 3px;
  min-height: 2rem;
  align-self: stretch;
  border-radius: 99px;
  opacity: 0.35;
  flex-shrink: 0;
}

.engagement-bar--workforce { background: #1565c0; }
.engagement-bar--policy { background: #2c6e49; }
.engagement-bar--leadership { background: #7b5ea7; }
.engagement-bar--classification { background: #f27115; }

.engagement-client {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 2px;
}

.engagement-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .hex-grid-container {
    transform: scale(0.74);
    transform-origin: top center;
    margin-bottom: calc((318px * 0.74) - 318px);
  }

  .engagement-grid {
    grid-template-columns: 1fr;
  }

  .engagement-category-bottom {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .hex-grid-container {
    transform: scale(0.52);
    transform-origin: top center;
    margin-bottom: calc((318px * 0.52) - 318px);
  }
}
