/* PhilanthroData shared styles */
:root{
  --ink:#1F3A5F;
  --ink-deep:#16283D;
  --ink-soft:#4A5A6B;
  --gold:#B8863B;
  --parchment:#F8F5EF;
  --parchment-2:#F2EDE3;
  --sage:#5C7A6B;
  --line:#E0D9CB;
  --white:#FFFFFF;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth; scroll-padding-top:84px;}
body{
  background:var(--parchment);
  color:var(--ink-deep);
  font-family:'Inter', sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{
  font-family:'Fraunces', serif;
  font-weight:500;
  color:var(--ink);
  line-height:1.15;
  letter-spacing:-0.01em;
}
a{color:inherit;}
.wrap{max-width:1120px; margin:0 auto; padding:0 32px;}
.mono{font-family:'IBM Plex Mono', monospace;}
header{position:sticky; top:0; z-index:50; background:rgba(248,245,239,0.92); backdrop-filter:blur(6px); border-bottom:1px solid var(--line);}
.nav{display:flex; align-items:center; justify-content:space-between; padding:18px 32px;}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none;}
.brand-mark{width:42px; height:42px; display:block; flex-shrink:0;}
.brand-name{font-family:'Fraunces', serif; font-weight:500; font-size:17px; color:var(--ink); letter-spacing:-0.01em;}
nav.links{display:flex; gap:32px; align-items:center;}
nav.links a{font-size:14px; color:var(--ink-soft); text-decoration:none; font-weight:500;}
nav.links a:hover{color:var(--ink);}
nav.links a.btn-primary, nav.links a.btn-primary:hover{color:var(--white);}
.btn{display:inline-block; padding:10px 20px; border-radius:6px; font-size:14px; font-weight:500; text-decoration:none; transition:transform 0.15s ease, box-shadow 0.15s ease;}
.btn-primary{background:var(--ink); color:var(--white);}
.btn-primary:hover{transform:translateY(-1px); box-shadow:0 4px 14px rgba(31,58,95,0.25);}
.menu-toggle{display:none; background:none; border:1px solid var(--line); border-radius:6px; padding:8px 10px; cursor:pointer; color:var(--ink);}
.menu-toggle svg{display:block;}
.cta-short{display:none;}
nav.links a{white-space:nowrap;}
@media (max-width:960px){
  .nav{padding:12px 20px; flex-wrap:wrap;}
  .brand-mark{width:34px; height:34px;}
  nav.links{gap:10px;}
  nav.links a:not(.btn){display:none;}
  .menu-toggle{display:block;}
  .cta-long{display:none;}
  .cta-short{display:inline;}
  .mobile-menu{display:none; width:100%; flex-direction:column; padding:8px 0 4px;}
  .mobile-menu.open{display:flex;}
  .mobile-menu a{padding:12px 0; border-top:1px solid var(--line); font-size:15px; color:var(--ink); text-decoration:none; font-weight:500;}
}
@media (min-width:961px){ .mobile-menu{display:none !important;} }
.hero{padding:88px 0 96px;}
.hero-grid{display:grid; grid-template-columns:1.1fr 0.9fr; gap:64px; align-items:center;}
.eyebrow{font-family:'IBM Plex Mono', monospace; font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color:var(--sage); font-weight:500; margin-bottom:18px; display:block;}
h1.headline{font-size:44px; margin-bottom:22px;}
.hero p.lede{font-size:18px; color:var(--ink-soft); max-width:480px; margin-bottom:32px;}
.hero-ctas{display:flex; gap:14px; flex-wrap:wrap;}
.btn-ghost{border:1.5px solid var(--ink); color:var(--ink); background:transparent;}
.btn-ghost:hover{background:var(--ink); color:var(--white);}
.audit-card{background:var(--white); border:1px solid var(--line); border-radius:14px; padding:28px; box-shadow:0 20px 50px rgba(31,58,95,0.08);}
.audit-card-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:18px;}
.audit-card-head .label{font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--ink-soft); letter-spacing:0.05em; text-transform:uppercase;}
.audit-card-head .dot{width:8px; height:8px; border-radius:50%; background:var(--sage); display:inline-block; margin-right:6px;}
.messy-list{margin-bottom:20px;}
.messy-row{display:flex; justify-content:space-between; font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--ink-soft); padding:6px 0; border-bottom:1px solid var(--parchment-2); opacity:0.55;}
.messy-row span.badge{font-size:10px; padding:1px 7px; border-radius:20px; background:#F2EAE3; color:#9C7A55;}
.arrow-down{text-align:center; color:var(--gold); font-size:18px; margin:14px 0; opacity:0.7;}
.clean-list{display:flex; flex-direction:column; gap:10px;}
.clean-row{display:flex; gap:12px; align-items:flex-start; background:var(--parchment); border-radius:8px; padding:12px 14px; border-left:3px solid var(--sage);}
.clean-row .num{font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--sage); font-weight:500; margin-top:1px;}
.clean-row .txt{font-size:13.5px; color:var(--ink-deep); font-weight:500;}
section{padding:80px 0;}
.section-head{max-width:640px; margin-bottom:48px;}
.section-head .eyebrow{margin-bottom:14px;}
h2.section-title{font-size:32px;}
hr.rule{border:none; border-top:1px solid var(--line); margin:0;}
.philosophy{background:var(--ink); color:var(--parchment);}
.philosophy blockquote{font-family:'Fraunces', serif; font-weight:500; font-size:30px; line-height:1.35; max-width:820px; margin-bottom:24px; font-style:italic;}
.philosophy .mission{margin-top:28px; max-width:720px; font-size:17px; line-height:1.55; color:rgba(255,255,255,0.88);}
.philosophy .mission strong{color:var(--white); font-weight:600;}
.philosophy blockquote em{color:var(--gold); font-style:italic;}
.philosophy p.attribution{font-family:'IBM Plex Mono', monospace; font-size:13px; color:#9FB2C6;}
.milestones{display:grid; grid-template-columns:repeat(3, 1fr); gap:28px;}
.milestone{border-top:2px solid var(--gold); padding-top:18px;}
.milestone .m-num{font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--gold); margin-bottom:10px; display:block;}
.milestone h3{font-size:19px; margin-bottom:10px;}
.milestone p{font-size:14.5px; color:var(--ink-soft);}
@media (max-width:760px){ .milestones{grid-template-columns:1fr;} }
.capability-grid{display:grid; grid-template-columns:repeat(2, 1fr); gap:20px;}
.capability{background:var(--white); border:1px solid var(--line); border-radius:14px; padding:26px;}
.cap-tag{display:inline-block; background:var(--sage); color:var(--white); font-family:'IBM Plex Mono', monospace; font-size:10px; padding:3px 10px; border-radius:20px; letter-spacing:0.02em; margin-bottom:14px;}
.capability h3{font-size:19px; margin-bottom:8px;}
.capability p{font-size:14px; color:var(--ink-soft);}
.addons{display:grid; grid-template-columns:repeat(3, 1fr); gap:16px;}
.addon{background:var(--white); border:1px solid var(--line); border-radius:12px; padding:20px;}
.addon h4{font-size:15px; font-family:'Inter'; font-weight:600; color:var(--ink); margin-bottom:6px;}
.addon p{font-size:13.5px; color:var(--ink-soft);}
@media (max-width:760px){ .capability-grid{grid-template-columns:1fr;} .addons{grid-template-columns:1fr;} }
.about-grid{display:grid; grid-template-columns:1.3fr 1fr; gap:48px; align-items:center;}
.about-stats{display:flex; flex-direction:column; gap:20px;}
.about-stat{background:var(--white); border:1px solid var(--line); border-radius:12px; padding:20px 24px;}
.about-stat .num{font-family:'IBM Plex Mono', monospace; font-size:28px; color:var(--ink); font-weight:500;}
.about-stat .cap{font-size:13px; color:var(--ink-soft); margin-top:4px;}
@media (max-width:760px){ .about-grid{grid-template-columns:1fr;} }
.case-study{background:var(--parchment-2); border-radius:16px; padding:44px;}
.case-head{display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:16px; margin-bottom:28px;}
.case-head h3{font-size:24px;}
.case-head .org{font-size:13.5px; color:var(--sage); font-family:'IBM Plex Mono', monospace;}
.stat-row{display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; margin-bottom:28px;}
.stat .num{font-family:'IBM Plex Mono', monospace; font-size:30px; color:var(--ink); font-weight:500;}
.stat .cap{font-size:13px; color:var(--ink-soft); margin-top:4px;}
.case-study p.narrative{font-size:15px; color:var(--ink-deep); max-width:760px;}
@media (max-width:760px){ .stat-row{grid-template-columns:1fr 1fr;} }
.mini-cases{display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; margin-top:20px;}
.mini-case{background:var(--white); border:1px solid var(--line); border-radius:12px; padding:22px;}
.mini-case .org{font-family:'IBM Plex Mono', monospace; font-size:10.5px; color:var(--sage); letter-spacing:0.03em;}
.mini-case h4{font-family:'Fraunces', serif; font-weight:500; font-size:17px; color:var(--ink); margin:8px 0 8px;}
.mini-case p{font-size:13.5px; color:var(--ink-soft);}
@media (max-width:900px){ .mini-cases{grid-template-columns:1fr;} }
.card-source{font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--gold); letter-spacing:0.04em; text-transform:uppercase; margin-bottom:16px; padding-bottom:14px; border-bottom:1px solid var(--line);}
.price-line{font-size:14px; color:var(--ink-soft); margin-top:18px;}
.price-line a{color:var(--ink); font-weight:500;}
.tier .price{font-family:'Fraunces', serif; font-size:30px; color:var(--ink); line-height:1.1; margin-bottom:8px;}
.tier .price span{font-family:'Inter', sans-serif; font-size:14px; color:var(--ink-soft);}
.pricing-note{margin-top:32px; padding:20px 24px; background:var(--white); border:1px solid var(--line); border-radius:12px; font-size:14.5px; color:var(--ink-soft);}
.pricing-note strong{color:var(--ink);}
.pricing-note a{color:var(--ink); font-weight:500;}
.current-work{margin-top:18px; padding:16px 22px; border:1px dashed var(--line); border-radius:12px; font-size:14px; color:var(--ink-soft);}
.current-work strong{color:var(--ink); font-weight:600;}
.testimonial{margin-top:32px; padding:28px 32px; border-left:3px solid var(--gold); background:var(--white); border-radius:0 12px 12px 0;}
.testimonial .quote{font-family:'Fraunces', serif; font-style:italic; font-size:18px; color:var(--ink-deep); line-height:1.5; margin-bottom:12px;}
.testimonial .attrib{font-family:'IBM Plex Mono', monospace; font-size:12.5px; color:var(--sage);}
.cta-section{text-align:center;}
.cta-section h2{font-size:32px; margin-bottom:14px;}
.cta-section p{color:var(--ink-soft); max-width:480px; margin:0 auto 28px;}
form{max-width:560px; margin:36px auto 0; text-align:left; background:var(--white); border:1px solid var(--line); border-radius:14px; padding:32px; box-shadow:0 20px 50px rgba(31,58,95,0.06);}
label{display:block; font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:0.05em; text-transform:uppercase; color:var(--ink-soft); font-weight:500; margin:18px 0 6px;}
label:first-of-type{margin-top:0;}
input,select,textarea{width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:8px; font-size:14.5px; font-family:'Inter', sans-serif; background:var(--parchment); color:var(--ink-deep);}
input:focus,select:focus,textarea:focus{outline:none; border-color:var(--sage);}
textarea{min-height:100px; resize:vertical;}
form button{width:100%; margin-top:24px; padding:13px 20px; border:none; border-radius:6px; background:var(--ink); color:var(--white); font-family:'Inter', sans-serif; font-size:14.5px; font-weight:500; cursor:pointer; transition:transform 0.15s ease, box-shadow 0.15s ease;}
form button:hover{transform:translateY(-1px); box-shadow:0 4px 14px rgba(31,58,95,0.25);}
#form-status{display:none; text-align:center; font-size:14px; font-weight:500; margin-top:16px;}
.form-note{text-align:center; font-size:13px; color:var(--ink-soft); margin-top:18px;}
.form-note a{color:var(--ink); font-weight:500;}
footer{border-top:1px solid var(--line); padding:40px 0;}
.footer-row{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;}
footer .foot-brand{font-family:'Fraunces', serif; font-size:15px; color:var(--ink);}
footer .foot-links{font-size:13px; color:var(--ink-soft);}
footer .foot-links a{text-decoration:none;}
footer .foot-links a:hover{color:var(--ink);}
footer .foot-meta{font-size:12.5px; color:var(--ink-soft); font-family:'IBM Plex Mono', monospace;}
.js .reveal{opacity:0; transform:translateY(14px); transition:opacity 0.6s ease, transform 0.6s ease;}
.js .reveal.visible{opacity:1; transform:translateY(0);}
@media (prefers-reduced-motion: reduce){ .js .reveal{opacity:1; transform:none; transition:none;} }
@media (max-width:900px){ .hero-grid{grid-template-columns:1fr;} h1.headline{font-size:34px;} }

