/* ============================================================
   OPRA — Opportunity Radar
   Design system · calm, editorial, premium
   ============================================================ */

:root {
  --bg: #F6F3EE;
  --bg-raised: #FDFBF7;
  --bg-deep: #EFEAE2;
  --ink: #232426;
  --ink-soft: #4A4B4E;
  --ink-faint: #77787C;
  --clay: #C9B29D;
  --clay-soft: #E4D8CB;
  --blue: #86A9C8;
  --blue-deep: #5E82A3;
  --blue-tint: #E6EDF3;
  --green: #6F8E78;
  --green-tint: #E4EBE6;
  --amber: #B48A4A;
  --amber-tint: #F1E8DA;
  --line: rgba(35, 36, 38, 0.12);
  --line-soft: rgba(35, 36, 38, 0.07);
  --shadow-sm: 0 1px 2px rgba(35, 36, 38, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(35, 36, 38, 0.16);
  --shadow-lg: 0 24px 60px -24px rgba(35, 36, 38, 0.22);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  animation: pageIn 0.7s var(--ease) both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

::selection { background: var(--clay-soft); color: var(--ink); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 480;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

a { color: var(--blue-deep); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--ink); }

img, svg { display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* ---------- utility type ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--clay);
}

.lede {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 640px;
}

.small { font-size: 13.5px; color: var(--ink-faint); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: transform 0.45s var(--ease), background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246, 243, 238, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav.hidden { transform: translateY(-100%); }

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-word {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 560;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-top: -3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-links a:hover { background: rgba(35,36,38,0.05); color: var(--ink); }
.nav-links a.active { color: var(--ink); background: rgba(35,36,38,0.06); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}
.nav-toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: 0.3s var(--ease); }

@media (max-width: 960px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .nav.open .nav-links a { padding: 12px 14px; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 550;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: #35373a;
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-blue {
  background: var(--blue-deep);
  color: #fff;
}
.btn-blue:hover { background: #4f7092; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-lg { padding: 15px 32px; font-size: 15.5px; }

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Badges — source & verification
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  line-height: 1.4;
}
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.badge-ai       { background: var(--blue-tint);  color: var(--blue-deep); border-color: rgba(94,130,163,0.25); }
.badge-human    { background: var(--amber-tint); color: var(--amber);     border-color: rgba(180,138,74,0.25); }
.badge-user     { background: var(--clay-soft);  color: #8a7359;          border-color: rgba(201,178,157,0.4); }

.badge-verified { background: var(--green-tint); color: var(--green);     border-color: rgba(111,142,120,0.3); }
.badge-pending  { background: #F2EFE9;           color: var(--ink-faint); border-color: var(--line); }
.badge-deadline { background: var(--green-tint); color: var(--green);     border-color: rgba(111,142,120,0.3); }

.badge-verified .dot, .badge-deadline .dot { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ============================================================
   Opportunity cards
   ============================================================ */
.opp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 22px;
}

.opp-card {
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  box-shadow: var(--shadow-sm);
}
.opp-card::after {
  content: "";
  position: absolute;
  top: 0; left: 30px; right: 30px;
  height: 2px;
  background: var(--clay);
  border-radius: 0 0 2px 2px;
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.opp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line);
}
.opp-card:hover::after { opacity: 1; transform: scaleX(1); }

.opp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.opp-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.opp-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.save-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px; height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-faint);
  transition: all 0.3s var(--ease);
}
.save-btn:hover { border-color: var(--ink); color: var(--ink); transform: scale(1.06); }
.save-btn.saved { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.save-btn svg { width: 15px; height: 15px; }

.opp-title {
  font-size: 21.5px;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.opp-org { font-size: 13.5px; color: var(--ink-faint); margin-top: 5px; }

.opp-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}
.opp-meta > div { min-width: 0; }
.opp-meta .k {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 3px;
}
.opp-meta .v {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: break-word;
}
.opp-meta .v.urgent { color: #A2543C; font-weight: 600; }

.opp-blurb {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opp-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.opp-actions .btn { flex: 1; }

/* ============================================================
   Filter chips
   ============================================================ */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* ============================================================
   Search input
   ============================================================ */
.search-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 20px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.search-shell:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(134, 169, 200, 0.16);
}
.search-shell svg { color: var(--ink-faint); flex-shrink: 0; }
.search-shell input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  min-width: 0;
}
.search-shell input::placeholder { color: var(--ink-faint); }
.search-shell kbd {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
  background: var(--bg);
}

/* ============================================================
   Forms
   ============================================================ */
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.field .hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2377787C' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(134, 169, 200, 0.16);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.check-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; pointer-events: none; }
.check-pill span {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  user-select: none;
}
.check-pill:hover span { border-color: var(--ink); color: var(--ink); }
.check-pill input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.check-pill input:focus-visible + span { box-shadow: 0 0 0 4px rgba(134,169,200,0.25); }

/* toggle switch */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--bg-raised);
}
.switch { position: relative; width: 44px; height: 25px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.switch .track {
  position: absolute; inset: 0;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 19px; height: 19px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease);
}
.switch input:checked + .track { background: var(--green); border-color: var(--green); }
.switch input:checked + .track::after { transform: translateX(19px); }

/* success state */
.form-success {
  display: none;
  text-align: center;
  padding: 60px 30px;
  animation: pageIn 0.6s var(--ease) both;
}
.form-success.show { display: block; }
.form-success .tick {
  width: 60px; height: 60px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success h3 { font-size: 26px; margin-bottom: 10px; }
.form-success p { color: var(--ink-soft); max-width: 420px; margin: 0 auto; }

/* ============================================================
   Sections & panels
   ============================================================ */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }

.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

.panel {
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.panel-deep {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.panel-deep h2, .panel-deep h3 { color: var(--bg); }
.panel-deep p { color: rgba(246,243,238,0.75); }

.divider { height: 1px; background: var(--line-soft); border: none; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Radar visuals
   ============================================================ */
.radar-sweep-group { transform-origin: center; animation: sweep 6s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }

.radar-blip { animation: blip 6s ease-out infinite; opacity: 0; }
.radar-blip.b2 { animation-delay: 2s; }
.radar-blip.b3 { animation-delay: 4.2s; }
@keyframes blip {
  0% { opacity: 0; }
  6% { opacity: 1; }
  40% { opacity: 0.85; }
  70% { opacity: 0; }
  100% { opacity: 0; }
}

/* big background radar rings */
.radar-bg {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 64px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ink-soft); font-size: 14.5px; }
.footer-col a:hover { color: var(--ink); }
.footer-mission { color: var(--ink-soft); font-size: 14.5px; max-width: 300px; margin-top: 14px; }

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-faint);
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 80px);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  z-index: 600;
  pointer-events: none;
  max-width: calc(100vw - 48px);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ============================================================
   Misc
   ============================================================ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr; } }

