/* ============================================================
   NFG ADVISORS, LLC — corporate charter design system
   Palette: ink / paper / royal violet + champagne
   All text uses solid colors — no transparency.
   ============================================================ */

:root {
  --bg: #0b0a10;
  --bg-2: #0f0d16;
  --panel: #14111e;
  --panel-2: #191527;
  --ink: #edeaf5;
  --muted: #a39dba;
  --faint: #6d6684;
  --accent: #b49dff;
  --accent-deep: #9473ff;
  --accent-ink: #170c33;
  --champ: #cdbc96;
  --line: #251f38;
  --line-2: #332a4d;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --mono: "DM Mono", Consolas, monospace;
  --wrap: 1220px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

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

/* charter double-rule divider */
.dr {
  height: 7px;
  border-top: 2px solid var(--line-2);
  border-bottom: 1px solid var(--line);
}

/* ================= HEADER ================= */
.hdr {
  background: var(--bg);
  border-bottom: 2px solid var(--line-2);
}
.hdr-top {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 30px 36px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.hdr-brand .co {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: .01em;
  line-height: 1.05;
}
.hdr-brand .co i { font-style: normal; color: var(--accent); }
.hdr-brand .co small {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 8px;
}
.hdr-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: right;
  line-height: 2;
}
.hdr-meta b { color: var(--champ); font-weight: 400; }
.hdr-nav {
  border-top: 1px solid var(--line);
}
.hdr-nav-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  gap: 4px;
}
.hdr-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 22px;
  position: relative;
}
.hdr-nav a::before {
  content: "";
  position: absolute;
  top: -2px; left: 0; right: 0;
  height: 2px;
  background: transparent;
}
.hdr-nav a:hover { color: var(--ink); }
.hdr-nav a.on { color: var(--accent); }
.hdr-nav a.on::before { background: var(--accent); }
.hdr-nav .cta {
  margin-left: auto;
  color: var(--champ);
  border-left: 1px solid var(--line);
}
.hdr-nav .cta:hover { color: var(--accent); }
.hdr-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-2);
  width: 46px; height: 46px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.hdr-toggle span { width: 20px; height: 2px; background: var(--ink); display: block; }

/* ================= HERO ================= */
.hero { border-bottom: 1px solid var(--line); }
.hero-in { max-width: var(--wrap); margin: 0 auto; padding: 92px 36px 90px; }
.hero-doc {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--champ);
  margin-bottom: 36px;
}
.hero-doc i { font-style: normal; color: var(--faint); margin: 0 12px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(50px, 7.4vw, 106px);
  line-height: 1.0;
  letter-spacing: -.01em;
  max-width: 1000px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero h1 .thin { font-weight: 500; font-style: normal; }
.hero-lede {
  margin-top: 38px;
  max-width: 640px;
  font-size: 18.5px;
  color: var(--muted);
}
.hero-cta { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 18px 36px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent-deep); color: var(--accent-ink); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; transform: translateY(-2px); }

/* ================= ORG TREE ================= */
.tree-band { border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 80px 0; }
.tree-cap {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 50px;
  text-align: center;
}
.tree { max-width: 980px; margin: 0 auto; }
.tnode {
  border: 1px solid var(--line-2);
  background: var(--panel);
  padding: 20px 30px;
  text-align: center;
}
.tnode b {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  display: block;
}
.tnode span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
  margin-top: 6px;
}
.tnode.parent { border-color: var(--accent); max-width: 420px; margin: 0 auto; position: relative; }
.tnode.parent b { color: var(--accent); }
.tnode.parent::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -46px;
  width: 1px; height: 46px;
  background: var(--line-2);
}
.tree-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 46px;
  position: relative;
}
.tree-row::before {
  content: "";
  position: absolute;
  top: -46px;
  left: calc(100%/6);
  right: calc(100%/6);
  height: 1px;
  background: var(--line-2);
}
.tree-row .tnode { position: relative; }
.tree-row .tnode::before {
  content: "";
  position: absolute;
  top: -46px; left: 50%;
  width: 1px; height: 46px;
  background: var(--line-2);
}
.tree-row .tnode b { font-size: 20px; color: var(--champ); }
.tree-row .tnode:hover { border-color: var(--accent); }

