/* Capital Control — shared public website design system, October 2026 */
:root {
  --paper: #090a09;
  --white: #111311;
  --ink: #f4f0e6;
  --green: #d4ad62;
  --green-dark: #e8c47f;
  --brass: #d4ad62;
  --muted: #b6b1a6;
  --line: #31312b;
  --tint: #151611;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--green); }
button { cursor: pointer; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: 1.09; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 5.3vw, 4.75rem); }
h2 { font-size: clamp(2rem, 3.35vw, 3rem); }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }
p + p { margin-top: 1rem; }
ul { padding-left: 1.15rem; }
li + li { margin-top: .5rem; }
::selection { color: #090a09; background: #d4ad62; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 5px; }
[hidden] { display: none !important; }
.shell { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 100; background: var(--green); color: #090a09; padding: 12px 18px; }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 33px; height: 33px; display: inline-block; position: relative; border: 1px solid var(--green); }
.brand-mark::before { content: ''; position: absolute; inset: 6px 11px 6px 6px; background: var(--green); }
.brand-mark::after { content: ''; position: absolute; width: 8px; height: 8px; right: -4px; top: -4px; background: var(--brass); }
.brand-logo { width: 38px; height: 38px; object-fit: cover; border-radius: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 19px; letter-spacing: -.045em; font-weight: 650; }
.brand-text small, .brand-text > span { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 500; text-decoration: none; }
.nav-links a[aria-current='page'] { color: var(--green); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.header-actions { display: flex; gap: 10px; }
.nav .btn { min-height: 43px; font-size: 13px; padding: 10px 17px; }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 3px; padding: 8px 13px; color: var(--ink); background: transparent; font-size: 14px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 49px; padding: 12px 22px; border: 1px solid transparent; border-radius: 3px; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; transition: background .16s, color .16s, border-color .16s; }
.btn-primary { background: var(--green); color: #090a09; border-color: var(--green); }
.btn-primary:hover { color: #090a09; background: var(--green-dark); border-color: var(--green-dark); }
.btn-secondary { border-color: #626052; background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--tint); color: var(--green); border-color: var(--green); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.text-link, .resource-link { background: none; padding: 0; border: 0; color: var(--green); font-weight: 600; font-size: 14px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; cursor: pointer; }
.text-link:hover, .resource-link:hover { color: var(--ink); }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; line-height: 1.5; margin-bottom: 18px; }
.lead { font-size: 18px; line-height: 1.75; color: var(--muted); }
.muted { color: var(--muted); }
.small, .fine-print { font-size: 12px; line-height: 1.75; color: var(--muted); }
.badge { display: inline-flex; padding: 5px 9px; background: var(--tint); color: var(--green); font-size: 10px; font-weight: 650; letter-spacing: .075em; text-transform: uppercase; line-height: 1.5; border-radius: 2px; }
.section { padding-block: 90px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; margin-bottom: 36px; }
.section-heading > :first-child { flex: 1; }
.section-heading > p { max-width: 440px; color: var(--muted); }
.section-heading h2 { max-width: 650px; }
.section-tint { background: var(--tint); }
.section-dark { background: #11120f; color: var(--ink); border-color: var(--line); }
.section-dark .eyebrow { color: var(--brass); }
.section-dark p, .section-dark .muted { color: var(--muted); }
.section-dark .btn-primary { color: #090a09; background: var(--brass); border-color: var(--brass); }
.section-dark .btn-primary:hover { background: var(--green-dark); }
.section-dark .btn-secondary { color: var(--ink); border-color: #626052; }
.section-dark .btn-secondary:hover { background: #1d2018; border-color: var(--brass); }
.section-dark .text-link { color: var(--brass); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: 3px; background: #111311; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 14px; }
.card .eyebrow { margin-bottom: 30px; }
.card .button-row, .card > .text-link { margin-top: 24px; }
.section-note { border-top: 1px solid var(--line); padding-top: 19px; margin-top: 30px; color: var(--muted); font-size: 13px; }
.page-hero { padding-block: 68px 55px; }
.page-hero h1 { max-width: 850px; }
.page-hero .lead { max-width: 760px; margin-top: 25px; }
.page-hero .button-row { margin-top: 28px; }
.site-footer { padding: 45px 0 28px; background: var(--paper); border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 35px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: flex-end; font-size: 13px; }
.footer-links a, .footer-links button { color: var(--muted); font: inherit; text-decoration: none; background: none; border: 0; padding: 0; }
.footer-links a:hover, .footer-links button:hover { color: var(--green); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; margin-top: 35px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
/* Homepage */
.hero { padding: 78px 0 70px; }
.hero-inner { display: grid; grid-template-columns: 1.12fr .88fr; gap: 70px; align-items: center; }
.hero h1 { max-width: 680px; }
.hero h1 em { color: var(--green); font-weight: 400; }
.hero .lead { max-width: 600px; margin-top: 27px; }
.hero .button-row { margin-top: 30px; }
.hero .fine-print { margin-top: 20px; max-width: 530px; }
.library-preview { border: 1px solid #4c4534; padding: 30px; background: #151611; position: relative; box-shadow: 10px 10px 0 #1c1c14; }
.library-preview-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 27px; gap: 15px; }
.library-preview-top .eyebrow { margin: 0; font-size: 10px; }
.preview-dot { width: 7px; height: 7px; background: var(--brass); border-radius: 50%; }
.library-preview h2 { font-size: 31px; margin-bottom: 25px; letter-spacing: -.04em; }
.preview-row { padding-block: 20px; border-top: 1px solid #38372c; display: flex; align-items: center; gap: 15px; text-decoration: none; }
.preview-row:hover .preview-title { text-decoration: underline; text-underline-offset: 4px; }
.file-icon { display: grid; place-items: center; width: 40px; height: 48px; flex-shrink: 0; background: var(--paper); border: 1px solid #4a4434; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .05em; }
.preview-title { display: block; font-size: 14px; font-weight: 650; line-height: 1.4; }
.preview-detail { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
.preview-arrow { margin-left: auto; font-size: 20px; color: var(--green); }
.preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 21px; border-top: 1px solid #38372c; }
.preview-footer span { font-size: 11px; color: var(--muted); }
.hero-caption { display: flex; justify-content: space-between; gap: 30px; margin-top: 65px; padding-top: 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.hero-caption b { font-weight: 600; color: var(--ink); }
.resource-card { display: flex; flex-direction: column; }
.resource-card .text-link { margin-top: auto; padding-top: 25px; align-self: flex-start; }
.resource-card p { margin-bottom: 4px; }
.resource-number { font-family: var(--serif); color: var(--brass); font-size: 26px; margin-bottom: 28px; }
.service-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.service-layout h2 { margin-bottom: 23px; }
.service-layout .button-row { margin-top: 28px; }
.decision-list { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 7px; }
.decision-list span { padding: 5px 10px; border: 1px solid #494638; border-radius: 2px; color: var(--muted); font-size: 11px; }
.packet-item { border-top: 1px solid #494638; padding-block: 19px; display: grid; grid-template-columns: 29px 1fr; gap: 16px; }
.packet-item:last-child { border-bottom: 1px solid #494638; }
.packet-item > span { color: var(--brass); font: 15px var(--serif); padding-top: 3px; }
.packet-item h3 { font-size: 16px; margin-bottom: 6px; }
.packet-item p { font-size: 13px; line-height: 1.65; }
.sample-card { padding: 35px; background: #111311; border: 1px solid var(--line); display: flex; flex-direction: column; }
.sample-card .badge { align-self: flex-start; margin-bottom: 25px; }
.sample-card h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin-bottom: 14px; }
.sample-card p, .sample-card ul { color: var(--muted); font-size: 14px; }
.sample-card ul { margin-bottom: 25px; }
.sample-card .button-row { margin-top: auto; }
.sample-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 45px; margin-top: 24px; }
.sample-bottom > p { max-width: 760px; }
.sample-bottom .text-link { flex-shrink: 0; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.step { border-top: 1px solid #494638; padding-top: 19px; }
.step-num { color: var(--green); font: 24px var(--serif); margin-bottom: 26px; }
.step h3 { font-size: 16px; margin-bottom: 12px; }
.step p { font-size: 13px; color: var(--muted); }
.founder-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 75px; align-items: center; }
.founder-photo { margin: 0; position: relative; }
.founder-photo img { width: 100%; aspect-ratio: 4/4.5; object-fit: cover; object-position: center 29%; filter: saturate(.74); }
.founder-photo figcaption { padding-top: 12px; color: var(--muted); font-size: 11px; }
.founder-copy h2 { margin-bottom: 24px; }
.founder-copy > p { color: var(--muted); font-size: 15px; }
.founder-copy .text-link { display: inline-block; margin-top: 22px; }
.founder-detail { display: flex; gap: 30px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 21px; }
.founder-detail span { font-size: 12px; color: var(--muted); }
.founder-detail strong { display: block; color: var(--ink); margin-bottom: 4px; font-weight: 600; }
.cta-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 90px; align-items: center; }
.cta-layout h2 { margin-bottom: 23px; }
.cta-layout .button-row { margin-top: 28px; }
.cta-aside { border-left: 1px solid #494638; padding-left: 35px; }
.cta-aside h3 { margin-bottom: 13px; }
.cta-aside p { font-size: 13px; }
.cta-aside .text-link { display: inline-block; margin-top: 20px; }
.bounds-note { margin-top: 37px; border-top: 1px solid #494638; padding-top: 22px; font-size: 11px; max-width: none; }
.anchor-alias { scroll-margin-top: 105px; }
/* Newsletter keeps the existing Netlify form contract. */
.newsletter-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.78); padding: 24px; z-index: 60; overflow-y: auto; align-items: center; justify-content: center; }
.newsletter-modal.is-open { display: flex; }
.newsletter-panel { width: min(590px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; background: var(--paper); padding: 30px; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 20px 70px #0008; }
.newsletter-close { display: block; margin-left: auto; padding: 0 0 18px; background: none; border: none; color: var(--muted); font-size: 12px; }
.newsletter-panel h2 { font-size: 31px; margin-bottom: 18px; }
.newsletter-panel > p { color: var(--muted); font-size: 13px; }
.newsletter-form { display: grid; gap: 13px; margin-top: 22px; }
.newsletter-form label { display: grid; gap: 5px; color: var(--ink); font-size: 12px; font-weight: 600; }
.newsletter-form input, .newsletter-form textarea { width: 100%; border: 1px solid #5d594b; padding: 10px 12px; background: #141610; color: var(--ink); border-radius: 2px; font-size: 14px; }
.newsletter-form textarea { min-height: 72px; resize: vertical; }
.bot-field { display: none; }
.compliance-note, .form-status { font-size: 11px; color: var(--muted); }
.substack-option { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.substack-option p { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
@media (min-width: 1450px) { .hero { padding-block: 92px 72px; } }
@media (max-width: 1050px) {
  .shell { width: calc(100% - 48px); }
  .nav { gap: 20px; }
  .nav-links { gap: 23px; }
  .brand-text > span { display: none; }
  .hero-inner { gap: 40px; }
  .library-preview { padding: 23px; }
  .section-heading { gap: 35px; }
  .section-heading > p { max-width: 360px; }
  .service-layout, .founder-layout { gap: 45px; }
  .cta-layout { gap: 45px; }
}
@media (max-width: 780px) {
  html { scroll-padding-top: 90px; }
  .shell { width: calc(100% - 40px); }
  .nav { min-height: 73px; flex-wrap: wrap; gap: 12px; position: relative; }
  .brand-text strong { font-size: 18px; }
  .brand-mark { width: 29px; height: 29px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-actions { display: none; }
  .nav-links { display: none; flex-basis: calc(100% + 40px); margin: 0 -20px; padding: 20px; border-top: 1px solid var(--line); gap: 20px; flex-direction: column; align-items: stretch; background: var(--paper); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 5px 0; }
  .nav-links .mobile-assessment { display: inline-flex; padding: 12px 18px; color: #090a09; }
  .hero { padding: 45px 0 35px; }
  .hero-inner { grid-template-columns: 1fr; gap: 38px; }
  .hero h1 { font-size: clamp(2.85rem, 8vw, 4.2rem); max-width: 650px; }
  .hero .lead { font-size: 17px; margin-top: 22px; }
  .hero .fine-print { max-width: 100%; }
  .library-preview { padding: 25px; box-shadow: 6px 6px 0 #1c1c14; }
  .library-preview h2 { margin-bottom: 15px; }
  .preview-row { padding-block: 17px; }
  .hero-caption { margin-top: 37px; flex-wrap: wrap; gap: 12px 25px; }
  .hero-caption span { flex: 1 1 180px; }
  .section { padding-block: 56px; }
  .section-heading { display: block; margin-bottom: 27px; }
  .section-heading > p { max-width: 600px; margin-top: 22px; }
  .grid-3 { grid-template-columns: 1fr; gap: 15px; }
  .grid-2 { gap: 16px; }
  .card { padding: 26px; }
  .card .eyebrow { margin-bottom: 20px; }
  .resource-number { margin-bottom: 18px; }
  .service-layout { grid-template-columns: 1fr; gap: 35px; }
  .sample-card { padding: 25px; }
  .sample-card h3 { font-size: 25px; }
  .sample-bottom { display: block; }
  .sample-bottom .text-link { display: inline-block; margin-top: 17px; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .founder-layout { grid-template-columns: 1fr; gap: 35px; }
  .founder-photo { max-width: 360px; }
  .founder-photo img { aspect-ratio: 5/4; }
  .founder-copy > p { font-size: 15px; }
  .cta-layout { grid-template-columns: 1fr; gap: 35px; }
  .cta-aside { border-left: 0; border-top: 1px solid #494638; padding: 26px 0 0; }
  .footer-top { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .page-hero { padding-block: 45px; }
}
@media (min-width: 781px) { .mobile-assessment { display: none !important; } }
@media (max-width: 520px) {
  .shell { width: calc(100% - 36px); }
  .hero h1 { font-size: 2.8rem; }
  .hero .button-row .btn { width: 100%; }
  .hero-caption { font-size: 11px; }
  .hero-caption span { flex-basis: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
  .section-heading h2 { font-size: 2.2rem; }
  .preview-footer { flex-wrap: wrap; }
  .preview-title { font-size: 13px; }
  .founder-detail { flex-direction: column; gap: 15px; }
  .newsletter-modal { padding: 12px; }
  .newsletter-panel { padding: 24px; max-height: calc(100dvh - 24px); }
  .newsletter-panel h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Visible educational framing at the point of use; no modal or consent gate. */
.educational-notice { margin-top: 30px; padding: 19px 22px; border: 1px solid #494332; border-left: 3px solid var(--brass); background: #13140f; color: var(--muted); }
.educational-notice strong { display: block; color: var(--brass); font-size: 12px; font-weight: 650; letter-spacing: .04em; margin-bottom: 6px; }
.educational-notice p { font-size: 12px; line-height: 1.8; max-width: 1100px; }
.educational-notice a { color: var(--brass); white-space: nowrap; }
.hero .educational-notice { margin-top: 40px; }
.hero .educational-notice + .hero-caption { margin-top: 28px; }
.disclosure-copy { max-width: 860px; }
.disclosure-copy h2 { font: 400 30px/1.25 var(--serif); margin-bottom: 20px; }
.disclosure-copy h2:not(:first-child) { margin-top: 45px; }
.disclosure-copy p { color: var(--muted); font-size: 15px; line-height: 1.9; }
.disclosure-copy .button-row { margin-top: 28px; }
@media(max-width:520px) { .educational-notice { padding: 16px; } .educational-notice p { font-size: 12px; } }