/* ---------- Multi-page additions ---------- */
nav.links a[aria-current="page"]{color:var(--ink);}
.mobile-menu a[aria-current="page"]{color:var(--gold);}
.skip{position:absolute; left:-9999px; top:0;}
.skip:focus{left:16px; top:12px; z-index:100; background:var(--white); padding:8px 12px; border-radius:6px;}
a:focus-visible, button:focus-visible{outline:2px solid var(--gold); outline-offset:2px;}

/* Inner page header */
.page-hero{padding:72px 0 48px;}
.page-hero h1{font-size:42px; max-width:760px; margin-bottom:16px;}
.page-hero p.lede{font-size:18px; color:var(--ink-soft); max-width:680px;}
@media (max-width:760px){ .page-hero{padding:48px 0 32px;} .page-hero h1{font-size:32px;} }

/* Readable body copy */
.prose{max-width:720px;}
.prose p{font-size:16px; color:var(--ink-soft); margin-top:14px;}
.prose p:first-child{margin-top:0;}
.prose h2{font-size:26px; margin:44px 0 6px;}
.prose h3{font-size:19px; margin:28px 0 4px;}
.prose ul, .prose ol{margin:12px 0 0 22px; color:var(--ink-soft); font-size:16px;}
.prose li{margin-top:8px;}
.prose strong{color:var(--ink-deep); font-weight:600;}
.prose a{color:var(--ink); font-weight:500;}
.muted{color:var(--ink-soft);}
.lead-in{color:var(--ink-soft); font-size:15px; margin-top:10px;}

