/* ============================================================
   Precision Leverage Solutions — shared design system
   Light-forward · charcoal · brand red · type-forward
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Ink / charcoal */
  --ink-900:      #141312;
  --ink-800:      #1b1a18;
  --ink-700:      #262421;
  --ink-600:      #34302c;

  /* Paper / near-white */
  --paper:        #f4f3f0;
  --paper-pure:   #fcfcfa;
  --paper-dim:    #e9e7e1;

  /* Text */
  --on-dark:      #f4f2ee;
  --muted-dark:   #a7a199;
  --ink-text:     #1a1916;
  --ink-text-mut: #6b665e;

  /* Accent — brand red */
  --red:          #e11d24;
  --red-deep:     #b5141b;
  --red-bright:   #f9080e;   /* true brand red, sparing */
  --red-on-dark:  #fb4248;
  --red-soft:     #f6d3d4;
  --red-tint:     #fbecec;

  /* Lines */
  --line-dark:    #ffffff16;
  --line-light:   #1a191614;
  --line-light-2: #1a191624;

  /* Type */
  --sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(22px, 5vw, 64px);
  --section-y: clamp(72px, 11vw, 168px);
  --radius: 18px;
  --radius-lg: 26px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink-text);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.dark { background: var(--ink-800); color: var(--on-dark); }
.ink { background: var(--ink-900); color: var(--on-dark); }
.paper { background: var(--paper); color: var(--ink-text); }
.paper-pure { background: var(--paper-pure); color: var(--ink-text); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 28px;
}
.dark .eyebrow, .ink .eyebrow { color: var(--red-on-dark); }
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.65;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; margin: 0; }

