/* ==========================================================================
   USHE GLOBAL — website prototype styles
   Visual language taken from ushe.global: navy background, orange primary,
   Plus Jakarta Sans, cross-and-diamond pattern, pill buttons, sector colours.
   ========================================================================== */

:root {
  /* Brand (from ushe.global) */
  --background: #0A1D57;
  --card: #0D2368;
  --card-2: #102a78;
  --border: #1A3070;
  --foreground: #F5F5F5;
  --fg-80: rgba(245,245,245,.8);
  --fg-70: rgba(245,245,245,.72);
  --fg-60: rgba(245,245,245,.62);
  --fg-40: rgba(245,245,245,.45);
  --fg-25: rgba(245,245,245,.25);
  --primary: #FF6A00;
  --primary-hover: #FF7F24;
  --primary-soft: rgba(255,106,0,.15);
  --primary-line: rgba(255,106,0,.3);
  --secondary: #2563FF;
  --accent: #00C0C7;
  --muted: #F4F5FB;
  --muted-fg: #0A1D57;
  --success: #4ADE80;
  --danger: #FF6B6B;

  /* Sectors (from ushe.global) */
  --sector-fashion: #FF6A00;
  --sector-agriculture: #22C55E;
  --sector-retail: #2563FF;
  --sector-energy: #00C0C7;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 25px 50px -12px rgba(0,0,0,.45);
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 72px;
  --top: var(--header-h);
  --gutter: 24px;
  --pattern: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF6A00' fill-opacity='0.07'%3E%3Cpath d='M50 50v-6h-2v6h-6v2h6v6h2v-6h6v-2h-6zm0-40V4h-2v6h-6v2h6v6h2v-6h6V4h-6zM10 50v-6H8v6H2v2h6v6h2v-6h6v-2h-6zM10 10V4H8v6H2v2h6v6h2v-6h6v-2h-6z'/%3E%3C/g%3E%3Cg fill='%232563FF' fill-opacity='0.04'%3E%3Cpath d='M40 0l40 40-40 40L0 40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
@media (min-width: 1024px) { :root { --gutter: 32px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; } }

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--foreground); background: var(--background); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 999px; }
.skip-link:focus { left: 8px; }
.container { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: var(--gutter); }
.cluster { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.muted { color: var(--fg-60); }
.small { font-size: 14px; }
.pattern { position: relative; background-image: var(--pattern); }
.pattern > * { position: relative; z-index: 1; }

/* ---- Buttons (pill, as on ushe.global) ----------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 24px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 10px 25px -10px rgba(255,106,0,.6); }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
.btn--outline { background: transparent; color: var(--foreground); border-color: var(--fg-25); }
.btn--outline:hover { border-color: var(--foreground); color: var(--foreground); }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: var(--muted); color: var(--primary); }
.btn--sm { min-height: 38px; padding: 6px 18px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 14px 32px; font-size: 16px; }
.btn--block { width: 100%; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.08); }

.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: var(--primary-soft); color: var(--primary); border: 1px solid var(--primary-line); margin-bottom: 24px; }
.pill--light { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); }

/* ---- Header ------------------------------------------ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(10,29,87,.95); backdrop-filter: blur(12px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: #fff; }
.logo img { max-height: 48px; max-width: 160px; width: auto; height: auto; }
.logo__text { display: grid; line-height: 1; }
.logo__word { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.logo__word i { color: var(--primary); font-style: normal; font-size: .7em; vertical-align: top; margin-left: 2px; }
.logo__text small { font-size: 8px; letter-spacing: .3em; text-transform: uppercase; margin-top: 4px; }
.nav { display: none; align-items: center; gap: 32px; }
.nav a:not(.btn) { color: var(--fg-80); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav a:not(.btn):hover, .nav a.is-current { color: var(--primary); }
.menu-toggle { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--foreground); }
.mobile-nav { display: none; flex-direction: column; gap: 16px; padding: 16px 24px 24px; background: var(--background); border-top: 1px solid var(--border); }
.mobile-nav.is-open { display: flex; }
.mobile-nav a:not(.btn) { color: var(--fg-80); text-decoration: none; font-weight: 500; padding: 8px 0; }
@media (min-width: 768px) { .nav { display: flex; } .menu-toggle, .mobile-nav.is-open { display: none; } }

main { min-height: 60vh; }
.view { display: none; }
.view.is-active { display: block; animation: viewIn .3s var(--ease); }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }

/* ---- Hero ---------------------------------------------------------------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: calc(var(--top) + 16px); }
.hero::before, .section.pattern::before, .site-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero::before { background: radial-gradient(ellipse 80% 60% at 30% 50%, rgba(10,29,87,.3) 0%, rgba(10,29,87,.85) 100%); }
.hero__grid { display: grid; gap: 48px 64px; align-items: center; padding-block: 64px 96px; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1fr 1fr; } }
.hero__title { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; margin-bottom: 24px; }
.hero__lead { font-size: 18px; color: var(--fg-70); max-width: 32rem; margin-bottom: 40px; }
.hero__media { position: relative; display: none; }
@media (min-width: 1024px) { .hero__media { display: block; } }
.photo-frame { position: relative; border-radius: var(--radius); overflow: hidden; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame::after { content: ""; position: absolute; inset: 0; border: 3px solid rgba(255,106,0,.4); border-radius: var(--radius); pointer-events: none; }
.float-badge { position: absolute; bottom: -24px; left: -24px; background: var(--primary); color: #fff; padding: 16px 24px; border-radius: var(--radius); box-shadow: var(--shadow); font-size: 14px; font-weight: 500; }
.float-badge--link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; transition: transform .2s var(--ease), background .2s; }
.float-badge--link span { font-weight: 700; transition: transform .2s var(--ease); }
.float-badge--link:hover { background: var(--primary-hover); color: #fff; transform: translateY(-3px); }
.float-badge--link:hover span { transform: translateX(4px); }
.float-badge--link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Entrepreneurs page opens straight on the listing: clear the fixed header */
#view-entrepreneurs .stats-band { padding-top: calc(var(--top) + 40px); }
#view-entrepreneurs #browse { padding-top: 56px; scroll-margin-top: var(--top); }
.load-more { display: grid; justify-items: center; gap: 12px; margin-top: 48px; text-align: center; }
.load-more p { font-size: 14px; color: var(--fg-60); }
.load-more__bar { width: 200px; height: 4px; border-radius: 999px; background: rgba(245,245,245,.12); overflow: hidden; }
.load-more__bar span { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width .4s var(--ease); }

/* ---- Sections ------------------------------------------------------------ */
.section { padding-block: 64px; }
@media (min-width: 1024px) { .section { padding-block: 96px; } }
.section.pattern::before { background: rgba(10,29,87,.88); }
.section--card { background: var(--card); }
.section__title { font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.section__lead { color: var(--fg-70); margin-top: 12px; font-size: 17px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 48px; }

.stats-light { background: var(--muted); color: var(--muted-fg); padding-block: 64px; }
.stats-light__grid { display: grid; gap: 48px 32px; text-align: center; }
@media (min-width: 768px) { .stats-light__grid { grid-template-columns: repeat(3, 1fr); text-align: left; } }
.stats-light__value { font-size: clamp(3.75rem, 7vw, 4.5rem); font-weight: 800; letter-spacing: -.025em; line-height: 1; margin-bottom: 12px; }
.stats-light__label { font-weight: 500; color: rgba(10,29,87,.7); }

.how { display: grid; margin-top: 64px; }
@media (min-width: 768px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how__step { display: flex; gap: 24px; padding-bottom: 40px; position: relative; }
@media (min-width: 768px) { .how__step { flex-direction: column; gap: 16px; padding: 0 32px 0 0; } .how__step:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 24px; width: 1px; height: 64px; background: var(--border); } .how__step + .how__step { padding-left: 32px; } }
.how__num { font-size: 48px; font-weight: 800; line-height: 1; color: var(--primary); flex: none; }
.how__step h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.how__step p { color: var(--fg-70); }

.stories { display: grid; gap: 24px; }
@media (min-width: 1024px) { .stories { grid-template-columns: 3fr 2fr; } }
.stories__side { display: grid; gap: 24px; }
.story { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.story--featured { min-height: 420px; }
.story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,29,87,.95) 0%, transparent 70%); }
.story--featured::after { background: linear-gradient(to top, rgba(10,29,87,.95) 0%, rgba(10,29,87,.4) 50%, transparent 100%); }
.story__body { position: relative; z-index: 1; padding: 24px; }
.story--featured .story__body { padding: 32px; }
.story__quote { font-style: italic; font-weight: 500; font-size: 14px; color: rgba(245,245,245,.88); margin-bottom: 12px; }
.story--featured .story__quote { font-size: 18px; margin-bottom: 24px; }
.story__name { color: var(--primary); font-weight: 700; font-size: 14px; }
.story--featured .story__name { font-size: 16px; }
.story__meta { font-size: 12px; color: var(--fg-60); }
.story__impact { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--accent); }
/* Story cards link to the entrepreneur's profile */
a.story { color: inherit; text-decoration: none; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
a.story img { transition: transform .6s var(--ease); }
a.story:hover { transform: translateY(-4px); border-color: var(--primary-line); box-shadow: var(--shadow); }
a.story:hover img { transform: scale(1.05); }
a.story:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: var(--radius); }
.story__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--primary); }
.story__cta span { transition: transform .2s var(--ease); }
a.story:hover .story__cta span { transform: translateX(4px); }