/* "Is this for you" situations */
.fit-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:20px;}
.fit{background:var(--white); border:1px solid var(--line); border-radius:14px; padding:24px;}
.fit h3{font-size:18px; margin-bottom:8px;}
.fit p{font-size:14.5px; color:var(--ink-soft);}
@media (max-width:860px){ .fit-grid{grid-template-columns:1fr;} }

/* Section footer link */
.more{margin-top:28px; font-size:15px;}
.more a{color:var(--ink); font-weight:600; text-decoration:none; border-bottom:1.5px solid var(--gold);}
.more a:hover{color:var(--gold);}

/* Proof row on home */
.proof-grid{display:grid; grid-template-columns:1.4fr 1fr; gap:20px; align-items:stretch;}
.proof-grid .case-study{padding:36px;}
.stat-card{background:var(--white); border:1px solid var(--line); border-radius:16px; padding:32px; display:flex; flex-direction:column; justify-content:center;}
.stat-card .org{font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--sage); letter-spacing:0.04em; text-transform:uppercase;}
.stat-card .big{font-family:'IBM Plex Mono', monospace; font-size:40px; color:var(--ink); font-weight:500; margin:10px 0 6px; line-height:1.1;}
.stat-card p{font-size:14.5px; color:var(--ink-soft);}
@media (max-width:900px){ .proof-grid{grid-template-columns:1fr;} }

