/* ============================================================
   Trabema Capital — main.css
   Version: 1.0
   Last updated: April 2026
   ============================================================ */

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

/* ── Tokens ── */
:root {
  --navy:   #0F1B2D;
  --slate:  #4A5568;
  --slate-l:#8A97A8;
  --sage:   #7A9080;
  --sage-l: #A8BCB0;
  --cream:  #F7F5F0;
  --offwh:  #FAFAF8;
  --white:  #FFFFFF;
  --rule:   #D4CFC7;
  --serif:  'Cormorant Garamond', Georgia, serif;
  --mono:   'DM Mono', 'Courier New', monospace;
  --max:    1100px;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  background: var(--offwh);
  color: var(--slate);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--sage); }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,27,45,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  height: 72px;
  transition: height 0.35s ease;
}
nav.scrolled { height: 60px; }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wordmark {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; text-decoration: none;
}
.wordmark-main {
  font-family: var(--serif); font-weight: 300; font-size: 21px;
  letter-spacing: 0.06em; color: var(--white); line-height: 1;
}
.wordmark-sub {
  font-family: var(--mono); font-size: 6.5px; letter-spacing: 0.32em;
  color: var(--sage); text-transform: uppercase; line-height: 1;
}
nav ul { display: flex; gap: 44px; list-style: none; align-items: center; }
nav ul a {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.38); text-decoration: none;
  position: relative; transition: color 0.25s;
}
nav ul a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--sage); transition: width 0.3s ease;
}
nav ul a:hover { color: rgba(255,255,255,0.82); }
nav ul a:hover::after { width: 100%; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.17s; }
.d3 { transition-delay: 0.26s; }
.d4 { transition-delay: 0.35s; }

/* ── Hero ── */
#hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 140px 60px 120px;
  position: relative;
}
.hero-line {
  position: absolute; top: 0; bottom: 0; left: 38%;
  width: 1px; background: rgba(122,144,128,0.04); pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--sage); margin-bottom: 32px;
  display: flex; align-items: center; gap: 14px;
  opacity: 0; animation: heroIn 0.85s ease 0.1s forwards;
}
.hero-eyebrow span { width: 20px; height: 1px; background: var(--sage); display: inline-block; flex-shrink: 0; }
h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(52px, 7.5vw, 100px);
  color: var(--white); line-height: 1.02; letter-spacing: -0.005em;
  opacity: 0; animation: heroIn 0.85s ease 0.28s forwards;
}
h1 em { font-style: italic; color: rgba(255,255,255,0.42); }
.hero-rule {
  width: 44px; height: 1px; background: var(--sage); margin: 36px 0;
  opacity: 0; animation: heroIn 0.85s ease 0.44s forwards;
}
.hero-desc {
  font-family: var(--mono); font-size: 13px; line-height: 2;
  color: rgba(255,255,255,0.35); letter-spacing: 0.04em; max-width: 540px;
  opacity: 0; animation: heroIn 0.85s ease 0.58s forwards;
}
.hero-footer {
  position: absolute; bottom: 44px; left: 60px; right: 60px;
  display: flex; justify-content: space-between; align-items: flex-end; z-index: 1;
  opacity: 0; animation: heroIn 0.85s ease 0.76s forwards;
}
.hero-disclaimer {
  font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.14); text-transform: uppercase;
}
.scroll-ind { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-ind span {
  font-family: var(--mono); font-size: 6.5px; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.16); text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--sage), transparent);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: 0.22; } 50% { opacity: 0.6; } }

/* ── Sections ── */
section { width: 100%; }
.section-inner { max-width: var(--max); margin: 0 auto; }

#about   { background: var(--cream); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 128px 60px; }
#approach{ background: var(--navy); padding: 128px 60px; position: relative; overflow: hidden; }
#impact  { background: var(--offwh); padding: 128px 60px; }
#people  { background: var(--cream); border-top: 1px solid var(--rule); padding: 128px 60px; }
#contact { background: var(--navy); padding: 128px 60px; position: relative; overflow: hidden; }
footer   { background: rgba(10,19,32,1); border-top: 1px solid rgba(255,255,255,0.04); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 36px 60px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}