.duo { display: grid; gap: 32px 48px; align-items: stretch; }
@media (min-width: 1024px) { .duo { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; scroll-margin-top: calc(var(--top) + 16px); }
@media (min-width: 1024px) { .panel { padding: 40px; } }
.panel .pill { align-self: flex-start; margin-bottom: 20px; }
.panel--primary { background: var(--primary); border-color: var(--primary); position: relative; overflow: hidden; }
.panel--primary > * { position: relative; }
.panel__title { font-size: clamp(1.9rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin-bottom: 12px; }
.panel__lead { color: var(--fg-70); margin-bottom: 32px; }
.panel--primary .panel__lead { color: rgba(255,255,255,.85); }
.panel__sub { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-60); margin-bottom: 12px; }
.need-list { display: grid; gap: 12px; margin-bottom: 24px; }
.need { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--card-2); border: 1px solid var(--border); transition: border-color .2s; }
.need:hover { border-color: var(--sector); }
.need__link { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.need__avatar { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.need__avatar .founder-art__initials { font-size: 16px; border: 0; background: none; width: auto; height: auto; }
.need__text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.need__text b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.need__link:hover b { color: var(--sector); }
.need__text small { font-size: 12px; color: var(--fg-60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.need__text .progress__track { display: block; height: 6px; }
.need__text .progress__fill { display: block; background: var(--sector); }
.panel .fine { margin-top: 12px; }
.ticks { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-size: 14px; font-weight: 500; }
.ticks li::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 12px; font-weight: 800; flex: none; }
.panel--primary .btn--white { margin-top: auto; }
.fine { margin-top: 16px; font-size: 12px; text-align: center; color: var(--fg-40); }
.fine--light { color: rgba(255,255,255,.75); }


/* ---- Entrepreneurs page --------------------------------------------------- */
.toolbar { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 1024px) { .toolbar { grid-template-columns: 1fr auto; align-items: center; } }
.toolbar__tools { display: flex; gap: 12px; flex-wrap: wrap; }
.sector-tabs { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.sector-tabs::-webkit-scrollbar { display: none; }
.sector-tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; background: transparent; color: var(--fg-70); border: 2px solid var(--border); cursor: pointer; transition: all .2s; }
.sector-tab:hover { border-color: var(--sector); color: var(--foreground); }
.sector-tab[aria-selected="true"] { background: var(--sector); border-color: var(--sector); color: #fff; }
.search { position: relative; flex: 1; min-width: 220px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--fg-60); }
.search input { width: 100%; min-height: 48px; padding: 0 16px 0 44px; border-radius: 999px; border: 2px solid var(--border); background: var(--card); color: var(--foreground); outline: none; }
.search input:focus, .select:focus, .input:focus { border-color: var(--primary); }
.select { min-height: 48px; padding: 0 40px 0 18px; border-radius: 999px; border: 2px solid var(--border); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23F5F5F5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center; color: var(--foreground); appearance: none; outline: none; cursor: pointer; }
.select option { background: var(--card); }
.sector-intro { margin: 32px 0 24px; color: var(--fg-70); font-size: 17px; }

.biz-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .biz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .biz-grid { grid-template-columns: repeat(3, 1fr); } }
.biz-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.biz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.biz-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--background); overflow: hidden; }
.biz-card__media video, .biz-card__media .founder-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.biz-card:hover .biz-card__media video { transform: scale(1.04); }
.biz-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,29,87,.7) 0%, transparent 60%); pointer-events: none; }
.biz-card__play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border: 0; background: none; cursor: pointer; }
.biz-card__play > span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--sector); color: #fff; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; }
.biz-card__play svg { width: 22px; height: 22px; margin-left: 3px; }
.biz-card__play:hover > span { transform: scale(1.08); }
.biz-card__play.is-playing > span { opacity: 0; }
.biz-card__play.is-playing:hover > span { opacity: .9; }
.biz-card__funded { position: absolute; top: 12px; right: 12px; z-index: 3; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--sector); color: #fff; }
.biz-card__verified { position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; gap: 4px; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(10,29,87,.75); color: #fff; backdrop-filter: blur(6px); }
.biz-card__verified svg { width: 14px; height: 14px; color: var(--success); }
.biz-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px; gap: 4px; }
.biz-card__name { font-size: 18px; font-weight: 800; line-height: 1.25; }
.biz-card__name a { color: inherit; text-decoration: none; }
.biz-card__name a:hover { color: var(--sector); }
.biz-card__tagline { font-size: 14px; font-weight: 600; color: var(--sector); margin-bottom: 8px; }
.biz-card__story { font-size: 14px; color: var(--fg-70); margin-bottom: 16px; flex: 1; }
.biz-card .progress { margin-bottom: 16px; }
.biz-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.biz-card__founder { font-size: 12px; font-weight: 600; color: var(--fg-60); }
.biz-card__loc { font-size: 12px; color: var(--fg-40); }
.biz-card__impact { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--sector); background: color-mix(in srgb, var(--sector) 12%, transparent); border: 1px solid color-mix(in srgb, var(--sector) 30%, transparent); text-align: right; }
.biz-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }

.stats-band { background: var(--card); padding-block: 48px; }
.stats-band__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; text-align: center; }
@media (min-width: 768px) { .stats-band__grid { grid-template-columns: repeat(4, 1fr); } }
.stats-band b { display: block; font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 800; color: var(--primary); line-height: 1.1; }
.stats-band span { font-size: 14px; color: var(--fg-70); font-weight: 500; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 48px 16px; border: 2px dashed var(--border); border-radius: var(--radius); display: grid; gap: 8px; justify-items: center; color: var(--fg-70); }
.empty-state h3 { color: var(--foreground); font-size: 18px; }

/* ---- Progress ------------------------------------------------------------ */
.progress { display: grid; gap: 8px; }
.progress__track { height: 8px; border-radius: 999px; background: rgba(245,245,245,.12); overflow: hidden; }
.progress__fill { height: 100%; width: var(--value, 0%); border-radius: inherit; background: var(--primary); transition: width .9s var(--ease); }
.progress--lg .progress__track { height: 12px; }
.progress__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--fg-60); }
.progress__raised { font-weight: 700; color: var(--foreground); }
.progress__raised small { font-weight: 500; color: var(--fg-60); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background-color: var(--background); padding-bottom: 32px; }
.site-footer::before { background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF6A00' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3Cg fill='%232563FF' fill-opacity='0.04'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.site-footer.pattern { background-image: none; }
.site-footer__bar { height: 4px; background: var(--primary); }
.footer-grid { display: grid; gap: 48px; padding-block: 64px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .logo { margin-bottom: 24px; }
.footer-brand p { color: var(--fg-70); max-width: 24rem; margin-bottom: 24px; }
.footer-tagline { color: var(--primary) !important; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.socials { display: flex; gap: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--border); color: var(--fg-70); transition: transform .2s, color .2s; }
.socials a:hover { transform: translateY(-2px); color: var(--primary); }
.site-footer h3 { color: var(--primary); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer ul a, .footer-bottom a { color: var(--fg-60); text-decoration: none; font-size: 14px; }
.site-footer ul a:hover, .footer-bottom a:hover { color: var(--primary); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 32px; border-top: 1px solid var(--border); font-size: 14px; color: var(--fg-40); }
.footer-bottom p:last-child { display: flex; gap: 24px; }
.proto-note { margin-top: 24px; font-size: 12px; color: var(--fg-40); }

/* ---- Toast ---------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 200%); visibility: hidden; z-index: 80; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px; background: var(--foreground); color: var(--background); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); transition: transform .25s var(--ease), visibility .25s; }
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; }

/* ==========================================================================
   PROJECT PAGE
   ========================================================================== */
#view-project { padding-top: var(--top); }
.crumbs { font-size: 14px; padding-block: 20px; color: var(--fg-60); }
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--primary); }
.campaign-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 96px; }
.campaign-give { scroll-margin-top: calc(var(--top) + 12px); }
.campaign-media { display: flex; flex-direction: column; min-width: 0; }
/* Mobile order: gallery + progress, title, donation, story */
.stats-strip { order: 0; } .campaign-media { order: 1; } .campaign-title { order: 2; } .currency-card { order: 3; } .campaign-give { order: 3; } .campaign-body { order: 4; }
@media (min-width: 1024px) {
  .campaign-layout { grid-template-columns: minmax(0, 1fr) 460px; column-gap: 40px; row-gap: 0;
    grid-template-areas: "stats currency" "media give" "title title" "body body"; }
  .currency-card { grid-area: currency; margin-bottom: 24px; }
  /* Stats strip now sits in the profile column: raised + bar on one line, meta below */

  .stats-strip { grid-area: stats; margin-bottom: 24px; }
  .stats-strip, .campaign-media, .campaign-title, .currency-card, .campaign-give, .campaign-body { order: 0; }
  .campaign-media { grid-area: media; align-self: stretch; }
  .campaign-give { grid-area: give; align-self: stretch; display: flex; }
  .campaign-give > .donate { flex: 1; }
  .campaign-title { grid-area: title; }
  .campaign-body { grid-area: body; }
  /* Same height as the donation card: the video grows to fill, photos keep their row */
  .campaign-media { align-self: stretch; }
  .campaign-media .gallery-wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .campaign-media .gallery { flex: 1; grid-template-rows: minmax(260px, 1fr) auto; }
  .campaign-media .gallery .media-tile:first-child { aspect-ratio: auto; height: 100%; }
  /* Payment step is much taller than the screen: keep the gallery at a sensible size and let it stay in view */
  .campaign-layout:has(.campaign-give.is-long) .campaign-media { align-self: start; position: sticky; top: calc(var(--top) + 16px); }
  .campaign-layout:has(.campaign-give.is-long) .campaign-media .gallery { grid-template-rows: auto auto; }
  .campaign-layout:has(.campaign-give.is-long) .campaign-media .gallery .media-tile:first-child { aspect-ratio: 16 / 9; height: auto; }
}
@media (max-width: 1023px) { .has-give-bar { padding-bottom: 96px; } }