/* Founder strip and About */
.founder{display:grid; grid-template-columns:160px 1fr; gap:36px; align-items:center;}
.headshot{width:160px; height:160px; border-radius:50%; display:block; object-fit:cover; background:var(--parchment-2);}
.headshot.lg{width:240px; height:240px;}
.founder h2{font-size:28px; margin-bottom:10px;}
.founder p{color:var(--ink-soft); font-size:16px; max-width:640px;}
@media (max-width:700px){ .founder{grid-template-columns:1fr; gap:20px;} .headshot.lg{width:180px; height:180px;} }
.about-top{display:grid; grid-template-columns:240px 1fr; gap:48px; align-items:start;}
@media (max-width:800px){ .about-top{grid-template-columns:1fr; gap:24px;} }
.stat-note{font-size:12.5px; color:var(--ink-soft); margin-top:10px;}
.about-stats.row{flex-direction:row; flex-wrap:wrap;}
.about-stats.row .about-stat{flex:1 1 180px;}

/* Deliverables and timeline */
.deliver{list-style:none; counter-reset:d; display:grid; grid-template-columns:repeat(2, 1fr); gap:14px;}
.deliver li{counter-increment:d; background:var(--white); border:1px solid var(--line); border-radius:12px; padding:18px 20px 18px 58px; position:relative; font-size:14.5px; color:var(--ink-soft);}
.deliver li::before{content:counter(d, decimal-leading-zero); position:absolute; left:20px; top:18px; font-family:'IBM Plex Mono', monospace; font-size:13px; color:var(--sage); font-weight:500;}
.deliver li strong{display:block; color:var(--ink); font-weight:600; font-size:15px; margin-bottom:2px;}
@media (max-width:760px){ .deliver{grid-template-columns:1fr;} }
.timeline-note{margin-top:22px; padding:16px 22px; border:1px dashed var(--line); border-radius:12px; font-size:14.5px; color:var(--ink-soft);}
.timeline-note strong{color:var(--ink);}

