/* Ledger Integrity LLC — site styles
   Brand navy #0F2A44 sampled from the supplied brand kit lockup. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-400-600.woff2") format("woff2");
}
@font-face {
  font-family: "Arvo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/arvo-latin-700.woff2") format("woff2");
}

:root {
  --navy: #0f2a44;
  --navy-deep: #091b2e;
  --navy-600: #1b4060;
  --ink: #16202b;
  --body: #46566a;
  --muted: #6b7b8d;
  --paper: #fbf9f5;
  --paper-2: #f3f0e9;
  --card: #ffffff;
  --brass: #a8823f;
  --rule: rgba(15, 42, 68, 0.13);
  --rule-soft: rgba(15, 42, 68, 0.07);
  --rule-dark: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 1px 2px rgba(15, 42, 88, 0.05), 0 6px 18px -8px rgba(15, 42, 88, 0.12);
  --shadow-md: 0 2px 4px rgba(15, 42, 88, 0.05), 0 22px 48px -20px rgba(15, 42, 88, 0.22);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Brand tagline lockup face — geometric slab, mirroring Tagline_Print_CMYK artwork */
  --slab: "Arvo", Rockwell, "Roboto Slab", Georgia, serif;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --shell: 1180px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; color: var(--navy); }
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gut); top: -60px; z-index: 90;
  background: var(--navy); color: #fff; padding: .7rem 1.1rem;
  font-size: .82rem; font-weight: 600; text-decoration: none;
  transition: top .18s ease;
}
.skip:focus { top: 12px; }

/* ---------- type scale ---------- */
.display {
  font-family: var(--serif);
  font-size: clamp(2.85rem, 7.4vw, 5.65rem);
  line-height: 0.99;
  letter-spacing: -0.028em;
  color: var(--navy);
}
.display em {
  font-style: italic;
  color: var(--navy-600);
}

/* ── brand tagline lockup ──────────────────────────────────────────────
   "Confidence in Every Number." is a branded lockup, not free copy:
   geometric slab serif, bold, title case, navy. Matches the brand kit's
   Tagline_Print_CMYK artwork. Do not restyle or re-case. */
.tagline {
  font-family: var(--slab);
  font-weight: 700;
  font-style: normal;
  color: var(--navy);
}
.display.tagline {
  font-size: clamp(2.3rem, 5.7vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
}
.hero__promise {
  margin-top: 1.15rem;
  font-family: var(--slab);
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  font-weight: 700;
  letter-spacing: .045em;
  color: var(--navy-600);
}
h2.section-title {
  font-size: clamp(2rem, 4.1vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.024em;
  max-width: 22ch;
}
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.011em; }
.lede {
  font-size: clamp(1.09rem, 1.65vw, 1.28rem);
  line-height: 1.58;
  color: var(--body);
  max-width: 62ch;
}
.eyebrow {
  display: flex; align-items: center; gap: .7rem;
  margin: 0 0 1.4rem;
  font-family: var(--sans);
  font-size: .715rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; flex: none;
  background: currentColor; opacity: .75;
}
.on-dark .eyebrow { color: #d8bd86; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark .display { color: #fff; }
.on-dark { color: #b9c7d6; }

/* ---------- layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}
section { position: relative; scroll-margin-top: 84px; }
.band { padding-block: clamp(4.25rem, 9vw, 8rem); }
.band--paper { background: var(--paper); }
.band--paper2 { background: var(--paper-2); }
.band--white { background: #fff; }
.band--navy { background: var(--navy); }
.band--navy-deep { background: var(--navy-deep); }
.rule-top { border-top: 1px solid var(--rule); }

/* ledger-paper hairlines, used sparingly as a brand motif */
.ledger-lines::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom, rgba(15, 42, 68, 0.045) 0 1px, transparent 1px 58px
  );
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 70%, transparent);
}

