/* ============ Cornerstone Impact Ventures ============ */
:root {
  --bg: #0d0d0f;
  --bg-2: #101014;
  --panel: #14141a;
  --panel-2: #17171f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f6f7fa;
  --muted: #9a9db0;
  --muted-2: #71748a;
  --blue: #0344ff;
  --violet: #6247ff;
  --magenta: #be5aff;
  --grad: linear-gradient(100deg, #0344ff 0%, #6247ff 50%, #be5aff 100%);
  --radius: 18px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: "Poppins", "Poppins", sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.muted { color: var(--muted); }

/* ---------- Ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb-1 { width: 560px; height: 560px; top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(98,71,255,0.55), transparent 70%); }
.orb-2 { width: 520px; height: 520px; bottom: -160px; left: -140px;
  background: radial-gradient(circle, rgba(3,68,255,0.42), transparent 70%); }
.grid-glow {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { background: rgba(7,7,12,0.72); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; }
.brand-logo { width: 245px; height: auto; filter: drop-shadow(0 4px 14px rgba(3,68,255,0.28)); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform 0.2s var(--ease), box-shadow 0.3s, background 0.3s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 26px rgba(98,71,255,0.36); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(98,71,255,0.5); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 84px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding: 7px 14px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: rgba(255,255,255,0.03); margin-bottom: 26px;
}
.hero-title { font-size: clamp(44px, 7vw, 86px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 24px; }
.hero-lede { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 620px; margin: 0 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; }
.hstat strong { font-family: "Poppins"; font-size: 30px; font-weight: 700; }
.hstat span { font-size: 14px; color: var(--muted-2); }

/* Orbital motif */
.orbital { position: absolute; top: 50%; right: -160px; transform: translateY(-50%); width: 720px; height: 720px; z-index: 1; opacity: 0.9; }
.ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgba(98,71,255,0.18); }
.ring-1 { width: 720px; height: 720px; }
.ring-2 { width: 540px; height: 540px; border-color: rgba(3,68,255,0.22); }
.ring-3 { width: 360px; height: 360px; border-color: rgba(190,90,255,0.26); }
.node { position: absolute; border-radius: 7px; background: var(--grad); box-shadow: 0 0 24px rgba(98,71,255,0.7); }
.node-a { width: 18px; height: 18px; top: 8%; left: 46%; animation: float 7s var(--ease) infinite; }
.node-b { width: 12px; height: 12px; top: 40%; left: 8%; animation: float 9s var(--ease) infinite 1s; }
.node-c { width: 14px; height: 14px; bottom: 14%; right: 20%; animation: float 8s var(--ease) infinite 0.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ---------- Sections ---------- */
.section { padding: 92px 0; position: relative; }
.section-title { font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-lede { color: var(--muted); font-size: 18px; margin: 0; }
.kicker { text-transform: uppercase; letter-spacing: 0.18em; font-size: 12.5px; font-weight: 600; color: var(--violet); margin: 0 0 14px; }
.kicker.light { color: var(--magenta); }

/* ---------- Nation-building image system ---------- */
.nation-visual { position: relative; isolation: isolate; overflow: hidden; }
.nation-visual::before,
.nation-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.nation-visual::before {
  z-index: 0; background-image: var(--nation-image); background-size: cover;
  background-position: var(--nation-position, center); opacity: var(--nation-opacity, 0.28);
  transform: scale(1.01);
}
.nation-visual::after { z-index: 1; background: var(--nation-overlay); }
.nation-visual > .container { position: relative; z-index: 2; }
.nation-hero {
  --nation-image: url("/.netlify/images?url=/assets/nation/connected-city.jpg&w=1672&q=82");
  --nation-position: center 68%; --nation-opacity: 0.72;
  --nation-overlay:
    linear-gradient(90deg, rgba(7,7,13,0.97) 0%, rgba(7,7,13,0.9) 42%, rgba(7,7,13,0.24) 78%, rgba(7,7,13,0.42) 100%),
    linear-gradient(180deg, rgba(7,7,13,0.24), rgba(7,7,13,0.88) 100%);
}
.nation-hero .orbital { opacity: 0.38; }
.nation-masters {
  --nation-image: url("/.netlify/images?url=/assets/nation/civic-momentum.jpg&w=1672&q=80");
  --nation-position: center top; --nation-opacity: 0.24;
  --nation-overlay: linear-gradient(180deg, rgba(13,13,15,0.82), rgba(13,13,15,0.97) 76%);
}
.nation-masters .card { background: linear-gradient(180deg, rgba(20,20,26,0.9), rgba(16,16,20,0.94)); backdrop-filter: blur(4px); }
.nation-arc {
  --nation-image: url("/.netlify/images?url=/assets/nation/nation-arc.jpg&w=1672&q=82");
  --nation-position: center 62%; --nation-opacity: 0.38;
  --nation-overlay:
    linear-gradient(90deg, rgba(16,16,20,0.94), rgba(16,16,20,0.68) 58%, rgba(16,16,20,0.84)),
    linear-gradient(180deg, rgba(16,16,20,0.48), rgba(13,13,15,0.94));
}
.nation-arc .bstep { background: rgba(13,13,21,0.82); backdrop-filter: blur(5px); }
.nation-cases {
  --nation-image: url("/.netlify/images?url=/assets/nation/rising-city.jpg&w=1672&q=80");
  --nation-position: center 32%; --nation-opacity: 0.26;
  --nation-overlay: linear-gradient(180deg, rgba(13,13,15,0.82), rgba(13,13,15,0.96) 54%, rgba(13,13,15,1));
}
.country-cta { isolation: isolate; }
.country-cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("/.netlify/images?url=/assets/nation/civic-blueprint.jpg&w=1200&q=82") center 62% / cover no-repeat;
  opacity: 0.52; transform: scale(1.02);
}
.country-cta::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(90% 130% at 50% 0%, rgba(98,71,255,0.16), transparent 58%), rgba(7,7,15,0.78);
}
.country-cta > * { position: relative; z-index: 2; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.about-body p { margin: 0 0 18px; font-size: 19px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 18px 40px rgba(0,0,0,0.4); }
.card-num { font-family: "Poppins"; font-size: 13px; font-weight: 700; color: var(--violet); letter-spacing: 0.1em; }
.card h3 { font-size: 19px; margin: 16px 0 10px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* Impact band */
.impact-band {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(98,71,255,0.14), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-block: 1px solid var(--line);
}
.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.impact-stats { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 24px; padding: 34px; }
.bigstat { display: flex; align-items: baseline; gap: 18px; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.bigstat strong { font-family: "Poppins"; font-size: 76px; font-weight: 800; line-height: 1; }
.bigstat span { color: var(--muted); font-size: 16px; }
.impact-rows { display: flex; flex-direction: column; gap: 14px; }
.irow { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: var(--muted); }
.irow b { font-family: "Poppins"; color: var(--text); font-size: 18px; }

/* Portfolio */
.portfolio { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile {
  position: relative; overflow: hidden; padding: 30px 26px 26px;
  min-height: 240px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--bg-2));
  display: flex; flex-direction: column; transition: transform 0.3s var(--ease), border-color 0.3s;
}
.tile:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.tile-glow { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(80% 60% at 50% 0%, rgba(98,71,255,0.28), transparent 70%); }
.tile:hover .tile-glow { opacity: 1; }
.tile h3 { position: relative; font-size: 20px; margin: 0 0 10px; }
.tile p { position: relative; color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.tile-tag { position: relative; align-self: flex-start; margin-top: 18px; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--magenta);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; }

/* Values */
.values { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.value-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.value { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; transition: transform 0.3s var(--ease), border-color 0.3s; }
.value:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.value-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(98,71,255,0.12); color: var(--magenta); margin-bottom: 18px; }
.value-icon svg { width: 24px; height: 24px; }
.value h3 { font-size: 16px; margin: 0 0 8px; }
.value p { color: var(--muted); font-size: 14px; margin: 0; }

/* Founders CTA */
.founders-card {
  position: relative; overflow: hidden; text-align: center; padding: 72px 40px;
  border-radius: 28px; border: 1px solid var(--line-strong);
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(98,71,255,0.28), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--bg-2));
}
.founders-card .section-title { margin-inline: auto; }
.founders-card .section-lede { max-width: 560px; margin: 0 auto 30px; }

/* Connect */
.connect { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.connect-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.connect-meta { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 18px; }
.connect-meta li { display: flex; flex-direction: column; font-size: 17px; border-top: 1px solid var(--line); padding-top: 16px; }
.connect-meta span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); margin-bottom: 4px; }
.connect-form { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.connect-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.connect-form input, .connect-form textarea {
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 13px 15px; color: var(--text); font-family: inherit; font-size: 15px; transition: border-color 0.2s;
}
.connect-form input:focus, .connect-form textarea:focus { outline: none; border-color: var(--violet); }
.connect-form .btn { margin-top: 4px; }
.form-note { font-size: 13px; color: var(--muted-2); margin: 0; text-align: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 44px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px 40px; align-items: center; }
.footer-tag { color: var(--muted); margin: 14px 0 0; }
.footer-links { display: flex; gap: 26px; justify-content: flex-end; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 15px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-legal { grid-column: 1 / -1; color: var(--muted-2); font-size: 13.5px; margin: 26px 0 0; border-top: 1px solid var(--line); padding-top: 22px; }

/* ---------- Blueprint (8-stage process) ---------- */
.blueprint { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; counter-reset: bstep; }
.bstep {
  display: flex; gap: 18px; align-items: flex-start;
  background: rgba(255,255,255,0.02); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 24px 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.bstep:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.bstep-num {
  font-family: "Poppins"; font-weight: 800; font-size: 15px; flex: none;
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(98,71,255,0.35);
}
.bstep h3 { font-size: 18px; margin: 2px 0 8px; }
.bstep p { color: var(--muted); font-size: 15px; margin: 0; }
.gap-cards { margin-top: 52px; }
.portfolio.three { grid-template-columns: repeat(3, 1fr); }
.inline-link { color: var(--magenta); }
.inline-link:hover { text-decoration: underline; }

/* ---------- Cornerstone Theory / belief ---------- */
.belief { padding: 84px 0 76px; }
.belief-quote { margin: 0 auto; max-width: 900px; text-align: center; }
.belief-quote p {
  font-family: "Poppins"; font-size: clamp(30px, 4.6vw, 54px); font-weight: 800;
  line-height: 1.12; letter-spacing: -0.02em; margin: 0;
}
.theory-body { max-width: 720px; margin: 34px auto 0; text-align: center; }
.theory-body p { color: var(--muted); font-size: 18px; margin: 0 0 16px; }

/* ---------- Five rights / BRICKS row / 5P chips ---------- */
.five-rights { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -18px 0 44px; }
.five-rights span {
  font-family: "Poppins"; font-size: 13.5px; font-weight: 600; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px;
  background: rgba(255,255,255,0.03); position: relative;
}
.five-rights span:not(:last-child)::after {
  content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  color: var(--violet); font-size: 13px;
}
.five-rights span:not(:last-child) { margin-right: 10px; }
.bricks-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 30px; }
.bricks-row span {
  font-size: 13.5px; color: var(--muted); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 7px 14px; background: rgba(255,255,255,0.03);
}
.bricks-row b { font-family: "Poppins"; color: var(--magenta); margin-right: 4px; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; position: relative; }
.pchips span {
  font-family: "Poppins"; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 13px; background: rgba(98,71,255,0.1);
}
.tile.wide { grid-column: 1 / -1; }
.tile.wide p { max-width: 860px; }

/* ---------- Resources ---------- */
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.resource {
  display: flex; flex-direction: column; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.resource:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.resource-kind { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--magenta); margin: 0 0 12px; }
.resource h3 { font-size: 20px; margin: 0 0 10px; }
.resource p { color: var(--muted); font-size: 15px; margin: 0 0 20px; flex: 1; }
.resource-logo-preview {
  width: 100%; margin: 4px 0 20px; padding: 22px; border: 1px solid var(--line);
  border-radius: 14px; background: #070712;
}
.resource-logo-preview img { width: min(100%, 245px); height: auto; }
.bank-item { border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; background: rgba(255,255,255,0.02); }
.bank-item h4 { margin: 0 0 10px; font-size: 15px; color: var(--magenta); font-family: "Poppins"; }
.bank-item p, .bank-item ul { color: var(--muted); font-size: 15.5px; margin: 0 0 12px; }
.bank-item ul { padding-left: 20px; }
.bank-copy {
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); color: var(--muted);
  border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 500; cursor: pointer;
  font-family: inherit; transition: color 0.2s, border-color 0.2s;
}
.bank-copy:hover { color: var(--text); border-color: var(--violet); }

/* ---------- Keystone Arc ---------- */
.arc-chips { justify-content: center; margin-top: 36px; }
.arc-cta { margin-top: 44px; }

/* ---------- Mass market stats ---------- */
.market-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mstat { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.mstat strong { font-family: "Poppins"; font-size: 42px; font-weight: 800; display: block; margin-bottom: 10px; line-height: 1; }
.mstat p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Balanced equation ---------- */
.equation { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: stretch; }
.eq-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; background: rgba(255,255,255,0.02); }
.eq-col h3 { font-size: 22px; margin: 0 0 16px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.eq-col ul { list-style: none; margin: 0; padding: 0; }
.eq-col li { color: var(--muted); font-size: 15.5px; padding: 10px 0; border-top: 1px solid var(--line); }
.eq-col li:first-child { border-top: 0; }
.eq-times { font-family: "Poppins"; font-size: 44px; font-weight: 800; color: var(--magenta); display: grid; place-items: center; }
.eq-close { margin: 34px auto 0; max-width: 640px; text-align: center; font-family: "Poppins"; font-weight: 600; font-size: 18px; }

/* ---------- Tile footer / CTA ---------- */
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; position: relative; }
.tile-cta { color: var(--magenta); font-size: 14px; font-weight: 600; }
.tile-cta:hover { text-decoration: underline; }
.ambition-line { font-weight: 600; color: var(--text) !important; }

/* ---------- Impact network effect ---------- */
.network-effect {
  position: relative; overflow: hidden; margin-top: 56px; padding: 42px;
  display: grid; grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.45fr); gap: 38px 54px;
  border: 1px solid rgba(98,71,255,0.3); border-radius: 26px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(3,68,255,0.22), transparent 58%),
    radial-gradient(65% 100% at 100% 100%, rgba(190,90,255,0.14), transparent 62%),
    linear-gradient(145deg, rgba(20,20,30,0.98), rgba(10,10,18,0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 24px 60px rgba(7,4,28,0.36);
}
.network-effect::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.28;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 75%);
  mask-image: linear-gradient(90deg, #000, transparent 75%);
}
.network-effect::after {
  content: ""; position: absolute; right: -42px; top: -42px; width: 130px; height: 130px;
  border: 1px solid rgba(190,90,255,0.26); border-radius: 28px; transform: rotate(18deg);
  box-shadow: inset 0 0 34px rgba(98,71,255,0.12);
}
.network-copy, .network-trades, .network-foundation { position: relative; z-index: 1; }
.network-copy .kicker { margin-bottom: 14px; }
.network-copy h3 { margin: 0 0 16px; max-width: 360px; font-size: clamp(27px, 3vw, 39px); line-height: 1.08; letter-spacing: -0.025em; }
.network-copy > p:last-child { margin: 0; max-width: 390px; color: var(--muted); font-size: 16px; }
.network-trades {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.network-trades li {
  min-width: 0; display: flex; align-items: center; gap: 13px; padding: 15px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.035);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.network-trades li:hover { transform: translateY(-3px); border-color: rgba(98,71,255,0.42); background: rgba(98,71,255,0.09); }
.network-trades li > span {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px;
  background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 5px 16px rgba(98,71,255,0.3);
}
.network-trades div { min-width: 0; }
.network-trades strong { display: block; font-size: 14.5px; line-height: 1.25; }
.network-trades small { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 11.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.network-foundation {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: center;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.network-foundation p { margin: 0; color: var(--muted); font-size: 15px; }
.network-foundation .network-belief { color: var(--text); font-size: 17px; }
.network-belief strong { color: var(--magenta); font-weight: 600; }

/* ---------- Pathways ---------- */
.pathways-head { margin-top: 64px; }
.pathways-title { font-family: "Poppins"; font-size: 24px; margin: 0 0 10px; }
.doors.three { grid-template-columns: repeat(3, 1fr); }
.doors.three .door { padding: 32px 28px; }
.doors.three .door h3 { font-size: 22px; }

/* ---------- Two doors ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.door {
  position: relative; overflow: hidden; padding: 40px 36px;
  border-radius: 24px; border: 1px solid var(--line-strong);
  background:
    radial-gradient(110% 130% at 0% 0%, rgba(98,71,255,0.18), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--bg-2));
  display: flex; flex-direction: column; align-items: flex-start;
}
.door-tag {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--magenta); margin: 0 0 14px;
}
.door h3 { font-size: 26px; margin: 0 0 14px; }
.door p { color: var(--muted); font-size: 16px; margin: 0 0 26px; flex: 1; }

/* ---------- Idea Studio ---------- */
.studio-hero { padding-bottom: 64px; }
.bricks-grid { grid-template-columns: repeat(3, 1fr); }
.bricks-grid .card-num { font-size: 22px; }
.method-lineage {
  margin: 44px auto 0; max-width: 780px; color: var(--muted); font-size: 15.5px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; background: rgba(255,255,255,0.02);
}
.studio-shell {
  border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  display: grid; grid-template-columns: 240px 1fr;
}
.stepper { list-style: none; margin: 0; padding: 22px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.step {
  display: flex; align-items: center; gap: 12px; padding: 13px 22px; cursor: pointer;
  color: var(--muted-2); border-left: 2px solid transparent; transition: color 0.2s, background 0.2s;
}
.step:hover { color: var(--text); background: rgba(255,255,255,0.02); }
.step-letter {
  font-family: "Poppins"; font-weight: 700; font-size: 13px; flex: none;
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.03);
}
.step-name { font-size: 14.5px; font-weight: 500; }
.step.active { color: var(--text); border-left-color: var(--violet); background: rgba(98,71,255,0.07); }
.step.active .step-letter { background: var(--grad); border-color: transparent; color: #fff; }
.step.done { color: var(--muted); }
.step.done .step-letter { color: var(--magenta); border-color: rgba(190,90,255,0.4); }
.step.review { margin-top: auto; border-top: 1px solid var(--line); }

.studio-form { padding: 30px 32px 26px; min-width: 0; }
.brick-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.brick-letter {
  font-family: "Poppins"; font-weight: 800; font-size: 20px; flex: none;
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(98,71,255,0.4);
}
.brick-title { font-size: 22px; margin: 2px 0 6px; }
.brick-tagline { color: var(--muted); font-size: 15px; margin: 0; }
.studio-field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.studio-field input, .studio-field textarea {
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 15px;
  transition: border-color 0.2s; resize: vertical;
}
.studio-field input:focus, .studio-field textarea:focus { outline: none; border-color: var(--violet); }
.studio-field select {
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 15px;
}
.studio-field select:focus { outline: none; border-color: var(--violet); }
.studio-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 20px; }
.studio-progress { color: var(--muted-2); font-size: 13.5px; }

/* Review */
.review-meter { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.06); overflow: hidden; margin-bottom: 26px; }
.review-meter-fill { height: 100%; background: var(--grad); border-radius: 99px; transition: width 0.5s var(--ease); }
.review-brick { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.review-brick h4 { margin: 0 0 10px; font-size: 15px; }
.review-brick h4 span { color: var(--magenta); font-family: "Poppins"; margin-right: 4px; }
.review-item { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.review-item strong { color: var(--text); font-weight: 600; }
.review-item.empty { color: var(--muted-2); font-style: italic; }
.review-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }

/* Ledger */
.ledger-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ledger-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: rgba(255,255,255,0.02); }
.ledger-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ledger-top h3 { font-size: 18px; margin: 0; }
.ledger-pct { font-family: "Poppins"; font-weight: 700; color: var(--magenta); font-size: 15px; flex: none; }
.ledger-place { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.ledger-date { color: var(--muted-2); font-size: 12.5px; margin: 4px 0 14px; }
.ledger-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-mini {
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); color: var(--muted);
  border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 500; cursor: pointer;
  font-family: inherit; transition: color 0.2s, border-color 0.2s;
}
.btn-mini:hover { color: var(--text); border-color: var(--violet); }
.btn-mini.danger:hover { color: #ff7d7d; border-color: rgba(255,125,125,0.5); }
.ledger-empty { color: var(--muted-2); font-size: 15px; }
.ledger-note { margin-top: 22px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    gap: 0; background: rgba(9,9,16,0.97); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .about-grid, .impact-grid, .connect-inner { grid-template-columns: 1fr; gap: 32px; }
  .cards, .portfolio, .portfolio.three, .bricks-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .blueprint { grid-template-columns: 1fr; }
  .doors, .doors.three { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .market-stats { grid-template-columns: repeat(2, 1fr); }
  .equation { grid-template-columns: 1fr; }
  .eq-times { padding: 4px 0; }
  .five-rights span:not(:last-child)::after { display: none; }
  .five-rights span:not(:last-child) { margin-right: 0; }
  .ledger-list { grid-template-columns: repeat(2, 1fr); }
  .studio-shell { grid-template-columns: 1fr; }
  .stepper { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .step { border-left: 0; border-radius: 10px; padding: 9px 12px; flex: none; }
  .step.review { margin-top: 0; border-top: 0; margin-left: auto; }
  .step-name { font-size: 13px; }
  .orbital { opacity: 0.4; right: -280px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .network-effect { grid-template-columns: 1fr; }
  .network-copy h3, .network-copy > p:last-child { max-width: 680px; }
}
@media (max-width: 560px) {
  .brand-logo { width: 205px; }
  .section { padding: 68px 0; }
  .cards, .portfolio, .portfolio.three, .bricks-grid, .value-grid, .ledger-list, .market-stats { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .bigstat strong { font-size: 58px; }
  .orbital { display: none; }
  .network-effect { margin-top: 42px; padding: 28px 20px; gap: 30px; border-radius: 20px; }
  .network-trades { grid-template-columns: 1fr; }
  .network-foundation { grid-template-columns: 1fr; gap: 16px; }
  .nation-hero {
    --nation-image: url("/.netlify/images?url=/assets/nation/connected-city.jpg&w=900&q=78");
    --nation-position: 62% center; --nation-opacity: 0.56;
  }
  .nation-masters { --nation-image: url("/.netlify/images?url=/assets/nation/civic-momentum.jpg&w=900&q=76"); }
  .nation-arc { --nation-image: url("/.netlify/images?url=/assets/nation/nation-arc.jpg&w=900&q=78"); --nation-position: 64% center; }
  .nation-cases { --nation-image: url("/.netlify/images?url=/assets/nation/rising-city.jpg&w=900&q=76"); }
  .country-cta::before { background-image: url("/.netlify/images?url=/assets/nation/civic-blueprint.jpg&w=900&q=78"); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Brand board layer: aurora, light tiles, cinema ============ */
:root { --peach: #ff8e61; }

/* Aurora background */
.ambient::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(46% 38% at 72% 4%,  rgba(3,68,255,0.30),  transparent 70%),
    radial-gradient(52% 44% at 12% 20%, rgba(98,71,255,0.26), transparent 70%),
    radial-gradient(38% 30% at 55% 48%, rgba(190,90,255,0.14), transparent 70%),
    radial-gradient(72% 28% at 50% 98%, rgba(255,142,97,0.12), transparent 72%),
    radial-gradient(30% 18% at 80% 86%, rgba(255,142,97,0.07), transparent 75%);
  filter: blur(64px);
  animation: aurora-drift 38s var(--ease) infinite alternate;
  will-change: transform;
}
.orb { opacity: 0.22; }
@keyframes aurora-drift {
  0%   { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  100% { transform: translate3d(1.5%, 2%, 0) scale(1.06); }
}

/* Light accent tiles */
.tile.light, .card.light {
  background: linear-gradient(180deg, #ece8fa, #ddd6f1);
  border-color: rgba(19, 19, 32, 0.10);
}
.tile.light h3, .card.light h3 { color: #15151f; }
.tile.light p, .card.light p { color: #4b4964; }
.card.light .card-num { color: var(--violet); }
.tile.light .tile-tag { color: var(--violet); border-color: rgba(19,19,32,0.22); }
.tile.light .tile-glow { display: none; }
.tile.light:hover, .card.light:hover {
  border-color: rgba(98, 71, 255, 0.4);
  box-shadow: 0 18px 40px rgba(10, 8, 30, 0.35);
}

/* Quote tile */
.quote-tile {
  position: relative; overflow: hidden; margin: 0 0 48px;
  background: linear-gradient(180deg, #ece8fa, #ddd6f1);
  border: 1px solid rgba(19, 19, 32, 0.10);
  border-radius: var(--radius); padding: 116px 48px 44px;
}
.quote-tile::before {
  content: "\201C";
  position: absolute; top: 2px; left: 30px;
  font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 150px; line-height: 0.9;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  opacity: 0.9; pointer-events: none;
}
.quote-tile p {
  position: relative; margin: 0; max-width: 740px;
  font-family: "Poppins"; font-weight: 800; color: #15151f;
  font-size: clamp(24px, 3.4vw, 42px); line-height: 1.14; letter-spacing: -0.02em;
}
.quote-tile cite {
  position: relative; display: block; margin-top: 18px; font-style: normal;
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet);
}

/* Gradient value icons */
.value-icon svg :is(path, circle) { stroke: url(#civ-stroke) var(--magenta); }
.value-icon { background: rgba(98, 71, 255, 0.10); }
.value h3 { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13.5px; color: var(--violet); }

/* Cinematic dusk tiles */
.tile.cine {
  border-color: rgba(98, 71, 255, 0.22);
  background:
    radial-gradient(120% 55% at 50% 108%, rgba(255,142,97,0.20), transparent 62%),
    radial-gradient(90% 70% at 82% 0%,   rgba(3,68,255,0.28),   transparent 65%),
    radial-gradient(70% 60% at 12% 22%,  rgba(190,90,255,0.16), transparent 60%),
    linear-gradient(180deg, #0b0b15, #131020);
}
.tile.cine::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background:
    linear-gradient(#07070f,#07070f) 0%   100% / 10% 58%,
    linear-gradient(#07070f,#07070f) 14%  100% / 11% 82%,
    linear-gradient(#07070f,#07070f) 30%  100% / 8%  46%,
    linear-gradient(#07070f,#07070f) 46%  100% / 12% 70%,
    linear-gradient(#07070f,#07070f) 66%  100% / 9%  92%,
    linear-gradient(#07070f,#07070f) 82%  100% / 10% 55%,
    linear-gradient(#07070f,#07070f) 100% 100% / 7%  74%;
  background-repeat: no-repeat; opacity: 0.9; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%);
  mask-image: linear-gradient(180deg, transparent, #000 45%);
}
.tile.cine :is(h3, p, .tile-tag, .tile-foot) { z-index: 1; }
.tile.cine p { color: #b9bccd; }

/* Featured-card pattern */
.feature-strip { display: grid; gap: 16px; }
.feature-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 28px;
  padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(98,71,255,0.4); }
.feature-kicker { grid-column: 1 / -1; margin: 0 0 6px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--magenta); }
.feature-card h3 { margin: 0; font-size: 21px; letter-spacing: -0.01em; }
.feature-meta { display: flex; align-items: center; gap: 16px; white-space: nowrap; color: var(--muted-2); font-size: 14px; }
.feature-meta .arrow { color: var(--magenta); font-weight: 600; transition: transform 0.3s var(--ease); }
.feature-card:hover .arrow { transform: translateX(4px); }

/* CTA band */
.cta-band { margin-top: 64px; padding: 44px 40px; border-radius: 24px;
  border: 1px solid var(--line-strong); text-align: center;
  background: radial-gradient(90% 130% at 50% 0%, rgba(98,71,255,0.22), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--bg-2)); }
.cta-band-title { font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; letter-spacing: -0.02em; }
.cta-band-line { color: var(--muted); margin: 0 auto 26px; max-width: 560px; }
.cta-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cta-chips a { font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.03);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.cta-chips a:hover { border-color: var(--violet); background: rgba(98,71,255,0.12); transform: translateY(-2px); }

/* Motion and polish */
section[id], [id] { scroll-margin-top: 88px; }
.card.reveal:not(.in), .tile.reveal:not(.in), .mstat.reveal:not(.in) { transform: translateY(18px) scale(0.985); }
.belief-quote .grad { background-size: 200% 100%; animation: gradpan 8s var(--ease) infinite alternate; }
@keyframes gradpan { to { background-position: 100% 0; } }
.btn-primary { background-size: 150% 100%; transition: transform 0.2s var(--ease), box-shadow 0.3s, background-position 0.4s var(--ease); }
.btn-primary:hover { background-position: 100% 0; }
.bstep:hover .bstep-num { box-shadow: 0 6px 24px rgba(190,90,255,0.55); }
.card:hover, .tile:hover { box-shadow: 0 18px 44px rgba(15, 8, 50, 0.5), 0 0 0 1px rgba(98,71,255,0.14); }
.card, .tile, .mstat, .door, .bstep { box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.ring { -webkit-mask-image: conic-gradient(#000 0 66%, transparent 66% 80%, #000 80%); mask-image: conic-gradient(#000 0 66%, transparent 66% 80%, #000 80%); }
.node { border-radius: 5px; box-shadow: 0 0 18px rgba(98,71,255,0.8), 0 0 48px rgba(3,68,255,0.35); }
.eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 3px; background: var(--grad); margin-right: 10px; box-shadow: 0 0 10px rgba(98,71,255,0.7); }
::selection { background: rgba(98,71,255,0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.ground-chips { justify-content: flex-start; margin-top: 40px; }