/* ── Eyebrow ── */
.eyebrow {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 28px; display: flex; align-items: center; gap: 14px;
}
.eyebrow span { width: 20px; height: 1px; background: var(--sage); flex-shrink: 0; display: inline-block; }
.eyebrow-center { justify-content: center; }

/* ── Typography ── */
h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 4.8vw, 62px); line-height: 1.08; }
h2.light { color: var(--white); }
h2.dark  { color: var(--navy); }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; margin-top: 68px; }
.about-lead {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(20px, 2.2vw, 26px); color: var(--navy); line-height: 1.6; letter-spacing: 0.01em;
}
.about-body { font-family: var(--mono); font-size: 12px; line-height: 2.15; color: var(--slate); letter-spacing: 0.03em; }
.about-body p + p { margin-top: 22px; }
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 68px; }
.card {
  background: var(--white); border: 1px solid var(--rule); padding: 40px 36px;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--sage); transition: height 0.45s ease;
}
.card:hover::before { height: 100%; }
.card-num  { font-family: var(--mono); font-size: 8px; letter-spacing: 0.2em; color: var(--sage); margin-bottom: 18px; }
.card-name { font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--navy); margin-bottom: 14px; letter-spacing: 0.01em; }
.card-text { font-family: var(--mono); font-size: 11px; line-height: 1.95; color: var(--slate); letter-spacing: 0.025em; }

/* ── Approach ── */
.approach-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 96px; margin-top: 72px; align-items: start; }
.approach-quote {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px); color: rgba(255,255,255,0.75);
  line-height: 1.55; letter-spacing: 0.01em; margin-bottom: 36px;
}
.approach-body { font-family: var(--mono); font-size: 11px; line-height: 1.95; color: rgba(255,255,255,0.3); letter-spacing: 0.03em; }
.approach-list { list-style: none; border-top: 1px solid rgba(255,255,255,0.07); }
.approach-list li {
  display: flex; gap: 22px; padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07); align-items: flex-start;
}
.approach-list li span:first-child { font-family: var(--mono); font-size: 8px; color: var(--sage); padding-top: 2px; flex-shrink: 0; }
.approach-list li span:last-child  { font-family: var(--mono); font-size: 11.5px; line-height: 1.9; color: rgba(255,255,255,0.42); letter-spacing: 0.025em; }

/* ── Impact ── */
.impact-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 68px; }
.impact-card {
  background: var(--cream); border: 1px solid var(--rule); padding: 40px 36px;
  position: relative; overflow: hidden;
}
.impact-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--sage); transition: height 0.45s ease;
}
.impact-card:hover::before { height: 100%; }
.impact-footer { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 88px; }
.impact-statement {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(18px, 2vw, 24px); color: var(--navy); line-height: 1.6; letter-spacing: 0.01em;
}
.impact-detail { font-family: var(--mono); font-size: 12px; line-height: 2.1; color: var(--slate); letter-spacing: 0.03em; }

/* ── People ── */
.people-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 48px; }
.person {
  background: var(--offwh); border: 1px solid var(--rule); padding: 52px 44px;
  position: relative; overflow: hidden; transition: background 0.3s;
}
.person:hover { background: var(--white); }
.person::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--sage); transform: scaleX(0);
  transform-origin: left; transition: transform 0.4s ease;
}
.person:hover::after { transform: scaleX(1); }
.person-initial  { font-family: var(--serif); font-weight: 300; font-size: 64px; color: rgba(15,27,45,0.06); line-height: 1; margin-bottom: 32px; user-select: none; }
.person-name     { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--navy); letter-spacing: 0.02em; margin-bottom: 4px; }
.person-role     { font-family: var(--mono); font-size: 8px; letter-spacing: 0.2em; color: var(--sage); text-transform: uppercase; margin-bottom: 6px; }
.person-location { font-family: var(--mono); font-size: 8px; letter-spacing: 0.12em; color: var(--slate-l); margin-bottom: 28px; }
.person-rule     { width: 28px; height: 1px; background: var(--rule); margin-bottom: 28px; }
.person-bio      { font-family: var(--mono); font-size: 11px; line-height: 2; color: var(--slate); letter-spacing: 0.025em; }

