/* ============================================================
   EVERNET CAPITAL — Design System
   Editorial × Financial. Dark teal canvas, restrained accents.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --teal-900: #0a1f1f;
  --teal-800: #0e2929;
  --teal-700: #133838;
  --teal-600: #1d6363;
  --teal-500: #2a8a8a;
  --teal-400: #4db5b5;
  --teal-300: #7fd0d0;

  --ivory: #f4ede0;
  --ivory-soft: #e8dec8;
  --paper: #faf6ed;
  --ink: #0a1414;
  --ink-soft: #1a2a2a;
  --rule: rgba(244, 237, 224, 0.14);
  --rule-strong: rgba(244, 237, 224, 0.28);
  --amber: #d9a441;

  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --max: 1280px;
  --measure: 68ch;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--teal-900);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle paper grain across the whole site */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.93 0 0 0 0 0.88 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
}

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

a { color: var(--ivory); text-decoration: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-300);
  font-weight: 500;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 7.2vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}

.display-l {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
}

.display-m {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 48;
}

.display-italic { font-style: italic; font-weight: 300; }

.lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--ivory-soft);
  max-width: 56ch;
}

.body-l { font-size: 19px; line-height: 1.7; max-width: var(--measure); }
.body   { font-size: 17px; line-height: 1.7; max-width: var(--measure); }
.body p + p { margin-top: 1.1em; }
.body-l p + p { margin-top: 1.1em; }

.body em, .body-l em { color: var(--ivory); font-style: italic; }
.body strong, .body-l strong { font-weight: 600; color: var(--ivory); }

/* ============================================================
   LAYOUT
   ============================================================ */

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}

.shell-narrow { max-width: 880px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

section { position: relative; z-index: 2; }

.rule { height: 1px; background: var(--rule); width: 100%; }
.rule-strong { height: 1px; background: var(--rule-strong); width: 100%; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky; top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 31, 31, 0.78);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 0.7rem;
}

.brand img.logo-mark {
  height: 36px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(244, 237, 224, 0.08));
}

.brand .wordmark {
  display: inline-block;
  padding-left: 0.5rem;
  border-left: 1px solid var(--rule-strong);
  line-height: 1;
}

.brand .mark {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--teal-400);
  border-radius: 50%;
  position: relative; top: -1px;
  box-shadow: 0 0 16px rgba(77, 181, 181, 0.6);
}

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a + a { margin-left: 0; } /* gap handles spacing in modern browsers */
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  position: relative;
  padding: 0.4rem 1rem 0.4rem 0;
  transition: color 0.25s ease;
}
.nav-links a:last-child { padding-right: 0; }
.nav-links a:hover { color: var(--teal-300); }
.nav-links a.active { color: var(--teal-300); }
.nav-links a.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--teal-300);
}

.nav-toggle { display: none; background: none; border: none; color: var(--ivory); cursor: pointer; font-size: 1.4rem; }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  background: rgba(10, 31, 31, 0.92);
}
.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-soft);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner.open + .mobile-menu { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: clamp(4rem, 10vw, 9rem) 0 clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at center,
    rgba(77, 181, 181, 0.18) 0%,
    rgba(77, 181, 181, 0.06) 35%,
    transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
  opacity: 0.55;
  z-index: 1;
}

/* ============================================================
   STATS / FACT BANDS
   ============================================================ */

.fact-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.fact {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--rule);
  position: relative;
}
.fact:last-child { border-right: none; }

.fact-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ivory);
  display: block;
  margin-bottom: 0.6rem;
}

.fact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-300);
  display: block;
  margin-bottom: 0.3rem;
}

.fact-sub {
  font-size: 13px;
  color: var(--ivory-soft);
  opacity: 0.7;
}

@media (max-width: 760px) {
  .fact-band { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: none; }
  .fact:nth-child(1), .fact:nth-child(2) { border-bottom: 1px solid var(--rule); }
}

/* ============================================================
   CHAPTER MARK (Roman numeral + label)
   ============================================================ */

.chapter {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.chapter-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--teal-400);
}

.chapter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-soft);
}

/* ============================================================
   THREE-FORCES CARDS
   ============================================================ */

.forces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.force {
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.005) 100%);
  border: 1px solid var(--rule);
  border-radius: 2px;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.force:hover { border-color: var(--teal-500); transform: translateY(-2px); }

.force-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 2.4rem;
  color: var(--teal-400);
  line-height: 1;
  margin-bottom: 1rem;
}

.force-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.force-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ivory-soft);
}

@media (max-width: 800px) { .forces { grid-template-columns: 1fr; } }

/* ============================================================
   SIX FAMILIES GRID
   ============================================================ */

.families {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
}

