:root {
  --background: #ffffff;
  --foreground: #000000;
  --muted: #f5f5f5;
  --muted-foreground: #525252;
  --border-light: #e5e5e5;
  --font: "Geist", "Helvetica Neue", Helvetica, sans-serif;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--foreground);
  background:
    linear-gradient(#00000008 1px, transparent 1px),
    linear-gradient(90deg, #00000006 1px, transparent 1px),
    var(--background);
  background-size: 48px 48px;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.025;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
input,
textarea {
  font: inherit;
}

strong,
b {
  font-weight: 600;
}

:focus-visible {
  outline: 3px solid var(--foreground);
  outline-offset: 3px;
}

::selection {
  color: var(--background);
  background: var(--foreground);
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--foreground);
  color: var(--background);
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  min-height: 76px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 2px solid var(--foreground);
  backdrop-filter: blur(10px);
}

.brand,
.header-cta,
.nav a,
.button,
.section-kicker,
.eyebrow,
.problem-grid span,
.service-list span,
.timeline span,
.site-footer {
  font-family: var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  font-size: 0.75rem;
  font-weight: 600;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--background);
  background: var(--foreground);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 1.7vw, 1.45rem);
}

.nav a {
  padding: 0.7rem 0;
  border-bottom: 2px solid transparent;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav a:hover,
.nav a.is-active {
  text-decoration: none;
  border-bottom-color: var(--foreground);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  color: var(--background);
  background: var(--foreground);
  border: 2px solid var(--foreground);
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
}

.header-cta:hover {
  color: var(--foreground);
  background: var(--background);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--foreground);
  background: var(--background);
  border: 2px solid var(--foreground);
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  content: "";
}

.nav-toggle-line::before {
  transform: translateY(-7px);
}

.nav-toggle-line::after {
  transform: translateY(5px);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 76px);
  padding: clamp(3.75rem, 6vw, 5.9rem) 0 clamp(3rem, 4.8vw, 4.8rem);
  border-bottom: 8px solid var(--foreground);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  font-size: 0.76rem;
  font-weight: 600;
}

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

h1,
h2,
h3 {
  font-family: var(--font);
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 1.35rem;
  font-size: clamp(3.55rem, 6.25vw, 6.75rem);
  font-weight: 600;
  line-height: 0.92;
}

.hero-subhead {
  max-width: 720px;
  margin-bottom: 1.6rem;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.35;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.15rem;
  border: 2px solid var(--foreground);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: color 100ms linear, background-color 100ms linear, border-color 100ms linear;
}

.button::after {
  margin-left: 0.85rem;
  content: "->";
}

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

.button-primary:hover,
.button-secondary:hover {
  color: var(--foreground);
  background: var(--background);
  text-decoration: none;
}

.button-secondary {
  background: transparent;
}

.button-secondary:hover {
  color: var(--background);
  background: var(--foreground);
}

.button-inverted {
  color: var(--foreground);
  background: var(--background);
  border-color: var(--background);
}

.button-inverted:hover {
  color: var(--background);
  background: var(--foreground);
  outline: 2px solid var(--background);
  text-decoration: none;
}

.section {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 9rem) 0;
  border-bottom: 4px solid var(--foreground);
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(270px, 0.55fr);
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: start;
  margin-bottom: clamp(2.4rem, 5vw, 4.5rem);
}

.section-heading.wide {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.48fr);
}

.problems .section-heading.wide {
  grid-template-columns: minmax(0, 1fr);
}

h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.8rem, 6vw, 6.2rem);
  font-weight: 600;
  line-height: 0.98;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  font-weight: 600;
  line-height: 1;
}

.section-heading p {
  color: var(--muted-foreground);
  font-size: 1.15rem;
  line-height: 1.45;
}

.problem-grid,
.solution-grid {
  display: grid;
  gap: 0;
}

.problem-grid {
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--foreground);
  border-left: 2px solid var(--foreground);
}

.problem-grid article {
  min-height: 255px;
  padding: 1.3rem;
  background: var(--background);
  border-right: 2px solid var(--foreground);
  border-bottom: 2px solid var(--foreground);
  transition: color 100ms linear, background-color 100ms linear;
}

.problem-grid article:hover,
.solution-grid li:hover {
  color: var(--background);
  background: var(--foreground);
}

.problem-grid span {
  display: block;
  margin-bottom: 2.8rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.problem-grid p,
.service-list p,
.service-list li,
.timeline p {
  color: currentColor;
  opacity: 0.72;
}

.inverted {
  color: var(--background);
  background: var(--foreground);
}

.stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.stats-lede {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2.7rem, 6.5vw, 7.5rem);
  font-weight: 600;
  line-height: 0.9;
}

.outcome-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--background);
  border-left: 1px solid var(--background);
}

