/* ────────────────────────────────────────────────────────────
   Daniel & Company — shared tokens + layout
   Brand DNA carried over from Corporate Overview deck.
   ──────────────────────────────────────────────────────────── */

:root {
  --white:       #FFFFFF;
  --paper:       #E8F0FA;
  --navy:        #0F1F3D;
  --navy-deep:   #07101F;
  --ink:         #2A2A2A;
  --warm-white:  #F2F5FA;
  --grey-light:  #999999;
  --grey-muted:  #6B8BC4;

  --ice:         #93C5FD;
  --ice-soft:    #C9DCF3;
  --ice-deep:    #5B7FA8;

  --rule-navy:   rgba(232,240,250,0.16);
  --rule-white:  rgba(15,31,61,0.13);
  --rule-strong: rgba(15,31,61,0.22);

  --font-display: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max:         1440px;
  --gutter:      48px;
  --gutter-lg:   96px;
}
@media (max-width: 720px) {
  :root { --gutter: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: #FFFFFF;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

/* ── Layout ─────────────────────────────────────────────────── */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 1200px) {
  .wrap { padding: 0 var(--gutter-lg); }
}

/* ── Wordmark (same construction as deck) ───────────────────── */

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.028em;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
}
.wordmark .a { color: var(--navy); }
.wordmark .amp { color: var(--ice-deep); font-weight: 500; margin: 0 0.12em 0 0.18em; }
.wordmark--light .a { color: var(--paper); }
.wordmark--light .amp { color: var(--ice); }
/* BX5 two-tone: "Daniel" paper, "& Company" ice (on navy) */
.wordmark--light .a:last-child { color: var(--ice); }

/* ── Navigation ─────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule-white);
}
.nav--navy {
  background: #0A1630 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(147,197,253,0.18) !important;
}
/* Transparent nav over a matching navy hero — lets the hero gradient read cleanly on first load */
.nav--transparent {
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1200px) {
  .nav-inner { padding-left: var(--gutter-lg); padding-right: var(--gutter-lg); }
}
.nav-brand { font-size: 28px; }
.nav-links {
  display: flex;
  gap: 40px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--navy);
}
.nav--navy .nav-links { color: var(--paper); }
.nav-links a {
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  opacity: 0.82;
  transition: opacity 160ms ease, color 160ms ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  opacity: 1;
}
.nav-links a[aria-current="page"] {
  font-style: italic;
  color: var(--ice-deep);
}
.nav--navy .nav-links a[aria-current="page"] { color: var(--ice); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--navy);
}
.nav--navy .nav-links a[aria-current="page"]::after { background: var(--paper); }

/* Hamburger toggle — hidden at desktop */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
  color: inherit;
}
.nav-toggle svg { display: block; }
.nav--navy .nav-toggle { color: var(--paper); }
.nav:not(.nav--navy) .nav-toggle { color: var(--navy); }

@media (max-width: 720px) {
  .nav-brand { font-size: 22px; }
  .nav-inner { padding: 16px var(--gutter); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  /* Mobile menu — slide-down panel */
  .nav-links {
    position: fixed;
    top: 58px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 24px var(--gutter) 32px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--rule-white);
    font-size: 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .nav--navy .nav-links {
    background: #0A1630;
    border-bottom: 1px solid rgba(147,197,253,0.18);
  }
  .nav[data-open="true"] .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule-white);
    opacity: 0.9;
  }
  .nav--navy .nav-links a {
    border-bottom: 1px solid rgba(147,197,253,0.14);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a[aria-current="page"]::after { display: none; }
}

/* ── Type primitives ────────────────────────────────────────── */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice-deep);
  font-weight: 500;
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.028em;
  line-height: 0.98;
  color: var(--navy);
  margin: 0;
}
.display--xl { font-size: clamp(56px, 9vw, 140px); }
.display--l  { font-size: clamp(44px, 6vw, 92px); }
.display--m  { font-size: clamp(32px, 4.4vw, 64px); }

.display .it { font-style: italic; color: var(--ice-deep); }
.display--light, .display--light .it { color: var(--paper); }
.display--light .it { color: var(--ice); }

.lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 900px;
}
.lede--light { color: var(--warm-white); }

.body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 760px;
}
.body--light { color: var(--warm-white); }
.body p + p { margin-top: 1.2em; }

