/* ════════════════════════════════════════════════════════════════
   ZION FREE WORLD — L5 dedicated portal
   Hybrid design: deep-space dark shell + cream "masterplan board"
   panels for project detail (matching the architectural boards).
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0d0e10;
  --bg-2: #10141a;
  --rasta-red: #e41e2b;
  --rasta-gold: #fcd116;
  --rasta-green: #078930;
  --nav-h: 78px;
  --panel: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.09);
  --line-gold: rgba(252, 209, 22, 0.28);
  --text: #e8e6e1;
  --text-dim: #9aa0a8;
  --gold: #fcd116;
  --gold-deep: #c8a415;
  --green: #1e9e5a;
  --red: #e41e2b;
  --cyan: #06b6d4;
  --purple: #a855f7;
  --cream: #f2ecdd;
  --cream-2: #e9e1cd;
  --cream-ink: #2a2519;
  --cream-dim: #6b6249;
  --serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius: 18px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
  /* IntroPage signature: rasta radial glows over near-black */
  background:
    radial-gradient(circle at 20% -4%, rgba(228, 30, 43, 0.14), transparent 36rem),
    radial-gradient(circle at 84% 3%, rgba(7, 137, 48, 0.11), transparent 32rem),
    radial-gradient(circle at 50% 42%, rgba(252, 209, 22, 0.05), transparent 48rem),
    radial-gradient(ellipse at bottom, #0e1013 0%, #07080a 100%);
  background-attachment: fixed;
  background-color: var(--bg);
}
/* Subtle diagonal rasta stripes — same overlay as the intro hub */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(228, 30, 43, 0.022) 0px,
    rgba(228, 30, 43, 0.022) 3px,
    rgba(252, 209, 22, 0.018) 3px,
    rgba(252, 209, 22, 0.018) 6px,
    rgba(7, 137, 48, 0.022) 6px,
    rgba(7, 137, 48, 0.022) 9px,
    transparent 9px,
    transparent 160px
  );
  background-size: 160px 160px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 72%, transparent 100%);
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(252, 209, 22, 0.35); }

/* ── Nav — floating rasta pill (same pattern as IntroPage/Amenti) ── */
.fw-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0.75rem 1rem;
  pointer-events: none;
}
.fw-nav > * { pointer-events: auto; }

/* pill shell — dark fill + rasta tricolor border */
.fw-nav-pill {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  border-radius: 9999px;
  background-image:
    linear-gradient(#0a0c14, #0a0c14),
    linear-gradient(90deg, var(--rasta-red), var(--rasta-gold), var(--rasta-green));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 2px solid transparent;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 30px rgba(252,209,22,0.12);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

/* brand — original ZION mark in gold circle + gradient wordmark */
.fw-nav-brand {
  display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0;
  text-decoration: none;
}
.fw-nav-brand:hover { text-decoration: none; }
.fw-nav-logo {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--rasta-gold);
  box-shadow: 0 0 12px rgba(252, 209, 22, 0.4);
  transition: all 0.3s ease;
}
.fw-nav-brand:hover .fw-nav-logo {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(252, 209, 22, 0.6);
  border-color: var(--rasta-green);
}
.fw-nav-brandtext { display: flex; flex-direction: column; line-height: 1.1; }
.fw-nav-brandtext b {
  font-family: var(--sans); font-size: 0.98rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--rasta-red), var(--rasta-gold), var(--rasta-green));
  background-clip: text; -webkit-background-clip: text; color: transparent;
}
.fw-nav-brandtext small {
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(252, 209, 22, 0.85);
}

/* center menu — pill with tricolor underlay + dark inset */
.fw-nav-menu {
  position: relative; display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0.4rem;
  padding: 0.3rem 0.45rem; border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(110deg, rgba(228,30,43,0.85), rgba(252,209,22,0.75), rgba(7,137,48,0.85));
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 22px rgba(252,209,22,0.3);
}
.fw-nav-menu::after {
  content: ''; position: absolute; inset: 2px; border-radius: 9999px;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: inset 0 0 22px rgba(0,0,0,0.55);
}
.fw-nav-menu > * { position: relative; z-index: 1; }