/* Founder art (placeholder until photos are supplied) */
.founder-art { --art: var(--primary); display: grid; place-items: center; position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--art) var(--mix, 55%), #0A1D57), #08174a); }
.founder-art::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 60px; opacity: .9; }
.art--fashion { --art: var(--sector-fashion); }
.art--agriculture { --art: var(--sector-agriculture); }
.art--retail { --art: var(--sector-retail); }
.art--energy { --art: var(--sector-energy); }
.art--navy { --mix: 22%; }
.art--card { --mix: 38%; }
.art--sector { --mix: 70%; }
.founder-art__initials { position: relative; width: 2.2em; height: 2.2em; display: grid; place-items: center; border-radius: 50%; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.35); }
.media-icon { position: relative; width: 40px; height: 40px; opacity: .6; }
.media-video { width: 100%; height: 100%; object-fit: cover; background: #000; }

/* Gallery */
.gallery-wrap { position: relative; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.media-tile { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; scroll-snap-align: start; background: var(--card); color: #fff; font: inherit; text-align: left; }
.media-tile > .founder-art, .media-tile > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.media-tile:hover > .founder-art, .media-tile:hover > video { transform: scale(1.04); }
.media-tile--video { cursor: pointer; }
.media-tile--video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,29,87,.7), transparent 60%); }
.media-tile__play { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--sector, var(--primary)); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .2s; }
.media-tile__play svg { width: 40%; height: 40%; margin-left: 6%; }
.media-tile:hover .media-tile__play { transform: translate(-50%, -50%) scale(1.08); }
.media-tile__label { position: absolute; z-index: 2; left: 12px; bottom: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.media-tile__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-size: 12px; font-weight: 600; background: linear-gradient(transparent, rgba(10,29,87,.9)); opacity: 0; transition: opacity .2s; }
.media-tile:hover .media-tile__caption, .media-tile:focus-visible .media-tile__caption { opacity: 1; }
@media (hover: none) { .media-tile__caption { opacity: 1; } }
.media-tile__more { position: absolute; inset: 0; z-index: 2; display: none; place-items: center; background: rgba(10,29,87,.65); font-weight: 800; font-size: 18px; }
.gallery__counter { position: absolute; right: 12px; top: 12px; z-index: 3; pointer-events: none; }
.gallery__all { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: none; background: #fff; color: var(--background); }
.gallery__all:hover { background: var(--muted); color: var(--background); }
.gallery__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.gallery__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-25); transition: all .2s; }
.gallery__dots i.is-active { width: 18px; border-radius: 3px; background: var(--primary); }
/* Video on top at full width, photos in a row underneath (all screen sizes) */
.gallery { display: grid; grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; border-radius: 0; }
.gallery .media-tile { aspect-ratio: 4 / 3; border-radius: 10px; }
.gallery .media-tile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; border-radius: var(--radius); }
.gallery .media-tile:nth-child(n+6) { display: none; }
.gallery .media-tile:nth-child(5) .media-tile__more { display: grid; }
/* Fewer than four photos: share the row evenly */
.gallery:has(> .media-tile:nth-child(4):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery:has(> .media-tile:nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery:has(> .media-tile:nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr); }
.gallery .media-tile:not(:first-child) .media-tile__play { width: 40px; height: 40px; }
.gallery .media-tile:not(:first-child) .media-tile__caption { font-size: 11px; padding: 20px 8px 6px; }
.gallery .media-tile:not(:first-child) .media-icon { width: 28px; height: 28px; }
.gallery-wrap .gallery__counter, .gallery__dots { display: none; }
.gallery__all { display: inline-flex; top: 12px; bottom: auto; }
@media (max-width: 599px) {
  .gallery { gap: 6px; }
  .gallery .media-tile:not(:first-child) .media-tile__caption { display: none; }
  .gallery__all { font-size: 0; gap: 0; padding: 0 12px; }
  .gallery__all svg { margin: 0; }
}

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--card); border: 1px solid var(--border); color: var(--fg-80); }
.badge svg { width: 14px; height: 14px; }
.badge--dark { background: rgba(10,29,87,.8); border-color: transparent; color: #fff; backdrop-filter: blur(6px); }
.badge--verified { background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.35); color: var(--success); }
.badge--funded { background: var(--primary); border-color: var(--primary); color: #fff; }
.funded-panel .donate__hero { display: grid; justify-items: center; gap: 8px; }
.funded-panel__quote { margin: 0; padding: 16px; border-left: 4px solid var(--primary); background: var(--card-2); border-radius: 0 12px 12px 0; font-style: italic; color: var(--fg-80); font-size: 14px; }
.funded-panel__quote cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; color: var(--primary); font-size: 13px; }
.media-img { width: 100%; height: 100%; object-fit: cover; }
.media-tile > .media-img, .update-media button > .media-img, .lightbox__thumbs button > .media-img { position: absolute; inset: 0; transition: transform .4s var(--ease); }
.media-tile:hover > .media-img { transform: scale(1.04); }
.lightbox__media > .media-img { position: absolute; inset: 0; object-fit: contain; }
.badge--sector { background: color-mix(in srgb, var(--sector) 15%, transparent); border-color: color-mix(in srgb, var(--sector) 35%, transparent); color: var(--sector); }