/* ── Section scaffolding ────────────────────────────────────── */

.section {
  padding: 96px 0;
  position: relative;
}
@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 40px; }
}
.section--sm { padding: 60px 0; }
.section--lg { padding: 130px 0; }
.section--navy {
  background: var(--navy);
  color: var(--paper);
}
.section--navy-radial {
  background:
    radial-gradient(ellipse 80% 70% at 22% 18%, #13234A 0%, #0F1F3D 40%, #0A1630 75%, #07101F 100%);
  color: var(--paper);
}
.section--paper { background: var(--warm-white); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 80px;
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: end; }
}

/* ── Thin rules, labels ─────────────────────────────────────── */

.rule {
  height: 1px;
  background: var(--rule-white);
  border: 0;
  margin: 0;
}
.section--navy .rule,
.section--navy-radial .rule { background: var(--rule-navy); }

.section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice-deep);
}
.section--navy .section-num,
.section--navy-radial .section-num { color: var(--ice); }

/* ── Footer ─────────────────────────────────────────────────── */

.footer {
  background: var(--navy);
  color: var(--paper);
  padding: 38px 0 24px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}
@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 60px;
  }
}
@media (min-width: 1200px) {
  .footer-inner { padding: 0 var(--gutter-lg); }
}
.footer-brand .wordmark { font-size: 32px; }
.footer-tag {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--warm-white);
  max-width: 340px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice);
  font-weight: 500;
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li {
  font-size: 15px;
  line-height: 2;
  color: var(--warm-white);
  opacity: 0.82;
}
.footer-col a:hover { opacity: 1; color: var(--ice); }

.footer-bottom {
  margin-top: 26px;
  padding-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-muted);
  font-feature-settings: "zero" 0;
  font-variant-numeric: lining-nums;
}
.footer-bottom .dot { color: var(--ice); padding: 0 12px; }

@media (max-width: 720px) {
  .footer-bottom { flex-direction: column; gap: 10px; }
  .footer { padding: 26px 0 18px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  .footer-brand .wordmark { font-size: 26px; }
  .footer-tag { font-size: 13px; margin-top: 6px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { display: flex; margin-top: 16px; }
  .footer-col h4 { margin-bottom: 8px; }
  .footer-col li { line-height: 1.8; }
}

/* ── Broker-dealer disclosure ───────────────────────────────── */

.footer-disclosure {
  display: block;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(232, 240, 250, 0.1);
  font-size: 11px;
  line-height: 1.65;
  color: rgba(232, 240, 250, 0.42);
  text-wrap: pretty;
}
.footer-disclosure p { margin: 0 0 10px; max-width: 110ch; }
.footer-disclosure p:last-child { margin-bottom: 0; }
.footer-disclosure a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(232, 240, 250, 0.25);
  text-underline-offset: 2px;
}
.footer-disclosure a:hover { color: var(--ice); text-decoration-color: var(--ice); }
.fd-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  margin: 0 0 12px;
}
.fd-links .sep { opacity: 0.35; }
.fd-details summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  user-select: none;
  color: rgba(232, 240, 250, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10px;
}
.fd-details summary::-webkit-details-marker { display: none; }
.fd-details summary::after { content: "+"; font-size: 12px; line-height: 1; }
.fd-details[open] summary::after { content: "\2212"; }
.fd-details summary:hover { color: var(--ice); }
.fd-details[open] summary { margin-bottom: 10px; }

/* Mobile disclosure — must follow the base disclosure rules above */
@media (max-width: 720px) {
  .footer-disclosure { margin-top: 14px; padding-top: 12px; font-size: 10.5px; line-height: 1.55; }
  .footer-disclosure p { margin-bottom: 6px; }
  .fd-links { gap: 3px 8px; }
}

/* ── Page-header (subpage hero) ─────────────────────────────── */

.page-hero {
  padding: 40px 0 70px;
}
@media (max-width: 720px) {
  .page-hero { padding: 30px 0 42px; }
}
.page-hero .eyebrow { margin-bottom: 22px; display: block; }
.page-hero .display { max-width: 1100px; }
.page-hero .lede { margin-top: 28px; }

/* ── Utility ─────────────────────────────────────────────────── */

.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mt-8 { margin-top: 64px; }
.mt-12 { margin-top: 96px; }
