/* Vanguard Production & Management — site styles
   Brand: Onyx #0B0B0D · Charcoal #1A1A1D · Slate #3B4351 · Silver #C7CCD1 · Off-white #F5F6F7 · Montserrat */

:root {
  --onyx: #0B0B0D;
  --charcoal: #1A1A1D;
  --slate: #3B4351;
  --silver: #C7CCD1;
  --offwhite: #F5F6F7;
  --white: #FFFFFF;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--onyx);
  color: var(--offwhite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.section { padding: 112px 0; }
.eyebrow { font-size: 12px; letter-spacing: 0.24em; font-weight: 600; text-transform: uppercase; color: var(--silver); }
.light .eyebrow { color: var(--slate); }
.h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; font-weight: 300; margin-top: 16px; max-width: 780px; }
.lead { font-size: 17px; margin-top: 20px; max-width: 700px; color: var(--silver); }
.light { background: var(--offwhite); color: var(--onyx); }
.light .lead { color: var(--slate); }
.white { background: var(--white); color: var(--onyx); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--offwhite); color: var(--onyx); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 28px;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--offwhite); color: var(--onyx); }
.btn-primary:hover { background: var(--silver); }
.btn-ghost { background: transparent; color: var(--offwhite); border-color: var(--slate); }
.btn-ghost:hover { border-color: var(--offwhite); }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }

/* Header */
.header { border-bottom: 1px solid var(--charcoal); position: sticky; top: 0; background: rgba(11,11,13,.92); backdrop-filter: blur(8px); z-index: 50; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 28px; width: auto; }
.brand-text { display: flex; flex-direction: column; border-left: 1px solid var(--slate); padding-left: 14px; line-height: 1.3; }
.brand-name { font-size: 17px; letter-spacing: 0.32em; font-weight: 400; }
.brand-sub { font-size: 8px; letter-spacing: 0.3em; color: var(--silver); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 12px; letter-spacing: 0.16em; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:not(.btn):hover { color: var(--silver); }
.nav .btn { min-height: 44px; padding: 12px 20px; font-size: 12px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--slate); color: var(--offwhite); width: 44px; height: 44px; cursor: pointer; }

/* Hero */
.hero { padding: 112px 0 104px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-end; }
.hero-copy { flex: 999 1 560px; min-width: 0; }
.hero h1 { font-size: clamp(38px, 5.4vw, 58px); line-height: 1.08; font-weight: 300; letter-spacing: -0.01em; margin-top: 28px; }
.hero h1 strong { font-weight: 600; }
.hero .lead { font-size: 19px; margin-top: 32px; max-width: 620px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.stat-card { flex: 1 1 300px; min-width: 0; background: var(--charcoal); padding: 32px; }
.stat-label { font-size: 11px; letter-spacing: 0.22em; font-weight: 500; color: var(--silver); }
.stat-num { font-size: 54px; font-weight: 300; line-height: 1; margin-top: 14px; }
.stat-note { font-size: 14px; color: var(--silver); margin-top: 14px; }
.rule { height: 1px; background: var(--slate); margin: 24px 0; }

/* Services */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 56px; }
.card { background: var(--white); border: 1px solid var(--silver); padding: 36px; }
.card-num { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: var(--slate); }
.card h3 { font-size: 22px; font-weight: 600; margin-top: 14px; }
.card p { font-size: 15px; color: var(--slate); margin-top: 12px; }
.card ul { margin: 24px 0 0; padding-left: 18px; font-size: 15px; display: grid; gap: 8px; }

/* Results */
.results .wrap > div { display: flex; flex-wrap: wrap; gap: 64px; }
.results-copy { flex: 1 1 340px; min-width: 0; }
.results-copy .meta { font-size: 15px; color: var(--slate); margin-top: 8px; }
.results-copy .body { font-size: 16px; margin-top: 28px; }
.results-copy .fine { font-size: 13px; color: var(--slate); margin-top: 20px; }
.results-table { flex: 999 1 560px; min-width: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
thead tr { border-bottom: 2px solid var(--onyx); }
th, td { padding: 18px 12px; text-align: right; }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
thead th { font-weight: 600; padding-top: 14px; padding-bottom: 14px; }
tbody tr { border-bottom: 1px solid var(--silver); }
tbody tr:last-child { border-bottom: 0; }
tbody th { font-weight: 400; }
td.before { color: var(--slate); }
td.after, td.change { font-weight: 600; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--slate); border: 1px solid var(--slate); margin-top: 56px; }
.step { background: var(--onyx); padding: 32px; }
.step-num { font-size: 34px; font-weight: 300; color: var(--silver); }
.step h3 { font-size: 18px; font-weight: 600; margin-top: 16px; }
.step p { font-size: 15px; color: var(--silver); margin-top: 10px; }