/* Progress info bar (above media + donation card) */
.stats-strip { display: grid; gap: 16px 40px; align-items: center; padding: 20px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
/* Left: amount with the bar underneath, ending where "goal" ends. Right: the three facts, stacked and aligned */
.stats-strip__main { display: grid; gap: 12px; justify-self: start; }
.stats-strip__main .progress__track { width: 100%; height: 10px; }
.stats-strip__raised { font-size: 15px; color: var(--fg-70); white-space: nowrap; }
.stats-strip__raised b { font-size: 26px; font-weight: 800; color: var(--primary); margin-right: 4px; }
.stats-strip__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--fg-80); }
.stats-strip__meta li { display: grid; grid-template-columns: 18px auto; align-items: center; gap: 10px; white-space: nowrap; }
.stats-strip__meta li:first-child { font-weight: 700; color: var(--foreground); }
@media (min-width: 768px) {
  .stats-strip { grid-template-columns: auto auto; justify-content: space-between; }
  .stats-strip__meta { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
}
.stats-strip__meta svg { color: var(--primary); flex: none; }
.btn--ghost { background: transparent; border: 0; color: var(--fg-80); padding-inline: 10px; box-shadow: none; }
.btn--ghost:hover { color: var(--primary); }

.campaign-title { margin-top: 32px; }
.campaign-title h1 { margin-top: 16px; font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.campaign-title__tagline { margin-top: 8px; font-size: 18px; font-weight: 600; color: var(--sector); }
.campaign-title__founder { margin-top: 8px; color: var(--fg-70); }
.campaign-title__founder b { color: var(--foreground); }

.anchor-nav { position: sticky; top: var(--top); z-index: 5; background: var(--background); margin-top: 24px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs button { min-height: 48px; padding: 0 16px; border: 0; background: none; font-weight: 700; font-size: 14px; color: var(--fg-60); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--foreground); }
.tabs button[aria-selected="true"] { color: var(--foreground); border-color: var(--primary); }
.c-section { padding-top: 40px; scroll-margin-top: calc(var(--top) + 56px); }
.c-section h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.c-section h3 { font-size: 18px; font-weight: 700; margin: 32px 0 12px; }
.c-section > p, .note { color: var(--fg-80); max-width: 75ch; }
.c-section > p + p { margin-top: 16px; }
.note { margin-top: 20px; padding: 16px 20px; border-radius: 12px; background: rgba(37,99,255,.12); border-left: 4px solid var(--secondary); font-size: 14px; color: var(--fg-80); }
.note strong { display: block; color: var(--foreground); }
.funds-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; margin-top: 16px; }
.funds-legend { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; font-size: 14px; }
.funds-legend li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; color: var(--fg-80); }
.funds-legend i { width: 14px; height: 14px; border-radius: 4px; }
.funds-legend b { color: var(--foreground); }
.tier-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }
.tier { display: grid; gap: 4px; text-align: left; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); color: var(--fg-80); font-size: 14px; cursor: pointer; transition: border-color .2s, transform .2s; }
.tier:hover { border-color: var(--primary); transform: translateY(-2px); }
.tier b { font-size: 26px; font-weight: 800; color: var(--primary); }
.facts { display: grid; gap: 12px; margin-bottom: 12px; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { display: flex; gap: 12px; padding: 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.fact svg { width: 20px; height: 20px; color: var(--success); flex: none; margin-top: 2px; }
.fact b { display: block; font-size: 14px; }
.fact span { font-size: 12px; color: var(--fg-60); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 24px 32px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--background); border: 3px solid var(--primary); }
.timeline time { font-size: 12px; font-weight: 700; color: var(--fg-60); text-transform: uppercase; letter-spacing: .08em; }
.timeline h3 { margin: 4px 0; font-size: 16px; }
.timeline p { font-size: 14px; color: var(--fg-80); }
.update-media { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.update-media button { position: relative; width: 96px; height: 72px; border-radius: 8px; overflow: hidden; border: 0; padding: 0; cursor: zoom-in; }
.update-media button > .founder-art { position: absolute; inset: 0; }
.update-media .media-icon { width: 24px; height: 24px; }
.disclosure { background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.disclosure + .disclosure { margin-top: 8px; }
.disclosure summary { cursor: pointer; padding: 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; font-size: 22px; color: var(--primary); }
.disclosure[open] summary::after { content: "−"; }
.disclosure div { padding: 0 16px 16px; font-size: 14px; color: var(--fg-70); }

.give-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 16px; align-items: center; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px rgba(0,0,0,.3); transition: transform .25s var(--ease); }
.give-bar .progress { flex: 1; min-width: 0; }
.give-bar.is-hidden { transform: translateY(110%); }
@media (min-width: 1024px) { .give-bar { display: none; } }

/* ==========================================================================
   INLINE DONATION PANEL (on the project page, never a popup)
   ========================================================================== */
.donate { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.is-flash .donate { animation: donateFlash 1.2s var(--ease); }
@keyframes donateFlash { 0%, 60% { box-shadow: 0 0 0 4px var(--primary), var(--shadow); } 100% { box-shadow: var(--shadow); } }
.donate__step { display: none; }
.donate__step.is-active { display: block; animation: viewIn .25s var(--ease); }
.donate__tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.donate__tabs input { position: absolute; opacity: 0; pointer-events: none; }
.donate__tabs label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; font-weight: 700; color: var(--fg-60); cursor: pointer; }
.donate__tabs label:hover { color: var(--foreground); }
.donate__tabs label span { color: var(--primary) !important; }
.donate__tabs input:checked + label { color: var(--foreground); box-shadow: inset 0 -3px 0 var(--primary); }
.donate__tabs input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: -3px; }
.donate__hero { text-align: center; padding: 24px 16px 16px; }
.donate__label { font-weight: 700; color: var(--fg-80); }
.donate__amount { font-size: clamp(2.5rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; color: var(--primary); letter-spacing: -.02em; }
.donate__amount small { font-size: 16px; color: var(--fg-60); font-weight: 600; margin-left: 2px; }
.donate__impact { background: var(--primary-soft); border-block: 1px solid var(--primary-line); padding: 16px 20px; text-align: center; font-size: 14px; color: var(--fg-80); }
.donate__body { padding: 20px; display: grid; gap: 16px; }
.donate__amounts { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.donate__amounts > input { position: absolute; opacity: 0; pointer-events: none; }
.donate__amounts > label { display: grid; place-items: center; min-height: 50px; border-radius: 999px; border: 2px solid rgba(245,245,245,.3); font-weight: 700; font-size: 15px; cursor: pointer; transition: all .2s; }
.donate__amounts > label:hover { border-color: var(--foreground); }
.donate__amounts > input:checked + label { background: var(--primary); border-color: var(--primary); color: #fff; }
.donate__amounts > input:focus-visible + label { outline: 3px solid var(--foreground); outline-offset: 2px; }
.donate__other { grid-column: span 2; display: flex; align-items: center; gap: 6px; padding: 0 18px; border-radius: 999px; border: 2px solid rgba(245,245,245,.3); color: var(--fg-60); font-weight: 700; }
.donate__other input { flex: 1; min-width: 0; min-height: 46px; border: 0; background: transparent; outline: none; font-weight: 600; color: var(--foreground); }
.donate__other input::placeholder { color: var(--fg-40); }
.donate__other.is-active, .donate__other:focus-within { border-color: var(--primary); }
.donate__fine { font-size: 12px; color: var(--fg-60); text-align: center; line-height: 1.6; }
.donate__fine a { color: var(--fg-80); }
.donate__summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--card-2); border-bottom: 1px solid var(--border); }
.donate__summary > div { flex: 1; min-width: 0; }
.donate__summary b { display: block; font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.donate__summary span { font-size: 12px; color: var(--fg-60); }
.donate__summary .btn--sm { background: transparent; color: var(--fg-80); border: 0; box-shadow: none; }
.donate__cover { background: var(--card-2); padding: 12px; border-radius: 12px; }
.donate__h { font-size: 16px; font-weight: 700; margin-top: 8px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--fg-80); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); flex: none; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-weight: 600; font-size: 14px; }
.field__hint { font-size: 12px; color: var(--fg-60); }
.field__error { display: none; font-size: 13px; font-weight: 600; color: var(--danger); }
.field.is-invalid .field__error { display: block; }
.field.is-invalid .input { border-color: var(--danger); }
.input { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--border); background: var(--background); color: var(--foreground); outline: none; }
.input::placeholder { color: var(--fg-40); }
.campaign-give .select { border-radius: 12px; width: 100%; background-color: var(--background); }
.alert { display: flex; gap: 12px; padding: 12px 16px; border-radius: 12px; font-size: 13px; margin: 0; }
.alert--info { background: rgba(37,99,255,.14); border-left: 4px solid var(--secondary); color: var(--fg-80); }

