@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=DM+Serif+Display:ital@0;1&display=swap');

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

:root {
  --teal: #134E4A;
  --teal-light: #1a6560;
  --sage: #9FB7B3;
  --sage-light: rgba(159, 183, 179, 0.15);
  --clay: #C26D52;
  --cream: #F7F5F2;
  --cream-dark: #EDE9E4;
  --dark: #1A1A1A;
  --muted: #4A4A4A;
  --white: #FFFFFF;
  --max-width: 1140px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(159, 183, 179, 0.3);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo img,
.nav-logo svg {
  height: 42px;
  width: auto;
}

.nav-logo .divider {
  width: 1px;
  height: 36px;
  background: var(--sage);
}

.nav-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-wordmark .firm-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--teal);
  text-transform: uppercase;
}

.nav-wordmark .firm-sub {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--clay);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal);
  margin: 5px 0;
  transition: 0.2s;
}

/* ── Section spacing ── */
section {
  padding: 100px 0;
}

section.hero {
  padding: 0;
}

/* ── Typography ── */
h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--teal);
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--teal);
  margin-bottom: 24px;
}

h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--teal);
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  margin-bottom: 16px;
}

p:last-child {
  margin-bottom: 0;
}

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 16px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 3px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(19, 78, 74, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--sage);
}

.btn-outline:hover {
  border-color: var(--teal);
  background: rgba(19, 78, 74, 0.04);
}

.btn-clay {
  background: var(--clay);
  color: var(--white);
}

.btn-clay:hover {
  background: #b56245;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(194, 109, 82, 0.25);
}

/* ── Dividers ── */
.section-divider {
  width: 48px;
  height: 2px;
  background: var(--clay);
  margin-bottom: 32px;
}

hr.subtle {
  border: none;
  height: 1px;
  background: var(--sage);
  opacity: 0.3;
  margin: 60px 0;
}

/* ── Hero (Home) ── */
.hero-home {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--teal);
}

.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.2;
  pointer-events: none;
}

.hero-home::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(19, 78, 74, 0.95) 0%, rgba(19, 78, 74, 0.7) 50%, rgba(19, 78, 74, 0.85) 100%),
    radial-gradient(ellipse 60% 50% at 75% 40%, rgba(159, 183, 179, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-home .hero-bg-mark {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 560px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

.hero-home .hero-bg-mark img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.hero-home .container {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  padding-top: 100px;
  padding-bottom: 100px;
}

.hero-content {
  max-width: 620px;
}

.hero-home h1 {
  color: var(--cream);
  font-size: 56px;
  margin-bottom: 24px;
  animation: heroFadeUp 0.8s ease both;
}

.hero-home .subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(247, 245, 242, 0.6);
  margin-bottom: 28px;
  animation: heroFadeUp 0.8s ease 0.15s both;
}

.hero-tagline {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--clay);
  margin-bottom: 40px;
  animation: heroFadeUp 0.8s ease 0.22s both;
}

.hero-home .label {
  color: var(--clay);
  animation: heroFadeUp 0.8s ease 0s both;
}

.hero-home .btn {
  animation: heroFadeUp 0.8s ease 0.3s both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Inner page heroes ── */
.hero-inner {
  padding: 120px 0 80px;
  position: relative;
}

.hero-inner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--max-width));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
  opacity: 0.4;
}

.hero-inner .container {
  max-width: 800px;
}

.hero-inner h1 {
  margin-bottom: 24px;
}

.hero-inner .subtitle {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Sectors grid ── */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(159, 183, 179, 0.3);
  border: 1px solid rgba(159, 183, 179, 0.3);
  border-radius: 6px;
  overflow: hidden;
}

.sector-item {
  background: var(--white);
  padding: 32px 20px;
  text-align: center;
  transition: background 0.25s ease;
}

.sector-item:hover {
  background: var(--sage-light);
}

.sector-item .sector-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
}

/* ── Team teaser (home page) ── */
.team-teaser {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.team-teaser-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.team-teaser-item:hover {
  transform: translateY(-4px);
}

.team-teaser-item .headshot {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 12px;
  border: 2px solid var(--sage);
  transition: border-color 0.25s;
}

.team-teaser-item:hover .headshot {
  border-color: var(--clay);
}

.team-teaser-item .name {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
}

.team-teaser-item .title {
  font-size: 12px;
  color: var(--muted);
}

/* ── Team page cards ── */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.team-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

.team-card:nth-child(even) {
  direction: rtl;
}

.team-card:nth-child(even) > * {
  direction: ltr;
}

.team-card .headshot-lg {
  width: 300px;
  height: 225px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(15%);
  transition: filter 0.4s ease;
}

.team-card:hover .headshot-lg {
  filter: grayscale(0%);
}

.team-card .team-info h3 {
  margin-bottom: 4px;
}

.team-card .team-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 20px;
}