/* ---------- header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 249, 245, 0.88);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.masthead[data-stuck="true"] {
  border-bottom-color: var(--rule);
  background: rgba(251, 249, 245, 0.94);
}
.masthead__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__link {
  font-size: .9rem; font-weight: 500; color: #405266;
  text-decoration: none; padding: .4rem 0; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--navy); transform: scaleX(0);
  transform-origin: left; transition: transform .22s ease;
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: 0 1.3rem;
  font-family: var(--sans); font-size: .875rem; font-weight: 600;
  letter-spacing: .005em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 2px;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-600); }
.btn--ghost { border-color: var(--rule); color: var(--navy); background: transparent; }
.btn--ghost:hover { border-color: var(--navy); background: rgba(15, 42, 68, 0.04); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #eef2f7; }
.btn--outline-light { border-color: var(--rule-dark); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--lg { min-height: 52px; padding: 0 1.6rem; font-size: .92rem; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--rule); border-radius: 2px;
  cursor: pointer; color: var(--navy);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 1.5px;
  background: currentColor; margin-inline: auto; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -5.5px; }
.nav-toggle span::after { position: absolute; top: 5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.75rem, 5.5vw, 4.75rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.35rem; }
.hero__lede { margin-top: 1.6rem; }
.hero__aside {
  border-left: 1px solid var(--rule);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  align-self: center;
}
.hero__aside p { font-family: var(--serif); font-size: 1.22rem; line-height: 1.4; color: var(--navy); }
.hero__aside cite {
  display: block; margin-top: 1.1rem; font-style: normal;
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
}

/* proof strip */
.proof {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: clamp(3rem, 6vw, 4.75rem);
}
.proof__item { padding: 1.6rem 1.4rem 0 0; }
.proof__num {
  display: block; font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1;
  letter-spacing: -0.03em; color: var(--navy);
  font-variant-numeric: tabular-nums lining-nums;
}
.proof__label {
  display: block; margin-top: .6rem;
  font-size: .82rem; line-height: 1.45; color: var(--muted);
  max-width: 20ch;
}

/* ---------- split / editorial ---------- */
.split { display: grid; gap: clamp(2.25rem, 5vw, 4.5rem); align-items: start; }
/* the sticky aside only applies in the two-column layout (>= 900px, below).
   Below that the split stacks, and a pinned aside would be scrolled over by
   the column that follows it. */

/* question list */
.questions { display: grid; gap: 0; margin-top: .5rem; border-top: 1px solid var(--rule); }
.questions li {
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule);
}
.questions .q-idx {
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; color: var(--brass); padding-top: .5rem;
  font-variant-numeric: tabular-nums;
}
.questions .q-text {
  font-family: var(--serif); font-size: clamp(1.18rem, 2.1vw, 1.6rem);
  line-height: 1.28; color: var(--navy); letter-spacing: -0.012em;
}

/* ---------- services ---------- */
.services { margin-top: clamp(2.5rem, 5vw, 3.75rem); border-top: 1px solid var(--rule); }
.service {
  display: grid; grid-template-columns: 4.5rem minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem); align-items: baseline;
  padding: clamp(1.5rem, 2.6vw, 2.1rem) 0;
  border-bottom: 1px solid var(--rule);
  transition: background .2s ease;
}
.service:hover { background: rgba(15, 42, 68, 0.022); }
.service__idx {
  font-size: .76rem; font-weight: 600; letter-spacing: .1em;
  color: var(--brass); font-variant-numeric: tabular-nums;
}
.service__name { font-size: clamp(1.2rem, 1.9vw, 1.45rem); letter-spacing: -0.014em; }
.service__desc { color: var(--body); font-size: 1rem; max-width: 52ch; }

/* ---------- engagement fit ---------- */
.engagement-grid { display: grid; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.engagement-intro .lede { margin-top: 1.5rem; }
.engagement-answers { border-top: 1px solid var(--rule); }
.engagement-answer {
  display: grid; grid-template-columns: minmax(10rem, .75fr) 1.25fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 2.5vw, 1.9rem) 0;
  border-bottom: 1px solid var(--rule);
}
.engagement-answer dt {
  font-family: var(--serif); font-size: 1.18rem; line-height: 1.3;
  color: var(--navy);
}
.engagement-answer dd { margin: 0; font-size: .98rem; color: var(--body); }

