/* Option D, "Signal". In House Technology & Consulting.
   Ink-dark field, Roof Red as the one accent, Geist for type.
   Spacing on a 4 px grid. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/geist-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  /* Ink ramp (unslop tokens, dark "Ink", tuned to the hero surface) */
  --bg-deep: #07090f;
  --bg: #0b0e15;
  --card: #11151e;
  --raised: #1a1f2a;
  --raised-2: #232937;
  --line: rgba(238, 240, 245, 0.09);
  --line-strong: rgba(238, 240, 245, 0.16);
  --text: #eef0f5;
  --text-2: #a7adbb;
  --muted: #8a92a4;

  /* Brand */
  --accent: #dd1b27;        /* Roof Red, primary action only */
  --accent-hover: #c4151f;
  --bar-a: #9aa1b1;         /* chart, New York City */
  --bar-b: #626b80;         /* chart, Chicago */

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
  --gutter: 32px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 500;
  color: var(--text);
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 8px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.label,
.index,
.stamp,
.product-kind {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.01em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--raised);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-secondary:hover { background: var(--raised-2); }
.btn-small { height: 36px; padding: 0 16px; font-size: 14px; }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 32px; height: 32px; }
.brand-name { font-size: 15px; font-weight: 500; line-height: 20px; }
.site-nav ul { display: flex; gap: 24px; }
.site-nav a,
.menu-link {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 150ms var(--ease);
}
.site-nav a:hover,
.menu-link:hover { color: var(--text); }
.menu-link { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: min(calc(100svh - 73px), 880px);
  overflow: hidden;
}
.hero-visual {
  position: absolute;
  inset: 0;
  background: var(--bg) url("assets/hero-poster.svg") center 60% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 28%, #000 66%), linear-gradient(180deg, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 28%, #000 66%), linear-gradient(180deg, #000 80%, transparent);
  mask-composite: intersect;
}
.hero-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.hero-visual.is-live canvas { opacity: 1; }

