/* Theme D: warm grey-green ground with film grain, enormous tight bold headlines, a narrow left rail of small text,
   hairline-ruled rows, mono labels, black bands with giant uppercase headings. After bymonolog.com, in Secure Assure greens. */
:root {
  --ink: #080a09; --muted: #565d59; --line: #c4cac4; --bg: #e1e4df; --tint: #d8dcd6;
  --green: #1a7f68; --green-d: #146452; --green-l: #cfe0d9; --bright: #3fd6a5; --black: #080a09; --panel: #121614; --edge: #262b28; --soft: #9aa29d;
  --dtext: #e4e8e3; --gt: #146452;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --r-btn: 3px; --r-card: 4px; --r-big: 4px; --sec-pad: 0px;
  --m: clamp(16px, 2vw, 28px);
}
body.theme-d { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 500; position: relative; }
body.theme-d::before { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; background: url('/grain.svg'); opacity: .1; mix-blend-mode: multiply; }
.theme-d .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.theme-d h1, .theme-d h2, .theme-d h3 { font-weight: 700; letter-spacing: -.05em; line-height: .94; }
.theme-d .wrap { max-width: none; padding: 0 var(--m); }
.theme-d .mono { font-family: var(--mono); font-size: 11px; letter-spacing: .02em; text-transform: uppercase; }
.theme-d :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.theme-d .d-black :focus-visible, .theme-d .cta-end :focus-visible, .theme-d .site-footer :focus-visible { outline-color: var(--bright); }

