/* =========================================================
   Hatchlab — crowdfunding platform layer
   ========================================================= */
:root {
  --accent: #3ecf8e;
  --accent-ink: #03140b;
  --accent-soft: rgba(62,207,142,.1);
}
.btn--accent { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn--accent:hover { background: #52d99c; }
.bar--accent .bar__fill { background: var(--accent); }
.ico { width: 20px; height: 20px; flex-shrink: 0; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.accent { color: var(--accent); }
.section--tight { padding: 90px 0; }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.row-head h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.035em; }
.row-head p { color: var(--muted); margin-top: 8px; }
.row-head a { color: var(--muted); font-size: 14.5px; white-space: nowrap; }
.row-head a:hover { color: var(--text); }

/* Logo */
.logo__mark { width: 28px; height: 28px; }

/* Header search */
.nsearch { position: relative; flex: 0 1 280px; }
.nsearch input { width: 100%; height: 40px; padding: 0 14px 0 38px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 14px var(--font); outline: none; transition: border-color .2s, background .2s; }
.nsearch input:focus { border-color: var(--border-2); background: var(--surface-2); }
.nsearch input::placeholder { color: var(--muted); }
.nsearch svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.acct { position: relative; }
.acct .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: none; }
.acct .dot.is-on { display: block; }

/* Badges */
.tag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 8px; border-radius: 6px; font: 600 11.5px/1.2 var(--font); letter-spacing: .01em; background: rgba(9,9,11,.82); color: #fafafa; border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.tag--ending { color: #fbbf24; }
.tag--funded { color: var(--accent); }

/* Campaign card */
.cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cgrid--3 { grid-template-columns: repeat(3, 1fr); }
.ccard { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .35s var(--ease), border-color .3s; }
.ccard:hover { border-color: rgba(255,255,255,.22); }
.ccard__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #000; }
.ccard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ccard:hover .ccard__media img { transform: scale(1.03); }
.ccard__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.ccard__meta { font-size: 12px; color: var(--muted); }
.ccard h3 { font-size: 18px; margin: 8px 0 6px; letter-spacing: -.02em; }
.ccard h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ccard p { color: #bdbbcb; font-size: 14px; line-height: 1.45; }
.ccard__by { font-size: 12.5px; color: var(--muted); margin: 10px 0 16px; }
.ccard__by strong { color: #d4d2e0; font-weight: 500; }
.ccard .bar { margin-top: auto; height: 5px; }
.ccard__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.ccard__stats strong { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.ccard__stats span { font-size: 12px; color: var(--muted); }
.ccard__soon { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.ccard__soon strong { display: block; color: var(--text); font-size: 14px; }
.ccard__soon .btn { position: relative; z-index: 2; }

/* =========================================================
   HOME
   ========================================================= */
.fhero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: center; margin-top: -72px; padding: 140px 0 80px; overflow: hidden; }
.fhero .hero__bg { background-position: 70% center; }
.fhero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(5,5,10,.85) 30%, rgba(5,5,10,.2) 65%, transparent), linear-gradient(180deg, rgba(5,5,10,.6) 0%, transparent 25%, transparent 70%, var(--bg) 100%); }
.fhero__content { position: relative; max-width: 600px; }
.fhero__label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: #d8d6e4; }
.fhero h1 { margin-top: 22px; font-size: clamp(42px, 5.6vw, 76px); letter-spacing: -.035em; line-height: 1.02; }
.fhero__lead { margin-top: 22px; font-size: 18px; color: #c9c7d6; max-width: 520px; }
.fhero__by { margin-top: 14px; font-size: 14px; color: var(--muted); }
.fhero__by strong { color: var(--text); font-weight: 500; }
.fstats { margin-top: 32px; padding: 20px 22px; border-radius: var(--radius); }
.fstats__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.fstats strong { display: block; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fstats span { font-size: 12px; color: var(--muted); }
.fhero__ctas { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--border); background: var(--bg-2); }
.kpi { padding: 34px 28px; }
.kpi + .kpi { border-left: 1px solid var(--border); }
.kpi strong { display: block; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 14px; }

.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat { position: relative; padding: 24px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color .25s, transform .35s var(--ease), background .25s; }
.cat:hover { border-color: rgba(255,255,255,.22); background: var(--surface-2); }
.cat__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-2); color: var(--text); }
.cat h3 { margin-top: 22px; font-size: 18px; }
.cat p { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.cat small { display: block; margin-top: 14px; font-size: 12.5px; color: var(--muted); }

.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; }

.upnext { display: grid; grid-template-columns: 1.15fr 1fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.upnext__img { min-height: 380px; background-size: cover; background-position: center; }
.upnext__body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.upnext h3 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.035em; margin-top: 16px; }
.upnext p { color: var(--muted); margin-top: 12px; }
.upnext__meta { display: flex; gap: 28px; margin: 26px 0; }
.upnext__meta strong { display: block; font-size: 22px; }
.upnext__meta span { font-size: 13px; color: var(--muted); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 200px; height: 48px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border-2); background: rgba(0,0,0,.35); color: var(--text); font: 15px var(--font); outline: none; }
.inline-form input:focus { border-color: rgba(255,255,255,.4); }

