:root {
  --black: #000000;
  --ink: #0d0d0d;
  --white: #ffffff;
  --g-100: #f2f2f2;
  --g-200: #e6e6e6;
  --g-300: #cccccc;
  --g-400: #bfbfbf;
  --g-600: #4d4d4d;
  --g-700: #333333;
  --g-800: #1f1f1f;
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--white);
  background: var(--black);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); letter-spacing: .03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: .04em; }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.2rem); letter-spacing: .06em; }
h4 { font-size: .95rem; letter-spacing: .08em; }

.nb { white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Sections: strict black / white ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-dark { background: var(--black); color: var(--white); }
.section-light { background: var(--white); color: var(--black); }
.section-dark .muted { color: var(--g-400); }
.section-light .muted { color: var(--g-600); }
.section-light .price small { color: var(--g-600); }
.section-dark .price small { color: var(--g-400); }
.section-dark + .section-dark { border-top: 1px solid var(--g-700); }

.eyebrow {
  display: block;
  margin-bottom: 18px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-dark .eyebrow { color: var(--g-400); }
.section-light .eyebrow { color: var(--g-600); }

.lede { font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 62ch; }
.rule { width: 56px; height: 2px; border: 0; margin: 0 0 28px; }
.section-dark .rule { background: var(--white); }
.section-light .rule { background: var(--black); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--black);
  border-bottom: 1px solid var(--g-700);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.brand-name { font-size: 1.15rem; font-weight: 700; letter-spacing: .16em; color: var(--white); }
.brand-sub { font-size: .62rem; font-weight: 500; letter-spacing: .24em; color: var(--g-400); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; white-space: nowrap;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--g-300); padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); border-bottom-color: var(--white); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--g-600); color: var(--white);
  font: 600 .75rem var(--font); letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 14px; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center; white-space: nowrap;
  font: 600 .8rem var(--font); letter-spacing: .12em; text-transform: uppercase;
  padding: 16px 28px; border: 2px solid; cursor: pointer;
  transition: background .15s, color .15s;
}
.section-dark .btn, .site-header .btn, .site-footer .btn { background: var(--white); color: var(--black); border-color: var(--white); }
.section-dark .btn:hover, .site-header .btn:hover { background: var(--black); color: var(--white); }
.section-dark .btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.section-dark .btn-outline:hover { background: var(--white); color: var(--black); }
.section-light .btn { background: var(--black); color: var(--white); border-color: var(--black); }
.section-light .btn:hover { background: var(--white); color: var(--black); }
.section-light .btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.section-light .btn-outline:hover { background: var(--black); color: var(--white); }
.nav .btn { padding: 12px 18px; font-size: .72rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(88px, 13vw, 160px) 0 clamp(72px, 10vw, 128px); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--g-800) 1px, transparent 1px), linear-gradient(90deg, var(--g-800) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to left, rgba(0,0,0,.9), transparent 65%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,.9), transparent 65%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 18ch; }
.page-hero { padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 7vw, 88px); }
.page-hero h1 { max-width: 20ch; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-2c { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
@media (min-width: 1100px) { .grid-2c { grid-template-columns: repeat(4, 1fr); } }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 6vw, 72px); }

.card { padding: 36px 30px; display: flex; flex-direction: column; }
.section-light .card { background: var(--g-100); border: 1px solid var(--g-200); color: var(--black); }
.section-dark .card { background: var(--ink); border: 1px solid var(--g-700); color: var(--white); }
.card .num { font-size: .75rem; font-weight: 700; letter-spacing: .14em; margin-bottom: 22px; }
.section-light .card .num { color: var(--g-600); }
.section-dark .card .num { color: var(--g-400); }
.card p:last-child { margin-bottom: 0; }
.card .link {
  margin-top: auto; padding-top: 18px; text-decoration: none; white-space: nowrap;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.card .link::after { content: " \2192"; }

.industry { border-top: 2px solid; padding-top: 22px; }
.section-dark .industry { border-color: var(--white); }
.section-light .industry { border-color: var(--black); }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; background: currentColor; }

