/* ============================================================
   Examiners Edge® — "The Docket"
   Editorial, white-forward design language.

   Principles
   - Paper-white base, navy ink text for maximum readability.
   - ONE restrained accent (steel blue): rules, numerals, links,
     a single button color. Never a wall of blue.
   - Navy is reserved for a few anchor moments only:
     hero, founder band, final CTA/form, footer.
   - Signature devices: hairline rules, oversized serif numerals,
     kicker labels, a "service menu" index, numbered rows.
   ============================================================ */

:root {
  /* Ink & paper */
  --navy:        #12263A;  /* primary dark / headings on light */
  --navy-2:      #1B3A57;  /* alt dark band */
  --ink:         #1C2A36;  /* body text on light */
  --slate:       #55636F;  /* secondary text */
  --slate-soft:  #7A8894;  /* muted / captions */

  /* Accent (used sparingly) */
  --steel:       #2E6F97;  /* primary accent / links / one button */
  --steel-deep:  #235A7C;  /* hover */
  --steel-bright:#5EA6CE;  /* accent on dark */
  --steel-tint:  #EAF1F6;  /* faint accent wash */

  /* Neutrals */
  --paper:       #FCFCFA;  /* page background (warm white) */
  --ivory:       #F5F3EE;  /* alt light band (warm) */
  --line:        #E4E2DB;  /* hairline rule on light */
  --line-2:      #D3D0C7;  /* stronger rule */
  --line-dark:   rgba(255,255,255,.14); /* rule on dark */
  --cloud:       #EEECE6;  /* photo placeholder */

  /* Type */
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1120px;
  --radius: 4px;
  --shadow: 0 18px 50px rgba(18, 38, 58, .14);
  --shadow-sm: 0 6px 22px rgba(18, 38, 58, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--steel-deep); text-decoration: underline; }
::selection { background: var(--navy); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  color: var(--navy);
  letter-spacing: .1px;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.55rem); }
h1 em, h2 em { font-style: italic; color: var(--steel); }

.lead { font-size: 1.2rem; line-height: 1.6; color: var(--slate); }
.muted { color: var(--slate); }
p + p { margin-top: 1em; }