/* header */
.theme-d .site-header { background: none; position: relative; z-index: 20; }
.theme-d .bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; min-height: 84px; align-items: center; }
.theme-d .brand { grid-column: 1; }
.theme-d .brand-word { font-family: var(--sans); font-weight: 800; font-size: 24px; letter-spacing: -.07em; color: var(--ink); }
.theme-d .brand-word b { color: var(--gt); font-weight: 800; }
.theme-d .nav-d { grid-column: 2; grid-row: 1; margin: 0; gap: 18px; justify-self: start; }
.theme-d .nav-d a { padding: 8px 0; font-size: 15px; font-weight: 600; letter-spacing: -.02em; border-radius: 0; }
.theme-d .nav-d a:hover, .theme-d .nav-d a[aria-current] { color: var(--gt); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.theme-d .bar-end { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; gap: 18px; }
.theme-d .bar-phone { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.theme-d .bar-phone:hover { color: var(--gt); }
.theme-d .nav-m { grid-column: 2; grid-row: 1; justify-self: end; }
.theme-d .nav-m summary { border: 0; background: var(--ink); color: var(--dtext); border-radius: 3px; padding: 0 16px; }
.theme-d .nav-m-panel { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; box-shadow: none; }
.theme-d .nav-m-panel a:hover { background: var(--tint); }

/* buttons: dark with an arrow chip */
.theme-d .btn { min-height: 44px; padding: 0 8px 0 14px; gap: 14px; border-radius: 3px; font: 600 15px/1 var(--sans); letter-spacing: -.02em; }
.theme-d .btn::after { content: '\2197' / ''; display: inline-grid; place-items: center; width: 28px; height: 28px; background: rgba(255, 255, 255, .16); border-radius: 2px; font-size: 14px; }
.theme-d .btn-solid, .theme-d .btn-dark { background: var(--ink); color: var(--dtext); }
.theme-d .btn-solid:hover, .theme-d .btn-dark:hover { background: #1e2522; }
.theme-d .btn-block { justify-content: space-between; }
.theme-d .pill, .theme-d .pill-btn { border-radius: 3px; border: 1px solid var(--ink); background: none; font-weight: 600; font-size: 14px; letter-spacing: -.01em; min-height: 40px; }
.theme-d .pill:hover, .theme-d .pill-btn:hover { background: var(--ink); color: var(--dtext); border-color: var(--ink); }

/* shared grid: narrow rail left, wide column right */
.theme-d .d-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; padding: 0 var(--m); }
.theme-d .d-label { margin: 0; color: var(--muted); }
.theme-d .d-black .d-label { color: var(--soft); }
.theme-d .d-sec { padding: clamp(64px, 9vw, 140px) 0; border-top: 1px solid var(--line); }
.theme-d .d-sec h2, .theme-d .d-black .d-main h2, .theme-d .d-head h2 { font-size: clamp(34px, 4.6vw, 72px); max-width: 1000px; margin-bottom: 28px; text-wrap: balance; }
.theme-d .d-head { margin-bottom: clamp(32px, 5vw, 64px); }
.theme-d .d-head h2 { margin-bottom: 0; }
.theme-d .d-lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; letter-spacing: -.02em; color: var(--muted); max-width: 680px; margin-bottom: 36px; }
.theme-d .d-black .d-lead { color: var(--soft); }

/* hero */
.theme-d .d-hero { padding-top: clamp(24px, 4vw, 56px); padding-bottom: 0; align-items: start; }
.theme-d .d-rail { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; min-height: 100%; }
.theme-d .d-intro { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.22; letter-spacing: -.03em; font-weight: 600; margin: 0; max-width: 360px; }
.theme-d .d-aside { margin: auto 0 0; padding-top: 48px; font-size: 18px; font-weight: 600; letter-spacing: -.03em; }
.theme-d .d-hero h1 { font-size: clamp(46px, 6.6vw, 110px); line-height: .9; letter-spacing: -.065em; margin: 0 0 clamp(32px, 4vw, 56px); text-wrap: balance; }
.theme-d .d-panel { position: relative; overflow: hidden; background: var(--ink); color: var(--dtext); border-radius: 4px; padding: clamp(20px, 3vw, 40px); min-height: 420px; display: flex; align-items: flex-end; }
.theme-d .d-mark { position: absolute; right: -4%; top: -14%; width: min(58%, 520px); color: #17201c; }
.theme-d .d-stats { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; width: 100%; }
.theme-d .d-card { background: var(--bg); color: var(--ink); border-radius: 4px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.theme-d .d-card dt { font-size: clamp(34px, 3.6vw, 56px); font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.theme-d .d-card dd { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.theme-d .d-card .mono { margin-top: 18px; color: var(--muted); }

/* clients */
.theme-d .d-clients { margin-top: clamp(40px, 5vw, 72px); padding: 24px var(--m) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
.theme-d .d-clients ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.theme-d .d-clients li { padding: 22px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 600; letter-spacing: -.03em; }
.theme-d .d-clients ul { border-top: 1px solid var(--line); margin-bottom: clamp(48px, 7vw, 96px); }

/* services rows */
.theme-d .d-rows { border-top: 1px solid var(--ink); margin: 0 var(--m); }
.theme-d .d-row { padding: 28px 0; align-items: start; text-decoration: none; border-bottom: 1px solid var(--line); position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); padding-left: 0; padding-right: 0; }
.theme-d .d-row:hover { background: var(--tint); }
.theme-d .d-num { color: var(--muted); display: flex; gap: 10px; align-items: center; }
.theme-d .d-num i { font-style: normal; padding: 2px 6px; border: 1px solid currentColor; border-radius: 2px; }
.theme-d .d-row-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; padding-right: 52px; }
.theme-d .d-row-body strong { font-size: clamp(26px, 2.8vw, 44px); font-weight: 700; letter-spacing: -.055em; line-height: 1; }
.theme-d .d-row-body span { font-size: 17px; line-height: 1.35; letter-spacing: -.02em; color: var(--muted); max-width: 420px; }
.theme-d .d-row b { position: absolute; right: 4px; top: 26px; font-size: 26px; font-weight: 500; transition: transform .2s; }
.theme-d .d-row:hover b { transform: translate(3px, -3px); }

/* about */
.theme-d .sec-about { border-top: 1px solid var(--line); padding: clamp(64px, 9vw, 140px) 0; margin-top: clamp(48px, 6vw, 96px); background: none; }
.theme-d .sec-about .wrap { padding: 0 var(--m); }
.theme-d .sec-about .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 16px; }
.theme-d .sec-about .stack { display: contents; }
.theme-d .sec-about .eyebrow { grid-column: 1; grid-row: 1; margin: 0; color: var(--muted); font-size: 11px; }
.theme-d .sec-about .stack h2 { grid-column: 2; grid-row: 1; font-size: clamp(34px, 4.6vw, 72px); max-width: 1000px; margin-bottom: 36px; text-wrap: balance; }
.theme-d .about-copy { grid-column: 2; grid-row: 2; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; letter-spacing: -.02em; color: var(--muted); max-width: 760px; }
.theme-d .about-copy h3 { color: var(--ink); font-size: 32px; margin-top: 1.4em; }

/* black bands */
.theme-d .d-black { background: var(--ink); color: var(--dtext); padding: clamp(64px, 9vw, 140px) 0; }
.theme-d .d-black h2, .theme-d .d-black h3 { color: var(--dtext); }
.theme-d .d-giant { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: -.06em; line-height: .8; font-size: clamp(56px, 13.5vw, 230px); color: var(--dtext); white-space: nowrap; overflow: hidden; padding: 0 var(--m); }
.theme-d .d-steps { margin-top: clamp(32px, 5vw, 64px); border-top: 1px solid var(--edge); }
.theme-d .d-steps li { padding: 32px var(--m); border-bottom: 1px solid var(--edge); align-items: start; }
.theme-d .d-steps .d-num { color: var(--soft); }
.theme-d .d-steps h3 { font-size: clamp(26px, 2.6vw, 40px); margin-bottom: 14px; }
.theme-d .d-steps p { margin: 0; font-size: 18px; line-height: 1.4; letter-spacing: -.02em; color: var(--soft); max-width: 520px; }
.theme-d .d-list li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(19px, 1.7vw, 26px); font-weight: 600; letter-spacing: -.04em; }
.theme-d .d-list { border-top: 1px solid var(--line); margin-bottom: 36px; max-width: 760px; }
.theme-d .d-black .d-list, .theme-d .d-black .d-list li { border-color: var(--edge); }
.theme-d .d-numbered li { display: flex; gap: 22px; align-items: baseline; }
.theme-d .d-numbered .mono { color: var(--bright); }
.theme-d .d-link { display: inline-block; color: var(--dtext); font-weight: 600; letter-spacing: -.02em; text-decoration: none; border-bottom: 1.5px solid var(--bright); padding-bottom: 4px; }
.theme-d .d-link b { color: var(--bright); margin-left: 8px; }
.theme-d .pills { margin-top: 12px; }
.theme-d .faq summary { font-size: clamp(20px, 1.9vw, 28px); letter-spacing: -.04em; padding: 22px 0; }
.theme-d .faq summary::after { color: var(--ink); }
.theme-d .faq details { border-color: var(--line); }
.theme-d .faq p { color: var(--muted); font-size: 18px; max-width: 640px; }
.theme-d .d-faq-sec .faq h2 { margin-bottom: 24px; }

/* closing call to action and footer */
.theme-d .cta-end { background: var(--ink); color: var(--dtext); padding: clamp(64px, 9vw, 140px) 0 48px; border-top: 1px solid var(--edge); }
.theme-d .cta-end-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
.theme-d .cta-end h2 { font-size: clamp(40px, 6vw, 96px); color: var(--dtext); grid-column: 2; margin-bottom: 24px; }
.theme-d .cta-end .cta-end-in > div:first-child { display: contents; }
.theme-d .cta-end p { grid-column: 2; color: var(--soft); font-size: 20px; letter-spacing: -.02em; }
.theme-d .cta-end-act { grid-column: 2; margin-top: 12px; }
.theme-d .cta-phone { font-size: clamp(28px, 3vw, 44px); font-weight: 700; letter-spacing: -.05em; color: var(--dtext); }
.theme-d .cta-end .btn-solid { background: var(--bright); color: var(--ink); }
.theme-d .cta-end .btn-solid:hover { background: #63e2b9; }
.theme-d .cta-end .btn::after { background: rgba(0, 0, 0, .14); }
.theme-d .site-footer { background: var(--ink); color: var(--soft); padding: 0 0 24px; }
.theme-d .foot-giant { font-size: clamp(40px, 10.6vw, 190px); padding-top: 0; color: #1a211e; margin-bottom: 32px; }
.theme-d .site-footer h2 { color: var(--soft); font: 500 11px/1 var(--mono); }
.theme-d .site-footer .brand-word { color: var(--dtext); }
.theme-d .site-footer .brand-word b { color: var(--bright); }
.theme-d .site-footer a:hover { color: #fff; }
.theme-d .foot-phone { color: var(--dtext); font-weight: 700; }
.theme-d .foot-base { border-top: 1px solid var(--edge); color: var(--soft); }

/* inner pages */
.theme-d .page-hero { padding: clamp(32px, 5vw, 72px) 0 clamp(32px, 4vw, 56px); }
.theme-d .page-hero h1 { font-size: clamp(44px, 7.4vw, 124px); line-height: .9; letter-spacing: -.065em; max-width: 1300px; margin: 8px 0 0; text-wrap: balance; }
.theme-d .page-hero .eyebrow { color: var(--muted); font-size: 11px; }
.theme-d .crumbs { color: var(--muted); font-size: 11px; }
.theme-d .page-hero .lede { color: var(--muted); }
.theme-d .page-grid { max-width: none; margin: 0; padding: 0 var(--m) clamp(64px, 8vw, 120px); grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 40px; }
.theme-d .sec-tight { padding: 0; }
.theme-d .sec-tight .wrap { padding: 0 var(--m); }
.theme-d .sec-tight + .page-grid { padding-top: 40px; }
.theme-d .prose { color: var(--muted); font-size: 19px; line-height: 1.5; letter-spacing: -.015em; max-width: 780px; font-weight: 500; }
.theme-d .prose > p:first-child { color: var(--ink); font-size: clamp(22px, 2vw, 30px); letter-spacing: -.035em; line-height: 1.2; font-weight: 600; }
.theme-d .prose h2, .theme-d .prose h3 { color: var(--ink); letter-spacing: -.05em; }
.theme-d .prose h2 { font-size: clamp(30px, 3vw, 44px); }
.theme-d .prose ul li::before { background: var(--ink); border-radius: 0; width: 7px; height: 7px; }
.theme-d .prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gt); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.theme-d .prose strong { color: var(--ink); }
.theme-d .side-card { background: none; border: 1px solid var(--ink); border-radius: 4px; }
.theme-d .side-card li { border-color: var(--line); }
.theme-d .side-card li a:hover { color: var(--gt); }
.theme-d .side-cta { background: var(--ink); color: var(--dtext); }
.theme-d .side-cta p { color: var(--soft); }
.theme-d .side-cta .btn-solid { background: var(--bright); color: var(--ink); }
.theme-d .side-cta .btn::after { background: rgba(0, 0, 0, .14); }
.theme-d .side-phone { font-weight: 700; letter-spacing: -.05em; color: var(--dtext); }
.theme-d .card { background: none; border: 1px solid var(--ink); border-radius: 4px; }
.theme-d a.card:hover { background: var(--tint); border-color: var(--ink); transform: none; }
.theme-d .card p { color: var(--muted); }
.theme-d .card a, .theme-d .more, .theme-d .arrow { color: var(--ink); }
.theme-d .tag { background: none; border: 1px solid var(--muted); color: var(--muted); border-radius: 2px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; font-size: 10px; letter-spacing: .02em; }
.theme-d .big-phone { color: var(--ink) !important; font-weight: 700; letter-spacing: -.05em; }

/* contact form */
.theme-d .contact-wrap { padding-top: 24px; }
.theme-d .form-box { background: none; border: 1px solid var(--ink); border-radius: 4px; }
.theme-d .sa-field input, .theme-d .sa-field select, .theme-d .sa-field textarea { background: #eef0ec; border: 1px solid #8e968f; border-radius: 3px; color: var(--ink); }
.theme-d .sa-field input:focus, .theme-d .sa-field select:focus, .theme-d .sa-field textarea:focus { outline: 2px solid var(--ink); border-color: var(--ink); }
.theme-d .sa-req { color: #a3281f; }
.theme-d .sa-submit { background: var(--ink); color: var(--dtext); border-radius: 3px; }
.theme-d .sa-submit:hover { background: #1e2522; }
.theme-d .sa-form-note a { color: var(--ink); text-decoration: underline; }

@media (max-width: 1000px) {
  .theme-d .bar { grid-template-columns: minmax(0, 1fr) auto; }
  .theme-d .nav-m { grid-column: 2; }
  .theme-d .d-grid, .theme-d .d-clients, .theme-d .sec-about .two, .theme-d .cta-end-in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .theme-d .sec-about .stack h2, .theme-d .about-copy, .theme-d .cta-end h2, .theme-d .cta-end p, .theme-d .cta-end-act { grid-column: 1; grid-row: auto; }
  .theme-d .d-clients ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-d .d-stats { grid-template-columns: minmax(0, 1fr); }
  .theme-d .d-row { grid-template-columns: minmax(0, 1fr); }
  .theme-d .d-row-body { grid-template-columns: minmax(0, 1fr); }
  .theme-d .page-grid { grid-template-columns: minmax(0, 1fr); }
  .theme-d .d-aside { padding-top: 0; margin-top: 8px; }
}
@media (max-width: 600px) { .theme-d .d-panel { min-height: 0; } .theme-d .d-mark { opacity: .6; } }
