/* ============================================================
   NIL Integrity Group — design system
   NIL vetting & due diligence · New Jersey
   navy #1a2744 · gold #d4a84b · authoritative / trust
   ============================================================ */
:root {
  --navy: #1a2744;
  --navy-dark: #0f172a;
  --navy-light: #243656;
  --gold: #d4a84b;
  --gold-dark: #c49a3d;
  --gold-soft: #f5e6c8;
  --ink: #141b2d;
  --slate: #3c4658;
  --muted: #63708a;
  --paper: #ffffff;
  --mist: #f6f8fb;
  --mist-2: #eef1f6;
  --line: #e2e7f0;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --wrap: 74rem;
  --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.7; color: var(--slate); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; color: var(--navy); letter-spacing: -.01em; }
p { max-width: 66ch; }
a { color: var(--gold-dark); }
strong { color: var(--ink); font-weight: 600; }
.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }

/* eyebrow / kicker — small caps gold */
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-body); font-weight: 600; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); }
.eyebrow::before { content: ""; width: 1.8rem; height: 2px; background: var(--gold); }
.ink .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: .01em; text-decoration: none; color: var(--navy); background: var(--gold); padding: .8rem 1.7rem; border: 2px solid var(--gold); border-radius: 7px; transition: background .16s, border-color .16s, transform .16s, box-shadow .16s; }
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(196,154,61,.7); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: none; }
.btn.light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn.light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn.small { padding: .5rem 1.1rem; font-size: .9rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .5rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand b { font-family: var(--font-serif); color: var(--navy); font-size: 1.15rem; font-weight: 600; line-height: 1.15; }
.brand span { display: block; margin-top: .18rem; font-family: var(--font-body); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: .2rem; }
.site-nav > a:not(.btn) { font-family: var(--font-body); font-weight: 500; font-size: 1rem; text-decoration: none; color: var(--navy); padding: .45rem .85rem; border-radius: 6px; transition: background .15s, color .15s; }
.site-nav > a:not(.btn):hover { background: var(--mist-2); }
.site-nav > a[aria-current="page"] { color: var(--gold-dark); }
.site-nav .btn { margin-left: .5rem; }
.nav-toggle { display: none; }
.nav-burger { display: none; width: 44px; height: 44px; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; position: relative; flex-shrink: 0; background: transparent; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 50%; width: 19px; height: 2.5px; background: var(--navy); translate: -50% 0; transition: rotate .2s, top .2s, background .2s; border-radius: 2px; }
.nav-burger span { top: 20px; } .nav-burger span::before { top: -6px; } .nav-burger span::after { top: 6px; }
@media (max-width: 820px) {
  .nav-burger { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 4px solid var(--gold); flex-direction: column; align-items: stretch; padding: .8rem 1.5rem 1.4rem; display: none; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked ~ .nav-burger span { background: transparent; }
  .nav-toggle:checked ~ .nav-burger span::before { top: 0; rotate: 45deg; }
  .nav-toggle:checked ~ .nav-burger span::after { top: 0; rotate: -45deg; }
  .site-nav .btn { margin: .6rem 0 0; justify-content: center; }
}

/* hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(120% 80% at 85% 0%, rgba(212,168,75,.18), transparent 55%),
  linear-gradient(180deg, var(--navy-light), var(--navy) 60%, var(--navy-dark)); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.4rem; align-items: center; padding: 4.6rem 0 4.8rem; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.9rem); margin: 1.1rem 0 1.1rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { font-size: 1.2rem; color: #c7d0e0; max-width: 46ch; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-figure { position: relative; }
.hero-figure img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.14); }
.hero-figure::after { content: ""; position: absolute; left: -1rem; bottom: -1rem; width: 55%; height: 55%; border: 2px solid var(--gold); border-radius: 8px; z-index: -1; opacity: .7; }
@media (max-width: 820px) { .hero-inner { grid-template-columns: 1fr; gap: 2.4rem; padding: 3.4rem 0 3.6rem; } }

/* trust strip */
.strip { background: var(--navy-dark); color: #fff; }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; padding: 1.8rem 0; }
.strip .s-item { display: flex; flex-direction: column; gap: .15rem; padding-left: 1rem; border-left: 3px solid var(--gold); }
.strip .s-top { font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; color: #fff; line-height: 1.15; }
.strip .s-sub { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: #9fb0cc; }
@media (max-width: 760px) { .strip-inner { grid-template-columns: 1fr 1fr; gap: 1.4rem; } }

/* sections */
.section { padding: 5rem 0; }
.section.mist { background: var(--mist); }
.section.ink { background: var(--navy); color: #c7d0e0; }
.section.ink h2, .section.ink h3 { color: #fff; }
.sec-head { max-width: 52rem; margin-bottom: 2.8rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: .9rem; }
.sec-head .sub { margin-top: 1rem; font-size: 1.12rem; color: var(--muted); }
.sec-head.center .sub { margin-inline: auto; }
.section.ink .sec-head .sub { color: #9fb0cc; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem; align-items: center; }
.split.rev > .split-media { order: 2; }
.split h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: .9rem 0 1.1rem; }
.split p + p { margin-top: 1rem; }
.split .btn { margin-top: 1.6rem; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.split-media::after { content: ""; position: absolute; right: -.9rem; top: -.9rem; width: 46%; height: 46%; border: 2px solid var(--gold-soft); border-radius: 8px; z-index: -1; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 2.4rem; } .split.rev > .split-media { order: 0; } }

/* checklist */
.checklist { list-style: none; margin-top: 1.4rem; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .7rem; align-items: baseline; }
.checklist li::before { content: "✓"; color: var(--gold-dark); font-weight: 700; flex-shrink: 0; }
.section.ink .checklist li::before { color: var(--gold); }
.checklist strong { color: inherit; }

/* service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: 0 24px 46px -28px rgba(20,27,45,.4); border-color: var(--gold); }
.card figure { overflow: hidden; border-bottom: 3px solid var(--gold); }
.card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: scale .5s; }
.card:hover img { scale: 1.05; }
.card .body { padding: 1.4rem 1.5rem 1.7rem; flex: 1; }
.card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.card p { font-size: .98rem; color: var(--muted); }
.card ul { list-style: none; margin-top: .9rem; display: grid; gap: .4rem; }
.card ul li { font-size: .92rem; color: var(--slate); padding-left: 1.1rem; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 0; top: .6rem; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }

/* credential tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.6rem; }
.section.mist .tile { background: #fff; }
.section.ink .tile { background: var(--navy-light); border-color: #2e3d5a; }
.tile .ico { width: 40px; height: 40px; color: var(--gold-dark); margin-bottom: .9rem; }
.section.ink .tile .ico { color: var(--gold); }
.tile h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.tile p { font-size: .96rem; color: var(--muted); }
.section.ink .tile p { color: #9fb0cc; }
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }

/* leadership bio */
.bio { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.6rem; align-items: start; }
.bio-media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.bio-media .cred { margin-top: 1rem; background: var(--navy); color: #fff; border-radius: 8px; padding: 1rem 1.2rem; font-size: .92rem; border-left: 3px solid var(--gold); }
.bio-media .cred strong { color: var(--gold); }
.section.ink strong, .cta-band strong, .strip strong, .hero-content strong { color: #fff; }
.bio h3 { font-size: 1.8rem; }
.bio .role { color: var(--gold-dark); font-weight: 600; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin: .2rem 0 1rem; }
.bio h4 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1.4rem 0 .6rem; }
.bio ul { list-style: none; display: grid; gap: .5rem; }
.bio ul li { position: relative; padding-left: 1.15rem; font-size: .98rem; line-height: 1.55; }
.bio ul li::before { content: ""; position: absolute; left: 0; top: .58rem; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
@media (max-width: 760px) { .bio { grid-template-columns: 1fr; gap: 1.8rem; } }

/* prose */
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 2.2rem 0 1rem; }
.prose h3 { font-size: 1.3rem; margin: 1.7rem 0 .6rem; }
.prose p { margin-bottom: 1rem; }
.prose > p:first-of-type { font-size: 1.15rem; color: var(--ink); }
.prose ul { list-style: none; margin: 1rem 0 1.4rem; display: grid; gap: .6rem; }
.prose ul li { display: flex; gap: .7rem; align-items: baseline; }
.prose ul li::before { content: "✓"; color: var(--gold-dark); font-weight: 700; flex-shrink: 0; }
.note { background: var(--mist); border-left: 4px solid var(--gold); border-radius: 8px; padding: 1.1rem 1.4rem; margin: 1.5rem 0; font-size: .98rem; }

/* contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.4rem; align-items: start; }
.contact-info { display: grid; gap: 1.1rem; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; border-left: 4px solid var(--gold); }
.contact-card .role { font-family: var(--font-body); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.contact-card h3 { font-size: 1.15rem; margin: .25rem 0 .4rem; }
.contact-card address { font-style: normal; color: var(--muted); line-height: 1.7; }
.contact-card a { color: var(--navy); text-decoration: none; }
.contact-card a:hover { color: var(--gold-dark); }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: 0 26px 54px -34px rgba(20,27,45,.4); }
.contact-form h3 { font-size: 1.45rem; }
.req { color: var(--gold-dark); font-weight: 700; }
.req-legend { font-size: .82rem; color: var(--muted); margin: .3rem 0 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: .35rem; }
.field input, .field textarea { width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--mist); border: 1.5px solid var(--line); border-radius: 8px; padding: .7rem .9rem; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); background: #fff; }
.field textarea { min-height: 8rem; resize: vertical; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 1rem; }
.form-status { margin-top: 1rem; padding: .8rem 1.1rem; border-radius: 9px; font-size: .95rem; background: #e9f7ef; border: 1px solid #bfe6cf; color: #176b43; }
.form-status.is-error { background: #fdecec; border-color: #f3c2c2; color: #9b2c2c; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; } }

/* CTA band */
.cta-band { position: relative; background: var(--navy); color: #fff; text-align: center; padding: 4.4rem 0; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 120% at 50% -10%, rgba(212,168,75,.2), transparent 60%); }
.cta-band > .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: .7rem; }
.cta-band p { color: #c7d0e0; font-size: 1.12rem; margin: 0 auto 2rem; }

/* footer */
.site-footer { background: var(--navy-dark); color: #9fb0cc; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.4fr; gap: 2.5rem; padding: 3.4rem 0 2.4rem; }
.footer-grid .f-brand { display: flex; align-items: center; gap: .7rem; }
.footer-grid .f-brand img { height: 46px; }
.footer-grid .f-brand b { font-family: var(--font-serif); color: #fff; font-size: 1.1rem; }
.footer-grid .f-brand span { display: block; margin-top: .18rem; font-size: .6rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); }
.footer-grid p { font-size: .92rem; margin-top: 1rem; max-width: 40ch; color: #8496b5; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: .95rem; letter-spacing: .04em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; display: grid; gap: .5rem; }
.footer-grid ul a { color: #9fb0cc; text-decoration: none; font-size: .94rem; }
.footer-grid ul a:hover { color: var(--gold); }
.footer-grid address { font-style: normal; font-size: .93rem; line-height: 1.8; }
.footer-grid address a { color: #9fb0cc; text-decoration: none; }
.footer-grid address a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0; font-size: .82rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; color: #8496b5; }
.footer-bottom a { color: #9fb0cc; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* interior page hero */
.page-hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; padding: 3.4rem 0 3.6rem; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(100% 120% at 85% 0%, rgba(212,168,75,.16), transparent 55%), linear-gradient(180deg, var(--navy-light), var(--navy)); }
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin: .6rem 0 .7rem; }
.page-hero p { color: #c7d0e0; font-size: 1.12rem; max-width: 56ch; }
.crumbs { font-size: .85rem; color: #8496b5; margin-bottom: .3rem; }
.crumbs a { color: #b3c0d8; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: var(--gold); }

/* scroll reveal */
.reveal { opacity: 0; translate: 0 1.4rem; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; translate: 0 0; } }


/* ---------- hero slideshow (crossfade) ---------- */
.hero-slideshow { position: relative; min-height: 84vh; display: grid; align-items: center; overflow: hidden; color: #fff; background: var(--navy-dark); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; will-change: opacity, transform; }
.hero-slide.is-active { opacity: 1; animation: heroZoom 7s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1.14); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,.74), rgba(15,23,42,.86)), radial-gradient(120% 80% at 82% 0%, rgba(212,168,75,.18), transparent 55%); }
.hero-content { position: relative; z-index: 2; padding: 5.5rem 0; }
.hero-content h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 4rem); margin: 1.1rem 0 1.1rem; max-width: 20ch; }
.hero-content h1 em { font-style: normal; color: var(--gold); }
.hero-content .lede { font-size: 1.2rem; color: #d5dcea; max-width: 52ch; margin-bottom: 2rem; }
.hero-content .hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-dots { position: absolute; z-index: 3; bottom: 1.8rem; left: 0; right: 0; display: flex; gap: .55rem; justify-content: center; }
.hero-dot { width: 32px; height: 4px; border: 0; border-radius: 99px; background: rgba(255,255,255,.34); cursor: pointer; padding: 0; transition: background .2s, width .2s; }
.hero-dot.is-active { background: var(--gold); width: 44px; }
@media (max-width: 820px) { .hero-slideshow { min-height: 74vh; } .hero-content { padding: 3.6rem 0; } }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide.is-active { animation: none !important; transition: opacity .4s; } }

/* footer logo: white on the dark footer */
.footer-grid .f-brand img { filter: brightness(0) saturate(100%) invert(73%) sepia(38%) saturate(538%) hue-rotate(356deg) brightness(92%) contrast(88%); }