.display {
  font-size: clamp(3.4rem, 9vw, 7.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.h-xl { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.h-lg { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }
.h-md { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.025em; }
.serif-em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink-text-mut);
  letter-spacing: -0.015em;
}
.dark .lead, .ink .lead { color: #c9c2b6; }

.muted { color: var(--ink-text-mut); }
.dark .muted, .ink .muted { color: var(--muted-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  padding: 15px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-ink { background: var(--ink-900); color: var(--on-dark); }
.btn-ink:hover { background: var(--ink-700); }
.btn-light { background: var(--paper-pure); color: var(--ink-text); }
.btn-light:hover { background: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-light-2); color: var(--ink-text); }
.dark .btn-ghost, .ink .btn-ghost { border-color: #ffffff2e; color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.dark .btn-ghost:hover, .ink .btn-ghost:hover { color: #fff; border-color: var(--red-on-dark); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Nav (light) ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper-pure) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line-light);
  color: var(--ink-text);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 58px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-text-mut);
  padding: 9px 14px; border-radius: 9px;
  transition: color .25s, background .25s;
  letter-spacing: -0.01em; white-space: nowrap;
}
.nav-links a:hover { color: var(--ink-text); background: #1a19160a; }
.nav-links a.active { color: var(--red); }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-tel { font-size: 14px; color: var(--ink-text-mut); font-weight: 600; }
.nav-tel:hover { color: var(--ink-text); }

/* services dropdown */
.nav-drop { position: relative; }
.nav-drop-toggle { font-family: var(--sans); font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-text-mut); background: none; border: 0; cursor: pointer; padding: 9px 14px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: color .25s, background .25s; }
.nav-drop:hover .nav-drop-toggle { color: var(--ink-text); background: #1a19160a; }
.nav-drop-toggle.active { color: var(--red); }
.nav-drop-toggle .caret { font-size: 10px; transition: transform .25s; }
.nav-drop:hover .nav-drop-toggle .caret { transform: rotate(180deg); }
.nav-drop-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 264px; background: var(--paper-pure); border: 1px solid var(--line-light-2); border-radius: 14px; padding: 8px; box-shadow: 0 24px 50px -22px #1a191636; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; z-index: 130; }
.nav-drop-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop-menu a { display: block; padding: 11px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--ink-text-mut); white-space: nowrap; }
.nav-drop-menu a:hover { background: #1a19160a; color: var(--red); }

@media (max-width: 1100px) {
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .nav-tel { display: none; }
}

/* ---------- Footer (dark) ---------- */
.footer { background: var(--ink-900); color: var(--on-dark); padding-block: clamp(56px, 7vw, 96px) 40px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-on-dark); margin: 0 0 20px; font-weight: 500; }
.footer-col a:not(.btn) { display: block; color: #c4bdb1; font-size: 15.5px; padding: 7px 0; transition: color .2s; }
.footer-col a:not(.btn):hover { color: #fff; }
.footer-logo { height: 70px; width: auto; margin-bottom: 22px; }
.footer-cta { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -0.03em; max-width: 14ch; line-height: 1.05; margin: 0 0 24px; }
.footer-bottom {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px; color: #8d877c;
}
.footer-bottom .mono { font-family: var(--mono); letter-spacing: 0.04em; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* Veteran-owned badge */
.vet-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-text-mut);
  border: 1px solid var(--line-light-2);
  padding: 9px 15px; border-radius: 100px; white-space: nowrap;
}
.vet-star { color: var(--red); font-size: 13px; line-height: 1; }
.footer .vet-badge { color: #cdc6ba; border-color: var(--line-dark); margin-top: 22px; }
.footer .vet-star { color: var(--red-on-dark); }
.dark .vet-badge, .ink .vet-badge { color: #cdc6ba; border-color: var(--line-dark); }
.dark .vet-star, .ink .vet-star { color: var(--red-on-dark); }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.is-animated .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  html.is-animated .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .08s; }
  .reveal.d2 { transition-delay: .16s; }
  .reveal.d3 { transition-delay: .24s; }
  .reveal.d4 { transition-delay: .32s; }
}

/* ---------- Image slot defaults ---------- */
image-slot {
  background: var(--paper-dim);
  border-radius: var(--radius);
  display: block;
}
.dark image-slot, .ink image-slot { background: var(--ink-700); }

/* ---------- Static baked photo fill (replaces filled image-slots) ---------- */
.slot-fill { position: relative; overflow: hidden; display: block; background: var(--paper-dim); }
.dark .slot-fill, .ink .slot-fill { background: var(--ink-700); }
.slot-fill > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center center; }

/* striped svg placeholder helper */
.ph {
  background:
    repeating-linear-gradient(135deg, #00000008 0 2px, transparent 2px 11px),
    var(--paper-dim);
  border: 1px solid var(--line-light-2);
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: var(--ink-text-mut);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.dark .ph, .ink .ph {
  background:
    repeating-linear-gradient(135deg, #ffffff0a 0 2px, transparent 2px 11px),
    var(--ink-700);
  border-color: var(--line-dark);
  color: var(--muted-dark);
}

/* ---------- Misc ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--line-light-2);
  color: var(--ink-text-mut);
}
.dark .pill, .ink .pill { border-color: var(--line-dark); color: var(--muted-dark); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

.divider { height: 1px; background: var(--line-light); border: 0; margin: 0; }
.dark .divider, .ink .divider { background: var(--line-dark); }

/* shared section head + mono tag */
.sec-head { max-width: 760px; margin-bottom: clamp(44px, 5vw, 72px); }
.mono-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-text-mut); }
.dark .mono-tag, .ink .mono-tag { color: var(--muted-dark); }

/* ============================================================
   Shared page components (CTA, stats, quote, service detail)
   ============================================================ */

/* CTA band — charcoal */
.cta-band { background: var(--ink-900); color: var(--on-dark); padding-block: clamp(64px, 8vw, 120px); }
.cta-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 5vw, 80px); align-items: end; }
.cta-band .eyebrow { color: var(--red-on-dark); }
.cta-head { color: var(--on-dark); }
.cta-head .serif-em { color: var(--red-on-dark); }
.cta-side .lead { color: #c9c2b6; margin: 0 0 28px; max-width: 36ch; }
@media (max-width: 920px) { .cta-inner { grid-template-columns: 1fr; align-items: start; } }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 12px; }
.stat-num { font-size: clamp(2.8rem, 5vw, 4.4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; }
.stat-num .red { color: var(--red); }
.dark .stat-num .red, .ink .stat-num .red { color: var(--red-on-dark); }
.stat-label { font-size: 14.5px; line-height: 1.35; color: var(--ink-text-mut); max-width: 20ch; }
.dark .stat-label, .ink .stat-label { color: var(--muted-dark); }
@media (max-width: 920px) { .stats-row { grid-template-columns: 1fr 1fr; gap: 36px 28px; } }

/* Quote */
.quote-wrap { max-width: 980px; }
.quote { font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.14; margin: 18px 0 40px; }
.quote-by { display: flex; align-items: center; gap: 16px; }
.avatar { width: 58px; height: 58px; flex-shrink: 0; }
.quote-name { display: block; font-weight: 700; font-size: 17px; }
.quote-role { display: block; margin-top: 2px; color: var(--red); }

/* ----- Service detail page ----- */
.page-hero { padding-top: clamp(64px, 8vw, 120px); }
.svc-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.svc-hero-h { max-width: 13ch; }
.svc-hero-lead { max-width: 48ch; margin-top: 30px; }
.svc-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.svc-hero-media { position: relative; }
.svc-hero-media image-slot { width: 100%; height: auto; aspect-ratio: 4/5; }
.svc-tag { position: absolute; left: -20px; top: 26px; background: var(--red); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; padding: 10px 16px; border-radius: 100px; box-shadow: 0 18px 40px -18px #00000055; }
@media (max-width: 920px) { .svc-hero { grid-template-columns: 1fr; } .svc-hero-media { max-width: 440px; } .svc-tag { left: auto; right: 16px; } }

/* includes grid */
.includes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(4px, 1vw, 8px) clamp(36px, 6vw, 80px); }
.inc { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line-light-2); align-items: flex-start; }
.dark .inc, .ink .inc { border-color: var(--line-dark); }
.inc-num { font-family: var(--mono); font-size: 12px; color: var(--red); padding-top: 4px; flex-shrink: 0; }
.inc h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.inc p { font-size: 15.5px; margin: 0; color: var(--ink-text-mut); max-width: 40ch; }
.dark .inc p, .ink .inc p { color: var(--muted-dark); }
@media (max-width: 760px) { .includes { grid-template-columns: 1fr; } }

/* timeline */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 44px) clamp(28px, 4vw, 56px); }
.tl-step { border-top: 1px solid var(--line-dark); padding-top: 24px; }
.tl-n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--red-on-dark); }
.tl-step h3 { font-size: 1.3rem; font-weight: 600; margin: 16px 0 10px; letter-spacing: -0.02em; }
.tl-step p { font-size: 15px; color: var(--muted-dark); margin: 0; }
@media (max-width: 820px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

/* other services cross-links */
.cross { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2vw, 28px); }
.cross a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: clamp(26px, 3vw, 38px); border-radius: var(--radius); background: var(--paper-pure); border: 1px solid var(--line-light-2); transition: transform .4s var(--ease), border-color .3s; }
.cross a:hover { transform: translateY(-3px); border-color: var(--red-soft); }
.cross-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 10px; }
.cross h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; }
.cross .arr { font-size: 1.6rem; color: var(--ink-text-mut); transition: transform .4s var(--ease), color .3s; }
.cross a:hover .arr { transform: translateX(5px); color: var(--red); }
@media (max-width: 640px) { .cross { grid-template-columns: 1fr; } }

