:root {
  --paper: #f4f1ea;
  --ink: #4b4f50;
  --muted: #747978;
  --line: rgba(75, 79, 80, 0.18);
  --panel: rgba(255, 255, 255, 0.68);
  --green: #1fb36b;
  --green-dark: #0d7b54;
  --amber: #d89b2b;
  --steel: #426a77;
  --signal: #17221d;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 18%, rgba(31, 179, 107, 0.16), transparent 34%),
    linear-gradient(135deg, #f6f1e6 0%, #eef1e9 44%, #edf3f0 100%);
  font-family: "Arial Narrow", "Avenir Next Condensed", "Roboto Condensed", "Segoe UI", sans-serif;
  font-stretch: condensed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(23, 27, 30, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 27, 30, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

#signal-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.42;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
  color: #4b4f50;
  transform: scaleY(0.88);
  transform-origin: left center;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 3px solid var(--ink);
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 42%, var(--green) 42% 58%, transparent 58%),
    linear-gradient(var(--amber), var(--amber));
  box-shadow: 6px 6px 0 rgba(23, 27, 30, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  gap: 64px;
  align-items: end;
  max-width: var(--max);
  width: 100%;
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 92px 24px 64px;
}

.hero-copy {
  min-width: 0;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green-dark);
  font-family: "Menlo", "Consolas", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  width: 100%;
  max-width: 820px;
  margin-bottom: 26px;
  color: #484c4d;
  font-family: "Arial Narrow", "Avenir Next Condensed", "Roboto Condensed", sans-serif;
  font-size: clamp(52px, 8.5vw, 112px);
  font-weight: 820;
  line-height: 0.9;
  transform: scaleY(0.78);
  transform-origin: left center;
  overflow-wrap: anywhere;
}

h2 {
  width: 100%;
  max-width: 780px;
  margin-bottom: 22px;
  color: #4f5354;
  font-family: "Arial Narrow", "Avenir Next Condensed", "Roboto Condensed", sans-serif;
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 820;
  line-height: 0.95;
  transform: scaleY(0.84);
  transform-origin: left center;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.lead {
  max-width: 690px;
  margin-bottom: 34px;
  color: #333b38;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 740;
  min-width: 0;
  text-align: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 rgba(23, 27, 30, 0.12);
}

.button.primary {
  color: white;
  background: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.42);
}

.hero-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.hero-panel > div,
.problem-grid article,
.service-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(23, 27, 30, 0.08);
}

.hero-panel > div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  min-width: 0;
  padding: 18px;
}

.hero-panel p {
  margin: 0;
  color: #303633;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.panel-number {
  color: var(--amber);
  font-family: "Menlo", "Consolas", monospace;
  font-weight: 800;
}

.strip {
  display: flex;
  gap: 10px;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 64px;
  overflow-x: auto;
}

.strip span {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--steel);
  font-family: "Menlo", "Consolas", monospace;
  font-size: 12px;
  font-weight: 700;
}

.section {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 78px 24px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.problem-grid,
.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.problem-grid article,
.service-list article {
  padding: 24px;
}

.problem-grid p,
.service-list p,
.boundaries p,
.contact p {
  color: var(--muted);
  line-height: 1.6;
}

.services {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-list span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--green-dark);
  font-family: "Menlo", "Consolas", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-links.main-directions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 18px 60px rgba(23, 27, 30, 0.08);
}

.main-direction {
  min-height: 340px;
  gap: 22px;
}

.landing-card span {
  color: var(--green-dark);
  font-family: "Menlo", "Consolas", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-card p {
  color: var(--muted);
  line-height: 1.55;
}

.landing-card strong {
  color: var(--steel);
}

.direction-subnav {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.direction-subnav p {
  margin: 0;
  color: var(--steel);
  font-family: "Menlo", "Consolas", monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.direction-subnav a {
  color: var(--steel);
  font-weight: 740;
  line-height: 1.35;
}

.direction-subnav a:hover,
.direction-link:hover {
  color: var(--ink);
}

.direction-link {
  color: var(--steel);
  font-weight: 820;
}

.page-hero {
  min-height: auto;
  padding-top: 92px;
  padding-bottom: 58px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(46px, 7vw, 92px);
}

.content-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.content-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(23, 27, 30, 0.08);
}

.content-panel p,
.content-panel li {
  color: var(--muted);
  line-height: 1.6;
}

.content-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
}

.content-list li::before {
  position: absolute;
  top: 19px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--green);
  content: "";
}

.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--steel);
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline strong {
  font-size: 20px;
}

.timeline span {
  color: var(--muted);
  line-height: 1.6;
}

.case-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.case-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-columns li {
  position: relative;
  padding: 18px 0 18px 34px;
  border-bottom: 1px solid var(--line);
  color: #303633;
  line-height: 1.5;
}

.case-columns li::before {
  position: absolute;
  top: 22px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--amber);
  content: "";
}

.boundaries {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  border-top: 1px solid var(--line);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
  max-width: var(--max);
  margin: 36px auto 78px;
  padding: 34px 24px;
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.contact-owner {
  margin: 20px 0 0;
  color: var(--steel);
  font-family: "Menlo", "Consolas", monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 42px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 940px) {
  .hero,
  .boundaries,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 74px;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-panel > div {
    grid-template-columns: 1fr;
  }

  .problem-grid,
  .service-list,
  .landing-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    padding: 14px 18px;
  }

  .nav {
    display: none;
  }

  .hero,
  .section,
  .strip,
  .contact,
  .footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .strip {
    max-width: 100vw;
    margin-right: 0;
    margin-left: 0;
    overscroll-behavior-x: contain;
  }

  .strip span {
    max-width: calc(100vw - 36px);
  }

  .hero {
    padding-top: 60px;
    padding-bottom: 44px;
  }

  .hero-panel,
  .problem-grid,
    .service-list,
    .landing-links,
    .case-columns {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }
}
