/* ============================================================
   Monemi Capital — shared styles
   ============================================================ */
:root {
  --ink: #0f1317;
  --ink-2: #151b21;
  --ink-3: #1c242c;
  --ivory: #f5f2ec;
  --ivory-2: #ece8e0;
  --card: #fbf9f5;
  --bronze: #ad8a55;
  --bronze-2: #c4a472;
  --text: #272c32;
  --muted: #6d737a;
  --inv: #ece9e3;
  --inv-muted: #99a0a8;
  --line: #ddd7cc;
  --line-dark: #28313b;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--ivory);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* ---------- Typography helpers ---------- */
.label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 20px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.16; margin-bottom: 28px; }
.prose p { font-size: 17px; line-height: 1.8; margin-bottom: 22px; max-width: 70ch; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 38px;
  background: var(--bronze);
  color: #fff;
  border: 1px solid var(--bronze);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover { background: #97774a; border-color: #97774a; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: rgba(15,19,23,.4);
}
.btn-ghost-dark:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.text-link {
  display: inline-block;
  margin-top: 26px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 5px;
  transition: color .2s ease;
}
.text-link:hover { color: var(--bronze); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
  border-bottom: 1px solid transparent;
  background: linear-gradient(rgba(10,13,17,.55), rgba(10,13,17,0));
}
.nav.solid, .nav.scrolled {
  background: rgba(13,17,21,.97);
  border-bottom-color: var(--line-dark);
  backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav.scrolled .nav-inner { height: 64px; }
.wordmark {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  z-index: 220;
}
.wordmark span { color: var(--bronze-2); }
.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a {
  color: rgba(236,233,227,.78);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color .2s ease;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active { border-bottom: 1px solid var(--bronze); }
.nav-cta {
  padding: 11px 24px !important;
  border: 1px solid var(--bronze);
  color: #fff !important;
}
.nav-cta:hover { background: var(--bronze); }

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 220;
  padding: 10px 0 10px 10px;
}
.menu-btn span {
  display: block;
  width: 26px; height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: transform .3s ease, opacity .3s ease;
}
.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 210;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 36px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--inv);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu a:hover { color: var(--bronze-2); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,13,17,.42) 0%, rgba(10,13,17,.25) 45%, rgba(10,13,17,.82) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 0 96px;
}
.hero .label { color: var(--bronze-2); }
.hero h1 {
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.08;
  max-width: 850px;
  margin-bottom: 30px;
}
.hero .lede {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(236,233,227,.85);
  margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,17,.5) 0%, rgba(10,13,17,.78) 100%);
}
.page-hero .wrap { position: relative; z-index: 2; padding-bottom: 64px; padding-top: 160px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.1; max-width: 800px; }
.page-hero .label { color: var(--bronze-2); margin-bottom: 16px; }
.page-hero .sub {
  margin-top: 20px;
  max-width: 620px;
  font-size: 17px;
  color: rgba(236,233,227,.82);
}