.fw-nav-link {
  display: inline-flex; align-items: center;
  padding: 0.42rem 0.9rem; border-radius: 9999px;
  text-transform: uppercase; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  color: #f7f7f7;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(4, 6, 16, 0.55);
  transition: all 0.25s ease;
}
.fw-nav-link:hover {
  text-decoration: none; color: #0b0c08;
  background: linear-gradient(120deg, rgba(228,30,43,0.75), rgba(252,209,22,0.75), rgba(7,137,48,0.75));
  border-color: rgba(255,255,255,0.65);
  box-shadow: 0 0 14px rgba(228,30,43,0.45), 0 0 22px rgba(252,209,22,0.35), 0 0 14px rgba(7,137,48,0.45);
}
.fw-nav-link.active {
  color: #fff; border-color: var(--rasta-gold);
  background: linear-gradient(120deg, rgba(228,30,43,0.45), rgba(252,209,22,0.45), rgba(7,137,48,0.45));
  box-shadow: 0 0 18px rgba(252,209,22,0.35);
}
.fw-nav-link.fw-nav-cta { border-color: var(--line-gold); color: var(--gold); }

/* right side — lang switch + hamburger */
.fw-nav-right { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.fw-lang { display: flex; gap: 0.4rem; }
.fw-lang button {
  display: inline-flex; align-items: center;
  padding: 0.4rem 0.8rem; border-radius: 9999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(4, 6, 16, 0.65); color: #f7f7f7;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  transition: all 0.25s ease;
}
.fw-lang button:hover {
  background: rgba(252, 209, 22, 0.15); border-color: var(--rasta-gold); color: #fff;
}
.fw-lang button.active {
  color: #0d0d0d; border-color: transparent;
  background: linear-gradient(120deg, var(--rasta-red), var(--rasta-gold), var(--rasta-green));
}

.fw-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 12px;
  background: rgba(255,255,255,0.05);
  transition: all 0.2s ease;
}
.fw-burger:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.fw-burger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: #fff; transition: all 0.3s ease;
}
.fw-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fw-burger.active span:nth-child(2) { opacity: 0; }
.fw-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* slide-in mobile drawer */
.fw-nav-mobile {
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0;
  width: min(320px, 85vw); height: 100vh; height: 100dvh;
  padding: 5.5rem 1.5rem 2rem; gap: 0.5rem;
  background: rgba(4, 8, 18, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 15px 0 45px rgba(0, 0, 0, 0.55);
  z-index: 99;
  transform: translateX(-110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.fw-nav-mobile.open { transform: translateX(0); }
.fw-nav-mobile .fw-nav-link {
  width: 100%; justify-content: flex-start;
  padding: 0.85rem 1rem; border-radius: 14px; font-size: 0.82rem;
}
.fw-nav-mobile .fw-lang { display: none; margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); }

body.fw-menu-open { overflow: hidden; }

@media (max-width: 940px) {
  .fw-nav { padding: 0.5rem 0.75rem; }
  .fw-nav-pill { padding: 0.5rem 0.75rem; border-radius: 22px; }
  .fw-nav-menu, .fw-nav-right > .fw-lang { display: none; }
  .fw-burger { display: flex; }
  .fw-nav-mobile .fw-lang { display: flex; }
  .fw-nav-logo { width: 34px; height: 34px; }
  .fw-nav-brandtext small { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.fw-hero { position: relative; }
/* Banner renders in-flow at its natural 1672×941 aspect — always fully
   visible, never cropped, and the text content lives below it.
   Floated at 90% width with rounded corners + soft shadow. */
.fw-hero-bg {
  position: relative;
  width: 90%; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(252, 209, 22, 0.14);
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.85), 0 0 60px -30px rgba(252, 209, 22, 0.3);
}
.fw-hero-bg img { width: 100%; height: auto; display: block; }
.fw-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  /* gentle melt into page background at the bottom edge only —
     nav no longer overlaps the banner */
  background: linear-gradient(180deg,
    rgba(13,14,16,0) 74%, rgba(13,14,16,0.45) 96%, rgba(13,14,16,0.55) 100%);
}
.fw-hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1.6rem, 3.5vw, 2.6rem) clamp(1rem, 4vw, 2.5rem) clamp(1.6rem, 3vw, 2.4rem);
  /* rasta tricolor hairline closing the hero — intro hub motif */
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg,
    transparent 0%, rgba(228,30,43,0.55) 25%, rgba(252,209,22,0.65) 50%,
    rgba(7,137,48,0.55) 75%, transparent 100%) 1;
}
.fw-hero h1 {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.12;
  letter-spacing: 0.02em; color: #fff;
}
.fw-hero h1 em { color: var(--gold); font-style: normal; }
.fw-hero .fw-tagline {
  margin-top: 1rem; max-width: 620px;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem); color: var(--text-dim);
}
.fw-hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.fw-hero-badges span {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid var(--line-gold); color: var(--gold);
  border-radius: 999px; padding: 0.35rem 0.9rem;
  background: rgba(11, 13, 16, 0.5);
}

