/* Lexmore — public site.
 *
 * Deliberately light-only. A controlled single palette is what the firms
 * this sits alongside do; a theme switch would trade brand control for a
 * feature nobody visiting an M&A advisory site is asking for.
 *
 * No web fonts. The stacks below resolve locally on every target platform,
 * which removes a render-blocking request, a layout shift, and a
 * third-party origin from a site whose entire subject is confidentiality.
 */

:root {
  --ink:        #101720;
  --ink-soft:   #2A3340;
  --muted:      #5C6675;
  --paper:      #FCFBF9;
  --paper-2:    #F5F2ED;
  --rule:       #E4DFD7;
  --accent:     #8C6A3F;
  --accent-dk:  #6E5230;
  --navy:       #0B1017;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
           "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gap: clamp(4rem, 9vw, 7.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-dk); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

/* Visible focus everywhere. Removing it would fail the accessibility bar
   this site is explicitly held to. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.75rem 1.25rem; z-index: 200;
}
.skip-link:focus { left: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }

section { padding-block: var(--gap); }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--navy); color: #E8E5DF; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink p { color: #B9BFC8; }

.eyebrow {
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1.1rem;
}
.section-ink .eyebrow { color: #C4A574; }

.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.section-ink .lede { color: #B9BFC8; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 251, 249, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--rule); }

.header-inner {
  display: flex; align-items: center; gap: 2rem;
  min-height: 78px;
}

.brand {
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none; font-weight: 500;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }

.nav { display: flex; gap: 1.75rem; margin-left: auto; align-items: center; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.94rem;
  padding-block: 0.4rem; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--ink); border-bottom-color: var(--accent);
}

.header-actions { display: flex; gap: 0.6rem; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.72rem 1.35rem; border-radius: 3px;
  font-size: 0.94rem; font-weight: 500; font-family: var(--sans);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); color: #fff; }
.btn-outline { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { color: var(--ink-soft); padding-inline: 0.85rem; }
.btn-ghost:hover { color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--paper-2); color: var(--navy); }
.btn-on-dark { border-color: rgba(255,255,255,0.28); color: #fff; }
.btn-on-dark:hover { border-color: #fff; color: #fff; }
.btn-lg { padding: 0.92rem 1.75rem; font-size: 1rem; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0;
  padding: 0.6rem; cursor: pointer; color: var(--ink);
}

@media (max-width: 1080px) {
  .nav, .header-actions { display: none; }
  .nav-toggle { display: block; }
  .site-header[data-open="true"] .nav,
  .site-header[data-open="true"] .header-actions {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; gap: 0.25rem; margin: 0;
  }
  .site-header[data-open="true"] .header-inner {
    flex-wrap: wrap; padding-bottom: 1.5rem; align-items: flex-start;
  }
  .site-header[data-open="true"] .nav { padding-top: 1rem; border-top: 1px solid var(--rule); }
  .site-header[data-open="true"] .nav a { padding-block: 0.7rem; border-bottom: 0; }
  .site-header[data-open="true"] .header-actions { padding-top: 0.75rem; }
  .site-header[data-open="true"] .btn { width: 100%; }
}

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

.hero {
  background: var(--navy);
  color: #fff;
  padding-block: clamp(5rem, 11vw, 9rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* Restrained depth rather than a stock photograph. Nothing here needs
     to load, so the hero paints on the first frame. */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(58% 78% at 78% 8%, rgba(140,106,63,0.22), transparent 62%),
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.35));
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lede { color: #C3C9D2; font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.6rem; }
.hero-meta {
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.hero-meta dt {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #C4A574; margin-bottom: 0.45rem;
}
.hero-meta dd { margin: 0; color: #C3C9D2; font-size: 0.95rem; }

.page-hero {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.page-hero h1 { max-width: 20ch; }

/* ---------- grids and cards ---------- */

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--rule); border-radius: 4px;
  padding: 2rem 1.85rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
@media (prefers-reduced-motion: reduce) {
  .card-link:hover { transform: none; }
}
.section-ink .card {
  background: rgba(255,255,255,0.045); border-color: rgba(255,255,255,0.14);
}
.section-ink .card p { color: #B9BFC8; }

.card-num {
  font-family: var(--serif); font-size: 1.6rem; color: var(--accent);
  line-height: 1; margin-bottom: 1rem; display: block;
}

.icon-rule {
  width: 34px; height: 2px; background: var(--accent);
  margin-bottom: 1.35rem;
}

/* ---------- process timeline ---------- */

.timeline { counter-reset: step; display: grid; gap: 0; margin-top: 3rem; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 84px 1fr; gap: 1.75rem;
  padding: 1.85rem 0; border-top: 1px solid var(--rule);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step-num {
  font-family: var(--serif); font-size: 1.05rem; color: var(--accent);
  padding-top: 0.15rem;
}
.step-num::before { content: "0" counter(step); }
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.97rem; max-width: 68ch; }

/* ---------- industries ---------- */

.tag-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.5rem; }
.tag {
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.55rem 1.15rem; font-size: 0.9rem; color: var(--ink-soft);
  background: #fff;
}

/* ---------- FAQ ---------- */

.faq { margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
  font-family: var(--serif); font-size: 1.12rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.35rem; top: 1.15rem;
  font-size: 1.4rem; color: var(--accent); font-family: var(--sans);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 2.5rem 1.6rem 0; color: var(--muted); }

/* ---------- placeholder blocks ---------- */

/* Used where verified content does not exist yet. Deliberately looks
   unfinished: a polished empty state invites being mistaken for real
   content, which for testimonials and leadership would be a fabrication. */
.placeholder {
  border: 1px dashed var(--rule); border-radius: 4px;
  padding: 2rem 1.85rem; background: #fff;
}
.placeholder-label {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 0.9rem;
}
.placeholder-bar {
  height: 9px; border-radius: 999px; background: var(--paper-2); margin-bottom: 0.65rem;
}
.placeholder-bar.w-90 { width: 90%; }
.placeholder-bar.w-70 { width: 70%; }
.placeholder-bar.w-50 { width: 50%; }
.placeholder p { color: var(--muted); font-size: 0.9rem; margin: 1.1rem 0 0; }

/* ---------- forms ---------- */

.form { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field label {
  display: block; font-size: 0.86rem; font-weight: 600;
  margin-bottom: 0.45rem; color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem;
  border: 1px solid var(--rule); border-radius: 3px;
  font: inherit; font-size: 0.97rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.field textarea { min-height: 148px; resize: vertical; }
.field-hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; }

/* Honeypot. Off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note {
  font-size: 0.88rem; color: var(--muted);
  border-left: 2px solid var(--accent); padding-left: 1rem;
}
.form-status { padding: 1rem 1.15rem; border-radius: 3px; font-size: 0.94rem; }
.form-status[data-tone="ok"]    { background: #F0F5EF; border: 1px solid #C8DCC4; color: #2C4A26; }
.form-status[data-tone="error"] { background: #FBF0EF; border: 1px solid #E6C9C6; color: #7A2E27; }
.form-status[hidden] { display: none; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 0.7rem; }
.cta-band p { color: #B9BFC8; max-width: 54ch; margin-inline: auto; }
.cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }

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

.site-footer {
  background: var(--paper-2); border-top: 1px solid var(--rule);
  padding-block: 4.5rem 2.5rem; font-size: 0.93rem;
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.6fr repeat(3, 1fr);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.1rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--accent-dk); text-decoration: underline; }
.footer-brand p { color: var(--muted); max-width: 34ch; margin-top: 1rem; }

.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  color: var(--muted); font-size: 0.86rem;
}

/* ---------- entrance animation ---------- */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
}
/* Without JS the content must still be visible, so nothing depends on the
   observer having run. */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- article ---------- */

.article-body { max-width: 68ch; }
.article-body h2 { margin-top: 2.5rem; }
.article-body ul { padding-left: 1.25rem; color: var(--muted); }
.article-body li { margin-bottom: 0.55rem; }

.notice {
  border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  background: #fff; padding: 1.35rem 1.5rem; border-radius: 3px;
  color: var(--muted); font-size: 0.95rem; margin-top: 2.5rem;
}

.breadcrumb { font-size: 0.86rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-dk); text-decoration: underline; }