/* ================= EXHIBIT HEADS ================= */
.sect { border-bottom: 1px solid var(--line); padding: 92px 0; }
.xhead {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.xhead .xtag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 10px 18px;
  white-space: nowrap;
}
.xhead h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
}
.xhead h2 em { font-style: italic; color: var(--accent); }
.xhead .sub {
  margin-left: auto;
  max-width: 360px;
  color: var(--muted);
  font-size: 15px;
}
.xhead .rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  min-width: 60px;
}

/* ================= CARDS ================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cc {
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--panel);
  padding: 36px 32px 42px;
  transition: border-color .2s ease, transform .2s ease;
}
.cc:hover { border-color: var(--accent); transform: translateY(-4px); }
.cc .lab {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--champ);
  display: block;
  margin-bottom: 20px;
}
.cc h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.12;
  margin-bottom: 14px;
}
.cc p { color: var(--muted); font-size: 14.5px; }
.cc .meta {
  display: block;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ================= LEDGER TABLE ================= */
.ledger { border: 1px solid var(--line-2); }
.lrow {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.lrow:last-child { border-bottom: 0; }
.lrow:nth-child(odd) { background: var(--bg-2); }
.lrow .code {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--accent);
}
.lrow .side {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lrow.hd {
  background: var(--panel);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}
.lrow:hover { background: var(--panel-2); }

/* ================= NUMBERS ================= */
.nums { display: grid; grid-template-columns: repeat(4,1fr); }
.num {
  padding: 46px 34px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.num:last-child { border-right: 0; }
.num b {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 62px;
  line-height: 1;
  display: block;
}
.num b i { color: var(--accent); font-style: normal; }
.num span {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.nums-wrap { border: 1px solid var(--line-2); }

/* ================= SPLIT ================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.prose p { color: var(--muted); margin-bottom: 20px; }
.prose p strong { color: var(--ink); font-weight: 700; }
.prose .fn {
  font-size: 13px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 30px;
  font-family: var(--mono);
}

/* pull quote */
.pull {
  border-left: 4px solid var(--accent);
  padding: 10px 0 10px 34px;
}
.pull p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.35;
}
.pull p em { color: var(--accent); font-style: italic; }
.pull span {
  display: block;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ================= SHEET ================= */
.sheet { border: 1px solid var(--line-2); background: var(--panel); }
.sheet-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  border-bottom: 1px solid var(--line);
}
.sheet-row:last-child { border-bottom: 0; }
.sheet-row .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 19px 26px;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
}
.sheet-row .v { padding: 19px 26px; font-size: 15px; }
.sheet-row .v a { color: var(--accent); }
.sheet-row .v a:hover { color: var(--ink); }

/* ================= CATALOG ================= */
.catalog { border-top: 2px solid var(--line-2); }
.catg { border-bottom: 1px solid var(--line-2); }
.catg-head {
  width: 100%;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 26px;
  text-align: left;
  padding: 30px 10px;
}
.catg-head .etag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 16px;
  white-space: nowrap;
}
.catg-head h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  flex: 1;
}
.catg-head .n { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .14em; text-transform: uppercase; }
.catg-head .pm { font-size: 24px; color: var(--accent); font-weight: 300; transition: transform .25s ease; width: 30px; text-align: center; }
.catg.open .catg-head .pm { transform: rotate(45deg); }
.catg-body { display: none; padding: 4px 10px 46px 10px; }
.catg.open .catg-body { display: block; }
.catg-body .desc {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  max-width: 780px;
  margin-bottom: 28px;
  font-size: 17px;
  border-left: 3px solid var(--champ);
  padding-left: 20px;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  padding: 9px 15px;
  transition: border-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ================= GOVERNANCE STEPS ================= */
.gov { counter-reset: step; border: 1px solid var(--line-2); }
.grow2 {
  display: grid;
  grid-template-columns: 190px 1fr;
  border-bottom: 1px solid var(--line);
}
.grow2:last-child { border-bottom: 0; }
.grow2 .gl {
  border-right: 1px solid var(--line);
  padding: 34px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-2);
}
.grow2 .gl .rn {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 44px;
  color: var(--accent);
  line-height: 1;
}
.grow2 .gl .rl {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--faint);
}
.grow2 .gr { padding: 34px 38px; }
.grow2 h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 27px;
  margin-bottom: 10px;
}
.grow2 p { color: var(--muted); font-size: 15px; max-width: 720px; }
.grow2 ul { margin: 14px 0 0 18px; color: var(--muted); font-size: 14px; }
.grow2 li { margin-bottom: 6px; }
.grow2 li::marker { color: var(--accent); }