/* live fund ticker in hero */
.fw-ticker {
  margin-top: 2.4rem; display: inline-flex; align-items: center; gap: 1rem;
  border: 1px solid rgba(252, 209, 22, 0.22); border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    rgba(13, 14, 16, 0.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 30px -12px rgba(252, 209, 22, 0.3);
  padding: 0.9rem 1.4rem;
}
.fw-ticker .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 12px var(--green);
  animation: pulse 2.2s infinite;
}
.fw-ticker .dot.off { background: var(--red); box-shadow: 0 0 12px var(--red); }
.fw-ticker .lbl { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--text-dim); }
.fw-ticker .val { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); }
.fw-ticker .sub { font-size: 0.7rem; color: var(--text-dim); }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ── Layout ──────────────────────────────────────────────────── */
.fw-section { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 2.5rem); }
.fw-wrap { max-width: var(--maxw); margin: 0 auto; }
.fw-kicker {
  font-size: 0.68rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.9rem;
}
.fw-h2 {
  font-family: var(--serif); font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 500;
  line-height: 1.15;
  /* IntroPage .major headings — rasta tri-color gradient text */
  background-image: linear-gradient(92deg, var(--rasta-red), var(--rasta-gold) 48%, var(--rasta-green));
  background-clip: text; -webkit-background-clip: text; color: transparent;
  display: inline-block;
}
.fw-section[id] { scroll-margin-top: calc(var(--nav-h) + 0.5rem); }
.fw-lead { margin-top: 1rem; max-width: 760px; color: var(--text-dim); font-size: 1.02rem; }

/* ── Community cards ─────────────────────────────────────────── */
.fw-grid { display: grid; gap: 1.4rem; margin-top: 2.6rem; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.fw-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid rgba(252, 209, 22, 0.14); border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    linear-gradient(90deg, rgba(228,30,43,0.05), rgba(252,209,22,0.045), rgba(7,137,48,0.05));
  overflow: hidden; color: var(--text);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.7), 0 0 26px -18px rgba(252, 209, 22, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.fw-card:hover {
  transform: translateY(-4px); text-decoration: none;
  border-color: var(--card-accent, var(--gold));
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.8), 0 0 34px -14px var(--card-accent, var(--gold));
}
.fw-card-img { aspect-ratio: 16/9.5; overflow: hidden; }
.fw-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.fw-card:hover .fw-card-img img { transform: scale(1.05); }
.fw-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.fw-card-body h3 { font-family: var(--serif); font-size: 1.35rem; color: #fff; }
.fw-card-loc { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.fw-card-desc { font-size: 0.9rem; color: var(--text-dim); }
.fw-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 0.6rem; }
.fw-card-tags span {
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.6rem; color: var(--text-dim);
}
.fw-card-more { font-size: 0.78rem; color: var(--card-accent, var(--gold)); margin-top: 0.5rem; letter-spacing: 0.08em; }

/* project external links (e.g. live counterparts like the Amenti Library) */
.fw-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.fw-linkpill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  border: 1px solid var(--gold); border-radius: 999px; padding: 0.4rem 1rem;
  color: var(--gold); text-decoration: none; transition: background 0.2s, color 0.2s;
}
.fw-linkpill:hover { background: rgba(255, 255, 255, 0.06); }

.fw-status {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  background: rgba(11, 13, 16, 0.78); backdrop-filter: blur(6px);
  border: 1px solid var(--sc, var(--gold)); color: var(--sc, var(--gold));
}