/* ---------- work / case studies ---------- */
.work-head { display: grid; gap: 1.75rem; align-items: start; }
.cases {
  display: grid; gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
}
.case {
  background: var(--navy);
  padding: clamp(1.85rem, 3vw, 2.6rem);
  display: flex; flex-direction: column; gap: 1rem;
}
.case__tag {
  font-size: .7rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: #d8bd86;
}
.case h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); letter-spacing: -0.015em; }
.case p { color: #b9c7d6; font-size: .985rem; }
.case__result {
  margin-top: auto; padding-top: 1.15rem;
  border-top: 1px solid var(--rule-dark);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem;
  font-size: .875rem; color: #e4ecf4;
}
.case__result strong {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 400; color: #fff; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- banking ---------- */
.pillars { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 2.5rem; }
.pillar { background: #fff; padding: clamp(1.6rem, 2.6vw, 2.1rem); }
.pillar h3 { font-size: 1.16rem; margin-bottom: .7rem; }
.pillar p { font-size: .96rem; }

/* credentials */
.creds { display: grid; gap: 0; margin-top: 2.25rem; border-top: 1px solid var(--rule); }
.cred {
  display: grid; grid-template-columns: minmax(7rem, 9rem) 1fr;
  gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule);
  font-size: .95rem;
}
.cred dt { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .88rem; }
.cred dd { margin: 0; color: var(--ink); }
.cred dd strong { color: var(--navy); font-weight: 600; }
.cred dd span { display: block; color: var(--muted); font-size: .88rem; margin-top: .15rem; }

/* ---------- contact ---------- */
.contact__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { display: grid; gap: 1.4rem; }
.contact-list__intro { padding-bottom: .3rem; border-bottom: 1px solid var(--rule-dark); }
.contact-list__intro h3 { color: #fff; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.contact-list__intro p { margin-top: .35rem; color: #9fb0c2; font-size: .88rem; line-height: 1.5; }
.contact-item { display: grid; gap: .3rem; }
.contact-item .k {
  font-size: .7rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: #8fa3b8;
}
.contact-item a, .contact-item p {
  font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: #fff; text-decoration: none; letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.contact-item .contact-link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding-bottom: .55rem; border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.contact-link__arrow {
  color: #8fa3b8; font-family: var(--sans); font-size: .95rem;
  transition: color .18s ease, transform .18s ease;
}
.contact-item a:hover { color: #d8bd86; }
.contact-item .contact-link:hover { border-color: rgba(216, 189, 134, .45); }
.contact-item .contact-link:hover .contact-link__arrow { color: #d8bd86; transform: translate(2px, -2px); }

/* ---------- footer ---------- */
.foot { background: var(--navy-deep); color: #8d9eb1; padding-block: 2.75rem; font-size: .85rem; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; }
.foot img { height: 30px; width: auto; opacity: .92; }
.foot__meta { margin-left: auto; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: baseline; }
.foot__tagline {
  font-family: var(--slab); font-weight: 700; font-size: .78rem;
  letter-spacing: .05em; color: #c3d1e0;
}
.foot a { color: #c3d1e0; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Netlify appends this promotional badge after the site HTML. */
#nl-badge-frame { display: none !important; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (min-width: 760px) {
  .cases { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .work-head { grid-template-columns: 1fr auto; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.55fr .85fr; align-items: center; }
  .split { grid-template-columns: 1fr 1.1fr; }
  .split--sticky > .split__aside { position: sticky; top: 108px; }
  .engagement-grid { grid-template-columns: .8fr 1.2fr; }
  .contact__grid { grid-template-columns: 1.1fr .9fr; }
}
@media (max-width: 899px) {
  .hero__aside { border-left: 0; border-top: 1px solid var(--rule); padding: 1.75rem 0 0; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 76px 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gut) 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    max-height: calc(100dvh - 76px); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: .95rem 0; border-bottom: 1px solid var(--rule-soft); font-size: 1.02rem; }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 1.1rem; }
  .nav-toggle { display: block; }
}
@media (max-width: 720px) {
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .proof__item { padding-bottom: 1.4rem; }
  .service { grid-template-columns: 2.5rem 1fr; row-gap: .5rem; }
  .service__idx { grid-row: span 2; }
  .service__desc { grid-column: 2; }
  .questions li { grid-template-columns: 2.4rem 1fr; }
  .engagement-answer { grid-template-columns: 1fr; gap: .45rem; }
  .cred { grid-template-columns: 1fr; gap: .25rem; }
}
@media print {
  .masthead, .nav-toggle, .hero__actions, .skip { display: none !important; }
  body { background: #fff; }
  .band--navy, .band--navy-deep, .foot { background: #fff !important; color: #000 !important; }
  .on-dark h1, .on-dark h2, .on-dark h3 { color: #000 !important; }
}
