/* Founders Capital — built on the Founders Capital brand system.
   Ink carries type. Blue structures. Gold marks exactly one thing per screen. */

@font-face { font-family: 'Effra CC'; src: url('fonts/effra-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Effra CC'; src: url('fonts/effra-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Effra CC'; src: url('fonts/effra-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;

  --ink:        #0B1B33;
  --ink-2:      #3D5FA8;
  --blue:       #0730A0;
  --blue-800:   #052578;
  --blue-600:   #3D5FA8;
  --blue-500:   #A9BCEA;
  --blue-400:   #C9D6F2;
  --blue-300:   #DDE4F7;
  --blue-200:   #E2E9FA;
  --blue-150:   #EEF2FC;
  --blue-100:   #F5F8FE;
  --paper:      #F7F9FE;
  --surface:    #FFFFFF;
  --rule:       #DDE4F7;
  --rule-strong:#C9D6F2;

  --gold:       #F4B702;
  --gold-100:   #FBEDC5;
  --gold-text:  #7A5A00;

  --on-ink-1:   #FFFFFF;
  --on-ink-2:   #C9D6F2;
  --on-ink-3:   #8FA6D8;
  --rule-ink:   rgba(201, 214, 242, 0.18);

  --font: 'Effra CC', Inter, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --s-20: 80px; --s-24: 96px; --s-32: 128px;

  --r-chip: 8px; --r-card: 12px; --r-panel: 16px; --r-hero: 20px; --r-pill: 9999px;

  --shadow-card:  0 2px 10px rgba(11, 27, 51, 0.05);
  --shadow-panel: 0 2px 12px rgba(11, 27, 51, 0.05);
  --shadow-hub:   0 10px 28px rgba(7, 48, 160, 0.20);
  --shadow-focus: 0 0 0 4px rgba(7, 48, 160, 0.18);

  --dur-fast: 120ms; --dur: 200ms; --dur-slow: 600ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1280px;
  --gut: clamp(20px, 4vw, 48px);
  --section-y: clamp(56px, 8vw, 96px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* ---------- type ---------- */

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.06; }
h2 { font-size: clamp(28px, 3.4vw, 48px); }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; }

.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--blue-600); max-width: 42ch; }
.prose { max-width: 62ch; display: flex; flex-direction: column; gap: 1em; line-height: 1.55; color: var(--blue-600); }
.prose strong { font-weight: 600; color: var(--ink); }

.label {
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0;
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.tbc {
  font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); border: 1px solid var(--blue-400); border-radius: var(--r-chip);
  padding: 2px 6px; vertical-align: 2px; white-space: nowrap; margin-left: 6px;
}

/* ---------- shell ---------- */

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gut); }
section { padding-block: var(--section-y); }
.stack { display: flex; flex-direction: column; gap: var(--s-6); }
.hr { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- bracket lockup ---------- */

.lockup {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; white-space: nowrap;
}
.lockup .br { color: var(--gold); font-weight: 300; font-size: 1.35em; line-height: 0; transform: translateY(0.02em); }
.lockup .w1 { font-weight: 600; letter-spacing: 0.055em; }
.lockup .w2 { font-weight: 300; letter-spacing: 0.152em; color: var(--blue); }
.lockup .dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; flex: none; margin-inline: 2px; transform: translateY(-0.09em); }
.lockup-nav { font-size: 15px; }
.on-ink .lockup .w1 { color: var(--on-ink-1); }
.on-ink .lockup .w2 { color: var(--on-ink-2); }

/* ---------- progress + masthead ---------- */

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: var(--gold); z-index: 60; pointer-events: none;
  transition: transform 80ms linear;
}

.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); padding-block: 18px; }
.masthead.solid { background: rgba(247, 249, 254, 0.9); backdrop-filter: blur(14px); border-bottom-color: var(--rule); }
.masthead.solid .lockup .w1 { color: var(--ink); }
.masthead.solid .lockup .w2 { color: var(--blue); }
.masthead.solid nav a { color: var(--blue-600); }
.masthead.solid .btn-ghost { color: var(--blue); border-color: var(--blue-400); }

