/* ══════════════════════════════════════
   Wealth Matrix — Corporate Site v2
   Blackstone/Citadel-inspired aesthetic
   ══════════════════════════════════════ */

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dim: #7A622A;
  --off-white: #F5F2EB;
  --charcoal: #1A1A1A;
  --charcoal-light: #222222;
  --mid: #3D3D3D;
  --text-primary: #F5F2EB;
  --text-secondary: rgba(245, 242, 235, 0.6);
  --text-muted: rgba(245, 242, 235, 0.35);
  --border: rgba(201, 168, 76, 0.12);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'Space Mono', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--charcoal);
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 160px;
}

.nav-logo img {
  height: 200px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.nav-logo:hover img { opacity: 1; }

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

.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 1px;
  background: var(--off-white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 160px 0 120px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.hero-subline {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-desc {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 48px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 16px 36px;
  transition: background 0.35s, color 0.35s;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--charcoal);
}

/* Decorative line */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 48px; right: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), transparent 80%);
}

/* ── Sections ── */
.section {
  padding: 120px 0;
  position: relative;
}

.section-alt {
  background: var(--charcoal-light);
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-intro {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 64px;
}

/* ── About ── */
.about-grid {
  display: block;
  max-width: 720px;
}

.about-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-image {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) contrast(1.05);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.03);
  filter: brightness(0.95) contrast(1.05);
}

.eco-tagline {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  line-height: 1.4;
  margin-bottom: 16px;
}

/* ── Ecosystem ── */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.eco-card {
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-right: none;
  position: relative;
  transition: background 0.3s;
}

.eco-card:last-child { border-right: 1px solid var(--border); }

.eco-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.eco-card:hover { background: rgba(201, 168, 76, 0.02); }
.eco-card:hover::before { transform: scaleX(1); }

.eco-number {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold-dim);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.eco-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.eco-type {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.eco-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 24px;
}

.eco-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eco-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 6px 14px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.eco-tag:hover {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}

/* ── Portfolio ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 40px 36px;
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.project-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.project-header {
  margin-bottom: 16px;
}

.project-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.project-tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.project-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.85;
  flex: 1;
  margin-bottom: 24px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.3s;
}

.project-card:hover .project-link { gap: 10px; }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

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

.contact-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.contact-detail span:last-child {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-row .form-group { margin-bottom: 0; }

.form-group label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: 13px;
  padding: 16px 18px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.03);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 36px;
  cursor: pointer;
  transition: background 0.35s, color 0.35s;
}

.btn-submit:hover {
  background: var(--gold);
  color: var(--charcoal);
}

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

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

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

.footer-logo {
  height: 144px;
  width: auto;
  opacity: 0.4;
}

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

.footer-links a {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .container, .nav-container, .hero-container { padding: 0 32px; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-stats { flex-direction: row; }
  .stat { flex: 1; border-bottom: none; border-right: 1px solid var(--border); }
  .stat:last-child { border-right: none; }

  .eco-grid { grid-template-columns: 1fr; gap: 0; }
  .eco-card { border-right: 1px solid var(--border); border-bottom: none; }
  .eco-card:last-child { border-bottom: 1px solid var(--border); }

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

@media (max-width: 768px) {
  .container, .nav-container, .hero-container { padding: 0 24px; }

  .nav-container { height: 68px; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    max-height: 300px;
    padding: 24px 0;
  }

  .nav-links li { padding: 14px 0; }

  .hero { padding: 120px 0 80px; min-height: auto; }
  .hero::after { left: 24px; right: 24px; }

  .section { padding: 80px 0; }

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

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

  .about-stats { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links { gap: 20px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 32px; }
  .hero-cta { width: 100%; justify-content: center; }
  .project-card { padding: 28px 24px; }
  .eco-card { padding: 28px 24px; }
}