.hero-inner {
  position: relative;
  padding-top: 96px;
  padding-bottom: 128px;
}
.hero-tagline {
  font-size: 18px;
  line-height: 28px;
  color: var(--text-2);
  margin-bottom: 20px;
}
.hero h1 {
  max-width: 11ch;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero-lede {
  max-width: 36rem;
  margin-top: 32px;
  font-size: 19px;
  line-height: 30px;
  color: var(--text-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.hero-fine {
  margin-top: 16px;
  max-width: 36rem;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section { padding: 128px 0 0; }
.section h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.section-head {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}

/* Services */
.service {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service-head { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-content: start; }
.service-head .index { grid-row: 1; padding-top: 6px; }
.service-head h3 { grid-column: 2; font-size: 26px; line-height: 32px; letter-spacing: -0.01em; }
.service-head p { grid-column: 2; margin-top: 12px; color: var(--text-2); }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; padding-top: 4px; }
.ticks li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 1px;
  background: var(--muted);
}

/* Ways to work */
.ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.way {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
}
.way + .way { border-left: 1px solid var(--line); }
.way h3 { font-size: 26px; line-height: 32px; letter-spacing: -0.01em; }
.way p { color: var(--text-2); }
.way .best-when {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.best-when .label { display: block; margin-bottom: 4px; }

/* ---------- FirstKnock ---------- */

.product-panel {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  padding: 48px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.product-copy { display: flex; flex-direction: column; align-items: flex-start; }
.product .product-kind { margin-bottom: 8px; }
.product h2 { font-size: clamp(44px, 5.2vw, 64px); letter-spacing: -0.03em; line-height: 1; }
.product-lede { margin-top: 20px; font-size: 20px; line-height: 30px; color: var(--text); }
.product-copy > p:not(.product-lede):not(.product-kind) { margin-top: 16px; color: var(--text-2); }
.product-status {
  width: 100%;
  margin: 32px 0;
  border-top: 1px solid var(--line);
}
.product-status div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.product-status dt { font-family: var(--mono); font-size: 13px; line-height: 24px; color: var(--muted); }
.product-status dd { margin: 0; font-size: 15px; line-height: 24px; }

.fk-chart {
  margin: 0;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  align-self: start;
}
.fk-chart table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}
.fk-chart caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.fk-chart thead th {
  padding-bottom: 12px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.fk-chart .c-nyc { width: 38%; text-align: right; }
.fk-chart .c-trade { width: 24%; text-align: center; }
.fk-chart .c-chi { width: 38%; text-align: left; }
.fk-chart thead .c-nyc { padding-right: 8px; }
.fk-chart thead .c-chi { padding-left: 8px; }
.fk-chart tbody th {
  padding: 8px 8px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 400;
  color: var(--text-2);
}
.fk-chart tbody td { padding: 8px 0; white-space: nowrap; }
.fk-chart tbody th,
.fk-chart tbody td { height: 52px; }
.fk-chart tbody tr { transition: background-color 150ms var(--ease); }
.fk-chart tbody tr:hover { background: var(--raised); }
.fk-chart tbody tr:hover th { color: var(--text); }
.fk-chart .num {
  display: inline-block;
  min-width: 3ch;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 16px;
  color: var(--text);
  vertical-align: middle;
}
.fk-chart .c-nyc .num { margin-right: 8px; text-align: right; }
.fk-chart .c-chi .num { margin-left: 8px; text-align: left; }
.fk-chart .bar {
  display: inline-block;
  height: 12px;
  vertical-align: middle;
  border-radius: 2px;
  width: calc(var(--v, 0) / 261 * 76%);
  min-width: 2px;
  transition: transform 640ms var(--ease);
}
.fk-chart .c-nyc .bar { background: var(--bar-a); transform-origin: right center; }
.fk-chart .c-chi .bar { background: var(--bar-b); transform-origin: left center; }
.fk-chart tbody tr:hover .bar { background: var(--text); }

/* One scale for both markets: value / 261 (largest count). */
.r-cleaning .c-nyc { --v: 261; } .r-cleaning .c-chi { --v: 48; }
.r-pest .c-nyc { --v: 216; }     .r-pest .c-chi { --v: 50; }
.r-openings .c-nyc { --v: 126; } .r-openings .c-chi { --v: 141; }
.r-training .c-nyc { --v: 113; } .r-training .c-chi { --v: 21; }
.r-hood .c-nyc { --v: 89; }      .r-hood .c-chi { --v: 3; }
.r-plumbing .c-nyc { --v: 79; }  .r-plumbing .c-chi { --v: 13; }
.r-hvac .c-nyc { --v: 73; }      .r-hvac .c-chi { --v: 7; }

/* Bars grow in when the chart first enters view (js/chart.js). */
.fk-chart.is-pending .bar { transform: scaleX(0); }
.fk-chart tbody tr:nth-child(2) .bar { transition-delay: 40ms; }
.fk-chart tbody tr:nth-child(3) .bar { transition-delay: 80ms; }
.fk-chart tbody tr:nth-child(4) .bar { transition-delay: 120ms; }
.fk-chart tbody tr:nth-child(5) .bar { transition-delay: 160ms; }
.fk-chart tbody tr:nth-child(6) .bar { transition-delay: 200ms; }
.fk-chart tbody tr:nth-child(7) .bar { transition-delay: 240ms; }
.fk-chart .stamp {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 18px;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: none;
}
.step {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.step .index { display: block; margin-bottom: 16px; }
.step h3 { font-size: 20px; line-height: 28px; margin-bottom: 12px; }
.step p { font-size: 16px; line-height: 26px; color: var(--text-2); }

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: start;
}
.about-copy h2 { margin-bottom: 32px; }
.about-lead { font-size: 20px; line-height: 32px; color: var(--text); }
.about-copy p + p { margin-top: 20px; color: var(--text-2); }
.facts { border-top: 1px solid var(--line); margin-top: 8px; }
.facts li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 24px;
}
.facts .label { display: block; margin-bottom: 4px; }

/* ---------- Contact ---------- */

.contact { padding-bottom: 128px; }
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}
.contact-copy h2 { margin-bottom: 24px; }
.contact-copy p { color: var(--text-2); }
.contact-mail { margin-top: 24px; }
.contact-mail a,
.form-fine a,
.footer-meta a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 150ms var(--ease);
}
.contact-mail a:hover,
.form-fine a:hover,
.footer-meta a:hover { text-decoration-color: var(--text); }

.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; line-height: 20px; color: var(--text); }
.optional { color: var(--muted); font-size: 13px; margin-left: 4px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 22px;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.field select { appearance: auto; }
.field textarea { resize: vertical; min-height: 144px; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(238, 240, 245, 0.28); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 1px;
  border-color: transparent;
  border-radius: 8px;
}
.trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding-top: 4px;
}
.form-fine { font-size: 14px; line-height: 20px; color: var(--text-2); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 48px 0 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
}
.footer-nav ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 32px; }
.footer-nav a { font-size: 15px; color: var(--text-2); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }
.footer-meta { display: grid; gap: 8px; font-size: 15px; line-height: 22px; color: var(--text-2); }
.footer-note { color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .site-nav { display: none; }
  .menu-link { display: inline; }
  .product-panel { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}

@media (max-width: 860px) {
  .section-head,
  .service,
  .about,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { gap: 16px; }
  .about, .contact-grid { gap: 40px; }
  .ways { grid-template-columns: 1fr; }
  .way + .way { border-left: 0; border-top: 1px solid var(--line); }
  .ticks { grid-template-columns: 1fr; gap: 12px; }
  .service { gap: 24px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .header-cta { display: none; }
  .header-row { gap: 16px; height: 64px; }
  .brand-name { font-size: 14px; }

  .hero { flex-direction: column; min-height: 0; }
  .hero-inner { padding-top: 48px; padding-bottom: 0; }
  .hero h1 { font-size: 40px; line-height: 1.06; letter-spacing: -0.02em; }
  .hero-tagline { font-size: 16px; line-height: 24px; margin-bottom: 16px; }
  .hero-lede { margin-top: 24px; font-size: 17px; line-height: 28px; }
  .hero-actions { margin-top: 32px; }
  .hero-visual {
    position: relative;
    order: 2;
    inset: auto;
    width: 100%;
    height: 280px;
    margin-top: 16px;
    background-size: auto 180%;
    background-position: 62% 92%;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent);
  }

  .section { padding-top: 96px; }
  .section h2 { font-size: 34px; }
  .service-head { grid-template-columns: 40px 1fr; column-gap: 8px; }
  .service-head h3, .way h3 { font-size: 22px; line-height: 28px; }
  .way { padding: 24px; }
  .product-panel { padding: 24px; gap: 40px; border-radius: 16px; }
  .product h2 { font-size: 44px; }
  .fk-chart { padding: 16px 12px; margin: 0 -12px; border-radius: 12px; }
  .fk-chart .c-nyc, .fk-chart .c-chi { width: 36%; }
  .fk-chart .c-trade { width: 28%; }
  .fk-chart tbody th { padding: 8px 4px; font-size: 12px; }
  .fk-chart .bar { width: calc(var(--v, 0) / 261 * 62%); height: 10px; }
  .steps { grid-template-columns: 1fr; row-gap: 40px; }
  .contact { padding-bottom: 96px; }
  .contact-form { grid-template-columns: 1fr; padding: 20px; }
  .footer-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .fk-chart.is-pending .bar { transform: none; }
}

/* ---------- Secondary pages (privacy, form results, 404) ---------- */

.page { padding: 96px 0 128px; }
.page .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.page h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; margin: 12px 0 20px; }
.page .page-lede { font-size: 19px; line-height: 30px; color: var(--text-2); }
.page .page-lede a, .prose a { color: var(--text); text-underline-offset: 3px; }
.page .page-actions { margin-top: 32px; }
.prose h2 { font-size: 20px; line-height: 28px; margin: 40px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose p { margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 500; }

@media (max-width: 720px) {
  .page { padding: 56px 0 96px; }
  .page h1 { font-size: 34px; }
}

/* Chart numbers: the real value stays readable for assistive technology,
   print and reader views; only the aria-hidden copy counts up (js/chart.js). */
.num-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media print {
  .num-tick { display: none; }
  .num-sr { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
}
