/* ═══════════════════════════════════════════
   TOKENS — pine / parchment / brass ledger
═══════════════════════════════════════════ */
:root {
  --bg: #0D1B2A;
  --bg-soft: #13263A;
  --bg-softer: #193248;
  --paper: #F7F8FA;
  --paper-2: #ECEFF3;
  --ink: #0D1B2A;
  --cream: #F7F8FA;
  --brass: #45C4E6;
  --brass-2: #2797B7;
  --wine: #5B6EE1;
  --sage: #69A9B9;
  --muted: rgba(247,248,250,.58);
  --muted-ink: rgba(13,27,42,.60);
  --line: rgba(247,248,250,.16);
  --line-ink: rgba(13,27,42,.14);
  --disp: 'Fraunces', serif;
  --sans: 'Work Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --ease: cubic-bezier(.65,0,.35,1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--cream); overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--disp); font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-thumb { background: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.eyebrow { font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: var(--brass); display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.eyebrow::after { content: ''; flex: 0 0 34px; height: 1px; background: var(--brass); }
.section-h { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -.5px; margin-bottom: 16px; }
.section-p { font-size: .96rem; line-height: 1.8; color: var(--muted); max-width: 520px; }
.on-paper .section-p { color: var(--muted-ink); }
.sect { padding: 104px 0; }
.sect-head { margin-bottom: 52px; }
.on-paper { background: var(--paper); color: var(--ink); }
.on-paper .eyebrow { color: var(--brass-2); }
.on-paper .eyebrow::after { background: var(--brass-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .8rem; letter-spacing: .6px; text-transform: uppercase; padding: 15px 28px; border-radius: 3px; border: 1px solid transparent; cursor: pointer; transition: all .3s var(--ease); }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--cream); }
.btn-line { border-color: var(--brass); color: var(--cream); background: transparent; }
.btn-line:hover { background: var(--brass); color: var(--ink); }
.btn-line-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line-ink:hover { background: var(--ink); color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn i { transition: transform .3s ease; font-size: .72rem; }
.btn:hover i { transform: translateX(4px); }

/* TOP NAV */
#topnav { position: fixed; top: 0; left: 0; right: 0; z-index: 1200; height: var(--nav-h); display: flex; align-items: center; background: rgba(15, 33, 28, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: height .3s var(--ease); }
#topnav.condensed { height: 58px; }
.nav-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; border: 1.5px solid var(--brass); border-radius: 3px; display: flex; align-items: center; justify-content: center; font-family: var(--disp); font-weight: 700; font-size: 1rem; color: var(--brass); flex-shrink: 0; }
.brand-word { font-family: var(--disp); font-weight: 600; font-size: 1.15rem; letter-spacing: -.2px; }
.brand-word span { color: var(--brass); font-style: italic; font-weight: 500; }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a { font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); position: relative; padding: 6px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--brass); transition: width .3s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--cream); cursor: pointer; align-items: center; justify-content: center; }
#mobileMenu { position: fixed; inset: 0; background: var(--bg); z-index: 1400; display: flex; flex-direction: column; padding: 100px 40px 40px; transform: translateY(-100%); transition: transform .4s var(--ease); }
#mobileMenu.open { transform: translateY(0); }
.mm-close { position: absolute; top: 24px; right: 24px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--cream); cursor: pointer; }
.mm-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mm-links a { font-family: var(--disp); font-size: 2rem; font-style: italic; color: var(--cream); padding: 12px 0; border-bottom: 1px solid var(--line); }
@media(max-width:900px) { .nav-links { display: none; } .nav-toggle { display: flex; } .nav-cta .btn-line { display: none; } }

