:root {
  --navy: #0d1b2a;
  --navy-mid: #1b3a5c;
  --navy-deep: #1a4a7a;
  --gold: #c9963a;
  --gold-light: #f0b429;
  --gold-ink: #8a6420;
  --cream: #f8f5ef;
  --white: #ffffff;
  --grey: #8a94a0;
  --grey-on-dark: #c4ccd6;
  --ink-muted: #4f5964;
  --ink-step: #3d4650;
  --line: #e2ddd2;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;

  --gutter: 1.25rem;
  --max: 68rem;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol { margin: 0; }

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--gold-light);
  color: var(--navy);
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus { top: 0.75rem; }

.site-header {
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
}

.wordmark span { color: var(--gold); }

.header-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-on-dark);
  text-decoration: none;
}

.header-link:hover { color: var(--white); }

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 3.25rem 0 3.5rem;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(201, 150, 58, 0.08);
}

.hero .wrap { position: relative; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.hero-title span { color: var(--gold-light); }

.hero-sub {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  color: var(--grey-on-dark);
}

.notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 2.25rem;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  text-align: left;
}

.role-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
}

.role-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  margin-bottom: 0.9rem;
  font-size: 1.35rem;
}

.role-icon--borrower { background: rgba(30, 111, 171, 0.35); color: #9ccbf0; }
.role-icon--broker   { background: rgba(201, 150, 58, 0.22); color: var(--gold-light); }

.role-title {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.role-desc {
  font-size: 0.92rem;
  color: var(--grey-on-dark);
  margin-bottom: 1.1rem;
  flex: 1;
}

.role-status {
  display: block;
  padding: 0.55rem 0.8rem;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--grey-on-dark);
}

a.role-status--open {
  border: 1px solid var(--gold);
  color: var(--grey-on-dark);
  text-decoration: none;
}

a.role-status--open strong::after { content: " \2192"; color: var(--gold-light); }

a.role-status--open:hover { background: rgba(201, 150, 58, 0.14); }

.role-status strong {
  display: block;
  color: var(--white);
  font-weight: 600;
}

.section { padding: 3.25rem 0; }

.section--white { background: var(--white); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.step {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--serif);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.step-title {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--ink-step);
}

.prose {
  max-width: 44rem;
  margin: 0 auto;
}

.prose p + p { margin-top: 1rem; }

.prose .section-title { margin-bottom: 1.5rem; }

.not-list {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--gold);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.contact { text-align: center; }

.contact .section-sub { margin-bottom: 1rem; }

.contact-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-ink);
  text-underline-offset: 0.2em;
}

.contact-link:hover { color: var(--navy); }

.site-footer {
  background: var(--navy);
  color: var(--grey-on-dark);
  font-size: 0.85rem;
  padding: 2rem 0;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.footer-links a { text-decoration: none; }

.footer-links a:hover { color: var(--white); text-decoration: underline; }

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }

  .hero { padding: 4.5rem 0 4.25rem; }

  .hero::before { width: 19rem; height: 19rem; }

  .roles {
    grid-template-columns: repeat(2, 1fr);
    max-width: 46rem;
    margin: 0 auto;
  }

  .steps { grid-template-columns: repeat(3, 1fr); }

  .role-card,
  .step { padding: 1.5rem 1.2rem; }

  .section { padding: 4rem 0; }

  .site-footer .wrap {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 80rem) {
  .hero { padding: 5.5rem 0 5rem; }

  .roles,
  .steps { gap: 1.25rem; }

  .role-card,
  .step { padding: 1.75rem 1.6rem; }
}

@media (prefers-contrast: more) {
  .hero { background: var(--navy); }
  .role-desc, .hero-sub, .role-status { color: var(--white); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.nowrap { white-space: nowrap; }