/* ── Map ─────────────────────────────────────────────────────── */
.fw-map {
  height: 30rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); margin-top: 2.6rem;
  background: var(--bg-2);
}
.fw-map .leaflet-container { background: var(--bg-2); font: inherit; }
.fw-map-marker { background: transparent; border: none; }
.fw-dot {
  display: block; width: 18px; height: 18px; border-radius: 50%;
  background: var(--dot, var(--gold)); border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot, var(--gold)) 25%, transparent), 0 0 18px var(--dot, var(--gold));
  animation: fwdot 2.4s ease-in-out infinite;
}
@keyframes fwdot {
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--dot, var(--gold)) 12%, transparent), 0 0 26px var(--dot, var(--gold)); }
}
.leaflet-popup-content-wrapper {
  background: rgba(13, 13, 13, 0.96) !important; color: var(--text) !important;
  border: 1px solid var(--line-gold); border-radius: 12px !important;
}
.leaflet-popup-tip { background: rgba(13,13,13,0.96) !important; }
.fw-popup { display: flex; flex-direction: column; gap: 3px; min-width: 170px; font-family: var(--sans); }
.fw-popup strong { font-size: 0.95rem; }
.fw-popup a { font-size: 0.78rem; }
.fw-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 0.9rem; font-size: 0.72rem; color: var(--text-dim); }
.fw-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.fw-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ── Live registry / stats ───────────────────────────────────── */
.fw-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 2.4rem; }
.fw-stat {
  border: 1px solid rgba(252, 209, 22, 0.12); border-radius: var(--radius); padding: 1.2rem 1.4rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
    linear-gradient(90deg, rgba(228,30,43,0.04), rgba(252,209,22,0.035), rgba(7,137,48,0.04));
}
.fw-stat .lbl { font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim); }
.fw-stat .val { font-family: var(--serif); font-size: 1.7rem; color: var(--gold); margin-top: 0.3rem; }
.fw-stat .val small { font-size: 0.85rem; color: var(--text-dim); font-family: var(--sans); }