/* On dark bands */
.on-dark, .on-dark p, .on-dark .lead, .on-dark .muted { color: #E7ECF1; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }

/* Kicker: small caps label with a leading rule */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 22px;
}
.kicker::before { content: ""; width: 30px; height: 1px; background: var(--steel); }
.kicker.center { justify-content: center; }
.kicker.center::after { content: ""; width: 30px; height: 1px; background: var(--steel); }
.on-dark .kicker { color: var(--steel-bright); }
.on-dark .kicker::before, .on-dark .kicker.center::after { background: var(--steel-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--navy);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--steel-deep); border-color: var(--steel-deep); color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--lg { padding: 18px 38px; font-size: 1.06rem; }
.btn--accent { background: var(--steel); border-color: var(--steel); }
.btn--accent:hover { background: var(--steel-deep); border-color: var(--steel-deep); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.on-dark .btn { background: #fff; color: var(--navy); border-color: #fff; }
.on-dark .btn:hover { background: var(--steel-bright); border-color: var(--steel-bright); color: var(--navy); }
.on-dark .btn--ghost { background: transparent; color: #fff; border-color: var(--line-dark); }
.on-dark .btn--ghost:hover { background: #fff; color: var(--navy); }

.link-arrow { font-weight: 600; color: var(--steel); white-space: nowrap; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--steel-deep); }
.on-dark .link-arrow { color: var(--steel-bright); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 252, 250, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(18,38,58,.06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand-name {
  font-family: var(--serif); font-size: 1.32rem; font-weight: 700;
  letter-spacing: .04em; color: var(--navy); white-space: nowrap;
}
.brand-name sup { font-size: .5em; top: -.7em; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: var(--slate); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--navy); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--navy); }
.site-nav .btn { padding: 10px 22px; font-size: .9rem; }
.site-nav .btn:hover { transform: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .25s ease, opacity .25s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section--ivory { background: var(--ivory); }
.section--dark { background: var(--navy); }
.section--tight { padding: 68px 0; }
.section-head { max-width: 720px; margin-bottom: 58px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 18px; }
.section-head .lead { max-width: 620px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero (dark anchor) ---------- */
.hero { position: relative; background: var(--navy); color: #fff; padding: 110px 0 116px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 460px at 84% 6%, rgba(94,166,206,.18), transparent 60%),
    linear-gradient(180deg, rgba(27,58,87,.5), transparent 46%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--steel-bright), transparent); opacity: .5;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 24px; color: #fff; }
.hero h1 em { color: var(--steel-bright); }
.hero .subhead { font-size: 1.22rem; line-height: 1.55; color: #D4DDE5; max-width: 560px; margin-bottom: 38px; }
.hero .subhead em { color: #fff; font-style: italic; }
.hero-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 34px; }
.hero .link-arrow { color: var(--steel-bright); }
.trust-line {
  display: block; font-size: .85rem; line-height: 1.6; color: #97A7B4;
  border-top: 1px solid var(--line-dark); padding-top: 18px; max-width: 540px;
}
.hero-art { display: flex; justify-content: center; }
.hero-art img { max-height: 400px; width: auto; filter: drop-shadow(0 26px 54px rgba(0,0,0,.5)); }

/* ---------- Credibility bar ---------- */
.cred { padding: 54px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.cred h2 {
  font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--slate-soft); text-align: center; margin-bottom: 28px;
}
.cred-names {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px;
  list-style: none; max-width: 1000px; margin: 0 auto;
}
.cred-names li {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--navy); opacity: .6; white-space: nowrap;
}

/* ---------- Numbered editorial rows (The Edge) ---------- */
.edge-grid { display: grid; grid-template-columns: .85fr 1.45fr; gap: 76px; align-items: start; }
.edge-grid .section-head { margin-bottom: 0; position: sticky; top: 118px; }
.num-rows { border-top: 1px solid var(--line-2); }
.num-row { display: grid; grid-template-columns: 92px 1fr; gap: 30px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.num-row .num { font-family: var(--serif); font-size: 2.7rem; font-weight: 500; line-height: .9; color: var(--steel); }
.num-row h3 { margin-bottom: 10px; }
.num-row p { color: var(--slate); max-width: 560px; }

/* ---------- Ruled columns (How it works) ---------- */
.ruled-cols { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.ruled-col { padding: 46px 40px 8px; border-left: 1px solid var(--line); }
.ruled-col:first-child { border-left: none; padding-left: 0; }
.ruled-col .num {
  display: block; font-family: var(--sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; color: var(--steel); margin-bottom: 18px; text-transform: uppercase;
}
.ruled-col .num span { font-size: 3rem; display: block; letter-spacing: 0; line-height: 1; margin-top: 8px; font-weight: 500; font-family: var(--serif); }
.ruled-col h3 { margin-bottom: 12px; }
.ruled-col p { color: var(--slate); }

/* ---------- Product index (service menu) ---------- */
.product-index { border-top: 1px solid var(--line-2); }
.product-row {
  display: grid; grid-template-columns: 64px 1.05fr 1.35fr 44px; gap: 30px; align-items: center;
  padding: 38px 14px; border-bottom: 1px solid var(--line); color: inherit; transition: background .22s ease, padding .22s ease;
}
.product-row:hover { background: #fff; text-decoration: none; padding-left: 22px; }
.product-row .num { font-family: var(--serif); font-size: 1.2rem; color: var(--slate-soft); }
.product-row h3 { margin-bottom: 4px; transition: color .2s ease; }
.product-row:hover h3 { color: var(--steel); }
.product-row .tagline { font-family: var(--serif); font-style: italic; font-size: 1.14rem; color: var(--steel); }
.product-row .desc { color: var(--slate); font-size: .98rem; }
.product-row .arrow { font-size: 1.5rem; color: var(--steel); text-align: right; transition: transform .22s ease; }
.product-row:hover .arrow { transform: translateX(6px); }

/* ---------- Founder (dark anchor) ---------- */
.founder { background: var(--navy); color: #fff; }
.founder .container { display: grid; grid-template-columns: 350px 1fr; gap: 66px; align-items: center; }
.founder h2, .founder h3 { color: #fff; }
.founder .muted, .founder p { color: #D4DDE5; }
.founder-photo { border-radius: 6px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.founder-photo img { width: 100%; }
blockquote.pull {
  margin-top: 32px; padding-left: 24px; border-left: 3px solid var(--steel-bright);
  font-family: var(--serif); font-size: 1.32rem; font-style: italic; line-height: 1.35; color: #EAF1F6;
}
blockquote.pull cite { display: block; margin-top: 10px; font-size: .82rem; font-family: var(--sans); font-style: normal; color: #97A7B4; letter-spacing: .04em; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding: 26px 4px; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.6rem; color: var(--steel); transition: transform .2s ease; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details .answer { padding: 0 4px 26px; color: var(--slate); max-width: 720px; }
.faq details .answer p + p { margin-top: .8em; }
.faq details .answer strong { color: var(--navy); }
.faq-group-title { margin: 60px 0 20px; font-size: clamp(1.55rem, 2.6vw, 1.95rem); }
.faq-group-title:first-of-type { margin-top: 0; }

/* ---------- Form / final CTA (dark anchor) ---------- */
.form-section { background: var(--navy); color: #fff; }
.form-section .section-head h2 { color: #fff; }
.form-section .lead { color: #C9D4DD; }
.confidential-note {
  max-width: 740px; margin: 0 auto 34px; padding: 16px 24px;
  border: 1px solid rgba(94,166,206,.4); border-radius: var(--radius);
  background: rgba(94,166,206,.1); font-size: .95rem; color: #EAF1F6; text-align: center;
}
.confidential-note strong { color: #fff; }
.form-shell { max-width: 880px; margin: 0 auto; background: #fff; border-radius: 8px; padding: 12px; box-shadow: 0 26px 64px rgba(0,0,0,.34); }

/* ---------- Video slot ---------- */
.video-wrap {
  max-width: 880px; margin: 0 auto 48px; border-radius: 8px; overflow: hidden;
  box-shadow: 0 26px 64px rgba(0,0,0,.34); aspect-ratio: 16 / 9; background: var(--navy-2);
}
.video-wrap iframe, .video-wrap video { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  width: 100%; height: 100%; color: #9FB3C2; text-align: center; padding: 24px;
}
.video-placeholder svg { width: 62px; height: 62px; opacity: .7; }
.video-placeholder span { font-size: .9rem; letter-spacing: .04em; }

/* ---------- Page hero (inner pages, light) ---------- */
.page-hero { padding: 96px 0 70px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero .container { max-width: 900px; }
.page-hero h1 { margin: 4px 0 22px; }
.page-hero .lead { max-width: 680px; }

/* ---------- Prose ---------- */
.prose { max-width: 780px; }
.prose h2 { margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 36px 0 10px; }
.prose p { color: var(--slate); }
.prose ul { margin: 20px 0; list-style: none; }
.prose li { margin-bottom: 15px; padding-left: 28px; position: relative; color: var(--slate); }
.prose li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 1px; background: var(--steel); }
.prose strong { color: var(--navy); }
.fact-note {
  margin: 28px 0; padding: 20px 26px; background: var(--steel-tint);
  border-left: 3px solid var(--steel); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .96rem; color: var(--slate);
}
.fact-note strong { color: var(--navy); }

/* ---------- Mid-page CTA band (dark anchor) ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 78px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -10%, rgba(94,166,206,.18), transparent 60%); }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #C9D4DD; max-width: 580px; margin: 0 auto 32px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.team-grid.team-5 { grid-template-columns: repeat(4, 1fr); max-width: 940px; margin: 0 auto; }
.team-card {
  text-align: left; color: inherit; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); text-decoration: none; }
.team-photo { aspect-ratio: 4 / 5; background: var(--cloud); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-card .body { padding: 18px 20px 20px; }
.team-card h3 { font-size: 1.28rem; margin-bottom: 2px; }
.team-card .role { font-size: .82rem; color: var(--slate); letter-spacing: .01em; }
.team-card .link-arrow { font-size: .85rem; margin-top: 12px; display: inline-block; }

/* ---------- Bio pages ---------- */
.bio-grid { display: grid; grid-template-columns: 360px 1fr; gap: 68px; align-items: start; }
.bio-photo { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); position: sticky; top: 118px; }
.bio-photo img { width: 100%; display: block; }
.bio-body h1 { margin-bottom: 6px; }
.bio-role { font-weight: 600; color: var(--steel); letter-spacing: .02em; margin-bottom: 24px; }
.bio-body p { color: var(--slate); }
.bio-body p + p { margin-top: 1.1em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.contact-cell { padding: 46px 38px; border-left: 1px solid var(--line); }
.contact-cell:first-child { border-left: none; padding-left: 0; }
.contact-cell .kicker { margin-bottom: 14px; }
.contact-cell h3 { margin-bottom: 8px; font-size: 1.3rem; }
.contact-cell a { font-weight: 600; }

/* ---------- Footer (dark anchor) ---------- */
.site-footer { background: #0C1B2A; padding: 72px 0 34px; font-size: .92rem; color: #8FA0AE; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; margin-bottom: 50px; }
.footer-brand img { height: 60px; margin-bottom: 18px; }
.footer-brand p { max-width: 290px; color: #A9B7C3; }
.napp-badge { display: inline-block; margin-top: 18px; font-size: .78rem; color: #8FA0AE; border: 1px solid var(--line-dark); border-radius: 999px; padding: 6px 14px; }
.site-footer h4 { font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #C4D0DA; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { color: #8FA0AE; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-legal { border-top: 1px solid var(--line-dark); padding-top: 26px; text-align: center; font-size: .82rem; color: #7C8D9B; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .team-card, .product-row { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-height: 190px; }
  .edge-grid { grid-template-columns: 1fr; gap: 42px; }
  .edge-grid .section-head { position: static; }
  .founder .container { grid-template-columns: 1fr; }
  .founder-photo { max-width: 340px; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo { max-width: 340px; position: static; }
  .team-grid, .team-grid.team-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-row { grid-template-columns: 44px 1fr 40px; }
  .product-row .desc { grid-column: 2; }
  .product-row .arrow { grid-row: 1; grid-column: 3; }
}
@media (max-width: 760px) {
  .section { padding: 74px 0; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(252,252,250,.99); border-bottom: 1px solid var(--line);
    padding: 12px 28px 24px; transform: translateY(-135%); transition: transform .3s ease; z-index: 99;
  }
  .nav-open .site-nav { transform: none; }
  .site-nav a { padding: 15px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); color: var(--navy); }
  .site-nav .btn { margin-top: 16px; text-align: center; border-bottom: none; color: #fff; }
  .hero { padding: 66px 0 82px; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .ruled-cols { grid-template-columns: 1fr; border-top: none; }
  .ruled-col { border-left: none; border-top: 1px solid var(--line); padding: 36px 0 8px; }
  .num-row { grid-template-columns: 52px 1fr; gap: 18px; padding: 32px 0; }
  .num-row .num { font-size: 2.1rem; }
  .product-row { padding: 30px 4px; gap: 16px; }
  .product-row:hover { padding-left: 4px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-cell { border-left: none; padding: 32px 0; border-top: 1px solid var(--line); }
  .contact-cell:first-child { border-top: none; padding-top: 0; }
}
@media (max-width: 560px) {
  .team-grid, .team-grid.team-5 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cred-names li { font-size: 1.1rem; }
}
