/* FutureBright Inc. — site stylesheet */
:root {
  --red: #a82434;
  --red-dark: #8b1e2b;
  --blue: #2b4c9b;
  --ink: #1f2430;
  --muted: #5c6270;
  --bg: #ffffff;
  --bg-soft: #f7f5f2;
  --line: #e6e2dc;
  --radius: 14px;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.25; font-weight: 600; }
h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; margin-right: auto; }
.brand img { height: 44px; width: auto; }
.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; font-size: 1.6rem; padding: 4px 10px; }
nav.menu { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
nav.menu a { color: var(--ink); text-decoration: none; font-size: .95rem; }
nav.menu a:hover { color: var(--red); }
.dropdown { position: relative; }
.dropdown > span { cursor: default; font-size: .95rem; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08); padding: 8px 0;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 16px; }
.btn {
  display: inline-block; background: var(--red); color: #fff !important;
  padding: 9px 20px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; border: none; cursor: pointer;
}
.btn:hover { background: var(--red-dark); }
.btn.ghost { background: transparent; color: var(--red) !important; border: 2px solid var(--red); }
.btn.ghost:hover { background: var(--red); color: #fff !important; }

/* Announcement bar */
.announce { background: var(--red); color: #fff; text-align: center; font-size: .95rem; }
.announce .wrap { padding: 10px 20px; }
.announce a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Map embed */
.mapframe { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.mapframe iframe { width: 100%; height: 340px; border: 0; display: block; }
.mapcap { font-size: .85rem; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); }
.mapcap a { text-decoration: none; }

/* Map hero (project banner featuring a location map) */
.maphero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 40px 0; }
.maphero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.maphero-text .badges { justify-content: flex-start; }
.maphero-text .badge-chip { background: #fff; border: 1px solid var(--line); color: var(--ink); }
@media (max-width: 760px) { .maphero-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Gradient hero (for upcoming projects without photos yet) */
.hero.upcoming .inner { padding: 84px 20px; }
.hero.grad { background: linear-gradient(135deg, #a82434 0%, #6f2233 55%, #2b4c9b 140%); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.badge-chip { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; }

/* Spotlight (home featured mission) */
.spotlight { background: linear-gradient(135deg, #fbeef0 0%, #eef1fb 100%); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.spotlight .flag { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--red); font-weight: 700; }
.spotlight h2 { margin: 8px 0 12px; }
.spotlight p { margin: 0 0 16px; color: var(--ink); }
.spotlight .facts { display: flex; flex-direction: column; gap: 12px; }
.spotlight .fact { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.spotlight .fact .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.spotlight .fact .v { font-weight: 600; }
@media (max-width: 760px) { .spotlight { grid-template-columns: 1fr; padding: 22px; } }

/* Editorial hero (Collage C) */
.hero-editorial { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 52px 0 48px; }
.hero-editorial h1 { max-width: 900px; margin: 6px 0 14px; }
.hero-editorial .lede { max-width: 720px; color: var(--muted); font-size: 1.1rem; margin: 0 0 20px; }
.hero-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.hero-row figure { margin: 0; }
.hero-row img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); }
.hero-row figcaption { margin-top: 10px; font-size: .92rem; color: var(--ink); font-weight: 500; }
@media (max-width: 760px) {
  .hero-row { grid-template-columns: 1fr; gap: 20px; }
  .hero-row img { height: 220px; }
}

/* Hero */
.hero { position: relative; color: #fff; text-align: center; }
.hero .bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; }
.hero .shade { position: absolute; inset: 0; background: rgba(20,16,24,.45); }
.hero .inner { position: relative; padding: 110px 20px; max-width: 800px; margin: 0 auto; }
.hero h1 { text-shadow: 0 2px 12px rgba(0,0,0,.4); margin: 0 0 14px; }
.hero p { font-size: 1.1rem; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 48px 0 40px; }
.page-hero p.lede { color: var(--muted); max-width: 720px; }

/* Sections */
section.block { padding: 56px 0; }
section.alt { background: var(--bg-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--red); font-weight: 600; margin-bottom: 6px; }

/* Impact stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 28px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat .num { font-size: 2rem; font-weight: 700; color: var(--red); }
.stat .lbl { color: var(--muted); font-size: .92rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { height: 190px; object-fit: cover; width: 100%; }
.card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { margin: 0; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.card a.more { font-weight: 600; text-decoration: none; color: var(--red); }

/* Three-pane story */
.story { display: flex; flex-direction: column; gap: 40px; margin-top: 32px; }
.pane { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.pane img { width: 100%; height: 340px; object-fit: cover; border-radius: var(--radius); }
.pane .text h3 { margin: 6px 0 10px; font-size: 1.35rem; }
.pane .text p { margin: 0 0 14px; color: var(--muted); }
.pane .step { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--red); font-weight: 600; }
.pane .more { font-weight: 600; text-decoration: none; color: var(--red); }
.pane:nth-child(even) .media { order: 2; }
@media (max-width: 760px) {
  .pane { grid-template-columns: 1fr; gap: 16px; }
  .pane:nth-child(even) .media { order: 0; }
  .pane img { height: 240px; }
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.gallery img.tall { object-position: top; }

/* Document/paper images shown large and legible (one per row) */
.docstack { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; max-width: 860px; }
.docstack figure { margin: 0; }
.docstack img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.docstack figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; text-align: center; }
.docstack figcaption a { text-decoration: none; }

/* Progress timeline */
.timeline { list-style: none; margin: 18px 0 8px; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 22px 34px; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--muted); }
.timeline li.done::before { background: var(--red); border-color: var(--red); }
.timeline li.current::before { background: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(168,36,52,.15); }
.timeline .when { font-weight: 600; font-size: .95rem; }
.timeline .what { color: var(--muted); font-size: .95rem; }
.timeline li.upcoming .when { color: var(--muted); }

/* Research paper cards */
.papers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 22px; }
.paper { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.paper .tag { display: inline-block; align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; }
.paper h3 { margin: 0; font-size: 1.12rem; }
.paper .byline { color: var(--muted); font-size: .88rem; margin: 0; }
.paper p { margin: 0; color: var(--ink); font-size: .95rem; }
.paper a.more { font-weight: 600; text-decoration: none; color: var(--red); margin-top: auto; }

/* Quote */
.quote { text-align: center; max-width: 760px; margin: 0 auto; }
.quote blockquote { font-size: 1.25rem; font-weight: 500; margin: 0 0 10px; }
.quote cite { color: var(--muted); font-style: normal; }

/* Lists & prose */
.prose { max-width: 760px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.notice { background: #fdf6ec; border: 1px solid #f0dfc0; border-radius: 10px; padding: 14px 18px; font-size: .95rem; }

/* Budget table */
table.budget { border-collapse: collapse; width: 100%; max-width: 560px; margin-top: 12px; }
table.budget td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
table.budget td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
table.budget tr.total td { font-weight: 700; border-top: 2px solid var(--ink); }

/* Forms */
form.contact { display: grid; gap: 14px; max-width: 560px; }
form.contact input, form.contact textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; width: 100%;
}
form.contact textarea { min-height: 140px; resize: vertical; }

/* Footer */
footer.site { background: #211d24; color: #cfc9d4; margin-top: 40px; }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding: 44px 0 30px; }
footer.site h4 { color: #fff; margin: 0 0 10px; font-size: .95rem; }
footer.site a { color: #cfc9d4; text-decoration: none; display: block; margin-bottom: 6px; font-size: .92rem; }
footer.site a:hover { color: #fff; }
footer.site .fine { border-top: 1px solid #3a3440; padding: 16px 0; font-size: .82rem; color: #9a93a5; }

/* Responsive nav */
@media (max-width: 860px) {
  .nav-burger { display: block; }
  nav.menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 14px 20px; gap: 12px;
  }
  .nav-toggle:checked ~ nav.menu { display: flex; }
  .dropdown-menu { display: block; position: static; border: none; box-shadow: none; padding: 0 0 0 14px; }
  .dropdown > span { font-weight: 600; }
  .hero .inner { padding: 70px 20px; }
}

/* Reach map legend */
.reach-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 22px; margin-top: 20px; }
.reach-legend > div { font-size: .95rem; color: var(--ink); line-height: 1.5; }
.reach-legend .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--red); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); margin-right: 8px; vertical-align: middle; }
.leaflet-popup-content { font-family: inherit; font-size: .9rem; line-height: 1.45; }
.leaflet-container { font-family: inherit; }

/* Homepage impact grid: balanced 3x2 (avoids orphaned 4+2 row) */
.stats.wide6 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Video grid */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 22px; }
.videos video { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #000; display: block; }

/* Promo row: event ads + collage */
.promo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; align-items: start; }
.promo-row figure { margin: 0; }
.promo-row img { width: 100%; height: 260px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.promo-row figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); text-align: center; }
@media (max-width: 760px) { .promo-row { grid-template-columns: 1fr; } }

/* Pre/post survey dumbbell chart */
.chart { max-width: 860px; margin: 26px 0 10px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.chart-legend .key { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend .swatch { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.swatch.pre { background: #b9bec9; }
.swatch.post { background: var(--red); }
.db-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.db-row:last-child { border-bottom: 0; }
.db-q { font-size: .98rem; font-weight: 600; margin-bottom: 12px; }
.db-goal { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.db-goal.myth { background: #fdecef; color: #8b1e2b; border: 1px solid #f3ccd4; }
.db-goal.fact { background: #eaf5ef; color: #1f7a4d; border: 1px solid #cfe8da; }
.db-track { position: relative; height: 22px; }
.db-track::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; background: var(--bg-soft); border-radius: 2px; }
.db-bar { position: absolute; top: 9px; height: 4px; border-radius: 2px; background: #e9c3ca; }
.db-dot { position: absolute; top: 3px; width: 16px; height: 16px; border-radius: 50%; margin-left: -8px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.db-dot.pre { background: #b9bec9; }
.db-dot.post { background: var(--red); z-index: 2; }
.db-meta { margin-top: 10px; font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.db-delta { font-weight: 700; }
.db-delta.good { color: #1f7a4d; }
.db-delta.bad { color: var(--red); }
.db-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }
.callout { border-left: 4px solid var(--red); background: var(--bg-soft); padding: 18px 22px; border-radius: 0 10px 10px 0; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }

/* Diverging "toward the right answer" chart */
.dv-chart { max-width: 820px; margin: 26px 0 6px; }
.dv-axis { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 600; margin-bottom: 10px; }
.dv-axis .worse { color: var(--red); } .dv-axis .better { color: #1f7a4d; } .dv-axis .zero { color: var(--muted); font-weight: 500; }
.dv-row { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.dv-row:last-child { border-bottom: 0; }
.dv-label { font-size: .95rem; font-weight: 600; line-height: 1.3; }
.dv-label .sub { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: 3px; }
.dv-track { position: relative; height: 28px; }
.dv-track::before { content: ""; position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; background: #d8d3cc; }
.dv-bar { position: absolute; top: 5px; height: 18px; border-radius: 5px; }
.dv-bar.better { background: #1f7a4d; }
.dv-bar.worse { background: var(--red); }
.dv-val { position: absolute; top: 6px; font-size: .85rem; font-weight: 700; }
@media (max-width: 640px){ .dv-row { grid-template-columns: 1fr; gap: 8px; } .dv-track { height: 26px; } }

/* value inside the green (better) bars */
.dv-bar.better { display: flex; align-items: center; justify-content: flex-end; }
.dv-in { color: #fff; font-size: .8rem; font-weight: 700; padding-right: 8px; }
.dv-axis { justify-content: space-between; }

/* Two-line project nav items (name + location) */
.dropdown-menu { min-width: 248px; }
.dropdown-menu a .np-name { display: block; line-height: 1.25; }
.dropdown-menu a .np-loc { display: block; font-size: .76rem; color: var(--muted); margin-top: 1px; }
.dropdown-menu a:hover .np-name { color: var(--red); }

/* Project hero location pin */
.page-hero .hero-loc { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .92rem; font-weight: 500; margin: 12px 0 0; }

/* Reach map permanent location labels */
.leaflet-tooltip.reach-tip { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.12); font-family: inherit; font-size: .78rem; font-weight: 600; padding: 3px 8px; }
.leaflet-tooltip.reach-tip::before { display: none; }

/* Founder role list */
.role-list { list-style: none; padding: 0; margin: 16px 0; }
.role-list li { position: relative; padding-left: 26px; margin-bottom: 13px; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.role-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.role-list li strong { color: var(--ink); }

/* Founder (Nathan) paired shots — full-width, equal height, aligned */
.founder-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.founder-shots figure { margin: 0; }
.founder-shots img { width: 100%; height: 440px; object-fit: cover; object-position: center 20%; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.founder-shots figcaption { margin-top: 9px; font-size: .88rem; color: var(--muted); text-align: center; }
@media (max-width: 700px) { .founder-shots { grid-template-columns: 1fr; } .founder-shots img { height: 340px; } }

/* Partner endorsement quote */
blockquote.endorse { margin: 22px 0 0; padding: 22px 26px; background: var(--bg-soft); border-left: 4px solid var(--red); border-radius: 0 12px 12px 0; }
blockquote.endorse p { font-size: 1.12rem; font-weight: 500; color: var(--ink); margin: 0 0 14px; line-height: 1.5; }
blockquote.endorse cite { display: block; font-style: normal; font-weight: 600; color: var(--muted); font-size: .9rem; margin-top: 4px; }


/* Founder shots: 3-up variant (triage + two speaking) */
.founder-shots.three { grid-template-columns: repeat(3, 1fr); }
.founder-shots.three img { height: 340px; }
@media (max-width: 760px) { .founder-shots.three { grid-template-columns: 1fr; } .founder-shots.three img { height: 300px; } }
