/* OrAfund: night to daylight. The page opens on the logo's black and gold at dawn, then rises into daylight. */

:root {
  --ink: #0E2B22;          /* evergreen: the logo's background */
  --ink-2: #153A2E;
  --gold: #E9C24D;
  --gold-hi: #F6D86E;
  --gold-lo: #C9A227;
  --gold-text: #6F5205;    /* gold dark enough to read on light backgrounds */
  --day: #FFFFFF;
  --stone: #F3F1E8;
  --line: #DAD5C8;
  --text: #1A1916;
  --muted: #55514A;
  --on-ink: #F4EFE0;
  --on-ink-muted: #B9C4B8;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 16px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--day);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 600 1rem/1 var(--sans);
  padding: 15px 24px;
  border-radius: 4px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hi); }
.btn--ghost { border-color: rgba(243, 239, 228, .45); color: var(--on-ink); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn--sm { padding: 10px 16px; font-size: .9375rem; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--on-ink); border-bottom: 1px solid rgba(233, 194, 77, .22); }
.nav__in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; margin-left: -6px; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) { text-decoration: none; font-size: .9688rem; color: var(--on-ink-muted); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--gold-hi); }
.nav__toggle { display: none; background: none; border: 1.5px solid rgba(243, 239, 228, .4); color: var(--on-ink); padding: 8px 14px; font: 600 .9375rem/1 var(--sans); border-radius: 4px; cursor: pointer; }

/* ---------- Hero: the sun rises once on load ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); min-height: min(86vh, 760px); display: flex; align-items: center; isolation: isolate; }
.hero__in { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 120px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5.25rem); line-height: 1.02; letter-spacing: -0.025em; max-width: 14ch; color: #fff; }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 30em; color: var(--on-ink); margin: 28px 0 32px; }
.hero__lead i { font-family: var(--serif); font-size: 1.08em; color: var(--gold-hi); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__status { margin: 36px 0 0; max-width: 34em; font-size: .9688rem; color: var(--on-ink-muted); border-left: 2px solid var(--gold-lo); padding-left: 14px; }

.dawn { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.dawn__sun {
  position: absolute; right: 4vw; bottom: 9%;
  width: clamp(280px, 52vmin, 560px); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 48%, var(--gold-lo) 100%);
  box-shadow: 0 0 120px 20px rgba(233, 194, 77, .22);
  transform: translateY(18%);
  animation: rise 1.8s cubic-bezier(.2, .7, .2, 1) both;
}
.dawn__line {
  position: absolute; left: 0; right: 0; bottom: 9%;
  height: 0; border-top: 1.5px solid var(--gold-lo);
  /* a fill below the horizon hides the lower half of the sun, like the logo */
}
.dawn__line::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100vh; background: var(--ink); }
@keyframes rise { from { transform: translateY(70%); opacity: .35; } to { transform: translateY(18%); opacity: 1; } }

