/* Massengill Advisory LLC
   Palette carried from the prior site: Black #1A1A1A, Gold #C9A84C, DGray #3D3D3D,
   MGray #595959, LGray #F5F5F5. Same identity family as Meraglim Holdings, deliberately.
   No build step. No external fonts. No third-party requests. */

:root {
  --field: #1a1a1a;      /* Brand Black. Page ground. */
  --panel: #23231f;      /* Lifted panel on the field. */
  --gold: #c9a84c;       /* Brand Gold. Headers, rules, numerals. */
  --gold-dim: #8c7433;   /* Gold at rest, for hairlines. */
  --text: #f2f0ea;       /* Body copy. Reads white, without the halation of FFFFFF at length. */
  --white: #ffffff;      /* Headline and emphasis. */
  --muted: #a8a399;      /* Labels, captions, footer. */
  --rule: #34332c;

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --label: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --gutter: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--field); }

body {
  margin: 0;
  background: var(--field);
  color: var(--text);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.68;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 46rem) { body { font-size: 20px; } }

p { margin: 0 0 1.15em; max-width: var(--measure); }
strong, b { font-weight: 700; color: var(--white); }
em { font-style: italic; }

a { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold-dim); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #1a1a1a; padding: 0.75rem 1rem; z-index: 100;
  font-family: var(--label); font-size: 0.9rem; text-decoration: none;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--field);
  border-bottom: 1px solid var(--rule);
}
@supports (backdrop-filter: blur(8px)) {
  .masthead { background: rgba(26, 26, 26, 0.9); backdrop-filter: blur(10px) saturate(1.1); }
}

/* anchors must clear the sticky masthead */
[id] { scroll-margin-top: 6rem; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.masthead .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.9rem 1.4rem; padding-top: 1rem; padding-bottom: 1rem;
}

.wordmark {
  display: inline-block; text-decoration: none;
  font-family: var(--display); font-size: 1.06rem; font-weight: 400;
  letter-spacing: 0.17em; text-transform: uppercase; color: var(--white);
  border-left: 3px solid var(--gold); padding-left: 0.8rem; line-height: 1.15;
}
.wordmark:hover { color: var(--gold); }

.nav { display: flex; flex-wrap: wrap; gap: 1.35rem; }

.nav a {
  font-family: var(--label); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text); text-decoration: none; padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- hero ---------- */

.hero { padding: 4.2rem 0 2.6rem; }
.hero > .wrap { position: relative; z-index: 1; }

/* Page backdrops. The image sits far behind the type and fades into the field.
   Opacity is set per image, measured against white-text contrast rather than guessed:
   hero.jpg is a dark frame, the two building photographs are roughly six times brighter,
   so a single value would make them shout. Each setting holds at or above 6:1. */
.hero-image::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-size: cover;
  filter: grayscale(0.2) contrast(1.02);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.95) 55%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.95) 55%, rgba(0,0,0,0) 100%);
}
.hero-home::before      { background-image: url("/assets/hero.jpg");      background-position: 50% 42%; opacity: 0.38; }
.hero-boardroom::before { background-image: url("/assets/boardroom.jpg"); background-position: 50% 45%; opacity: 0.26; }
.hero-hancock::before   { background-image: url("/assets/hancock.jpg");   background-position: 50% 40%; opacity: 0.26; }
.hero-skyline::before   { background-image: url("/assets/skyline.jpg");   background-position: 50% 55%; opacity: 0.40; }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 6.4vw, 3.15rem);
  line-height: 1.13;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--white);
  margin: 0 0 1.4rem;
  text-wrap: balance;
}
.hero h1 span { display: block; }

.hero .lede { font-size: 1.1em; color: var(--muted); max-width: 32rem; }

/* ---------- calls to action ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.9rem; }

.btn {
  font-family: var(--label); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.95rem 1.55rem; text-decoration: none; display: inline-block;
  border: 2px solid var(--gold);
}
.btn-primary { background: var(--gold); color: #1a1a1a; }
.btn-primary:hover { background: #dcbc5e; border-color: #dcbc5e; color: #1a1a1a; }
.btn-secondary { background: transparent; color: var(--gold); }
.btn-secondary:hover { background: rgba(201,168,76,0.12); color: var(--gold); }

/* ---------- metrics band ---------- */