/* Tables (access page) */
.table-wrap{overflow-x:auto; margin-top:18px; border:1px solid var(--line); border-radius:12px; background:var(--white);}
table.ref{width:100%; border-collapse:collapse; font-size:14px; min-width:640px;}
table.ref th, table.ref td{text-align:left; padding:12px 14px; border-bottom:1px solid var(--line); vertical-align:top; color:var(--ink-soft);}
table.ref th{font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:0.05em; text-transform:uppercase; color:var(--ink); font-weight:500; background:var(--parchment-2);}
table.ref tr:last-child td{border-bottom:0;}
table.ref td:first-child{color:var(--ink); font-weight:600;}
.steps-grid{display:grid; grid-template-columns:repeat(2, 1fr); gap:18px; margin-top:20px;}
.steps-card{background:var(--white); border:1px solid var(--line); border-radius:14px; padding:24px;}
.steps-card h3{font-size:18px; margin-bottom:4px;}
.steps-card .role{font-size:13.5px; color:var(--sage); font-weight:600; margin-bottom:10px;}
.steps-card ol{margin-left:20px; font-size:14px; color:var(--ink-soft);}
.steps-card li{margin-top:5px;}
.steps-card p{font-size:13.5px; color:var(--ink-soft); margin-top:10px;}
@media (max-width:800px){ .steps-grid{grid-template-columns:1fr;} }