/* ---------- Sections ---------- */
.sec { padding: 72px 0; }
.sec--stone { background: var(--stone); }
.sec--ink { background: var(--ink); color: var(--on-ink); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; max-width: 18ch; }
.h2--solo { max-width: 24ch; margin-bottom: 40px; }
.sec--ink h2 { color: #fff; }

.split { display: grid; gap: 28px; }
.prose p { max-width: 38em; }
.lead-small { margin-top: 22px; font-size: 1.125rem; color: var(--muted); max-width: 26em; }

/* Loan-size ruler */
.ruler { display: grid; gap: 0; margin-top: 56px; }
.ruler__seg { border-top: 6px solid var(--line); padding: 18px 0 20px; }
.ruler__seg--us { border-top-color: var(--gold); }
.ruler__n { font: 500 clamp(1.5rem, 3vw, 2.2rem)/1.15 var(--serif); letter-spacing: -0.01em; margin: 0 0 4px; }
.ruler__l { margin: 0; color: var(--muted); font-size: .9688rem; }
.ruler__seg--us .ruler__n { color: var(--gold-text); }
.ruler__seg--us .ruler__l { color: var(--text); font-weight: 600; }

/* Products as ruled rows */
.products { margin-top: 48px; border-top: 1px solid var(--line); }
.products article { display: grid; gap: 4px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.products h3 { font-size: 1.5rem; }
.products__term { color: var(--gold-text); font-weight: 600; margin: 0; }
.products p:last-child { margin: 6px 0 0; max-width: 38em; }
.fine { margin: 20px 0 0; color: var(--muted); font-size: .9375rem; }

/* Who we serve */
.panels { display: grid; gap: 20px; }
.panel { background: var(--ink); color: var(--on-ink); padding: 34px var(--gutter); border-radius: 2px; border-bottom: 6px solid var(--gold); }
.panel__n { font: 500 clamp(2rem, 4.4vw, 3.2rem)/1 var(--serif); color: var(--gold-hi); margin: 0 0 18px; letter-spacing: -0.02em; }
.panel h3 { font-size: 1.5rem; margin-bottom: 10px; color: #fff; }
.panel p:last-child { margin: 0; color: var(--on-ink-muted); }
.sectors { margin: 28px 0 0; color: var(--muted); max-width: 40em; }

/* Impact */
.ticks { list-style: none; margin: 0 0 1.2em; padding: 0; max-width: 38em; }
.ticks li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-lo); }

/* Lenders: definition list */
.terms { margin: 0; }
.terms > div { padding: 20px 0; border-top: 1px solid var(--line); }
.terms > div:last-child { border-bottom: 1px solid var(--line); }
.terms dt { font: 500 1.35rem/1.2 var(--serif); margin-bottom: 4px; }
.terms dd { margin: 0; color: var(--muted); max-width: 36em; }

/* Timeline: this content is a real sequence */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid rgba(233, 194, 77, .35); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 36px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gold-lo); }
.timeline li.is-done::before { background: var(--gold); border-color: var(--gold); }
.timeline h3 { font-size: 1.5rem; color: var(--gold-hi); margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--on-ink-muted); max-width: 38em; }

/* Team */
.team__intro { margin: -20px 0 40px; color: var(--muted); max-width: 36em; }
.team { display: grid; gap: 40px; }
.person { display: grid; gap: 20px; align-items: start; }
.person img { width: 100%; height: auto; max-width: 280px; aspect-ratio: 1; object-fit: cover; border-radius: 2px; background: var(--stone); }
.person h3 { font-size: 1.6rem; margin-bottom: 12px; }
.person__role { color: var(--gold-text); font-weight: 600; margin: -8px 0 12px; }
.person p:last-child { margin: 0; color: var(--muted); }

/* Contact */
.contact__grid { display: grid; gap: 44px; }
.contact__lead { color: var(--on-ink-muted); margin: 22px 0 28px; max-width: 32em; }
.contact__list { list-style: none; margin: 0; padding: 0; }
.contact__list li { display: flex; gap: 18px; padding: 12px 0; border-top: 1px solid rgba(243, 239, 228, .16); }
.contact__list li:last-child { border-bottom: 1px solid rgba(243, 239, 228, .16); }
.contact__list span { width: 64px; color: var(--on-ink-muted); flex: none; }
.contact__list a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 4px; }

.form { display: grid; gap: 6px; background: var(--ink-2); padding: 28px var(--gutter); border: 1px solid rgba(233, 194, 77, .25); border-radius: 2px; }
.form label { font-weight: 600; font-size: .9375rem; margin-top: 10px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--on-ink); background: var(--ink);
  border: 1px solid rgba(243, 239, 228, .28); border-radius: 3px; padding: 12px 14px;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 1px; }
.form textarea { resize: vertical; }
.form .btn { margin-top: 18px; justify-self: start; }

/* Footer */
.foot { background: var(--ink); color: var(--on-ink-muted); border-top: 1px solid rgba(233, 194, 77, .22); padding: 40px 0 44px; font-size: .9375rem; }
.foot__in { display: grid; gap: 20px; }
.foot__brand p { margin: 0; }
.foot__logo { height: 56px; width: auto; margin: 0 0 8px -8px; }
.foot__name { color: var(--on-ink); font-weight: 600; }
.foot__legal { max-width: 56em; margin: 0; font-size: .875rem; }
.foot__copy { margin: 0; font-size: .875rem; }

