:root {
  --ink: #151719;
  --muted: #667085;
  --line: #d9dee5;
  --panel: #ffffff;
  --soft: #f4f6f8;
  --field: #eef2f4;
  --accent: #b92832;
  --accent-dark: #8f1f28;
  --green: #3b7d6c;
  --blue: #2f5f8f;
  --shadow: 0 18px 55px rgba(23, 33, 44, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 246, 248, 0.88);
  border-bottom: 1px solid rgba(217, 222, 229, 0.8);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 72px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.94;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin-bottom: 32px;
  color: #4d5762;
  font-size: clamp(19px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.brand-plate {
  grid-column: span 2;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: 28px;
}

.brand-plate img {
  width: min(320px, 80%);
  max-height: 150px;
  object-fit: contain;
}

.metric {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  align-content: space-between;
}

.metric strong {
  color: var(--ink);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.metric span {
  color: var(--muted);
}

.metric.feature {
  grid-column: span 2;
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(185, 40, 50, 0.08), rgba(47, 95, 143, 0.08)),
    var(--panel);
}

.section {
  border-top: 1px solid var(--line);
  background: #fff;
}

.muted-section {
  background: #f8fafb;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}

.section-title p {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--muted);
}

.portfolio-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-bottom: 22px;
}

.search {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.investment-card {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.logo-box {
  height: 160px;
  display: grid;
  place-items: center;
  padding: 30px;
  background: #f8fafb;
  border-bottom: 1px solid var(--line);
}

.logo-box img {
  width: min(210px, 80%);
  max-height: 90px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.logo-fallback {
  max-width: 230px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.investment-copy {
  min-height: 260px;
  padding: 22px;
  display: grid;
  gap: 18px;
  align-content: space-between;
}

.investment-copy h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.1;
}

.investment-copy p {
  color: var(--muted);
}

dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 0;
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.text-block h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.text-block p {
  color: var(--muted);
  font-size: 18px;
}

.principles {
  display: grid;
  gap: 14px;
}

.principle {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.principle strong {
  display: block;
  margin-bottom: 8px;
}

.principle p {
  margin-bottom: 0;
  color: var(--muted);
}

.footer {
  background: var(--ink);
  color: #fff;
}

.footer .section-inner {
  padding: 38px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer a {
  color: #fff;
}

.syndicate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.syndicate-intro {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  display: grid;
  align-content: space-between;
}

.syndicate-intro h3 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
}

.syndicate-intro p:last-child,
.syndicate-note p,
.fee-card p {
  color: var(--muted);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  counter-increment: process;
}

.process-list li::before {
  content: counter(process);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list strong {
  margin-bottom: 6px;
}

.process-list span {
  color: var(--muted);
  font-size: 14px;
}

.syndicate-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.fee-title {
  margin-top: 46px;
}

.process-title {
  margin-top: 38px;
}

.fee-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.fee-card {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.fee-card strong {
  display: block;
  margin-bottom: 10px;
  line-height: 1.2;
}

.fee-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.network-card {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 26px;
  display: grid;
  align-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.network-logo {
  height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  display: grid;
  place-items: center;
  padding: 18px;
}

.network-logo img {
  width: min(220px, 82%);
  max-height: 54px;
  object-fit: contain;
}

.network-logo span {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.network-card span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.network-card h3 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.network-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.network-note {
  margin-top: 34px;
}

.person-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: 56px;
  align-items: center;
}

.person-mark {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vw, 72px);
  box-shadow: var(--shadow);
}

.person-mark img {
  width: 100%;
  max-width: 280px;
  opacity: 1;
}

.monogram-story {
  margin-top: 26px;
  border-left: 4px solid var(--accent);
  padding: 2px 0 2px 20px;
}

.monogram-story strong {
  display: block;
  margin-bottom: 10px;
}

.monogram-story p {
  color: var(--muted);
}

.monogram-story p:last-child {
  margin-bottom: 0;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.news-card {
  min-height: 310px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 26px;
  display: grid;
  align-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow);
}

.news-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.news-card h3 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
}

.news-card p {
  color: var(--muted);
}

.mandate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mandate-card {
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 26px;
  display: grid;
  align-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow);
}

.mandate-logo {
  height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  display: grid;
  place-items: center;
  padding: 18px;
}

.mandate-logo img {
  width: min(230px, 84%);
  max-height: 58px;
  object-fit: contain;
}

.mandate-logo span {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.mandate-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.mandate-card h3 {
  margin-bottom: 10px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1;
}

.mandate-card p {
  color: var(--muted);
}

.admin-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}

.form-panel,
.preview-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
}

.investment-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.json-output {
  width: 100%;
  min-height: 220px;
  margin-top: 18px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 140px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

@media (max-width: 900px) {
  .hero,
  .two-column,
  .person-section,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .portfolio-tools {
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: flex-start;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mandate-grid {
    grid-template-columns: 1fr;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fee-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav {
    width: min(100% - 28px, 1180px);
    align-items: flex-start;
    padding: 14px 0;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
  }

  .hero,
  .section-inner,
  .admin-shell {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-board,
  .portfolio-grid,
  .syndicate-grid,
  .process-list,
  .fee-grid,
  .network-grid,
  .news-grid,
  .mandate-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .metric.feature {
    grid-column: auto;
  }

  .brand-plate {
    grid-column: auto;
  }

  .section-title,
  .footer .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
