/* "Everywhere we've funded" homepage sample (v7). Layers on brand.css + funded-proposal.css (reset, .shell,
   .meta-caps, button arrow). Homepage idiom: large split heading with one Clay word, Moss lead, Mustard
   primary CTA, a hairline belt like the award ledger, and the map on a rounded Surface panel. */

.hm { padding-block: clamp(3.5rem, 7vw, 7rem) clamp(4rem, 8vw, 8rem); }

.hm-intro { display: grid; gap: 1.75rem; align-items: end; }
.hm-title { max-width: 15ch; font-size: clamp(2.6rem, 5vw, 5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; text-wrap: balance; }
.hm-clay { color: var(--nn-clay); }
.hm-lead { max-width: 38rem; margin-top: 1.5rem; color: var(--nn-moss); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.5; text-wrap: pretty; }
.hm-cta { justify-self: start; }
@media (min-width: 64rem) {
  .hm-intro { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; }
  .hm-cta { justify-self: end; margin-bottom: 0.4rem; }
}

/* Belt: hairlines top and bottom, internal dividers only (no outer side borders), like the award ledger. */
.hm-belt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: clamp(2.5rem, 5vw, 4rem) 0 0; border-block: 1px solid var(--nn-line); }
.hm-belt__cell { min-width: 0; padding: 1.25rem 1rem 1.375rem 1.25rem; border-left: 1px solid var(--nn-line); }
.hm-belt__cell:nth-child(odd) { padding-left: 0; border-left: 0; }
.hm-belt__cell:nth-child(n + 3) { border-top: 1px solid var(--nn-line); }
.hm-belt dd { margin: 0.5rem 0 0; color: var(--nn-ink); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
@media (min-width: 48rem) {
  .hm-belt { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm-belt__cell, .hm-belt__cell:nth-child(odd) { padding: 1.5rem 1.5rem 1.625rem; border-left: 1px solid var(--nn-line); }
  .hm-belt__cell:first-child { padding-left: 0; border-left: 0; }
  .hm-belt__cell:nth-child(n + 3) { border-top: 0; }
}

/* Map: Surface panel, Paper land, funded states in the RFP map's light Cyan, translucent Clay dots sized
   by award count; overlapping translucent dots deepen, so dense areas glow. No labels. */
.hm-map { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.hm-map__canvas { position: relative; max-width: 68rem; margin-inline: auto; }
.hm-map { --k: 1; border-radius: var(--nn-radius-card); background: var(--nn-surface); padding: clamp(1rem, 4vw, 3.5rem) clamp(0.75rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem); }
.hm-map__canvas img { display: block; width: 100%; height: auto; }
.hm-map__tint { position: absolute; inset: 0; width: 100%; height: 100%; fill: #b2e3e5; stroke: #7cc6cf; stroke-width: 0.9; stroke-linejoin: round; }
.hm-dot {
  position: absolute; width: max(3px, calc(var(--d) * var(--k) * 1px)); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--nn-clay); opacity: 0.72; box-shadow: 0 0 0 1px rgb(252 251 246 / 70%); pointer-events: none;
}
.hm-caption { max-width: 68rem; margin: 1.25rem auto 0; color: var(--nn-moss); font-size: 1rem; line-height: 1.5; text-wrap: pretty; }
@media (max-width: 63.999rem) { .hm-map { --k: 0.75; } }
@media (max-width: 39.999rem) { .hm-map { --k: 0.55; border-radius: 1.25rem; } }

/* One-time dot fade-in, west to east (home-funding-map.html inline script adds .hm-motion and .is-in). */
@media (prefers-reduced-motion: no-preference) {
  .hm-motion .hm-map:not(.is-in) .hm-dot { opacity: 0; }
  .hm-motion .hm-map.is-in .hm-dot { animation: hm-dot-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--x) * 900ms + 100ms); }
}
@keyframes hm-dot-in { from { opacity: 0; scale: 0.3; } }