.family {
  padding: 2.4rem 2rem 2.6rem;
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  background: rgba(0,0,0,0.12);
  position: relative;
  transition: background 0.3s ease;
}
.family:hover { background: rgba(77, 181, 181, 0.04); }

.family-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1.2rem;
  gap: 1rem;
}

.family-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--teal-300);
}

.family-alloc {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--ivory);
  line-height: 1;
}

.family-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}

.family-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ivory-soft);
}

@media (max-width: 900px) { .families { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .families { grid-template-columns: 1fr; } }

/* ============================================================
   PULL-QUOTE
   ============================================================ */

.pull {
  margin: 4rem 0;
  padding: 2.5rem 0 2.5rem 2.5rem;
  border-left: 2px solid var(--teal-400);
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ivory);
  max-width: 64ch;
}

.pull-cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-300);
}

/* ============================================================
   CTA / BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--teal-400);
  color: var(--ivory);
  background: transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn:hover { background: var(--teal-400); color: var(--teal-900); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--teal-400); color: var(--teal-900); }
.btn-primary:hover { background: var(--ivory); border-color: var(--ivory); }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  margin-top: 6rem;
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  background: var(--teal-900);
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ivory);
  max-width: 36ch;
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-300);
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer a { color: var(--ivory-soft); font-size: 14px; transition: color 0.2s; }
.footer a:hover { color: var(--teal-300); }
.footer li { list-style: none; margin-bottom: 0.5rem; }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  opacity: 0.7;
}

@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ============================================================
   SECTION SPACING
   ============================================================ */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-sm { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.section-head { margin-bottom: 3rem; }

/* ============================================================
   TEAM / PEOPLE
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.person {
  border-top: 1px solid var(--rule-strong);
  padding-top: 2rem;
}

.person-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  margin-bottom: 1.6rem;
  border: 1px solid var(--rule);
}

/* Placeholder shown until a real headshot is dropped in */
.person-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 1.6rem;
  border: 1px dashed var(--rule-strong);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 12px, transparent 12px 24px),
    var(--teal-800);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.person-photo-placeholder span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  opacity: 0.5;
  padding: 1rem;
  line-height: 1.6;
}

.person-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.person-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 1.4rem;
}

.person-bio {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ivory-soft);
}
.person-bio p + p { margin-top: 1em; }

/* Tag row beneath each bio (boards / expertise) */
.person-tags {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
.person-tags .tags-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-300);
  display: block;
  margin-bottom: 0.7rem;
}
.person-tags .tag-line {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ivory-soft);
}
.person-tags .tag-line strong { color: var(--ivory); font-weight: 500; }

@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.advisors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
}

.advisor {
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
}
.advisor-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}
.advisor-role {
  font-size: 13.5px;
  color: var(--ivory-soft);
  line-height: 1.45;
}

@media (max-width: 720px) { .advisors { grid-template-columns: 1fr; } }

/* ============================================================
   PRECEDENT / CME STORY
   ============================================================ */

.precedent {
  margin: 4rem 0;
  padding: 3rem clamp(1.5rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, rgba(77, 181, 181, 0.05) 0%, transparent 100%),
    var(--teal-800);
  border: 1px solid var(--rule);
  border-radius: 2px;
  position: relative;
}

.precedent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-400), transparent);
}

.precedent-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 1rem;
}

.precedent-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.timeline-step {
  padding: 1.4rem 1rem;
  border-right: 1px solid var(--rule);
  text-align: left;
}
.timeline-step:last-child { border-right: none; }
.timeline-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--teal-300);
  margin-bottom: 0.4rem;
}
.timeline-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  line-height: 1.4;
}

@media (max-width: 700px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline-step:nth-child(2) { border-right: none; }
  .timeline-step:nth-child(1), .timeline-step:nth-child(2) { border-bottom: 1px solid var(--rule); }
}

/* ============================================================
   INLINE LISTS
   ============================================================ */

.inline-list { max-width: var(--measure); }
.inline-list li {
  list-style: none;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: baseline;
}
.inline-list li:last-child { border-bottom: 1px solid var(--rule); }
.inline-list .il-marker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--teal-400);
  font-size: 1.2rem;
  min-width: 2.4rem;
}
.inline-list .il-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.35rem;
  letter-spacing: -0.005em;
}
.inline-list .il-body { font-size: 15px; line-height: 1.6; color: var(--ivory-soft); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */

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

.rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.18s; }
.rise-3 { animation-delay: 0.32s; }
.rise-4 { animation-delay: 0.46s; }
.rise-5 { animation-delay: 0.6s; }

/* Scroll-triggered reveals — JS adds `.js-on` to <html>, only then do we hide pre-reveal */
.js-on .observe { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js-on .observe.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   DISCLOSURE
   ============================================================ */

.disclosure {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ivory-soft);
  opacity: 0.55;
  line-height: 1.6;
  max-width: 80ch;
}