.express { display: grid; gap: 10px; }
.pay-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 999px; border: 0; font-weight: 700; cursor: pointer; transition: filter .2s; }
.pay-btn:hover { filter: brightness(1.15); }
.pay-btn[disabled] { opacity: .75; cursor: progress; }
.pay-btn--apple, .pay-btn--google { background: #000; color: #fff; }
.pay-btn--google b { background: linear-gradient(90deg, #4285f4 0 25%, #ea4335 25% 50%, #fbbc05 50% 75%, #34a853 75%); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.15em; }
.pay-btn--paypal { background: #ffc439; color: #003087; font-size: 1.15rem; font-weight: 800; }
.pay-btn--paypal i { font-style: italic; }
.or-divider { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--fg-60); }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.pm-list { display: grid; gap: 10px; }
.pm { border: 2px solid var(--border); border-radius: 12px; transition: border-color .2s; }
.pm:has(> input:checked) { border-color: var(--primary); }
.pm > input { position: absolute; opacity: 0; pointer-events: none; }
.pm > label { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; font-weight: 700; cursor: pointer; }
.pm > label small { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--fg-60); }
.pm > input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 12px; }
.pm__body { display: none; padding: 0 16px 16px; gap: 12px; }
.pm > input:checked ~ .pm__body { display: grid; }
.pm__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hosted-input { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--border); background: var(--background); color: var(--fg-40); }
.card-brands { display: flex; gap: 4px; }
.card-brands i { font-style: normal; font-size: 9px; font-weight: 800; color: #fff; padding: 3px 5px; border-radius: 3px; }
.hosted-frame__label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-60); font-weight: 600; }
@media (max-width: 380px) { .pm > label small { display: none; } }
.proto-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--primary-line); background: var(--primary-soft); font-size: 12px; color: var(--fg-80); }
.proto-controls select { font-size: 12px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--primary-line); background: var(--background); color: var(--foreground); }