.team-card .team-bio p {
  font-size: 15px;
}

/* ── Portfolio grid ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.portfolio-card {
  background: var(--white);
  border: 1px solid rgba(159, 183, 179, 0.3);
  border-radius: 6px;
  padding: 36px;
  transition: all 0.3s ease;
  position: relative;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--clay);
  border-radius: 6px 0 0 0;
  transition: height 0.3s ease;
}

.portfolio-card:hover {
  border-color: var(--sage);
  box-shadow: 0 8px 32px rgba(19, 78, 74, 0.06);
  transform: translateY(-2px);
}

.portfolio-card:hover::before {
  height: 100%;
  border-radius: 6px 0 0 6px;
}

.portfolio-card .sector-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  background: rgba(194, 109, 82, 0.08);
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.portfolio-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.portfolio-card p {
  font-size: 14px;
  line-height: 1.6;
}

/* ── Fund page ── */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(159, 183, 179, 0.3);
  border: 1px solid rgba(159, 183, 179, 0.3);
  border-radius: 6px;
  overflow: hidden;
  margin: 32px 0;
}

.term-item {
  background: var(--white);
  padding: 28px;
}

.term-item .term-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.term-item .term-value {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--teal);
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 40px 0;
}

.perf-item {
  text-align: center;
  padding: 24px 0;
}

.perf-item .perf-value {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--teal);
  line-height: 1;
}

.perf-item .perf-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

.disclaimer {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.6;
  line-height: 1.6;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(159, 183, 179, 0.3);
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info p {
  margin-bottom: 20px;
}

.contact-info a {
  color: var(--teal);
  border-bottom: 1px solid rgba(159, 183, 179, 0.4);
  transition: border-color 0.25s;
}

.contact-info a:hover {
  border-color: var(--teal);
}

.contact-form label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  border: 1px solid rgba(159, 183, 179, 0.4);
  border-radius: 4px;
  background: var(--white);
  color: var(--dark);
  margin-bottom: 20px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(19, 78, 74, 0.08);
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

/* ── CTA Band ── */
.cta-band {
  background: var(--teal);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(194, 109, 82, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  text-align: center;
  max-width: 600px;
}

.cta-band h2 {
  color: var(--cream);
}

.cta-band p {
  color: rgba(247, 245, 242, 0.6);
}

/* ── Footer ── */
footer {
  background: var(--teal);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(159, 183, 179, 0.2);
}

footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 48px;
}

footer .footer-brand .firm-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
}

footer .footer-brand .tagline {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 15px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.4);
}

footer .footer-brand .location {
  font-size: 13px;
  margin-top: 16px;
}

footer .footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

footer .footer-nav a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.25s;
}

footer .footer-nav a:hover {
  color: var(--white);
}

footer .footer-contact {
  font-size: 13px;
  text-align: right;
}

footer .footer-contact a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.25s;
}

footer .footer-contact a:hover {
  color: var(--white);
}

footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

/* ── About page ── */
.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.about-columns p {
  font-size: 15px;
}

/* ── Two column layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ── Fund highlights ── */
.highlights-list {
  list-style: none;
  padding: 0;
}

.highlights-list li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(159, 183, 179, 0.2);
  font-size: 15px;
  color: var(--muted);
}

.highlights-list li:first-child {
  padding-top: 0;
}

.highlights-list li strong {
  color: var(--teal);
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .hero-inner {
    padding: 80px 0 60px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-home .container {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-home h1 {
    font-size: 38px;
  }

  .hero-tagline {
    font-size: 17px;
  }

  .hero-home .hero-bg-mark {
    width: 80%;
    opacity: 0.04;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: rgba(247, 245, 242, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(159, 183, 179, 0.3);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

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

  .team-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .team-card:nth-child(even) {
    direction: ltr;
  }

  .team-card .headshot-lg {
    width: 220px;
    height: 165px;
  }

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

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

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

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

  .about-columns,
  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  footer .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  footer .footer-contact {
    text-align: left;
  }

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

  .team-teaser {
    gap: 28px;
  }
}