/* handle / don't-handle lists */
.handles { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.handle-h { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.handle-list { list-style: none; margin: 0; padding: 0; }
.handle-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line-light-2); font-size: 1.04rem; line-height: 1.42; }
.handle-list .mark { flex-shrink: 0; font-weight: 700; line-height: 1.5; }
.do .handle-h { color: var(--red); }
.do .mark { color: var(--red); }
.dont { background: var(--paper-dim); border-radius: var(--radius); padding: clamp(22px, 2.5vw, 32px); }
.dont .handle-h { color: var(--ink-text-mut); }
.dont .handle-list li { border-color: var(--line-light); color: var(--ink-text-mut); font-size: .98rem; }
.dont .handle-list li:first-child { border-top: 0; padding-top: 0; }
.dont .mark { color: #bdb7ac; }
@media (max-width: 820px) { .handles { grid-template-columns: 1fr; } }

/* scope / pricing cards (on dark) */
.scope-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); }
.scope-card { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.scope-card .mono-tag { color: var(--red-on-dark); margin-bottom: 14px; display: block; }
.scope-card h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 10px; letter-spacing: -.02em; color: var(--on-dark); }
.scope-card p { font-size: 14.5px; margin: 0; color: var(--muted-dark); line-height: 1.45; }
.scope-price { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; color: var(--on-dark); display: block; }
.scope-price small { font-size: .9rem; font-weight: 500; color: var(--muted-dark); letter-spacing: 0; }
@media (max-width: 760px) { .scope-cards { grid-template-columns: 1fr; } }