.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: how; }
.how li { list-style: none; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.how__n { font: 600 13px var(--font); color: var(--muted); }
.how h4 { font-size: 19px; margin: 40px 0 8px; }
.how p { color: var(--muted); font-size: 14.5px; }
.how-note { margin-top: 18px; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: #d4d4d8; font-size: 14.5px; display: flex; gap: 12px; align-items: center; }
.how-note .ico { color: var(--accent); }

.stories { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.story { display: grid; grid-template-columns: 200px 1fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.story img { width: 100%; height: 100%; object-fit: cover; }
.story__body { padding: 26px; display: flex; flex-direction: column; }
.story blockquote { margin: 14px 0; font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }
.story cite { font-style: normal; font-size: 13px; color: var(--muted); }
.story__nums { margin-top: auto; padding-top: 16px; display: flex; gap: 24px; font-size: 13px; color: var(--muted); }
.story__nums strong { color: var(--accent); font-size: 17px; display: block; }

.adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adv div { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); }
.adv i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-2); }
.adv h4 { margin: 18px 0 6px; font-size: 17px; }
.adv p { color: var(--muted); font-size: 14px; }

.press { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding: 40px 0 8px; color: rgba(255,255,255,.35); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.press span:nth-child(2) { font-weight: 400; letter-spacing: -.04em; }
.press span:nth-child(4) { font-family: var(--mono); font-size: 17px; letter-spacing: .1em; }

.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.newsletter h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; }
.newsletter p { color: var(--muted); margin-top: 10px; }

/* =========================================================
   EXPLORE
   ========================================================= */
.xhead { padding: 56px 0 32px; }
.xhead h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.045em; }
.xhead p { color: var(--muted); margin-top: 10px; font-size: 17px; }
.xbar { position: sticky; top: 72px; z-index: 20; padding: 16px 0; background: rgba(5,5,10,.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.xbar__row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.xbar .nsearch { flex: 1 1 260px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border-2); background: none; color: #d4d2e0; font: 500 13.5px var(--font); cursor: pointer; transition: all .2s; }
.chip-btn:hover { border-color: rgba(255,255,255,.4); }
.chip-btn.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.xselect { height: 40px; padding: 0 36px 0 14px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239b99ad' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--text); font: 14px var(--font); appearance: none; outline: none; color-scheme: dark; }
.xmeta { display: flex; justify-content: space-between; align-items: center; padding: 28px 0 20px; color: var(--muted); font-size: 14px; gap: 12px; flex-wrap: wrap; }
.xcat { margin-top: 28px; padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); display: none; }
.xcat.is-show { display: block; }
.xcat h2 { font-size: 28px; }
.xcat p { color: var(--muted); margin-top: 6px; }
.xempty { text-align: center; padding: 80px 0; color: var(--muted); }
.xempty h3 { color: var(--text); font-size: 22px; margin-bottom: 8px; }

/* =========================================================
   CAMPAIGN DETAIL
   ========================================================= */
.ctop { padding: 28px 0 0; }
.ctitle { text-align: center; max-width: 820px; margin: 28px auto 36px; }
.ctitle h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.035em; }
.ctitle p { margin-top: 12px; font-size: 19px; color: #c9c7d6; }
.chero { display: grid; grid-template-columns: 1.65fr 1fr; gap: 40px; align-items: start; }
.cmedia { display: grid; gap: 12px; }
.cmedia__main { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: #000; border: 1px solid var(--border); cursor: pointer; }
.cmedia__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.cmedia__main .keynote__play { width: 78px; height: 78px; }
.cmedia__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cmedia__thumbs button { padding: 0; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #000; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.cmedia__thumbs button.is-active, .cmedia__thumbs button:hover { opacity: 1; border-color: rgba(255,255,255,.45); }
.cmedia__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.cstats .bar { height: 6px; margin-bottom: 22px; }
.cstat { margin-bottom: 18px; }
.cstat strong { display: block; font-size: 34px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cstat strong.accent { font-size: 40px; }
.cstat span { color: var(--muted); font-size: 14px; }
.cstats__actions { display: flex; gap: 10px; margin: 26px 0 16px; }
.cstats__actions .btn--accent { flex: 1; }
.cstats__note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.cstats__note strong { color: #d4d2e0; font-weight: 500; }
.creator { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; background: #27272a; color: #fafafa; border: 1px solid var(--border-2); flex-shrink: 0; }
.creator strong { display: block; font-size: 15px; }
.creator span { font-size: 13px; color: var(--muted); }
.share { display: flex; gap: 8px; margin-top: 16px; }

.ctabs { position: sticky; top: 72px; z-index: 30; margin-top: 64px; background: rgba(5,5,10,.88); backdrop-filter: blur(16px); border-block: 1px solid var(--border); }
.ctabs__row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ctabs button { position: relative; height: 56px; padding: 0 18px; border: 0; background: none; color: var(--muted); font: 500 15px var(--font); cursor: pointer; white-space: nowrap; }
.ctabs button:hover { color: var(--text); }
.ctabs button.is-active { color: var(--text); }
.ctabs button.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--accent); }
.ctabs sup { font-size: 11px; color: var(--muted); margin-left: 4px; }

.cbody { display: grid; grid-template-columns: 1.65fr 1fr; gap: 40px; padding: 48px 0 120px; align-items: start; }
.cstory > * + * { margin-top: 64px; }
.cstory h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em; }
.cstory h2 + p, .cstory .lead { margin-top: 14px; color: var(--muted); font-size: 16.5px; }
.cstory figure { margin: 22px 0 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
.cstory figure img { width: 100%; display: block; }
.announce-card { padding: 34px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border-2); position: relative; overflow: hidden; }
.announce-card > * { position: relative; }
.announce-card .pill { margin-bottom: 18px; }

.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.feat div { padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.feat i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-2); }
.feat h4 { margin: 14px 0 6px; font-size: 16.5px; }
.feat p { color: var(--muted); font-size: 14px; }
.cstory .bench__list { margin-top: 26px; }
.cstory .console { margin-top: 22px; }
.cstory .console__body { height: 340px; }
.cstory .tabs__nav { margin-top: 18px; }
.ptl { list-style: none; padding: 0; margin: 22px 0 0; }
.ptl li { position: relative; padding: 0 0 26px 34px; }
.ptl li::before { content: ""; position: absolute; left: 7px; top: 20px; bottom: 0; width: 1px; background: var(--border-2); }
.ptl li:last-child::before { display: none; }
.ptl li::after { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--bg); }
.ptl li.done::after { background: var(--accent); border-color: var(--accent); }
.ptl li.now::after { background: var(--bg); border: 2px solid var(--accent); }
.ptl strong { font-size: 15.5px; }
.ptl span { display: block; font: 600 11.5px var(--font); color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .08em; }
.ptl p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.team div { padding: 22px; border-radius: 16px; border: 1px solid var(--border); }
.team .avatar { margin-bottom: 14px; }
.team strong { display: block; }
.team span { font-size: 13px; color: var(--muted); }
.risks { margin-top: 18px; padding: 22px 24px; border-radius: 16px; border: 1px solid rgba(245,177,76,.25); background: rgba(245,177,76,.05); color: #d9d4c4; font-size: 15px; }

/* Rewards */
.rewards { display: grid; gap: 14px; }
.rewards__title { font-size: 20px; margin-bottom: 4px; }
.rcard { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); padding: 20px; cursor: pointer; transition: border-color .25s, background .25s; }
.rcard:hover { border-color: var(--border-2); }
.rcard.is-selected { border-color: var(--accent); background: rgba(62,207,142,.04); cursor: default; }
.rcard.is-out { opacity: .5; cursor: not-allowed; }
.rcard__top { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.rcard__top img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); }
.rcard__price { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.rcard__price s { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.rcard__save { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 600; vertical-align: middle; }
.rcard h4 { font-size: 15.5px; font-weight: 600; margin-top: 2px; }
.rcard__pop { display: inline-block; margin-bottom: 10px; font: 600 11px var(--font); color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.rcard p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.rcard ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: #d4d2e0; }
.rcard ul li { padding-left: 20px; position: relative; }
.rcard ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.rcard__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; }
.rcard__meta span { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.rcard__left { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.rcard__left .bar { height: 4px; margin-top: 6px; }
.rcard__left .bar__fill { background: rgba(255,255,255,.5); }
.rcard__left.is-low { color: #fbbf24; }
.rcard__left.is-low .bar__fill { background: #fbbf24; }
.rcard__pick { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.rcard.is-selected .rcard__pick { display: grid; gap: 12px; animation: fadeUp .35s var(--ease); }
.rcard__pick label { font-size: 12.5px; color: var(--muted); display: grid; gap: 6px; }
.rcard__pick select, .rcard__pick input { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-2); background: rgba(0,0,0,.35); color: var(--text); font: 14.5px var(--font); outline: none; color-scheme: dark; }
.rcard__pick select:focus, .rcard__pick input:focus { border-color: var(--accent); }
.rcard__out { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--border-2); }

/* Updates & comments */
.post { padding: 28px 0; border-bottom: 1px solid var(--border); }
.post:first-child { padding-top: 0; }
.post__meta { font: 600 11.5px var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.post h3 { font-size: 22px; margin: 10px 0; }
.post p { color: #c9c7d6; }
.post__foot { margin-top: 14px; font-size: 13px; color: var(--muted); }
.cmt { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.cmt .avatar { width: 42px; height: 42px; font-size: 13px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border-2); }
.cmt .avatar.is-creator { background: var(--accent); color: var(--accent-ink); border: 0; }
.cmt strong { font-size: 14.5px; }
.cmt time { font-size: 12.5px; color: var(--muted); margin-left: 8px; }
.cmt p { margin-top: 6px; color: #c9c7d6; font-size: 14.5px; }
.cmt .creator-tag { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); margin-left: 6px; font-weight: 600; }
.cmt--reply { margin-left: 56px; }
.cmt-box { padding: 20px; border-radius: 16px; border: 1px dashed var(--border-2); color: var(--muted); font-size: 14px; margin-bottom: 10px; text-align: center; }

.mback { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(10,10,18,.94); backdrop-filter: blur(16px); border-top: 1px solid var(--border-2); }
.mback div { flex: 1; font-size: 12.5px; color: var(--muted); }
.mback strong { display: block; color: var(--text); font-size: 16px; }

/* Checkout / confirmation additions */
.sum-reward { padding: 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.sum-reward__top { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
.sum-reward img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.sum-reward span { font-size: 12.5px; color: var(--muted); }
.sum-reward h4 { font-size: 16px; margin: 2px 0; }
.sum-reward ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 13px; color: #c9c7d6; }
.sum-reward ul li::before { content: "✓ "; color: var(--accent); }
.sum-reward a { font-size: 13px; color: var(--accent); }
.aon { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border-2); color: #d4d4d8; font-size: 13.5px; line-height: 1.5; }
.backed { display: grid; gap: 12px; }
.backed__item { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--border); }
.backed__item img { width: 72px; height: 54px; border-radius: 10px; object-fit: cover; }
.backed__item strong { display: block; font-size: 15px; }
.backed__item span { font-size: 13px; color: var(--muted); }
.status { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.status--live { background: var(--accent-soft); color: var(--accent); }
.status--done { background: rgba(255,255,255,.08); color: #d4d2e0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cgrid { grid-template-columns: repeat(3, 1fr); }
  .hscroll { grid-auto-columns: calc((100% - 40px) / 3); }
  .nsearch.in-nav { display: none; }
}
@media (max-width: 1024px) {
  .cgrid, .cgrid--3 { grid-template-columns: repeat(2, 1fr); }
  .hscroll { grid-auto-columns: calc((100% - 20px) / 2); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .how, .adv { grid-template-columns: 1fr 1fr; }
  .stories, .upnext, .newsletter { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--border); }
  .chero, .cbody { grid-template-columns: 1fr; }
  .rewards { position: static; max-height: none; overflow: visible; }
  .mback { display: flex; }
  .footer { padding-bottom: 100px; }
}
@media (max-width: 640px) {
  .cgrid, .cgrid--3 { grid-template-columns: 1fr; }
  .hscroll { grid-auto-columns: 82%; }
  .cats { grid-template-columns: 1fr 1fr; }
  .how, .adv, .feat, .team { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .story img { aspect-ratio: 16/9; }
  .fstats__row { grid-template-columns: 1fr 1fr; }
  .fhero { padding-top: 120px; min-height: auto; }
  .fhero .hero__bg { background-position: 72% center; opacity: .55; }
  .upnext__body, .newsletter { padding: 28px; }
  .row-head { flex-direction: column; align-items: start; }
  .kpi { padding: 24px 16px; }
  .press { justify-content: center; font-size: 18px; }
  .cmt--reply { margin-left: 24px; }
  .ctitle p { font-size: 16px; }
}

/* Counters nested in figures keep the figure size */
.fstats strong span, .kpi strong span, .cstat strong span { font-size: inherit; color: inherit; }
.cstat span strong { display: inline; font-size: inherit; color: var(--text); letter-spacing: 0; }
@media (max-width: 640px) {
  .cgrid[data-campaigns] { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .cgrid[data-campaigns] > * { scroll-snap-align: start; }
}
.cbody > *, .chero > *, .dash > *, .checkout > * { min-width: 0; }
.cta--plain { padding: 120px 0; background: var(--bg-2); border-top: 1px solid var(--border); }
.cta--plain::before { display: none; }

/* =========================================================
   Motion & video layer
   ========================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* Background videos (fade in once playable, poster/still underneath) */
.bgvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease); pointer-events: none; }
.bgvideo.is-ready { opacity: 1; }
.hero__video { object-position: 70% center; }
.success__video { object-position: 75% center; }
.success__video + .container, .success .container { z-index: 1; }

/* Headline: line-by-line mask reveal */
.lines .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.lines .ln > span { display: block; transform: translateY(105%); transition: transform 1s cubic-bezier(.2,.75,.15,1); }
.lines.is-in .ln > span { transform: none; }
.lines.is-in .ln:nth-child(2) > span { transition-delay: .1s; }
.lines.is-in .ln:nth-child(3) > span { transition-delay: .2s; }

/* Header hides on scroll down, returns on scroll up */
.nav { transition: transform .35s var(--ease), background .3s, border-color .3s, backdrop-filter .3s; }
.nav.is-hidden { transform: translateY(-100%); }

/* Live counters: brief highlight when a new pledge lands */
[data-live] { transition: color .6s; }
[data-live].is-tick { color: var(--accent) !important; transition: none; }

/* Press marquee */
.press { display: block; padding: 48px 0 8px; overflow: hidden; }
.press__label { text-align: center; font: 600 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.press__track { display: flex; width: max-content; animation: press 40s linear infinite; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.press__row { display: flex; gap: 72px; padding-right: 72px; }
.press__row span { white-space: nowrap; }
.press:hover .press__track { animation-play-state: paused; }
@keyframes press { to { transform: translateX(-50%); } }
.press { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }

/* Final CTA over the waves video */
.cta--video { position: relative; padding: 150px 0; background: #050506 url('../img/waves.jpg') center / cover no-repeat; border-top: 1px solid var(--border); overflow: hidden; }
.cta--video::before { display: block; z-index: 1; background: linear-gradient(180deg, var(--bg) 0%, rgba(9,9,11,.35) 30%, rgba(9,9,11,.35) 70%, var(--bg) 100%); }
.cta--video .cta__inner { z-index: 2; }

/* Campaign video modal */
.modal__box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.modal__close { z-index: 3; }

/* Card image: gentle ken-burns on hover */
.ccard__media img { transition: transform 1.6s cubic-bezier(.2,.7,.1,1); }

@media (prefers-reduced-motion: reduce) {
  .bgvideo { display: none; }
  .lines .ln > span { transform: none; }
  .press__track { animation: none; }
  @view-transition { navigation: none; }
}
.success::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--bg) 25%, rgba(9,9,11,.45) 60%, transparent), linear-gradient(180deg, transparent 60%, var(--bg)); }
.success .container { position: relative; z-index: 1; }