/* ── Contact ── */
.contact-inner { max-width: 660px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.contact-heading { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5vw, 60px); color: var(--white); line-height: 1.08; margin-bottom: 20px; }
.contact-rule { width: 44px; height: 1px; background: var(--sage); margin: 0 auto 32px; }
.contact-desc { font-family: var(--mono); font-size: 11.5px; line-height: 2.1; color: rgba(255,255,255,0.3); letter-spacing: 0.04em; margin-bottom: 48px; }
.contact-wordmark { margin-bottom: 28px; }
.contact-wordmark-main { font-family: var(--serif); font-weight: 300; font-size: 40px; letter-spacing: 0.06em; color: var(--sage); line-height: 1; margin-bottom: 6px; }
.contact-wordmark-sub  { font-family: var(--mono); font-size: 8px; letter-spacing: 0.36em; color: rgba(122,144,128,0.55); text-transform: uppercase; }
.contact-email {
  font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 2.4vw, 28px);
  color: var(--white); text-decoration: none; letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(122,144,128,0.35); padding-bottom: 5px;
  transition: color 0.3s, border-color 0.3s;
}
.contact-email:hover { color: var(--sage-l); border-color: var(--sage); }
.contact-locations { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; color: rgba(255,255,255,0.14); line-height: 2; margin-top: 48px; }

/* ── Footer ── */
.footer-name  { font-family: var(--serif); font-size: 15px; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); font-weight: 300; }
.footer-legal { font-family: var(--mono); font-size: 8px; letter-spacing: 0.06em; color: rgba(255,255,255,0.45); line-height: 1.85; max-width: 620px; text-align: right; }

/* ── Hamburger ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: rgba(255,255,255,0.6);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  .nav-inner { padding: 0 40px; }
  .hero-inner { padding: 120px 40px 100px; }
  .hero-footer { left: 40px; right: 40px; }
  #about, #approach, #impact, #people, #contact { padding: 96px 40px; }
  .about-grid { gap: 56px; }
  .approach-grid { gap: 60px; }
  .impact-footer { gap: 56px; }
  h2 { font-size: clamp(34px, 4.2vw, 56px); }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  .nav-inner { padding: 0 24px; }
  .nav-toggle { display: flex; }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(15,27,45,0.97);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 16px 24px 24px;
    backdrop-filter: blur(16px);
  }
  nav.open ul { display: flex; }
  nav ul li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  nav ul li:last-child { border-bottom: none; }
  nav ul a { padding: 14px 0; display: block; font-size: 9px; letter-spacing: 0.2em; color: rgba(255,255,255,0.55); }
  nav ul a::after { display: none; }

  .hero-inner { padding: 100px 24px 80px; }
  .hero-footer { left: 24px; right: 24px; }
  h1 { font-size: clamp(38px, 10vw, 52px); }

  #about, #approach, #impact, #people, #contact { padding: 64px 24px; }
  footer .footer-inner { padding: 28px 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-legal { text-align: left; max-width: 100%; }

  .about-grid, .approach-grid, .impact-footer { grid-template-columns: 1fr; gap: 36px; }
  .pillars, .impact-cards, .people-grid { grid-template-columns: 1fr; gap: 2px; }
  .person { padding: 36px 28px; }
  .contact-desc { font-size: 11px; }
}

/* ── Small mobile (≤ 480px) ── */
@media (max-width: 480px) {
  h1 { font-size: clamp(32px, 9vw, 42px); }
  #about, #approach, #impact, #people, #contact { padding: 48px 20px; }
  .hero-inner { padding: 90px 20px 72px; }
  .hero-footer { left: 20px; right: 20px; }
  .card, .impact-card { padding: 28px 24px; }
  .person { padding: 28px 24px; }
  footer .footer-inner { padding: 24px 20px; }
}