/* HERO */
#hero { padding-top: calc(var(--nav-h) + 76px); padding-bottom: 70px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: start; }
.hero-h { font-size: clamp(2.5rem, 4.6vw, 3.8rem); line-height: 1.06; letter-spacing: -1.3px; font-weight: 600; margin-bottom: 26px; }
.hero-h em { font-style: italic; font-weight: 500; color: var(--brass); position: relative; }
.hero-sub { font-size: 1.02rem; line-height: 1.8; color: var(--muted); max-width: 480px; margin-bottom: 36px; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.tape-panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px; position: relative; overflow: hidden; }
.tape-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.tape-head span { font-family: var(--mono); font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.tape-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 3px rgba(110, 143, 124, .2); }
.tape-viewport { height: 300px; overflow: hidden; position: relative; mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent); }
.tape-scroll { display: flex; flex-direction: column; animation: tapeScroll 16s linear infinite; }
@keyframes tapeScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.tape-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; border-bottom: 1px dashed var(--line); font-family: var(--mono); font-size: .76rem; gap: 10px; }
.tape-row .t-name { color: var(--cream); }
.tape-row .t-meta { color: var(--muted); font-size: .68rem; }
.tape-row .t-amt { color: var(--brass); font-weight: 600; white-space: nowrap; }
.tape-row .t-status { font-size: .62rem; letter-spacing: 1px; text-transform: uppercase; color: var(--sage); border: 1px solid var(--sage); padding: 2px 7px; border-radius: 2px; }
.stamp { position: absolute; top: 14px; right: 28px; z-index: 5; background: var(--brass); color: var(--ink); font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 9px 14px; transform: rotate(-6deg); border-radius: 2px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
@media(max-width:991px) { .hero-grid { grid-template-columns: 1fr; } .tape-panel { max-width: 460px; } }

/* METRIC TICKER */
.metric-ticker { background: var(--brass); border-top: 1px solid var(--brass-2); border-bottom: 1px solid var(--brass-2); padding: 14px 0; overflow: hidden; }
.mt-track { display: flex; width: max-content; animation: mtMove 34s linear infinite reverse; }
.mt-track:hover { animation-play-state: paused; }
@keyframes mtMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mt-item { font-family: var(--mono); font-weight: 600; font-size: .82rem; color: var(--ink); padding: 0 30px; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.mt-item i { font-size: .7rem; }

/* ABOUT */
#about .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.pull-quote { font-family: var(--disp); font-style: italic; font-size: 1.5rem; line-height: 1.5; color: var(--cream); margin-bottom: 26px; }
.pull-quote span { color: var(--brass); }
.ledger-rows { display: flex; flex-direction: column; }
.lrow { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); gap: 14px; }
.lrow .lname { font-size: .86rem; color: var(--muted); flex-shrink: 0; }
.lrow .ldots { flex: 1; border-bottom: 1px dotted var(--line); margin-bottom: 5px; }
.lrow .lval { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; color: var(--brass); white-space: nowrap; }

/* SERVICES */
#services { background: var(--bg-soft); }
#servicesContainer { display: flex; flex-direction: column; gap: 60px; }
.svc-cat h3 { font-family: var(--disp); font-size: 1.8rem; margin-bottom: 28px; padding-bottom: 10px; border-bottom: 1px solid var(--brass); display: inline-block; }
.svc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.svc-card { background: var(--bg-softer); border: 1px solid var(--line); padding: 28px; border-radius: 4px; transition: border-color .3s var(--ease); }
.svc-card:hover { border-color: var(--brass); }
.svc-card h4 { font-family: var(--disp); font-size: 1.2rem; margin-bottom: 12px; color: var(--brass); }
.svc-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* PROCESS */
.docket { max-width: 720px; }
.docket-row { display: grid; grid-template-columns: 80px 1fr; gap: 26px; position: relative; padding-bottom: 48px; }
.docket-row:last-child { padding-bottom: 0; }
.docket-row::before { content: ''; position: absolute; left: 39px; top: 56px; bottom: 0; width: 1px; background: var(--line); }
.docket-row:last-child::before { display: none; }
.docket-num { font-family: var(--disp); font-size: 2.6rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--brass); line-height: 1; }
.docket-row h4 { font-size: 1.15rem; margin-bottom: 8px; }
.docket-row p { font-size: .88rem; color: var(--muted); line-height: 1.75; max-width: 460px; }