.fw-table { width: 100%; border-collapse: collapse; margin-top: 1.8rem; font-size: 0.88rem; }
.fw-table th {
  text-align: left; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 600; padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line-gold);
}
.fw-table td { padding: 0.85rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.fw-table tr:hover td { background: rgba(255,255,255,0.02); }
.fw-badge {
  display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.18rem 0.6rem; color: var(--text-dim);
}
.fw-badge.approved, .fw-badge.active, .fw-badge.open { color: var(--green); border-color: rgba(30,158,90,0.5); }
.fw-badge.planning, .fw-badge.under_review, .fw-badge.tallying { color: var(--cyan); border-color: rgba(6,182,212,0.5); }
.fw-badge.pending, .fw-badge.draft { color: var(--text-dim); }
.fw-badge.development { color: var(--gold); border-color: rgba(252,209,22,0.5); }
.fw-badge.preparation { color: var(--cyan); border-color: rgba(6,182,212,0.5); }
.fw-badge.vision { color: var(--purple); border-color: rgba(168,85,247,0.5); }
.fw-badge.built { color: #f5e7b8; border-color: rgba(252,209,22,0.6); }

/* ── QV ──────────────────────────────────────────────────────── */
.fw-qv-round {
  border: 1px solid rgba(252, 209, 22, 0.22); border-radius: var(--radius);
  padding: 1.6rem; margin-top: 2.2rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    linear-gradient(90deg, rgba(228,30,43,0.05), rgba(252,209,22,0.05), rgba(7,137,48,0.05));
  box-shadow: 0 0 34px -16px rgba(252, 209, 22, 0.3);
}
.fw-qv-grants { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.2rem; }
.fw-qv-grant {
  display: flex; align-items: center; gap: 1rem;
  border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 1rem;
}
.fw-qv-grant .name { flex: 1; font-size: 0.92rem; }
.fw-qv-grant .name small { display: block; color: var(--text-dim); font-size: 0.72rem; }
.fw-qv-stepper { display: flex; align-items: center; gap: 0.55rem; }
.fw-qv-stepper button {
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: var(--text);
  font-size: 1rem; line-height: 1;
}
.fw-qv-stepper button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.fw-qv-stepper button:disabled { opacity: 0.3; cursor: default; }
.fw-qv-stepper .v { width: 26px; text-align: center; font-weight: 700; color: var(--gold); font-family: var(--serif); }
.fw-qv-cost { width: 70px; text-align: right; font-size: 0.7rem; color: var(--text-dim); }
.fw-meter { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; margin-top: 1.1rem; }
.fw-meter > div { height: 100%; background: linear-gradient(90deg, var(--gold), var(--green)); transition: width 0.25s; }
.fw-qv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.2rem; }
.fw-qv-msg { font-size: 0.85rem; }
.fw-qv-msg.ok { color: var(--green); }
.fw-qv-msg.err { color: var(--red); }

/* ── Buttons ─────────────────────────────────────────────────── */
.fw-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 999px; padding: 0.8rem 1.6rem; cursor: pointer; border: 0;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.fw-btn:hover { text-decoration: none; transform: translateY(-1px); }
.fw-btn-gold { background: linear-gradient(120deg, var(--gold), var(--gold-deep)); color: #1a1503; box-shadow: 0 8px 30px -10px rgba(252,209,22,0.55); }
.fw-btn-ghost { background: transparent; border: 1px solid var(--line-gold); color: var(--gold); }
.fw-btn-ghost:hover { background: rgba(252,209,22,0.1); }
.fw-btn:disabled { opacity: 0.4; transform: none; cursor: default; }

/* ── Cream board panels (project detail) ─────────────────────── */
.fw-board {
  background: linear-gradient(160deg, var(--cream), var(--cream-2));
  color: var(--cream-ink); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: 0 24px 70px -30px rgba(0,0,0,0.85), inset 0 0 0 1px rgba(42,37,25,0.12);
}
.fw-board h1, .fw-board h2, .fw-board h3 { font-family: var(--serif); color: var(--cream-ink); }
.fw-board a { color: #8a6d1a; }

/* rendered documentation */
.fw-doc h2 {
  font-family: var(--serif); font-size: 1.55rem; margin: 2.2rem 0 0.8rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid rgba(42,37,25,0.18);
}
.fw-doc h3 { font-size: 1.15rem; margin: 1.6rem 0 0.6rem; }
.fw-doc p { margin: 0.7rem 0; font-size: 0.95rem; color: #3d372a; }
.fw-doc ul { margin: 0.7rem 0 0.7rem 1.3rem; font-size: 0.95rem; color: #3d372a; }
.fw-doc li { margin: 0.35rem 0; }
.fw-doc strong { color: var(--cream-ink); }
.fw-doc blockquote {
  border-left: 3px solid var(--gold-deep); margin: 1rem 0; padding: 0.4rem 1.1rem;
  font-style: italic; color: var(--cream-dim);
}
.fw-doc table {
  width: 100%; border-collapse: collapse; margin: 1.1rem 0; font-size: 0.85rem;
  background: rgba(255,255,255,0.35); border-radius: 10px; overflow: hidden;
}
.fw-doc th {
  text-align: left; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(42,37,25,0.08); padding: 0.55rem 0.8rem; color: var(--cream-dim);
}
.fw-doc td { padding: 0.6rem 0.8rem; border-top: 1px solid rgba(42,37,25,0.1); }
.fw-doc hr { border: 0; border-top: 1px solid rgba(42,37,25,0.16); margin: 2rem 0; }
.fw-doc em { color: var(--cream-dim); }

/* ── Project page ────────────────────────────────────────────── */
.fw-proj-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; }
.fw-proj-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fw-proj-hero::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(11,13,16,0.35), rgba(11,13,16,0.92)); }
.fw-proj-hero .in { position: relative; z-index: 2; max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 6.5rem clamp(1rem,4vw,2.5rem) 3rem; }
.fw-proj-hero h1 { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4.4rem); color: #fff; font-weight: 500; }
.fw-proj-hero .sub { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: clamp(1rem, 2vw, 1.3rem); margin-top: 0.4rem; }
.fw-proj-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.4rem; font-size: 0.78rem; color: #cfd4d9; }
.fw-proj-meta b { display: block; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; margin-bottom: 0.2rem; }

.fw-boardimg { margin-top: 2rem; border-radius: 12px; overflow: hidden; border: 1px solid rgba(42,37,25,0.2); }
.fw-boardimg img { width: 100%; cursor: zoom-in; }
.fw-lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(5,6,8,0.94); padding: 3vmin; cursor: zoom-out;
}
.fw-lightbox.open { display: flex; align-items: center; justify-content: center; }
.fw-lightbox img { max-width: 96vw; max-height: 94vh; border-radius: 8px; }

.fw-prevnext { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; }
.fw-prevnext a {
  flex: 1; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.4rem;
  font-size: 0.85rem; color: var(--text-dim);
}
.fw-prevnext a:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.fw-prevnext .r { text-align: right; }
.fw-prevnext b { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--text); }