/* Model (mission page) */
.model{display:grid; grid-template-columns:repeat(3, 1fr); gap:20px;}
.model .capability{padding:24px;}
@media (max-width:860px){ .model{grid-template-columns:1fr;} }

/* Contact page */
.contact-grid{display:grid; grid-template-columns:1fr 1.2fr; gap:48px; align-items:start;}
.contact-grid form{margin:0; max-width:none;}
.next-steps{list-style:none; counter-reset:n; margin-top:20px;}
.next-steps li{counter-increment:n; position:relative; padding:0 0 18px 44px; font-size:15px; color:var(--ink-soft);}
.next-steps li::before{content:counter(n); position:absolute; left:0; top:0; width:28px; height:28px; border-radius:50%; background:var(--ink); color:var(--white); font-size:13px; font-weight:600; display:flex; align-items:center; justify-content:center;}
.next-steps li strong{color:var(--ink); display:block;}
.hint{font-size:12.5px; color:var(--ink-soft); margin-top:6px;}
.req{color:var(--gold);}
@media (max-width:860px){ .contact-grid{grid-template-columns:1fr; gap:28px;} }

/* Bottom CTA band */
.cta-band{background:var(--parchment-2); text-align:center;}
.cta-band h2{font-size:30px; margin-bottom:12px;}
.cta-band p{color:var(--ink-soft); max-width:520px; margin:0 auto 24px;}
.cta-band .hero-ctas{justify-content:center;}

/* Footer */
footer .foot-links{line-height:1.9;}
.footer-row{align-items:flex-start;}
@media (max-width:760px){ .footer-row{flex-direction:column;} }
.capability p strong{display:block; color:var(--ink-deep); font-weight:600; margin-bottom:4px;}
.contact-grid form label:first-of-type{margin-top:0;}

/* Privacy and other long-form legal pages */
.legal{max-width:760px;}
.legal h1{font-size:40px; margin-bottom:12px;}
.legal .updated{font-family:'IBM Plex Mono', monospace; font-size:12.5px; color:var(--ink-soft); margin-bottom:28px;}
.legal .summary{background:var(--white); border:1px solid var(--line); border-left:3px solid var(--gold); border-radius:0 12px 12px 0; padding:22px 26px; margin-bottom:40px;}
.legal .summary h2{margin-top:0;}
.legal h2{font-size:24px; line-height:1.25; margin:40px 0 12px;}
.legal h3{font-family:'Inter', sans-serif; font-size:16px; font-weight:600; color:var(--ink); margin:22px 0 6px;}
.legal p, .legal li{font-size:15.5px; color:var(--ink-soft); line-height:1.65;}
.legal p + p{margin-top:12px;}
.legal ul{padding-left:22px; margin-top:8px;}
.legal li + li{margin-top:6px;}
.legal strong{color:var(--ink-deep); font-weight:600;}
.legal table{width:100%; border-collapse:collapse; margin-top:12px; font-size:14.5px; background:var(--white); border:1px solid var(--line); border-radius:10px; overflow:hidden;}
.legal th, .legal td{text-align:left; padding:10px 14px; border-bottom:1px solid var(--line); vertical-align:top; color:var(--ink-soft);}
.legal th{font-family:'IBM Plex Mono', monospace; font-size:11.5px; letter-spacing:0.05em; text-transform:uppercase; color:var(--ink); font-weight:500; background:var(--parchment-2);}
.legal tr:last-child td{border-bottom:0;}
.legal code{font-family:'IBM Plex Mono', monospace; font-size:13px; background:var(--parchment-2); padding:1px 5px; border-radius:4px;}
@media (max-width:640px){
  .legal h1{font-size:32px;}
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td{display:block;}
  .legal thead{display:none;}
  .legal tr{border-bottom:1px solid var(--line); padding:6px 0;}
  .legal td{border:0; padding:4px 14px;}
  .legal td:first-child{font-weight:600; color:var(--ink); padding-top:10px;}
}
.wrap.prose{max-width:1120px;}
.wrap.prose > *{max-width:720px;}