.outcome-list span {
  min-height: 130px;
  padding: 1rem;
  border-right: 1px solid var(--background);
  border-bottom: 1px solid var(--background);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 600;
  line-height: 1.2;
}

.solution-grid {
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 2px solid var(--foreground);
  border-left: 2px solid var(--foreground);
}

.solution-grid li {
  min-height: 190px;
  padding: 1.25rem;
  background: var(--background);
  border-right: 2px solid var(--foreground);
  border-bottom: 2px solid var(--foreground);
  font-size: clamp(1.55rem, 3vw, 3rem);
  font-weight: 600;
  line-height: 1;
  transition: color 100ms linear, background-color 100ms linear;
}

.service-list ul {
  padding: 0;
  margin: 1rem 0 1.5rem;
  list-style: none;
}

.service-list li {
  padding: 0.35rem 0;
  border-top: 1px solid currentColor;
  font-size: 1rem;
}

.services {
  background: var(--muted);
}

.service-list {
  display: grid;
  border-top: 3px solid var(--foreground);
}

.service-list article {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(1.5rem, 4vw, 2.4rem) 0;
  border-bottom: 1px solid var(--foreground);
}

.service-list span {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 2px solid var(--foreground);
  border-left: 2px solid var(--foreground);
}

.timeline li {
  min-height: 300px;
  padding: 1.3rem;
  border-right: 2px solid var(--foreground);
  border-bottom: 2px solid var(--foreground);
  overflow: visible;
}

.timeline span {
  display: block;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  font-size: 0.72rem;
  font-weight: 600;
}

.final-cta {
  border-bottom: 0;
}

.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.65fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.final-grid h2 {
  margin-bottom: 0;
  font-size: clamp(3.2rem, 7vw, 7.6rem);
}

.contact-form {
  display: grid;
  gap: 1.2rem;
  padding: 1.25rem;
  color: var(--foreground);
  background: var(--background);
  border: 2px solid var(--background);
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form span {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0;
  color: var(--foreground);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--foreground);
  border-radius: 0;
  outline: none;
  resize: vertical;
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-width: 4px;
}

.site-footer {
  padding: 1.1rem 0;
  font-size: 0.68rem;
  font-weight: 600;
  border-top: 4px solid var(--foreground);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.6fr 1fr auto;
  gap: 1rem;
  align-items: center;
}

.footer-grid p {
  margin: 0;
}

.texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.texture-lines {
  background-image: repeating-linear-gradient(0deg, transparent, transparent 1px, #000 1px, #000 2px);
  background-size: 100% 4px;
  opacity: 0.018;
}

.texture-grid {
  background-image:
    linear-gradient(#00000012 1px, transparent 1px),
    linear-gradient(90deg, #00000012 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.45;
}

.texture-diagonal {
  background-image: repeating-linear-gradient(45deg, transparent, transparent 40px, #00000014 40px, #00000014 42px);
  opacity: 0.22;
}

.texture-vertical {
  background-image: repeating-linear-gradient(90deg, transparent, transparent 1px, #fff 1px, #fff 2px);
  background-size: 4px 100%;
  opacity: 0.035;
}

.texture-radial {
  background-image: radial-gradient(circle at top center, #ffffff, transparent 70%);
  opacity: 0.055;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .site-header.is-open .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    background: var(--background);
    border-bottom: 4px solid var(--foreground);
  }

  .site-header.is-open .nav a {
    min-height: 48px;
    padding: 0.9rem 22px;
    border-top: 1px solid var(--foreground);
    border-bottom: 0;
  }
}

@media (max-width: 920px) {
  body {
    font-size: 17px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .section-heading,
  .section-heading.wide,
  .stats-grid,
  .final-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: start;
  }

  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-list article {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    min-height: 68px;
    padding: 0 14px;
  }

  .brand span:last-child {
    max-width: 150px;
  }

  .hero {
    padding: 2.35rem 0 2.4rem;
  }

  h1 {
    font-size: clamp(2.85rem, 12.4vw, 4.15rem);
  }

  .hero-subhead {
    font-size: 1.1rem;
    line-height: 1.35;
  }

  h2,
  .final-grid h2 {
    font-size: clamp(2.65rem, 12vw, 4.4rem);
  }

  h3 {
    font-size: 1.55rem;
  }

  .section {
    padding: 4.25rem 0;
  }

  .cta-row,
  .button {
    width: 100%;
  }

  .problem-grid,
  .solution-grid,
  .timeline,
  .outcome-list {
    grid-template-columns: 1fr;
  }

  .problem-grid article,
  .solution-grid li,
  .timeline li {
    min-height: auto;
  }

  .timeline li {
    padding: 1rem;
  }

  .problem-grid span,
  .timeline span {
    margin-bottom: 1.25rem;
  }

  .stats-lede {
    font-size: clamp(2.6rem, 13vw, 4.4rem);
  }

  .outcome-list span {
    min-height: 90px;
  }

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