.stat {
  text-align: left;
  padding: 28px 30px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat .num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 480;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat .lbl { font-size: 14px; color: var(--ink-faint); }

.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--ink-faint);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.empty-state h3 { font-size: 22px; color: var(--ink-soft); margin-bottom: 8px; }

/* ============================================================
   GSAP mode — CSS transitions on reveals hand over to GSAP
   ============================================================ */
html.gsap-on .reveal { transition: none; }
html.gsap-on body { animation: none; }

/* ============================================================
   Opportunity detail modal
   ============================================================ */
.modal-veil {
  position: fixed; inset: 0;
  background: rgba(35, 36, 38, 0.4);
  z-index: 400;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
}
@media (min-width: 641px) { .modal-veil { align-items: center; } }
.modal-veil.on { display: flex; }

.modal-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  width: min(640px, 100%);
  max-height: min(84vh, 760px);
  overflow-y: auto;
  padding: 38px 40px 34px;
  position: relative;
}
@media (max-width: 640px) { .modal-card { padding: 28px 22px; } }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 15px; line-height: 1;
  transition: all 0.25s var(--ease);
}
.modal-close:hover { border-color: var(--ink); color: var(--ink); transform: rotate(90deg); }
.modal-card h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin: 14px 0 4px;
  padding-right: 30px;
}
.modal-org { font-size: 14px; color: var(--ink-faint); margin-bottom: 18px; }
.modal-blurb { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 24px; }
.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 26px;
}
@media (max-width: 520px) { .modal-meta { grid-template-columns: 1fr; } }
.modal-meta > div {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-raised);
}
.modal-meta > div:nth-child(odd) { border-right: 1px solid var(--line-soft); }
@media (max-width: 520px) { .modal-meta > div:nth-child(odd) { border-right: none; } }
.modal-meta .k {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 2px;
}
.modal-meta .v { font-size: 14px; color: var(--ink); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; min-width: 150px; }
.modal-src-note {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

/* ============================================================
   Country-first picker (Opportunities page)
   ============================================================ */
.country-stage {
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 36px 38px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) { .country-stage { padding: 26px 20px; } }
.country-stage h2 { font-size: 24px; margin-bottom: 6px; }
.country-stage > p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 22px; }
.country-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.country-opt {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: all 0.3s var(--ease);
}
.country-opt:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.country-opt .cnt {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  background: var(--bg-deep);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
}
.country-opt.global {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.country-opt.global .cnt { background: rgba(246,243,238,0.15); color: var(--bg); }
.country-opt.global:hover { background: #35373a; }

.country-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.country-bar .flag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 550;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
}
.country-bar .flag-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.country-bar .change-link {
  background: none; border: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--blue-deep);
  cursor: pointer;
  padding: 0;
}
.country-bar .change-link:hover { color: var(--ink); text-decoration: underline; }

/* ============================================================
   Mobile refinements (≤640px) — desktop untouched
   ============================================================ */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; height: 68px; }
  .nav.open .nav-links { top: 68px; }
  .brand-word { font-size: 20px; }

  section { padding: 60px 0; }
  section.tight { padding: 44px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(26px, 7.5vw, 34px); }
  .lede { font-size: 16.5px; }

  .btn { padding: 12px 22px; font-size: 14px; }
  .btn-lg { padding: 14px 26px; font-size: 15px; }
  .chip { padding: 8px 15px; }

  .panel { padding: 28px 22px; }
  .opp-grid { grid-template-columns: 1fr; gap: 18px; }
  .opp-card { padding: 24px 22px 22px; }
  .opp-title { font-size: 20px; }
  .opp-meta { gap: 14px 16px; }

  .search-shell kbd { display: none; }

  .country-stage .country-grid { flex-direction: column; }
  .country-opt { width: 100%; justify-content: space-between; padding: 13px 18px; }

  .stat { padding: 22px 22px; }
  .stat .num { font-size: 34px; }

  .footer-grid { gap: 28px; margin-bottom: 36px; }
  footer { padding: 48px 0 32px; }

  .modal-veil { padding: 0; align-items: flex-end; }
  .modal-card {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: none;
    max-height: 88vh;
  }

  .toast { font-size: 13px; padding: 12px 20px; }
}

/* small phones */
@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
}