/* ---------- Thank-you page ---------- */
.thanks { min-height: 100vh; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); text-align: left; padding: 40px var(--gutter); }
.thanks div { max-width: 34em; }
.thanks h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; margin-bottom: 16px; }

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .sec { padding: 104px 0; }
  .split { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
  .ruler { grid-template-columns: 1fr 1.4fr 1fr; gap: 24px; }
  .products article { grid-template-columns: 5fr 7fr; }
  .products article h3 { grid-column: 1; grid-row: 1; }
  .products__term { grid-column: 1; grid-row: 2; }
  .products article p:last-child { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .panels { grid-template-columns: 1fr 1fr; gap: 24px; }
  .panel { padding: 44px 40px; }
  .person { grid-template-columns: 220px 1fr; gap: 32px; }
  .contact__grid { grid-template-columns: 6fr 5fr; gap: 72px; align-items: start; }
  .form { padding: 36px; }
  .foot__in { grid-template-columns: 1fr 1fr; align-items: start; }
  .foot__legal { grid-column: 1 / -1; order: 3; }
  .foot__copy { justify-self: end; align-self: center; }
}

/* ---------- Mobile navigation ---------- */
@media (max-width: 959px) {
  .nav__toggle { display: inline-block; }
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--gutter) 22px; border-bottom: 1px solid rgba(233, 194, 77, .22); }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 12px 0; width: 100%; font-size: 1.0625rem; border-bottom: 1px solid rgba(243, 239, 228, .1); }
  .nav__links .btn { margin-top: 16px; }
}

