/* Maravedis Capital — Beta preview
   Deep Navy #1A2332 · Bronze/Gold #C4A574 · Cream #F5F0E8 · Charcoal #2C2C2C */

:root {
  --navy: #1A2332;
  --navy-deep: #121820;
  --gold: #C4A574;
  --gold-soft: rgba(196, 165, 116, 0.35);
  --cream: #F5F0E8;
  --cream-dark: #EBE4D8;
  --charcoal: #2C2C2C;
  --muted: #5A5A5A;
  --white: #FFFFFF;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1100px;
  --narrow: 720px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--gold);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2 * var(--pad), var(--narrow));
}

/* ——— Beta banner ——— */
.beta-banner {
  background: var(--navy-deep);
  color: var(--gold);
  text-align: center;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem var(--pad);
  border-bottom: 1px solid var(--gold-soft);
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--navy);
}

.nav-cta {
  color: var(--navy) !important;
  border: 1px solid var(--gold);
  padding: 0.4rem 0.85rem;
  border-radius: 1px;
}

.nav-cta:hover {
  background: var(--navy);
  color: var(--cream) !important;
  border-color: var(--navy);
}

/* ——— Hero ——— */
.hero {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(3.5rem, 10vw, 6.5rem) 0 clamp(4rem, 11vw, 7rem);
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-medallion {
  width: clamp(120px, 18vw, 168px);
  height: clamp(120px, 18vw, 168px);
  border-radius: 50%;
  margin-bottom: 2rem;
  box-shadow: 0 0 0 1px var(--gold-soft), 0 12px 40px rgba(0, 0, 0, 0.35);
}

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

.hero h1 {
  color: var(--cream);
  font-size: clamp(2.35rem, 5.5vw, 3.75rem);
  font-weight: 500;
  max-width: 16ch;
  margin-bottom: 1.35rem;
}

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.78);
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.hero-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 2rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 0.95rem 1.75rem;
  border: 1px solid var(--gold);
  border-radius: 1px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-on-dark {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-on-dark:hover,
.btn-on-dark:focus-visible {
  background: var(--gold);
  color: var(--navy);
}

/* ——— Sections ——— */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

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

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

.section-navy {
  background: var(--navy);
  color: var(--cream);
}

.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.section-label-light {
  color: var(--gold);
}

.section h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

.on-dark {
  color: var(--cream);
}

.section-lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 0.25rem;
}

.section-lede.quiet {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
}

.rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 1.75rem 0 2.25rem;
}

.rule-on-dark {
  background: var(--gold);
  opacity: 0.85;
}

/* ——— Approach ——— */
.approach-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
}

.approach-list li {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--gold-soft);
}

.approach-num {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-top: 1rem;
}

.approach-list h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.approach-list p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ——— Capabilities / pillars ——— */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.pillar {
  padding: 1.75rem 1.5rem 1.85rem;
  border: 1px solid var(--gold-soft);
  background: rgba(255, 255, 255, 0.02);
}

.pillar-num {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.pillar h3 {
  color: var(--cream);
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.pillar p {
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.72);
  line-height: 1.65;
}

/* ——— About / founders ——— */
.founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.founder {
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--gold);
}

.founder h3 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.founder-role {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.founder p:last-child {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ——— Why ——— */
.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-width: 36rem;
}

.why-list li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.why-mark {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: transparent;
}

.why-list p {
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.55;
}

/* ——— Footprint ——— */
.footprint-card {
  background: var(--white);
  padding: 1.75rem 1.75rem 1.6rem;
  border: 1px solid var(--gold-soft);
}

.footprint-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footprint-value {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.footprint-note {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ——— Contact ——— */
.section-contact {
  text-align: center;
}

.section-contact .rule {
  margin-inline: auto;
}

.contact-lede {
  font-size: 1.02rem;
  color: rgba(245, 240, 232, 0.72);
  max-width: 28rem;
  margin: 0 auto 0.25rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--cream);
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 0.15rem;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.contact-cta-wrap {
  margin-top: 0.5rem;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--gold-soft);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--cream);
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.footer-meta {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.45);
  letter-spacing: 0.04em;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .nav {
    gap: 1rem;
  }

  .approach-list,
  .pillars {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .header-inner {
    justify-content: center;
  }

  .hero {
    padding-top: 3rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .footer-brand {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
