/* =============================================
   Baldr — Private Market Investments
   Institutional design system
   ============================================= */

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

:root {
  --black:      #0c0c0c;
  --black-90:   #181818;
  --black-70:   #2e2e2e;
  --black-50:   #565656;
  --black-30:   #8a8a8a;
  --black-15:   #c4c4c4;
  --black-07:   #e8e8e8;
  --black-03:   #f4f3f1;
  --white:      #ffffff;
  --parchment:  #f7f5f0;
  --gold:       #9a7d47;
  --gold-lt:    #c9a96e;

  --max-w: 1200px;
  --col-gap: 80px;
  --section-pad: 120px;

  --font-display: 'Crimson Pro', 'Georgia', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* ── Base ──────────────────────────────────── */

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

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; }

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

/* ── Layout ────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: var(--section-pad) 0;
}

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

/* Two-column layout used throughout */
.two-col {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--col-gap);
  align-items: start;
}

.col-label {
  padding-top: 10px;
}

.label-text {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black-30);
}

.label-text.light {
  color: rgba(255,255,255,0.35);
}

/* Horizontal rules */
.full-rule {
  height: 1px;
  background: var(--black-07);
}
.full-rule.dark {
  background: rgba(255,255,255,0.08);
}

/* ── Typography ────────────────────────────── */

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.875rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 36px;
}

.section-headline.light { color: var(--white); }

.section-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.section-headline.light em { color: var(--gold-lt); }

.body-lg {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--black-50);
  margin-bottom: 24px;
  max-width: 600px;
}

.body-md {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--black-30);
  margin-bottom: 20px;
  max-width: 600px;
}

/* ── Navigation ────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--black-07);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 68px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  gap: 48px;
}

/* Logo */
.logo { margin-right: auto; }

.logo-wordmark {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--white);
  transition: color 0.4s var(--ease);
}

.nav.scrolled .logo-wordmark { color: var(--black); }

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.65);
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-lt);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
  transform-origin: left;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--white); }

.nav.scrolled .nav-links a { color: var(--black-30); }
.nav.scrolled .nav-links a:hover { color: var(--black); }
.nav.scrolled .nav-links a:hover::after { background: var(--gold); }
.nav.scrolled .nav-links a.active { color: var(--black); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.hamburger span {
  display: block;
  height: 1px;
  background: var(--white);
  transition: background 0.4s, transform 0.3s, opacity 0.3s;
}

.nav.scrolled .hamburger span { background: var(--black); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--black-07);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--black-50);
  padding: 16px 48px;
  border-bottom: 1px solid var(--black-07);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--black); }

/* ── Hero ──────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 50%, rgba(154,125,71,0.07) 0%, transparent 70%),
    linear-gradient(to bottom, transparent 60%, rgba(12,12,12,0.4) 100%);
  pointer-events: none;
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 68px;
  position: relative;
  z-index: 1;
}

.hero-body {
  padding: 80px 0 48px;
  max-width: 820px;
}

.hero-kicker {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 48px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}

.hero-headline em {
  font-style: italic;
  color: var(--gold-lt);
  font-weight: 300;
}

.hero-rule {
  width: 56px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin-bottom: 24px;
}

.hero-descriptor {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 60px;
  position: relative;
  z-index: 1;
}

.hero-down {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: rgba(255,255,255,0.4);
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}

.hero-down:hover {
  border-color: var(--gold-lt);
  color: var(--gold-lt);
  transform: translateY(3px);
}

.hero-down svg { width: 16px; height: 16px; }

.hero-offices {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ── Philosophy ────────────────────────────── */

/* (uses .section + .two-col + col utilities) */

/* ── Strategies ────────────────────────────── */

.strategy-list {
  margin-top: 72px;
}

.strategy-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--col-gap);
  padding: 56px 0;
}

.strategy-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.strategy-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.strategy-index {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--gold-lt);
  opacity: 0.7;
}

.strategy-name {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.strategy-body > p {
  font-size: 0.9375rem;
  line-height: 1.78;
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  margin-bottom: 40px;
}

.strategy-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.pillar-title {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.pillar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar ul li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.pillar ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-lt);
  opacity: 0.5;
}

/* ── Principals ────────────────────────────── */

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--black-07);
}

.principle {
  padding: 32px 32px 32px 0;
  border-bottom: 1px solid var(--black-07);
}

.principle:nth-child(even) {
  padding-left: 32px;
  border-left: 1px solid var(--black-07);
}

.principle-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.principle p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--black-30);
}

/* ── CTA Banner ────────────────────────────── */

.cta-banner {
  background: var(--parchment);
  border-top: 1px solid var(--black-07);
  border-bottom: 1px solid var(--black-07);
  padding: 100px 0;
}

.cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--black);
  letter-spacing: -0.015em;
}

.cta-headline em {
  font-style: italic;
  color: var(--gold);
}

.btn-cta {
  display: inline-block;
  flex-shrink: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid var(--black);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}

.btn-cta:hover {
  background: transparent;
  color: var(--black);
}

/* ── Contact ───────────────────────────────── */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-text .section-headline { margin-bottom: 20px; }

.offices {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--black-07);
}

.office {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.office-city {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.01em;
}

.office-note {
  font-size: 0.8125rem;
  color: var(--black-30);
  letter-spacing: 0.02em;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black-30);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  border: none;
  border-bottom: 1px solid var(--black-15);
  padding: 10px 0;
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s var(--ease);
  appearance: none;
  width: 100%;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='1.5'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--black);
}

.form-group textarea {
  resize: none;
  min-height: 80px;
}

.btn-submit {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--black);
  padding: 15px 32px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  margin-top: 8px;
  align-self: flex-start;
}

.btn-submit:hover {
  background: transparent;
  color: var(--black);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-note {
  font-size: 0.75rem;
  color: var(--black-15);
  line-height: 1.55;
  margin-top: 16px;
}

/* ── Footer ────────────────────────────────── */

.footer {
  background: var(--black);
  color: rgba(255,255,255,0.35);
}

.footer-inner {
  padding: 64px 48px 48px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 40px;
}

.footer-wordmark {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.6);
}

.footer-nav {
  display: flex;
  gap: 36px;
}

.footer-nav a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
  transition: color 0.25s;
}

.footer-nav a:hover { color: rgba(255,255,255,0.7); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.25);
}

.footer-legal {
  font-size: 0.6875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.15);
  max-width: 800px;
}

/* ── Scroll reveal ─────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ────────────────────────────── */

@media (max-width: 1024px) {
  :root { --col-gap: 48px; }

  .two-col {
    grid-template-columns: 160px 1fr;
  }

  .strategy-item {
    grid-template-columns: 160px 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --section-pad: 80px;
    --col-gap: 32px;
  }

  .container { padding: 0 28px; }
  .nav-inner { padding: 0 28px; }
  .footer-inner { padding: 48px 28px 40px; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .col-label { padding-top: 0; }

  .strategy-item {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
  }

  .strategy-pillars {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .principle:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 540px) {
  :root { --section-pad: 64px; }

  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .mobile-menu a { padding: 16px 20px; }
  .footer-inner { padding: 40px 20px 32px; }

  .hero-headline { font-size: clamp(2.25rem, 9vw, 3.25rem); }

  .form-row { grid-template-columns: 1fr; }

  .footer-nav { flex-direction: column; gap: 16px; }
}