.metrics {
  display: grid; gap: 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  margin: 1rem 0 0;
}
@media (min-width: 40rem) { .metrics { grid-template-columns: repeat(3, 1fr); } }

.metric { padding: 1.6rem 0; }
.metric + .metric { border-top: 1px solid var(--rule); }
@media (min-width: 40rem) {
  .metric { padding: 1.95rem 1.5rem; text-align: center; }
  .metric + .metric { border-top: 0; border-left: 1px solid var(--rule); }
  .metric:first-child { padding-left: 0; }
  .metric:last-child { padding-right: 0; }
}

.metric b {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: 2.2rem; line-height: 1; color: var(--gold);
}
.metric span {
  display: block; margin-top: 0.55rem;
  font-family: var(--label); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
}

/* ---------- sections: the gold bar is the signature device ---------- */

.section { padding: 3.6rem 0 0; }
.section:last-of-type { padding-bottom: 3.6rem; }

.section > .wrap > h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.5rem, 3.9vw, 1.95rem);
  line-height: 1.24; letter-spacing: -0.008em;
  color: var(--gold);
  margin: 0 0 1.3rem;
  text-wrap: balance;
  border-left: 4px solid var(--gold);
  padding-left: 1.05rem;
}

h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 1.2rem; line-height: 1.35; color: var(--gold);
  margin: 2rem 0 0.55rem; text-wrap: balance;
}

.eyebrow {
  font-family: var(--label); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 0.8rem;
}

/* ---------- numbered steps: a real sequence, so the numbers carry information ---------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }

.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 1.6rem 3.1rem; max-width: calc(var(--measure) + 3.1rem);
}
.steps li:last-child { padding-bottom: 0; }

.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.14em;
  font-family: var(--display); font-size: 1.6rem; line-height: 1;
  color: var(--gold);
}
.steps b { display: block; color: var(--white); }

/* ---------- pull-out panel ---------- */

.panel {
  background: var(--panel);
  border-left: 4px solid var(--gold);
  padding: 1.75rem 1.6rem; margin: 2rem 0 0;
}
.panel p { max-width: 32rem; margin: 0; }
.panel p + p { margin-top: 0.9rem; }
.panel .eyebrow { margin-bottom: 0.6rem; }

/* ---------- tables ---------- */

.tablewrap { overflow-x: auto; margin: 0 0 1.6rem; }

table { border-collapse: collapse; width: 100%; font-size: 0.92em; }

caption {
  text-align: left; font-family: var(--label); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 0.7rem;
}