/* ── Footer ──────────────────────────────────────────────────── */
.fw-footer {
  padding: 0 clamp(1rem,4vw,2.5rem) 4rem;
  margin-top: 2rem;
}
/* tricolor hairline across the footer — intro hub signature */
.fw-footer::before {
  content: ''; display: block; height: 1px; margin: 0 auto 3rem;
  max-width: var(--maxw);
  background: linear-gradient(90deg,
    transparent 0%, rgba(228,30,43,0.55) 25%, rgba(252,209,22,0.7) 50%,
    rgba(7,137,48,0.55) 75%, transparent 100%);
}
.fw-footer .cols { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; }
.fw-footer .brand { font-family: var(--serif); letter-spacing: 0.24em; color: var(--gold); text-transform: uppercase; }
.fw-footer-glyph { width: 160px; height: auto; margin-bottom: 0.9rem; opacity: 0.92; }
.fw-footer nav { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.82rem; }
.fw-footer nav span { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.3rem; }
.fw-footer nav a { color: var(--text-dim); }
.fw-footer nav a:hover { color: var(--gold); }
.fw-footer .note { max-width: var(--maxw); margin: 2.4rem auto 0; font-size: 0.72rem; color: #555c64; }

/* ── Docs ────────────────────────────────────────────────────── */
.fw-docgroup { margin-top: 2.6rem; }
.fw-docgroup h3 {
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; font-family: var(--sans);
  padding-bottom: 0.7rem; border-bottom: 1px solid var(--line-gold);
  margin-bottom: 0.4rem;
}
.fw-docrow {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.95rem 0.4rem; border-bottom: 1px solid var(--line);
  color: var(--text); transition: background 0.15s ease, padding-left 0.2s ease;
}
.fw-docrow:hover { text-decoration: none; background: rgba(255,255,255,0.025); padding-left: 0.8rem; }
.fw-docrow strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; color: #fff; display: block; }
.fw-docrow span:not(.arr) { font-size: 0.8rem; color: var(--text-dim); display: block; margin-top: 0.15rem; }
.fw-docrow .arr { margin-left: auto; color: var(--gold); font-size: 1.1rem; flex-shrink: 0; }

/* ── Reveal animation ────────────────────────────────────────── */
.fw-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fw-reveal.in { opacity: 1; transform: none; }

/* ── Tables ──────────────────────────────────────────────────── */
.fw-tablewrap { overflow-x: auto; margin-top: 1.8rem; }
.fw-tablewrap .fw-table { margin-top: 0; min-width: 560px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .fw-docrow span:not(.arr) { display: none; }
  .fw-proj-meta { gap: 1rem; }
}

@media (max-width: 760px) {
  .fw-section { padding-left: 1rem; padding-right: 1rem; }

  /* hero: text sits below the full banner on every viewport */
  .fw-hero-inner { padding: 1rem 1rem 1.2rem; }
  .fw-hero h1 { font-size: 1.55rem; }
  .fw-hero .fw-tagline { font-size: 0.9rem; }
  .fw-hero-badges { margin-top: 1rem; }
  .fw-ticker { margin-top: 1.4rem; padding: 0.65rem 1rem; }
  .fw-ticker .val { font-size: 1.15rem; }

  .fw-map { height: 21rem; }

  .fw-proj-hero { min-height: 52vh; }
  .fw-proj-meta { flex-direction: column; gap: 0.9rem; align-items: flex-start; }

  .fw-qv-grant { flex-wrap: wrap; }
  .fw-qv-cost { width: auto; }

  .fw-prevnext { flex-direction: column; }
  .fw-prevnext .r { text-align: left; }

  .fw-board { padding: 1.2rem; }
  .fw-doc table { display: block; overflow-x: auto; white-space: nowrap; }

  .fw-footer .cols { flex-direction: column; gap: 1.6rem; }
  .fw-footer-glyph { width: 120px; }
}

@media (max-width: 420px) {
  .fw-hero h1 { font-size: 1.3rem; }
  .fw-hero-badges span { font-size: 0.58rem; padding: 0.28rem 0.7rem; }
  .fw-stat .val { font-size: 1.35rem; }
}

/* utility */
.fw-center { text-align: center; }
.fw-muted { color: var(--text-dim); }
.fw-hidden { display: none !important; }