/* Builder */
.builder { background: var(--charcoal); }
.builder-layout { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 48px; }
.builder-steps { flex: 1 1 220px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; }
.builder-steps button {
  width: 100%; text-align: left; font: inherit; font-size: 14px; font-weight: 500;
  background: transparent; color: var(--silver); border: 0; border-left: 2px solid var(--slate);
  padding: 12px 16px; min-height: 44px; cursor: pointer; display: flex; gap: 14px; align-items: center;
}
.builder-steps button span { font-size: 12px; letter-spacing: 0.1em; }
.builder-steps button[aria-current="step"] { background: var(--onyx); color: var(--offwhite); border-left-color: var(--offwhite); }
.builder-panel { flex: 999 1 640px; min-width: 0; background: var(--onyx); padding: 44px; min-height: 520px; display: flex; flex-direction: column; }
.builder-panel h3 { font-size: 24px; font-weight: 500; }
.builder-panel .hint { font-size: 15px; color: var(--silver); margin-top: 8px; }
.panel[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.chips.stack { flex-direction: column; align-items: stretch; max-width: 480px; }
.chip {
  font: inherit; font-size: 15px; font-weight: 500; text-align: left;
  background: transparent; color: var(--offwhite); border: 1px solid var(--slate);
  padding: 12px 20px; min-height: 44px; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--silver); }
.chip[aria-pressed="true"] { background: var(--offwhite); color: var(--onyx); border-color: var(--offwhite); }
.group-label { font-size: 12px; letter-spacing: 0.16em; font-weight: 600; color: var(--silver); margin-top: 28px; }
.group-label + .chips { margin-top: 12px; }
.summary { margin-top: 24px; border: 1px solid var(--slate); padding: 20px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; font-size: 14px; }
.summary dt { font-size: 11px; letter-spacing: 0.16em; color: var(--silver); font-weight: 600; }
.summary dd { margin: 4px 0 0; }
.builder-nav { margin-top: auto; padding-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.builder-nav .count { font-size: 13px; color: var(--silver); }
.builder-nav .btns { display: flex; gap: 12px; }

/* Forms */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 12px; letter-spacing: 0.14em; font-weight: 600; color: var(--silver); text-transform: uppercase; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea {
  font: inherit; font-size: 16px; letter-spacing: 0; font-weight: 400; text-transform: none;
  color: var(--offwhite); background: var(--charcoal); border: 1px solid var(--slate);
  padding: 14px; min-height: 48px; width: 100%;
}
.builder .field input, .builder .field textarea { background: var(--charcoal); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--silver); outline: none; }
.hidden-field { display: none; }
.form-note { font-size: 13px; color: var(--silver); margin-top: 16px; }

/* About */
.about .wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.about-photo { flex: 1 1 320px; max-width: 420px; aspect-ratio: 4 / 5; background: var(--silver); display: flex; align-items: center; justify-content: center; color: var(--slate); font-size: 13px; letter-spacing: 0.16em; font-weight: 600; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { flex: 999 1 520px; min-width: 0; }
.about-copy p { font-size: 17px; margin-top: 18px; }
.about-copy p:first-of-type { margin-top: 24px; }

/* Contact */
.contact .wrap { display: flex; flex-wrap: wrap; gap: 64px; }
.contact-copy { flex: 1 1 340px; min-width: 0; }
.contact-details { margin-top: 36px; display: grid; gap: 10px; font-size: 15px; color: var(--silver); }
.contact-details a { color: var(--offwhite); text-decoration: none; }
.contact form { flex: 999 1 520px; min-width: 0; }
.contact .fields { margin-top: 0; }

/* Footer */
.footer { border-top: 1px solid var(--charcoal); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; }
.footer img { height: 56px; width: auto; }
.footer p { font-size: 13px; color: var(--silver); }

/* Thank-you page */
.thanks { min-height: 70vh; display: flex; align-items: center; }
.thanks h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 300; margin-top: 24px; }
.thanks p { font-size: 17px; color: var(--silver); margin-top: 16px; max-width: 560px; }

/* Mobile */
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--onyx); border-bottom: 1px solid var(--charcoal); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 32px 24px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--charcoal); }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
  .section { padding: 80px 0; }
  .hero { padding: 72px 0; }
  .builder-panel { padding: 28px 22px; }
  .wrap { padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
section[id], main[id] { scroll-margin-top: 84px; }