/* ---------- Sections ---------- */
section { padding: 120px 0; }
section.tight { padding: 90px 0; }
.dark { background: var(--ink); color: var(--inv); }
.dark h2 { color: #fff; }
.dark .prose p { color: var(--inv-muted); }
.tinted { background: var(--ivory-2); }

/* statement band */
.statement {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.4;
  max-width: 880px;
}
.statement em { font-style: normal; color: var(--bronze); }

/* ---------- Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}
.stats > div { padding: 38px 36px 0 0; }
.stats dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--inv-muted);
  margin-bottom: 12px;
}
.stats dd {
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 44px);
  color: #fff;
  line-height: 1.1;
}
.stats dd small {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--inv-muted);
  margin-top: 10px;
  line-height: 1.5;
}

/* ---------- Split layouts ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.split.text-first { align-items: start; }
.frame { overflow: hidden; }
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1);
}
.frame:hover img { transform: scale(1.045); }
.frame.tall { aspect-ratio: 4/4.6; }
.frame.wide { aspect-ratio: 16/10; }

/* ---------- Phase grid ---------- */
.phases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.phase { background: var(--ink-2); padding: 46px 42px; transition: background .3s ease; }
.phase:hover { background: var(--ink-3); }
.phase .num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--bronze-2);
  letter-spacing: .12em;
  margin-bottom: 18px;
}
.phase h3 { font-size: 23px; color: #fff; margin-bottom: 14px; }
.phase p { font-size: 15px; line-height: 1.75; color: var(--inv-muted); }

/* light variant */
.phases.light { background: var(--line); border-color: var(--line); }
.phases.light .phase { background: var(--card); }
.phases.light .phase:hover { background: #fff; }
.phases.light .phase h3 { color: var(--ink); }
.phases.light .phase p { color: var(--muted); }

/* ---------- Detail grid ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.detail-grid > div {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 30px;
  background: var(--card);
}
.detail-grid h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.detail-grid p { font-family: var(--serif); font-size: 19px; line-height: 1.45; }

/* ---------- Market cards ---------- */
.market-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.market-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--bronze);
  padding: 44px 40px;
}
.market-card h3 { font-size: 26px; margin-bottom: 6px; }
.market-card .tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 18px;
}
.market-card p { font-size: 15.5px; line-height: 1.75; color: var(--muted); }

/* ---------- Team ---------- */
.member-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 70px;
  padding: 70px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.member-row:last-of-type { border-bottom: 1px solid var(--line); }
.monogram {
  aspect-ratio: 1/1.1;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 56px;
  color: var(--bronze-2);
  letter-spacing: .05em;
}
.member-row h3 { font-size: 30px; margin-bottom: 6px; }
.member-row .role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 24px;
}
.member-row p { font-size: 16px; line-height: 1.8; margin-bottom: 18px; max-width: 64ch; }
.member-row p:last-child { margin-bottom: 0; }
.member-row .edu {
  font-size: 14px;
  color: var(--muted);
  border-left: 2px solid var(--bronze);
  padding-left: 18px;
  line-height: 1.7;
}

/* ---------- Value trio ---------- */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}
.trio h3 { font-size: 21px; margin-bottom: 14px; }
.trio h3::before {
  content: "";
  display: block;
  width: 34px; height: 2px;
  background: var(--bronze);
  margin-bottom: 22px;
}
.trio p { font-size: 15px; line-height: 1.75; color: var(--muted); }
.dark .trio p { color: var(--inv-muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; padding: 110px 0; }
.cta-band .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 0; max-width: 640px; }
.cta-band .label { margin-bottom: 14px; }

/* ---------- Forms ---------- */
form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
input, textarea, select {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  transition: border-color .2s ease;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236d737a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--bronze); }
textarea { resize: vertical; min-height: 150px; }
button[type="submit"] {
  justify-self: start;
  padding: 17px 46px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s ease;
}
button[type="submit"]:hover { background: var(--bronze); border-color: var(--bronze); }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: var(--inv-muted);
  padding: 80px 0 50px;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}
.foot-grid .fm {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.foot-grid .fm span { color: var(--bronze-2); }
.foot-grid p { max-width: 36ch; line-height: 1.7; }
.foot-grid h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a { color: var(--inv-muted); text-decoration: none; transition: color .2s ease; }
.foot-grid a:hover { color: #fff; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 12.5px;
}
.disclaimer {
  margin-top: 26px;
  font-size: 12px;
  line-height: 1.7;
  color: #6c727c;
  max-width: 900px;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 50px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 0 30px; }
  .trio { grid-template-columns: 1fr; gap: 44px; }
  .member-row { grid-template-columns: 1fr; gap: 36px; }
  .monogram { max-width: 220px; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  section { padding: 84px 0; }
  .hero { min-height: 86vh; }
  .hero-content { padding-bottom: 70px; }
  .phases { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-band .inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .wrap, .wrap-narrow { padding: 0 22px; }
  .detail-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