/* ================= FORM ================= */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  padding: 15px 18px;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 150px; resize: vertical; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 12px; color: var(--faint); margin-top: 16px; font-family: var(--mono); }

/* ================= LEGAL ================= */
.legal { max-width: 860px; }
.legal h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 32px;
  margin: 54px 0 16px;
  padding-top: 40px;
  border-top: 1px solid var(--line-2);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: 16px; margin: 26px 0 10px; font-weight: 700; }
.legal p { color: var(--muted); margin-bottom: 15px; font-size: 15px; }
.legal ul { margin: 0 0 15px 22px; color: var(--muted); font-size: 15px; }
.legal li { margin-bottom: 7px; }
.legal li::marker { color: var(--accent); }
.legal strong { color: var(--ink); font-weight: 700; }
.legal a { color: var(--accent); }
.legal a:hover { color: var(--ink); }
.stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--champ);
  border: 1px solid var(--line-2);
  padding: 10px 18px;
  margin-bottom: 46px;
}

/* ================= PAGE HEAD ================= */
.pagehead { padding: 110px 0 80px; border-bottom: 1px solid var(--line); }
.crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 32px;
}
.crumbs a { color: var(--faint); }
.crumbs a:hover { color: var(--accent); }
.pagehead h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(46px, 6.6vw, 92px);
  line-height: 1;
}
.pagehead h1 em { color: var(--accent); font-style: italic; }
.pagehead .lede { margin: 34px 0 0; max-width: 680px; color: var(--muted); font-size: 18px; }

/* ================= CTA ================= */
.cta-band { padding: 96px 0; text-align: center; }
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(40px, 5.8vw, 78px);
  line-height: 1.02;
}
.cta-band h2 em { color: var(--accent); font-style: italic; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 28px auto 42px; font-size: 16.5px; }
.cta-band .rule2 { width: 70px; height: 2px; background: var(--accent); margin: 0 auto 34px; }

/* ================= FOOTER ================= */
.foot { background: var(--bg-2); border-top: 2px solid var(--line-2); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding: 62px 0 50px;
}
.foot-word {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(34px, 3.8vw, 48px);
  line-height: 1.05;
  margin-bottom: 20px;
}
.foot-word span { color: var(--accent); }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 340px; }
.foot-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
  margin-bottom: 20px;
}
.foot-col a, .foot-col p { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.foot-col a:hover { color: var(--accent); }
.foot-col p b {
  display: block;
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.foot-base {
  border-top: 1px solid var(--line);
  padding: 24px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.foot-base a { color: var(--faint); margin-left: 20px; }
.foot-base a:hover { color: var(--accent); }

/* ================= REVEAL ================= */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1020px) {
  .tree-row { grid-template-columns: 1fr; gap: 34px; }
  .tree-row::before { display: none; }
  .tree-row .tnode::before { height: 34px; top: -34px; }
  .tnode.parent::after { height: 34px; bottom: -34px; }
  .nums { grid-template-columns: 1fr 1fr; }
  .num:nth-child(2) { border-right: 0; }
  .num:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .lrow { grid-template-columns: 1fr; gap: 8px; }
  .grow2 { grid-template-columns: 1fr; }
  .grow2 .gl { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; padding: 20px 26px; justify-content: flex-start; }
  .grow2 .gl .rn { font-size: 34px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .wrap, .hdr-top, .hdr-nav-in, .hero-in { padding-left: 20px; padding-right: 20px; }
  .hdr-meta { display: none; }
  .hdr-toggle { display: flex; align-self: center; }
  .hdr-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 90;
    border-top: 0;
    transform: translateY(-100%);
    transition: transform .35s ease;
  }
  .hdr-nav.open { transform: none; }
  .hdr-nav .hdr-nav-in {
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
  }
  .hdr-nav a { font-size: 18px; }
  .hdr-nav .cta { margin-left: 0; border-left: 0; }
  .sect { padding: 64px 0; }
  .frow { grid-template-columns: 1fr; }
  .sheet-row { grid-template-columns: 1fr; }
  .sheet-row .k { border-right: 0; border-bottom: 1px solid var(--line); }
  .catg-head .n { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}