/* TESTIMONIALS */
#testimonials { background: var(--paper); color: var(--ink); }
.note-wall { columns: 2; column-gap: 22px; }
@media(max-width:767px) { .note-wall { columns: 1; } }
.note-card { break-inside: avoid; background: #fff; border: 1px solid var(--line-ink); padding: 28px 26px; margin-bottom: 22px; position: relative; clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px)); transition: transform .3s var(--ease); }
.note-card:hover { transform: translateY(-4px); }
.note-stars { color: var(--brass-2); font-size: .8rem; margin-bottom: 14px; }
.note-quote { font-family: var(--disp); font-style: italic; font-size: 1.05rem; line-height: 1.6; margin-bottom: 20px; }
.note-au { display: flex; align-items: center; gap: 12px; }
.note-name { font-weight: 700; font-size: .84rem; }
.note-role { font-size: .72rem; color: var(--brass-2); }

/* FAQ */
#faq .faq-cols { columns: 2; column-gap: 44px; }
@media(max-width:800px) { #faq .faq-cols { columns: 1; } }
.faq-item { break-inside: avoid; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.faq-item summary { list-style: none; padding: 20px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 500; font-size: .92rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { font-family: var(--mono); color: var(--brass); flex-shrink: 0; transition: transform .3s ease; font-size: 1.1rem; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 0 22px; font-size: .86rem; color: var(--muted); line-height: 1.8; max-width: 90%; }

/* CONTACT */
#contact { background: var(--bg-soft); }
.contact-center { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-form-card { background: var(--paper); color: var(--ink); border-radius: 4px; padding: 44px 40px; text-align: left; margin-top: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .76rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; text-transform: uppercase; letter-spacing: .5px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 12px 14px; background: #fff; border: 1px solid var(--line-ink); border-radius: 2px; font-family: var(--sans); font-size: .88rem; color: var(--ink); outline: none; transition: border-color .25s ease; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--brass-2); }
.form-field.err input, .form-field.err select, .form-field.err textarea { border-color: var(--wine); }
.form-field .err-msg { display: none; font-size: .72rem; color: var(--wine); margin-top: 6px; }
.form-field.err .err-msg { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 34px; margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--line); }
.cs-item { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); }
.cs-item i { color: var(--brass); }

/* NEWSLETTER */
#newsletter { background: var(--paper); color: var(--ink); padding: 80px 0; }
.letterhead { border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); padding: 44px 0; }
.lh-tabs { display: flex; justify-content: center; gap: 34px; margin-bottom: 34px; }
.lh-tabs button { background: none; border: none; font-family: var(--disp); font-size: 1.3rem; font-style: italic; color: var(--muted-ink); cursor: pointer; position: relative; padding-bottom: 6px; }
.lh-tabs button.active { color: var(--ink); }
.lh-tabs button.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brass-2); }
.nl-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 760px; margin: 0 auto; }
.nl-field label { font-size: .72rem; font-weight: 600; color: var(--muted-ink); display: block; margin-bottom: 7px; text-transform: uppercase; letter-spacing: .5px; }
.nl-field input { width: 100%; padding: 11px 13px; background: #fff; border: 1px solid var(--line-ink); border-radius: 2px; font-family: var(--sans); font-size: .86rem; color: var(--ink); outline: none; }
.nl-field.err input { border-color: var(--wine); }
.nl-field .err-msg { display: none; font-size: .7rem; color: var(--wine); margin-top: 5px; }
.nl-field.err .err-msg { display: block; }
.nl-check { display: flex; align-items: flex-start; gap: 9px; margin: 18px auto 0; max-width: 760px; }
.nl-check.err label { color: var(--wine); }
.nl-check input { width: 15px; height: 15px; margin-top: 3px; accent-color: var(--brass-2); flex-shrink: 0; }
.nl-check label { font-size: .8rem; color: var(--muted-ink); line-height: 1.5; }
@media(max-width:700px) { .nl-form-grid { grid-template-columns: 1fr; } }

/* LEGAL PAGES (Terms & Privacy) */
.legal-page { padding: calc(var(--nav-h) + 80px) 0 80px; background: var(--paper); color: var(--ink); }
.legal-page .container { max-width: 860px; }
.legal-page h2 { font-size: 2.5rem; margin-bottom: 24px; border-bottom: 1px solid var(--line-ink); padding-bottom: 16px; }
.legal-page .ph { font-family: var(--mono); font-size: .9rem; font-weight: 700; color: var(--brass-2); margin-bottom: 8px; margin-top: 24px; text-transform: uppercase; letter-spacing: .5px; }
.legal-page .pp { font-size: .95rem; color: var(--muted-ink); line-height: 1.8; margin-bottom: 18px; }

/* FOOTER */
#footer { background: var(--ink); color: var(--paper); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-mark { width: 34px; height: 34px; border: 1.5px solid var(--brass); border-radius: 3px; display: flex; align-items: center; justify-content: center; font-family: var(--disp); font-weight: 700; color: var(--brass); }
.footer-word { font-family: var(--disp); font-weight: 600; font-size: 1.1rem; }
.footer-word em { color: var(--brass); font-style: italic; font-weight: 500; }
.footer-tag { font-size: .82rem; color: var(--muted); line-height: 1.75; max-width: 280px; }
.footer-col-title { font-family: var(--mono); font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--muted); font-size: .85rem; transition: all .25s ease; }
.footer-links a:hover { color: var(--brass); padding-left: 4px; }
.footer-addr { font-size: .82rem; color: var(--muted); line-height: 1.9; font-style: normal; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-copy { font-size: .74rem; color: var(--muted); }
@media(max-width:900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* MODAL / TOAST */
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 33, 28, .7); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.show { display: flex; }
.modal-box { background: var(--paper); color: var(--ink); max-width: 640px; width: 100%; max-height: 82vh; overflow-y: auto; border-radius: 4px; }
.modal-box.wide { max-width: 760px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--line-ink); position: sticky; top: 0; background: var(--paper); }
.modal-head h3 { font-size: 1.3rem; }
.modal-close { background: var(--paper-2); border: 1px solid var(--line-ink); border-radius: 2px; width: 34px; height: 34px; cursor: pointer; color: var(--ink); }
.modal-body { padding: 26px 28px; }
.modal-foot { padding: 18px 28px; border-top: 1px solid var(--line-ink); display: flex; justify-content: flex-end; gap: 12px; }
.toast { position: fixed; bottom: 26px; left: 26px; z-index: 3000; background: var(--ink); color: var(--paper); padding: 15px 22px; border-left: 3px solid var(--brass); font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 10px; transform: translateX(-130%); opacity: 0; transition: all .4s var(--ease); }
.toast.show { transform: none; opacity: 1; }
.toast i { color: var(--brass); }