.result { display: grid; gap: 16px; justify-items: center; text-align: center; }
.result__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; }
.result__icon svg { width: 36px; height: 36px; }
.result__icon--ok { background: rgba(74,222,128,.15); color: var(--success); animation: pop .5s var(--ease); }
.result__icon--bad { background: rgba(255,107,107,.15); color: var(--danger); }
.result__icon--wait { background: rgba(37,99,255,.15); color: #7EA2FF; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.result h3 { font-size: 24px; font-weight: 800; }
.result .muted, .result p { color: var(--fg-70); }
.result .donate__impact { border-radius: 12px; border: 1px solid var(--primary-line); }
.share-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.share-row .btn { padding: 0; font-size: 13px; background: transparent; color: var(--foreground); border: 2px solid var(--fg-25); box-shadow: none; }
@media (max-width: 419px) { .share-row { grid-template-columns: 1fr 1fr; } }
.account-cta { width: 100%; text-align: left; border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.account-cta .btn--secondary { background: transparent; color: var(--foreground); border: 2px solid var(--fg-25); }
.next-campaign { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 12px; background: var(--card-2); }
.next-campaign .founder-art { width: 56px; height: 56px; border-radius: 10px; flex: none; }
.next-campaign .founder-art__initials { font-size: 16px; border: 0; background: none; width: auto; height: auto; }
.next-campaign div { flex: 1; min-width: 0; }
.next-campaign b { display: block; font-size: 14px; }
.next-campaign div span { font-size: 12px; color: var(--fg-60); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall 1.8s var(--ease) forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: .6; } }

/* ==========================================================================
   LIGHTBOX + VIDEO PLAYER
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 90; background: #050e2e; color: #fff; display: none; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; }
.lightbox.is-open { display: grid; animation: viewIn .25s var(--ease); }
.lightbox__bar { display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter); }
.lightbox__count { font-size: 14px; color: var(--fg-60); font-variant-numeric: tabular-nums; }
.lightbox__title { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__media { width: 100%; max-width: 1040px; max-height: 100%; aspect-ratio: 16 / 9; position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.lightbox__media > .founder-art, .lightbox__media > video { position: absolute; inset: 0; width: 100%; height: 100%; }
.lightbox__media > video { object-fit: contain; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); }
.lightbox__nav:hover { background: var(--primary); }
.lightbox__nav[disabled] { opacity: .25; cursor: default; background: rgba(255,255,255,.14); }
.lightbox__nav--prev { left: max(8px, calc(50% - 590px)); }
.lightbox__nav--next { right: max(8px, calc(50% - 590px)); }
.lightbox__info { max-width: 1040px; width: 100%; margin: 0 auto; padding: 16px var(--gutter) 8px; display: grid; gap: 8px; }
.lightbox__heading { font-size: 20px; font-weight: 800; }
.lightbox__info p { color: var(--fg-80); font-size: 14px; }
.lightbox__note { color: var(--fg-60) !important; font-size: 13px !important; }
.lightbox__source { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--fg-60); }
.lightbox__source svg { width: 14px; height: 14px; color: var(--success); flex: none; }
.lightbox__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px var(--gutter) calc(16px + env(safe-area-inset-bottom)); justify-content: safe center; scrollbar-width: none; }
.lightbox__thumbs button { position: relative; flex: none; width: 72px; height: 54px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .5; background: none; }
.lightbox__thumbs button:hover { opacity: .85; }
.lightbox__thumbs button > .founder-art { position: absolute; inset: 0; }
.lightbox__thumbs button[aria-current="true"] { border-color: var(--primary); opacity: 1; }
.lightbox__thumbs .thumb-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; }
@media (max-width: 767px) { .lightbox__give-name { display: none; } .lightbox__nav { width: 40px; height: 40px; } }
.player { position: absolute; inset: 0; background: #000; }
.player > .founder-art { position: absolute; inset: 0; }
.player__start { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; border: 0; background: rgba(10,29,87,.35); color: #fff; cursor: pointer; font: inherit; }
.player__start .media-tile__play { position: static; transform: none; width: 76px; height: 76px; }
.player__start b { font-size: 18px; }
.player__start small { font-size: 12px; color: var(--fg-80); }
.player__cc { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); width: max-content; max-width: 86%; background: rgba(0,0,0,.8); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: clamp(13px, 1.6vw, 17px); text-align: center; }
.player__controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 4px; padding: 8px 12px; background: linear-gradient(transparent, rgba(0,0,0,.8)); font-size: 12px; }
.player__controls button, .player__controls select { min-height: 36px; min-width: 36px; border: 0; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; font-weight: 700; font-size: 12px; }
.player__controls button[aria-pressed="true"] { background: rgba(255,255,255,.22); }
.player__controls select { background: rgba(255,255,255,.14); padding: 0 6px; }
.player__controls select option { color: #000; }
.player__track { flex: 1; height: 5px; border-radius: 5px; background: rgba(255,255,255,.25); overflow: hidden; margin: 0 6px; }
.player__track i { display: block; height: 100%; width: 0; background: var(--primary); }
.player__time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.player__audio { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; background: var(--background); font-size: 14px; }
.player__audio .bars { display: flex; gap: 4px; align-items: end; height: 32px; }
.player__audio .bars i { width: 5px; background: var(--primary); border-radius: 3px; animation: eq .9s ease-in-out infinite alternate; }
.player__audio .bars i:nth-child(2n) { animation-delay: -.3s; }
.player.is-paused .player__audio .bars i { animation-play-state: paused; }
@keyframes eq { from { height: 6px; } to { height: 32px; } }
@media (max-width: 480px) { .player__cc { bottom: 46px; font-size: 12px; } .player__audio span { display: none; } }
.transcript summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--primary); }
.transcript ol { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--fg-80); max-height: 120px; overflow-y: auto; }
.transcript time { color: var(--fg-60); margin-right: 8px; }

/* Currency card (above the donation panel) */
.currency-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 16px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.currency-card__label { font-weight: 700; font-size: 15px; }
.currency-card__control { grid-column: 2; }
.currency-card__select { appearance: none; min-height: 44px; min-width: 112px; padding: 0 40px 0 16px; border-radius: 999px; border: 2px solid var(--fg-25); background: var(--background) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23F5F5F5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center; color: var(--foreground); font-weight: 700; font-size: 15px; cursor: pointer; }
.currency-card__select:hover { border-color: var(--foreground); }
.currency-card__select option { color: #0A1D57; background: #fff; }

/* ==========================================================================
   APPLY: eligibility check and sign-up
   ========================================================================== */
.apply { min-height: 100vh; padding-top: calc(var(--top) + 48px); }
.section.apply.pattern::before { background: rgba(10,29,87,.9); }
.apply__wrap { max-width: 40rem; display: grid; gap: 16px; }
.apply__wrap > .pill { justify-self: start; margin-bottom: 8px; }
.apply__title { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.apply__lead { color: var(--fg-70); font-size: 17px; margin-bottom: 16px; }
.apply__sub { font-weight: 700; justify-self: start; }
.apply__card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 24px; }
@media (min-width: 640px) { .apply__card { padding: 40px; } }
.apply__card.result .btn { width: 100%; }
.apply__progress { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--fg-60); }
.apply__form { display: grid; gap: 20px; }
.apply__actions { display: flex; justify-content: space-between; gap: 12px; }
.apply__actions .btn { flex: 1; }
@media (min-width: 480px) { .apply__actions .btn { flex: 0 0 auto; } }
.answer-set { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.answer-set legend { padding: 0; display: grid; gap: 8px; }
.answer-set legend small { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.answer-set legend span { font-size: 22px; font-weight: 800; line-height: 1.3; }
.answer-set .field__hint { font-size: 14px; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.answer { position: relative; }
.answer input { position: absolute; opacity: 0; pointer-events: none; }
.answer span { display: grid; place-items: center; min-height: 56px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--border); background: var(--background); font-weight: 700; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.answer span:hover { border-color: var(--fg-40); }
.answer input:checked + span { border-color: var(--primary); background: var(--primary-soft); }
.answer input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: 100%; text-align: left; }
.issue { display: flex; gap: 12px; padding: 16px; border-radius: 12px; background: var(--card-2); border-left: 4px solid var(--danger); }
.issue--review { border-left-color: var(--secondary); }
.issue__icon { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,107,107,.15); color: var(--danger); }
.issue--review .issue__icon { background: rgba(37,99,255,.15); color: #7EA2FF; }
.issue__icon svg { width: 16px; height: 16px; }
.issue b { font-size: 14px; }
.issue p { font-size: 14px; color: var(--fg-80) !important; margin-top: 4px; }
.result .alert { text-align: left; }
.apply__row { display: grid; gap: 20px; }
@media (min-width: 520px) { .apply__row { grid-template-columns: 1fr 1fr; } }
.apply__form > .field__hint { margin-top: -12px; }
.apply__form .small { justify-self: start; font-weight: 600; }
.fine--light a { color: #fff; font-weight: 700; }
.btn--ghost { background: transparent; color: var(--foreground); border-color: var(--fg-25); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ==========================================================================
   THE USHE FUND: pooled donations (home panel, donate page, founder profiles)
   ========================================================================== */
.fund-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.fund-stats > div { display: grid; gap: 2px; padding: 14px 12px; border-radius: var(--radius); background: var(--card-2); border: 1px solid var(--border); }
.fund-stats b { font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 800; color: var(--primary); line-height: 1.15; }
.fund-stats span { font-size: 12px; color: var(--fg-70); }
.fund-stats--sm { margin-bottom: 0; }
.fund-stats--sm b { font-size: 1.05rem; }
.funded-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.funded-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--card-2); border: 1px solid var(--border); color: inherit; text-decoration: none; transition: border-color .2s; }
.funded-list a:hover { border-color: var(--sector); }
.funded-list__text { flex: 1; min-width: 0; display: grid; }
.funded-list__text b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funded-list__text small { font-size: 12px; color: var(--fg-60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funded-list__amt { font-weight: 800; color: var(--success); font-variant-numeric: tabular-nums; }
.pool-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 32px; padding: 16px 20px; border-radius: var(--radius); background: var(--primary-soft); border: 1px solid var(--primary-line); }
.pool-banner p { flex: 1 1 320px; font-size: 14px; color: var(--fg-80); }
.biz-card__cta { margin-top: 16px; }
.badge--fund { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-line); }
.fund-panel__how { font-size: 14px; color: var(--fg-80); }
.give-bar__text { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; }
.donate-page { padding-top: calc(var(--top) + 48px); }
.donate-page__grid { display: grid; gap: 32px; align-items: start; }
.donate-page__intro .fund-stats { margin-bottom: 0; }
.donate-page .campaign-give { order: 0; } /* profile pages push .campaign-give down on small screens */
/* The donation panel reuses .campaign-give, which the profile layout places in a named "give" grid area:
   reset that here so the donate page keeps its own two columns. */
@media (min-width: 1024px) {
  .donate-page__grid { grid-template-columns: minmax(0, 1fr) 440px; grid-template-areas: "intro give" "more give"; column-gap: 64px; row-gap: 32px; }
  .donate-page__intro { grid-area: intro; }
  .donate-page__more { grid-area: more; }
  .donate-page .campaign-give { grid-area: give; display: block; align-self: start; position: sticky; top: calc(var(--top) + 16px); }
}
.donate-page__intro > .pill { margin-bottom: 16px; }
.donate-page__title { font-size: clamp(2.25rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin-bottom: 16px; }
.donate-page__lead { font-size: 18px; color: var(--fg-70); margin-bottom: 32px; max-width: 40rem; }
.donate-page__h { font-size: 20px; font-weight: 800; margin: 40px 0 16px; }
.donate-page__more > .donate-page__h:first-child { margin-top: 8px; }
.fund-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.fund-steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 56px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); font-size: 15px; color: var(--fg-80); }
.fund-steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 13px; font-weight: 800; }
.fund-steps b { color: var(--foreground); }
.ticks--plain { margin: 0; }
.ticks--plain li { font-size: 15px; color: var(--fg-80); align-items: flex-start; }
.ticks--plain li::before { background: var(--primary-soft); color: var(--primary); }
.donate-page__more .small { font-weight: 700; }
@media (max-width: 479px) { .fund-stats { gap: 8px; } .fund-stats > div { padding: 10px 8px; } .fund-stats b { font-size: 1rem; } .fund-stats span { font-size: 11px; } }
