/* ==========================================================================
   AAA Capital Research — stylesheet
   Dark institutional theme
   ========================================================================== */

:root {
  --bg: #0a0f1e;
  --bg-2: #0d1428;
  --bg-3: #111a30;
  --surface: #131c33;
  --surface-2: #18223d;
  --border: rgba(201, 162, 39, 0.16);
  --border-soft: rgba(255, 255, 255, 0.08);
  --gold: #c9a227;
  --gold-light: #e2c15c;
  --gold-dim: #9a7c1f;
  --ink: #e8e6df;
  --ink-muted: #a7adbb;
  --ink-faint: #6b7280;
  --navy: #0a0f1e;
  --white: #f4f2ea;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --maxw: 1140px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 76px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(201, 162, 39, 0.28);
  color: var(--white);
}

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

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color var(--transition);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: 0.2px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section--alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 18px;
}

.section-lead {
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  max-width: 680px;
  margin-bottom: 40px;
}

.lead-serif {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-bar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand:hover {
  color: var(--white);
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a.is-active {
  color: var(--gold-light);
}

.nav-cta {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.9rem;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

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

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(88px, 12vw, 160px) 0 clamp(72px, 9vw, 120px);
  background:
    radial-gradient(900px 500px at 82% -10%, rgba(201, 162, 39, 0.14), transparent 60%),
    radial-gradient(700px 500px at 12% 10%, rgba(30, 64, 128, 0.35), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1000px 600px at 70% 20%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(1000px 600px at 70% 20%, #000 20%, transparent 80%);
}

.hero-inner {
  position: relative;
  max-width: 780px;
}

.hero .eyebrow {
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(201, 162, 39, 0.06);
}

.hero-title {
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 600;
  margin: 20px 0 20px;
  letter-spacing: -0.5px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}

.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(201, 162, 39, 0.22);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-soft);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ==========================================================================
   Cards / grids
   ========================================================================== */

.grid {
  display: grid;
  gap: 22px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--gold);
  margin-bottom: 18px;
  font-size: 1.2rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 12px;
}

/* ==========================================================================
   Split / feature rows
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.split-num {
  font-family: var(--font-head);
  font-size: 4.5rem;
  color: rgba(201, 162, 39, 0.14);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-row {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}

.metric-name {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.metric-val {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1.1rem;
}

.metric-val.up { color: var(--gold-light); }

/* ==========================================================================
   Team
   ========================================================================== */

.person {
  text-align: left;
}

.person-photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--bg-3), var(--surface-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--ink-faint);
  font-family: var(--font-head);
  font-size: 2.4rem;
  overflow: hidden;
}

.person h3 { font-size: 1.1rem; margin-bottom: 2px; }
.person .role { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.person p { color: var(--ink-muted); font-size: 0.9rem; margin-top: 10px; }

/* ==========================================================================
   Contact form
   ========================================================================== */

.form {
  display: grid;
  gap: 18px;
}

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

.field label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.14);
}

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

.info-list { list-style: none; display: grid; gap: 18px; }

.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--ink-muted);
}

.info-list .info-key {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  min-width: 74px;
  padding-top: 3px;
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  background:
    radial-gradient(700px 400px at 50% 120%, rgba(201, 162, 39, 0.16), transparent 70%),
    var(--bg-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(64px, 9vw, 110px) 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  margin-bottom: 16px;
}

.cta-band p {
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 40px;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.site-footer .brand { margin-bottom: 14px; }

.site-footer p {
  color: var(--ink-faint);
  font-size: 0.9rem;
  max-width: 360px;
}

.footer-head {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links { list-style: none; display: grid; gap: 10px; }

.footer-links a {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px var(--gutter) 22px;
    background: rgba(10, 15, 30, 0.98);
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-120%);
    transition: transform var(--transition);
    pointer-events: none;
  }

  .nav-links.is-open {
    transform: none;
    pointer-events: auto;
  }

  .nav-links a { padding: 12px 14px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .site-footer .brand { justify-content: flex-start; }
}