.masthead nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.masthead nav a {
  position: relative; font-size: 14px; font-weight: 500; text-decoration: none;
  color: var(--on-ink-2); padding-block: 4px; transition: color var(--dur) var(--ease);
}
.masthead nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-slow) var(--ease);
}
.masthead nav a:hover { color: var(--ink); }
.masthead:not(.solid) nav a:hover { color: var(--on-ink-1); }
.masthead nav a:hover::after, .masthead nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  padding: 11px 20px; border-radius: var(--r-pill);
  border: 1px solid var(--blue); background: var(--blue); color: #fff;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { background: var(--blue-800); border-color: var(--blue-800); transform: translateY(-1px); box-shadow: var(--shadow-hub); }
.btn .arw { transition: transform var(--dur) var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

.btn-ghost { background: transparent; color: var(--on-ink-1); border-color: rgba(201, 214, 242, 0.4); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--on-ink-2); color: #fff; box-shadow: none; }

/* the single gold element on the contact screen */
.btn-gold { background: var(--gold); border-color: var(--gold); color: #2A1F00; font-weight: 600; }
.btn-gold:hover { background: #FFC71F; border-color: #FFC71F; color: #2A1F00; }

.btn[disabled] { opacity: 0.4; pointer-events: none; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; box-shadow: var(--shadow-focus); border-radius: var(--r-chip);
}

/* ---------- ink grounds ---------- */

.on-ink { background: var(--ink); color: var(--on-ink-2); }
.on-ink h1, .on-ink h2, .on-ink h3 { color: var(--on-ink-1); }
.on-ink .label { color: var(--on-ink-3); }
.on-ink .lede { color: var(--on-ink-2); }
.on-ink .prose { color: var(--on-ink-2); }
.on-ink .prose strong { color: var(--on-ink-1); }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding-block: clamp(120px, 17vh, 180px) clamp(48px, 7vw, 88px); isolation: isolate; }
#lattice { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,27,51,0.25) 0%, rgba(11,27,51,0.05) 40%, rgba(11,27,51,0.72) 88%, var(--ink) 100%);
}
.hero .wrap { position: relative; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.hero h1 { max-width: 16ch; }
.hero h1 .mark-gold { color: var(--gold); }
.hero-side { display: flex; flex-direction: column; gap: var(--s-8); padding-bottom: 4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s-6); }
.eyebrow .label { color: var(--on-ink-3); }

/* proof rail */
.rail { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--rule-ink); padding-top: var(--s-6); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.rail .fig { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.02em; color: var(--on-ink-1); }
.rail p { font-size: 14px; line-height: 1.4; color: var(--on-ink-3); max-width: 28ch; margin-top: 6px; }

/* ---------- two ways in ---------- */

.ways { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }

.way {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-panel);
  padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: var(--s-5);
  box-shadow: var(--shadow-panel);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.way:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.way > p { color: var(--blue-600); max-width: 42ch; }

.way-list { list-style: none; margin: 0; padding: 0; }
.way-list li { border-top: 1px solid var(--rule); }
.way-list li:last-child { border-bottom: 1px solid var(--rule); }
.way-list a {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: var(--s-4);
  padding: 14px 0; text-decoration: none; color: var(--ink);
  transition: padding-left var(--dur-slow) var(--ease), color var(--dur) var(--ease);
}
.way-list a:hover { padding-left: 8px; color: var(--blue); }
.way-list .t { font-weight: 600; }
.way-list .d { display: block; font-weight: 500; font-size: 14px; line-height: 1.45; color: var(--blue-600); margin-top: 3px; }
.way-list .arw { color: var(--blue-500); transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.way-list a:hover .arw { transform: translateX(3px); color: var(--blue); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--s-2); }
.chip {
  font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--blue-150); color: var(--blue); border: 1px solid var(--blue-200);
}

/* ---------- split ---------- */

.split { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 64px); align-items: start; }

/* ---------- problems ---------- */

.problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.problem { padding-top: var(--s-5); border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 10px; transition: border-color var(--dur) var(--ease); }
.problem:hover { border-top-color: var(--blue); }
.problem p { font-size: 15px; line-height: 1.5; color: var(--blue-600); }

/* ---------- ledger ---------- */

.cap-group + .cap-group { margin-top: var(--s-10); }
.cap-group .label { margin-bottom: var(--s-3); }

.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: var(--s-4);
  padding: 13px 8px 13px 0; border-bottom: 1px solid var(--rule);
  transition: padding-left var(--dur-slow) var(--ease), background var(--dur) var(--ease);
}
.ledger li:first-child { border-top: 1px solid var(--rule); }
.ledger li:hover { padding-left: 8px; background: var(--blue-100); }
.ledger .n { font-weight: 300; font-size: 12px; letter-spacing: 0.08em; color: var(--blue-500); font-variant-numeric: tabular-nums; }
.ledger .mark { font-weight: 300; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-600); white-space: nowrap; }
.ledger li:hover .n, .ledger li:hover .mark { color: var(--blue); }