th, td { text-align: left; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th {
  border-bottom: 2px solid var(--gold); color: var(--gold);
  font-family: var(--label); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
tbody th { font-weight: 700; color: var(--white); white-space: nowrap; padding-right: 1.6rem; }
td:last-child, th:last-child { padding-right: 0; }

/* ---------- notes and source lines ---------- */

.note { border-left: 4px solid var(--gold); padding: 0 0 0 1.05rem; margin: 1.8rem 0; color: var(--muted); }
.note p:last-child { margin-bottom: 0; }

.sources { margin-top: 1.9rem; font-size: 0.82em; color: var(--muted); }
.sources p { margin: 0 0 0.65em; max-width: var(--measure); }
.sources a { color: var(--muted); word-break: break-word; }

/* ---------- people ---------- */

.people { margin: 0; padding: 0; list-style: none; }

.person {
  display: flex; gap: 1.4rem; align-items: flex-start;
  padding: 1.7rem 0; border-top: 1px solid var(--rule); max-width: 40rem;
}
.person:first-child { border-top: 0; padding-top: 0; }

.person img {
  flex: 0 0 auto; width: 113px; height: 161px; display: block;
  border-left: 3px solid var(--gold); object-fit: cover; object-position: 50% 12%;
}
.person .monogram {
  flex: 0 0 auto; width: 104px; height: 104px; display: block;
  border-left: 3px solid var(--gold);
}
.person .monogram {
  background: var(--panel); color: var(--gold);
  font-family: var(--display); font-size: 2.1rem; line-height: 104px; text-align: center;
}
@media (max-width: 34rem) {
  .person { flex-direction: column; gap: 1rem; }
  .person img { width: 99px; height: 141px; }
  .person .monogram { width: 88px; height: 88px; line-height: 88px; }
}

.person .who { min-width: 0; }
.person .role {
  font-family: var(--label); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 0.3rem;
}
.person h3 { font-size: 1.3rem; color: var(--white); margin: 0 0 0.5rem; }
.person p { margin: 0; font-size: 0.96em; }

.people.tier2 .person { padding: 1.25rem 0; }
.people.tier2 .person h3 { font-size: 1.14rem; }

/* ---------- contact ---------- */

.contact { font-style: normal; margin: 1.4rem 0 0; }
.contact b { display: block; }

/* ---------- downloads ---------- */

.downloads { list-style: none; margin: 1.2rem 0 0; padding: 0; max-width: var(--measure); }
.downloads li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.downloads li:first-child { border-top: 1px solid var(--rule); }
.downloads a { font-weight: 700; color: var(--white); }
.downloads a:hover { color: var(--gold); }
.downloads span { display: block; font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.28rem; }

/* ---------- closing call to action, repeated at the foot of every page ---------- */

.cta-foot { border-top: 1px solid var(--rule); margin-top: 3.6rem; padding: 3.2rem 0 3.4rem; }
.cta-foot h2 {
  font-family: var(--display); font-weight: 400; color: var(--gold);
  font-size: clamp(1.5rem, 3.9vw, 1.95rem); line-height: 1.24;
  margin: 0 0 1.1rem; text-wrap: balance;
  border-left: 4px solid var(--gold); padding-left: 1.05rem;
}
.cta-foot .actions { margin-top: 1.6rem; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--rule); margin-top: 4.2rem; background: #141412; }
.foot .wrap { padding-top: 2.6rem; padding-bottom: 2.6rem; }
.foot p { font-family: var(--label); font-size: 0.82rem; line-height: 1.75; margin: 0; max-width: none; color: var(--muted); }
.foot .legal { margin-top: 1.1rem; font-size: 0.74rem; color: #7d7869; }

.footnav { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-bottom: 1.6rem; }
.footnav a {
  font-family: var(--label); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  border-bottom: 2px solid transparent; padding-bottom: 0.15rem;
}
.footnav a:hover { border-bottom-color: var(--gold); }
.foot a { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


/* ---------- statistics band ---------- */

.stats { display: grid; gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 1rem 0 0; }
@media (min-width: 44rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 30rem) and (max-width: 43.99rem) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.stat:first-child { border-top: 0; }
@media (min-width: 30rem) { .stat { padding: 1.7rem 1.2rem; border-top: 0; border-left: 1px solid var(--rule); } .stat:first-child { border-left: 0; padding-left: 0; } }
@media (min-width: 30rem) and (max-width: 43.99rem) { .stat:nth-child(3) { border-left: 0; padding-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--rule); } }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.85rem; line-height: 1; color: var(--gold); }
.stat span { display: block; margin-top: 0.5rem; font-family: var(--label); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }

/* ---------- holdings and focus cards ---------- */

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.card { padding: 1.7rem 0; border-top: 1px solid var(--rule); max-width: var(--measure); }
.card:first-child { border-top: 0; padding-top: 0; }
.card .role { font-family: var(--label); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.35rem; }
.card h3 { font-size: 1.28rem; color: var(--white); margin: 0 0 0.3rem; }
.card .sub { font-family: var(--label); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 0.7rem; text-transform: uppercase; }
.card p { margin: 0 0 0.9rem; font-size: 0.96em; }
.card p:last-child { margin-bottom: 0; }
.card .go { font-family: var(--label); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-dim); padding-bottom: 0.15rem; }
.card .go:hover { border-bottom-color: var(--gold); }

/* ---------- credentials list ---------- */

.creds { list-style: none; margin: 1.1rem 0 0; padding: 0; max-width: var(--measure); }
.creds li { padding: 0.7rem 0 0.7rem 1.05rem; border-left: 3px solid var(--gold); border-bottom: 1px solid var(--rule); }
.creds li:last-child { border-bottom: 0; }
.creds b { display: block; color: var(--white); }
.creds span { font-size: 0.92em; color: var(--muted); }

/* ---------- pull quote ---------- */

.quote { border-left: 4px solid var(--gold); padding: 0.4rem 0 0.4rem 1.2rem; margin: 2rem 0 0; }
.quote p { font-family: var(--display); font-size: 1.18rem; line-height: 1.5; color: var(--gold); margin: 0; }

