/* BF Founder Note. Every value is copied from sections/BF Founder Note.dc.html (its <style> blocks and inline styles).
   .ab-sec / .ab-flow spacing rules are shared with Why We Exist and repeated here so the section works on any page. */

.fp-founder { position: relative; overflow: hidden; padding: 0 24px 130px; }
.ab-founder-decor { position: absolute; top: 0; bottom: 0; left: 0; right: 0; pointer-events: none; overflow: hidden; }
.ab-founder-decor img { position: absolute; left: calc(50% + 640px - 260px); top: 50%; width: 640px; transform: translateY(-50%); opacity: 0.9; }
.fp-founder-inner { position: relative; max-width: 1280px; margin: 0 auto; }
.fp-founder-head { max-width: 760px; position: relative; }
.fp-founder-head .bf-glitch { left: -70px; top: 30px; width: 160px; height: 40px; }
.fp-founder-head .bf-glitch span:nth-child(1) { top: 0; left: 0; width: 120px; background: rgba(255,255,255,0.55); }
.fp-founder-head .bf-glitch span:nth-child(2) { top: 11px; left: 30px; width: 90px; background: rgba(255,255,255,0.3); }
.fp-founder-head .bf-glitch span:nth-child(3) { top: 22px; left: 10px; width: 140px; background: rgba(255,255,255,0.45); }

.ab-founder { display: grid; grid-template-columns: 380px 1fr; gap: 72px; align-items: start; margin-top: 64px; }

/* Photo with offset gradient frame */
.ab-photo { position: relative; border-radius: 6px; margin: 26px 26px 0 0; }
.ab-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 6px; position: relative; z-index: 1; }
.ab-photo::before { content: ''; position: absolute; top: -26px; right: -26px; bottom: 26px; left: 26px; border-radius: 6px; padding: 1.5px; background: linear-gradient(150deg, #29ABE2, #8DC63F); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; pointer-events: none; }
.ab-photo::after { content: ''; position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(180deg, rgba(1,21,33,0) 55%, rgba(1,21,33,0.55) 100%); pointer-events: none; z-index: 2; }

.fp-founder-id { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.fp-founder-name { font-size: 20px; font-weight: 800; color: #FFFFFF; line-height: 1.15; }
.fp-founder-title { color: #8DC63F; font-weight: 700; margin-top: 4px; }
.ab-li { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #8DC63F; color: #8DC63F; text-decoration: none; font-size: 15px; font-weight: 700; transition: background .3s ease; }
.ab-li:hover { background: rgba(141,198,63,0.12); color: #8DC63F; }
.ab-li:focus-visible, .ab-readmore:focus-visible { outline: 2px solid #8DC63F; outline-offset: 4px; }

/* Letter */
.ab-letter, .fp-founder-letter { position: relative; }
.ab-letter p { font-size: 17px; line-height: 1.75; color: #C4D5E0; margin: 0 0 22px; text-wrap: pretty; }
.ab-letter p:last-of-type { margin-bottom: 0; }
.ab-letter p.ab-q-open::before, .ab-letter p.ab-q-close::after { content: ''; display: inline-block; width: 18px; height: 15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 18'%3E%3Cpath d='M2 11.5C2 6.5 4.8 2.8 9 1.5l.8 1.6c-2.6 1.1-4 3-4.3 5.2H9v8.2H2v-5zm11 0c0-5 2.8-8.7 7-10l.8 1.6c-2.6 1.1-4 3-4.3 5.2H20v8.2h-7v-5z' fill='%238DC63F'/%3E%3C/svg%3E") no-repeat center / contain; vertical-align: -1px; }
.ab-letter p.ab-q-open::before { margin-right: 10px; vertical-align: 6px; }
.ab-letter p.ab-q-close::after { margin-left: 10px; transform: rotate(180deg); vertical-align: -7px; }
.ab-readmore { display: none; }
.fp-founder-sigspace { height: 36px; }
.ab-sigslot { display: block; width: 260px; height: auto; margin-left: -30px; opacity: 0.94; }

/* Collapsed letter on tablets and phones */
@media (max-width: 1023px) {
	.ab-letter-body.is-collapsed { max-height: 250px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
	.ab-letter-body.is-collapsed p.ab-q-close::after { display: none; }
	.ab-readmore { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 0; background: none; border: 0; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 700; color: #A5D45E; white-space: nowrap; }
	.ab-readmore .ab-chev { font-style: normal; font-size: 12px; display: inline-block; transform: rotate(90deg); transition: transform .3s ease; }
	.ab-readmore:hover { color: #D8F2A4; }
	.ab-letter-body:not(.is-collapsed) + .ab-readmore .ab-chev { transform: rotate(-90deg); }
	.ab-sigwrap.is-collapsed { display: none; }
}

@media (min-width: 768px) and (max-width: 1023px) {
	.ab-sec { padding-top: 100px !important; padding-bottom: 100px !important; }
	.ab-flow { padding-top: 0 !important; }
	.ab-founder { grid-template-columns: 300px 1fr !important; gap: 44px !important; }
	.ab-founder-decor img { width: 520px !important; left: calc(100% - 220px) !important; }
}

@media (max-width: 767px) {
	.ab-sec { padding-top: 80px !important; padding-bottom: 80px !important; }
	.ab-flow { padding-top: 0 !important; }
	.ab-founder { grid-template-columns: 1fr !important; gap: 32px !important; }
	.ab-founder-decor { display: none !important; }
	.ab-photo { max-width: 300px; margin: 20px auto 0; }
	.ab-photo::before { top: -20px; right: -20px; bottom: 20px; left: 20px; }
	.ab-letter p { font-size: 16px; }
}