/* ---------- Stat band ---------- */
.stat { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.stat-figure { font-size: clamp(4rem, 10vw, 7.5rem); font-weight: 700; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }

/* ---------- Service detail ---------- */
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.service-index { font-size: clamp(3rem, 7vw, 5rem); font-weight: 700; line-height: 1; margin-bottom: 18px; }
.section-light .service-index { color: var(--g-600); }
.section-dark .service-index { color: var(--g-400); }

/* ---------- Pricing ---------- */
.price-card { position: relative; }
.price-card h3 { min-height: 2.6em; }
.price { font-size: clamp(1.9rem, 2.6vw, 2.25rem); font-weight: 700; line-height: 1.1; margin: 6px 0 10px; white-space: nowrap; }
.price small { display: block; margin-top: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.cap { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; padding-bottom: 22px; }
.section-light .price-card .cap { color: var(--g-600); border-bottom: 1px solid var(--g-300); }
.price-card .checklist { margin-bottom: 28px; font-size: .95rem; }
.price-card .btn { margin-top: auto; }
.price-card.featured { background: var(--black) !important; color: var(--white) !important; border-color: var(--black) !important; }
.price-card.featured .num, .price-card.featured .cap { color: var(--g-400) !important; }
.price-card.featured .cap { border-bottom-color: var(--g-700) !important; }
.price-card.featured .btn { background: var(--white); color: var(--black); border-color: var(--white); }
.price-card.featured .btn:hover { background: var(--black); color: var(--white); }
.tag {
  position: absolute; top: -12px; left: 30px; background: var(--white); color: var(--black);
  border: 1px solid var(--black); font-size: .65rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: 4px 10px; white-space: nowrap;
}

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 24ch; margin-left: auto; margin-right: auto; }
.cta .lede { margin: 0 auto; }
.cta .btn-row { justify-content: center; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--g-300); }
.contact-list .label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--g-600); margin-bottom: 4px; }
.contact-list a { font-size: 1.1rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.contact-list a:hover { text-decoration: underline; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; color: var(--black); }
.field label .req { color: var(--g-600); }
.field input, .field textarea {
  width: 100%; font: 400 1rem var(--font); color: var(--black); background: var(--white);
  border: 1px solid var(--g-600); border-radius: 0; padding: 14px 16px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--black); outline-offset: 1px; border-color: var(--black); }
.field .err { display: block; font-size: .8rem; font-weight: 600; color: var(--black); margin-top: 6px; min-height: 0; }
.field.invalid input, .field.invalid textarea { border: 2px solid var(--black); }
.form-status { grid-column: 1 / -1; font-weight: 600; margin: 0; }
.form-status.ok { background: var(--black); color: var(--white); padding: 18px 20px; }
.form-status.bad { border: 2px solid var(--black); color: var(--black); padding: 14px 18px; }
.form .btn[disabled] { opacity: .6; cursor: wait; }

.schedule-box { background: var(--black); color: var(--white); padding: 36px 30px; margin-top: 8px; }
.schedule-box h3 { color: var(--white); }
.schedule-box p { color: var(--g-400); }
.schedule-box .btn { background: var(--white); color: var(--black); border-color: var(--white); }
.schedule-box .btn:hover { background: var(--black); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); border-top: 1px solid var(--g-700); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 36px; margin-bottom: 44px; }
.site-footer h4 { color: var(--white); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--g-300); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .brand-sub { display: block; }
.disclaimer { border-top: 1px solid var(--g-700); padding-top: 26px; font-size: .8rem; line-height: 1.6; color: var(--g-400); }
.disclaimer p { max-width: 90ch; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--g-700); padding: 8px var(--gutter) 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--g-800); }
  .nav-links a { display: block; padding: 16px 0; border-bottom: 0; }
  .nav-links li:last-child { border-bottom: 0; padding-top: 16px; }
  .nav-links .btn { display: block; }
  .service { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stat { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .price-card h3 { min-height: 0; }
  .card { padding: 30px 22px; }
}
.price-card.featured .price small { color: var(--g-400) !important; }

/* ---------- Estimator ---------- */
.est { margin-top: 32px; display: grid; gap: 22px; }
.est-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.est-field > label:not(.opt), .est-field legend { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 10px; padding: 0; }
.est input[type=number], .est select {
  width: 100%; font: 500 1rem var(--font); color: var(--white); background: var(--black);
  border: 1px solid var(--g-600); border-radius: 0; padding: 14px 16px; appearance: none; -webkit-appearance: none;
}
.est select { background-image: linear-gradient(45deg, transparent 50%, var(--white) 50%), linear-gradient(135deg, var(--white) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.est input:focus, .est select:focus { outline: 2px solid var(--white); outline-offset: 1px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--g-700); margin-bottom: 8px; cursor: pointer; color: var(--g-300); }
.opt:has(input:checked) { border-color: var(--white); color: var(--white); }
.opt input { accent-color: var(--white); margin-top: 4px; flex: none; }
.est-result { background: var(--white); color: var(--black); padding: clamp(28px, 4vw, 44px); position: sticky; top: 100px; }
.est-result .eyebrow { color: var(--g-600); }
.est-tier { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; margin-bottom: 10px; text-wrap: balance; }
.est-price { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1.05; margin-bottom: 24px; white-space: nowrap; }
.est-price small { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--g-600); }
.est-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 20px; padding: 18px 0; border-top: 1px solid var(--g-300); border-bottom: 1px solid var(--g-300); }
.est-stats dt { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--g-600); margin-bottom: 4px; }
.est-stats dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.est-note { color: var(--g-600); font-size: .95rem; }
.est-result .btn { background: var(--black); color: var(--white); border-color: var(--black); margin-top: 8px; }
.est-result .btn:hover { background: var(--white); color: var(--black); }
.est-fine { font-size: .75rem; color: var(--g-600); margin: 16px 0 0; }
@media (max-width: 960px) { .est-result { position: static; } }
