/* ============================================================
   TownVue - /founding-members, "Immersive" build.
   Loads ALONGSIDE state-immersive.css, which provides the tokens,
   tv-btn, tv-container, d3-* color bands, d3-eyebrow/h2 and the
   reveal behaviour. This file adds only the founding-page pieces
   (fm-*) plus the full-bleed _HomeLayout reset. Everything is
   scoped under .state-immersive so nothing leaks site-wide.
   ============================================================ */

/* Full-bleed under _HomeLayout (loads only on this page). */
.home-shell { padding-block: 0 !important; }
.home-shell__inner { max-width: none !important; width: 100% !important; padding-inline: 0 !important; margin-inline: 0 !important; }

/* ── Hero counter ──────────────────────────────────────────── */
.state-immersive .fm-counter { margin-top: 34px; max-width: 520px; }
.state-immersive .fm-counter-n {
    font-family: var(--serif); font-weight: 600; line-height: .9;
    font-size: clamp(56px, 9vw, 104px); color: var(--gold);
}
.state-immersive .fm-counter-n .of { color: #fff; font-size: .42em; letter-spacing: -.01em; }
.state-immersive .fm-counter-lbl {
    margin-top: 12px; font-size: 15px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted-navy);
}

/* Progress rail. Purely a picture of the count above it; no animation, no
   fake urgency. Hidden from assistive tech because the number is already read. */
.state-immersive .fm-rail {
    margin-top: 18px; height: 10px; border-radius: var(--r-pill);
    background: rgba(245, 242, 231, .16); overflow: hidden;
}
.state-immersive .fm-rail-fill { height: 100%; background: var(--gold); border-radius: var(--r-pill); }
.state-immersive .fm-rail-fill--full { background: var(--clay); }

.state-immersive .fm-hero-note {
    margin-top: 22px; font-size: 16px; line-height: 1.55; color: var(--muted-navy); max-width: 34em;
}
.state-immersive .fm-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ── Closed banner ─────────────────────────────────────────── */
.state-immersive .fm-closed {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--clay); color: #fff; font-weight: 800; font-size: 14px;
    padding: 10px 20px; border-radius: var(--r-pill); letter-spacing: .02em;
}

/* ── What a founding business gets ─────────────────────────── */
.state-immersive .fm-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 46px;
}
.state-immersive .fm-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.state-immersive .fm-card-ico {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    font-size: 19px; color: #fff; margin-bottom: 18px;
}
.state-immersive .fm-card-ico--gold { background: var(--gold); color: var(--navy); }
.state-immersive .fm-card-ico--sage { background: var(--sage-700); }
.state-immersive .fm-card-ico--clay { background: var(--clay); }
.state-immersive .fm-card h3 {
    font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--navy); line-height: 1.2;
}
.state-immersive .fm-card p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

.state-immersive .fm-fineprint {
    margin-top: 34px; font-size: 15.5px; line-height: 1.65; color: var(--ink-soft);
    max-width: 62ch; border-left: 3px solid var(--sage); padding-left: 18px;
}

/* ── The roster ────────────────────────────────────────────── */
.state-immersive .fm-list { margin-top: 40px; display: grid; gap: 10px; }
.state-immersive .fm-row {
    display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 18px;
    background: rgba(245, 242, 231, .06); border: 1px solid var(--navy-line);
    border-radius: var(--r-md); padding: 16px 22px;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.state-immersive a.fm-row:hover {
    background: rgba(245, 242, 231, .11); border-color: rgba(244, 180, 0, .45); transform: translateY(-1px);
}
.state-immersive .fm-row-num {
    font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1;
    color: var(--gold); font-variant-numeric: tabular-nums;
}
.state-immersive .fm-row-num .hash { font-size: .5em; color: var(--muted-navy); margin-right: 2px; }
.state-immersive .fm-row-name { font-size: 18px; font-weight: 700; color: #fff; }
.state-immersive .fm-row-loc { font-size: 14.5px; font-weight: 600; color: var(--muted-navy); white-space: nowrap; }

.state-immersive .fm-empty {
    margin-top: 40px; background: rgba(245, 242, 231, .06); border: 1px dashed var(--navy-line);
    border-radius: var(--r-lg); padding: 44px 32px; text-align: center;
}
.state-immersive .fm-empty-n {
    font-family: var(--serif); font-size: clamp(40px, 6vw, 62px); font-weight: 600;
    line-height: 1; color: var(--gold);
}
.state-immersive .fm-empty p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--muted-navy); }

.state-immersive .fm-unlisted {
    margin-top: 22px; font-size: 14.5px; line-height: 1.6; color: var(--muted-navy);
}

/* ── Closing band ──────────────────────────────────────────── */
.state-immersive .fm-final { text-align: center; max-width: 720px; margin-inline: auto; }
.state-immersive .fm-final p { margin-top: 16px; font-size: 18px; line-height: 1.6; }
.state-immersive .fm-final .tv-btn { margin-top: 28px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .state-immersive .fm-cards { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 640px) {
    .state-immersive .fm-row { grid-template-columns: 58px 1fr; row-gap: 4px; padding: 14px 16px; }
    .state-immersive .fm-row-num { font-size: 24px; }
    .state-immersive .fm-row-loc { grid-column: 2; white-space: normal; }
}