@media (max-width: 719px) {
  .dawn__sun { right: 8vw; bottom: 7%; width: 62vw; }
  .dawn__line { bottom: 7%; }
  .hero__in { padding-bottom: 290px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dawn__sun { animation: none; }
  .btn { transition: none; }
}

/* ---------- Multi-page additions ---------- */
.nav__links a[aria-current="page"]:not(.btn) { color: var(--gold-hi); box-shadow: 0 2px 0 var(--gold-lo); }
.btn[aria-current="page"] { background: var(--gold-hi); }

.pagehead { background: var(--ink); color: var(--on-ink); padding: 56px 0 52px; border-bottom: 1px solid rgba(233, 194, 77, .22); }
.pagehead h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -0.022em; color: #fff; max-width: 18ch; }
.pagehead p { margin: 18px 0 0; max-width: 34em; font-size: 1.15rem; color: var(--on-ink-muted); }

.textlink { color: var(--gold-text); font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.textlink:hover { color: var(--text); }

.linklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist a { display: grid; gap: 4px 32px; padding: 22px 0; text-decoration: none; transition: padding-left .2s, background-color .2s; }
.linklist a:hover { padding-left: 12px; background: rgba(233, 194, 77, .12); }
.linklist__t { font: 500 1.5rem/1.2 var(--serif); }
.linklist__d { color: var(--muted); max-width: 38em; }

.cta__in { display: grid; gap: 28px; justify-items: start; }
.cta h2 { max-width: 22ch; }

.h2like { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; max-width: 18ch; color: #fff; }
.contact { min-height: 70vh; }

.person--text { padding: 28px 0 0; border-top: 1px solid var(--line); }
.person--text p { margin: 8px 0 0; color: var(--muted); max-width: 36em; }

.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__nav a { color: var(--on-ink-muted); text-decoration: none; }
.foot__nav a:hover { color: var(--gold-hi); }

@media (min-width: 720px) {
  .linklist a { grid-template-columns: 5fr 7fr; align-items: baseline; padding: 26px 0; }
  .foot__nav { order: 2; }
}
@media (max-width: 719px) {
  .pagehead { padding: 40px 0 38px; }
}
.person.person--text { display: block; }
.person--text .person__role { margin: -8px 0 12px; color: var(--gold-text); }

/* ---------- Dropdown menu, sub-navigation, steps, footer columns ---------- */
.nav__group { position: relative; }
.nav__group > a { display: block; padding: 24px 0; text-decoration: none; font-size: .9688rem; color: var(--on-ink-muted); transition: color .2s; }
.nav__group > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.nav__group:hover > a, .nav__group:focus-within > a, .nav__group.is-current > a { color: var(--gold-hi); }
.nav__group.is-current > a { box-shadow: inset 0 -2px 0 var(--gold-lo); }
.nav__sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: -18px; min-width: 230px; background: var(--ink); border: 1px solid rgba(233, 194, 77, .28); border-top: 0; display: none; z-index: 60; }
.nav__group:hover .nav__sub, .nav__group:focus-within .nav__sub { display: block; }
.nav__sub a { display: block; padding: 10px 18px; text-decoration: none; color: var(--on-ink-muted); font-size: .9688rem; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { color: var(--gold-hi); background: rgba(233, 194, 77, .08); }

.subnav { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(243, 239, 228, .16); }
.subnav a { color: var(--on-ink-muted); text-decoration: none; padding: 4px 0; }
.subnav a:hover { color: var(--gold-hi); }
.subnav a[aria-current="page"] { color: var(--gold-hi); box-shadow: 0 2px 0 var(--gold-lo); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; gap: 4px 24px; padding: 20px 0 20px 56px; position: relative; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--gold-hi); font: 600 1rem/34px var(--sans); text-align: center; }
.steps h3 { font-size: 1.4rem; }
.steps p { margin: 0; color: var(--muted); max-width: 40em; }

.cta__p { margin: 0; max-width: 34em; color: var(--on-ink-muted); }

.foot__cols { display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); max-width: 760px; }
.foot__h { color: var(--on-ink); font-weight: 600; margin: 0 0 8px; }
.foot__cols ul { list-style: none; margin: 0; padding: 0; }
.foot__cols li { margin: 0 0 6px; }
.foot__cols a { color: var(--on-ink-muted); text-decoration: none; }
.foot__cols a:hover { color: var(--gold-hi); }
.foot__nav { display: none; }

.split .products { margin-top: 0; }

@media (min-width: 720px) {
  .steps li { grid-template-columns: 3fr 9fr; align-items: baseline; }
  .foot__cols { grid-column: 1 / -1; order: 2; }
  .split .products article { grid-template-columns: 1fr; }
  .split .products article h3, .split .products__term, .split .products article p:last-child { grid-column: 1; grid-row: auto; }
}
@media (max-width: 959px) {
  .nav__group > a { padding: 12px 0; width: 100%; font-size: 1.0625rem; border-bottom: 1px solid rgba(243, 239, 228, .1); box-shadow: none !important; }
  .nav__group > a::after { display: none; }
  .nav__group { width: 100%; }
  .nav__sub { display: block; position: static; border: 0; padding: 0 0 4px 16px; min-width: 0; }
  .nav__sub a { padding: 9px 0; font-size: .9688rem; border-bottom: 1px solid rgba(243, 239, 228, .06); }
  .nav__links a[aria-current="page"], .nav__links a:hover { box-shadow: none; }
}

/* footer: stay inside the screen on phones */
.foot__in { grid-template-columns: minmax(0, 1fr); }
.foot__in > * { min-width: 0; }
.foot__cols { grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); }
.foot__cols a { overflow-wrap: anywhere; }
@media (min-width: 720px) { .foot__in { grid-template-columns: 1fr 1fr; } }

/* light-background timeline (About us) */
.story__p { max-width: 38em; margin-bottom: 28px; }
.timeline--light { border-left-color: rgba(201, 162, 39, .55); }
.timeline--light li::before { background: var(--stone); border-color: var(--gold-lo); }
.timeline--light li.is-done::before { background: var(--gold-lo); }
.timeline--light h3 { color: var(--gold-text); }
.timeline--light p { color: var(--muted); }