/* ---------- principal ---------- */

.principal { position: relative; overflow: hidden; }
.principal .wrap { position: relative; }
.portrait-frame { border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--rule-ink); max-width: 360px; }
.portrait { display: block; aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; object-position: 50% 18%; }
.pull { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -0.02em; color: var(--on-ink-1); font-weight: 600; max-width: 26ch; }
.now { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.now li { font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: var(--r-pill); background: rgba(255,255,255,0.08); color: var(--on-ink-2); border: 1px solid var(--rule-ink); }

/* ---------- steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-5);
  padding: 18px 8px 18px 0; border-bottom: 1px solid var(--rule); align-items: start;
  transition: padding-left var(--dur-slow) var(--ease), background var(--dur) var(--ease);
}
.steps li:first-child { border-top: 1px solid var(--rule); }
.steps li:hover { padding-left: 8px; background: var(--blue-100); }
.steps .n { font-weight: 300; font-size: 12px; letter-spacing: 0.08em; color: var(--blue); font-variant-numeric: tabular-nums; padding-top: 5px; }
.steps p { font-size: 15px; line-height: 1.5; color: var(--blue-600); margin-top: 5px; }

/* ---------- form ---------- */

.contact { background: var(--surface); border-top: 1px solid var(--rule); }

form { display: flex; flex-direction: column; gap: var(--s-4); max-width: 620px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field label { font-weight: 300; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-600); }

input, select, textarea {
  font-family: var(--font); font-weight: 500; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--r-chip);
  padding: 11px 13px; width: 100%;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--blue-500); }
input:hover, select:hover, textarea:hover { border-color: var(--blue-500); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); background: var(--surface); }

fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-4); }
fieldset[disabled] { opacity: 0.4; }

.gate {
  border: 1px solid var(--rule); background: var(--blue-100); border-radius: var(--r-card);
  padding: var(--s-4); display: flex; flex-direction: column; gap: 10px;
}
.gate p { font-size: 13px; color: var(--blue-600); }
/* once verified, collapse the widget to a single confirmation line */
.gate.ok { border-color: var(--blue-400); background: var(--blue-150); flex-direction: row; align-items: center; gap: 8px; padding: 10px var(--s-4); }
.gate.ok p { color: var(--blue); font-weight: 500; }
.gate.ok p::before { content: "\2713"; margin-right: 8px; font-weight: 600; }
.gate.ok .cf-turnstile { display: none; }

.form-note { font-size: 14px; color: var(--blue-600); max-width: 46ch; }
.form-status { font-size: 14px; font-weight: 500; color: var(--blue); min-height: 1.3em; }
.form-status[data-state="error"] { color: #9A3412; }

/* ---------- footer ---------- */

.foot { background: var(--ink); color: var(--on-ink-3); padding-block: var(--s-16) var(--s-8); font-size: 14px; line-height: 1.5; }
.foot a { color: var(--on-ink-2); text-decoration: none; transition: color var(--dur) var(--ease); }
.foot a:hover { color: var(--on-ink-1); }
.foot .label { color: #6A80AD; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.foot-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-base { margin-top: var(--s-12); padding-top: var(--s-5); border-top: 1px solid var(--rule-ink); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: #6A80AD; }

/* ---------- page head ---------- */

.page-head { position: relative; overflow: hidden; padding-block: clamp(120px, 16vh, 170px) clamp(40px, 6vw, 72px); isolation: isolate; }
.page-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,27,51,0.25) 0%, rgba(11,27,51,0.05) 40%, rgba(11,27,51,0.75) 86%, var(--ink) 100%);
}
.page-head .wrap { position: relative; }
.page-head h1 { max-width: 18ch; }

/* ---------- load motion ---------- */

.rise { animation: rise 700ms var(--ease) both; }
.rise-2 { animation-delay: 80ms; }
.rise-3 { animation-delay: 160ms; }
.rise-4 { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0.001; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero h1 { max-width: 100%; }
  .ways { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .problems { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .nav-hide { display: none; }
  .rail { grid-template-columns: 1fr; gap: var(--s-5); }
  .row2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .steps li, .ledger li { grid-template-columns: 1fr; gap: 4px; }
  .ledger .mark { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  #lattice { display: none; }
}
