:root {
  --ink: #171b1d;
  --ink-soft: #4d4d4d;
  --paper: #f7fbfc;
  --paper-strong: #ffffff;
  --mist: #eaf7fb;
  --line: #d6e4e8;
  --cyan: #17d1d2;
  --cyan-dark: #0f9aa8;
  --blue: #139bd3;
  --blue-dark: #0b6696;
  --graphite: #4d4d4d;
  --dark: #071114;
  --dark-soft: #111d21;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(7, 17, 20, 0.12);
  --max-width: 1180px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(7, 17, 20, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  font-weight: 750;
}

.brand-logo {
  width: auto;
  height: 42px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  border-radius: 8px;
  color: var(--graphite);
  padding: 10px 12px;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--mist);
  color: var(--blue-dark);
  outline: none;
}

.nav-toggle {
  display: grid;
  position: relative;
  z-index: 3;
  place-content: center;
  gap: 5px;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--cyan);
  box-shadow: 0 8px 18px rgba(7, 17, 20, 0.12);
}

@media (min-width: 761px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 3px;
  margin: 0;
  border-radius: 2px;
  background: var(--dark);
}

.hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--dark);
  color: var(--white);
}

.hero-canvas,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-canvas {
  width: 100%;
  height: 100%;
}

.hero-shade {
  background: linear-gradient(
    90deg,
    rgba(7, 17, 20, 0.76) 0%,
    rgba(7, 17, 20, 0.56) 46%,
    rgba(7, 17, 20, 0.45) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 78px 32px 62px;
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--blue-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero h1,
.statement h2,
.section-heading h2,
.method-copy h2,
.contact-copy h2,
.compact-heading h2 {
  margin: 0;
  line-height: 1.02;
  font-weight: 820;
}

.hero h1 {
  max-width: 780px;
  font-size: 5.2rem;
  overflow-wrap: break-word;
}

.hero-lede {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.3rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 780;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: #4ce2e2;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 900px;
  margin: 56px 0 0;
}

.hero-metrics div {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  padding-top: 18px;
}

.hero-metrics dt {
  color: var(--white);
  font-weight: 820;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.statement,
.section,
.contact-section {
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.statement {
  background: var(--paper-strong);
}

.section-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 96px 32px;
}

.statement-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 70px;
  align-items: center;
  padding-top: 86px;
  padding-bottom: 86px;
}

.statement h2 {
  font-size: 3.1rem;
}

.statement-copy p:last-child {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.statement-visual {
  position: relative;
  min-height: 390px;
}

.statement-visual::before {
  content: "";
  position: absolute;
  inset: 18px 28px;
  background:
    linear-gradient(rgba(19, 155, 211, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 155, 211, 0.09) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 50%, #000 45%, transparent 76%);
}

.architecture-map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.map-ring {
  fill: rgba(23, 209, 210, 0.05);
  stroke: rgba(19, 155, 211, 0.18);
  stroke-width: 2;
}

.map-line {
  fill: none;
  stroke: url("#map-line");
  stroke-linecap: round;
  stroke-width: 3;
}

.map-line-muted {
  opacity: 0.34;
}

.map-node rect {
  fill: var(--paper-strong);
  stroke: var(--line);
  stroke-width: 2;
  filter: drop-shadow(0 16px 26px rgba(7, 17, 20, 0.08));
}

.map-node-primary rect {
  fill: var(--dark);
  stroke: var(--cyan);
}

.map-node text {
  fill: var(--graphite);
  font-size: 15px;
  font-weight: 800;
  text-anchor: middle;
}

.map-node-primary text {
  fill: var(--white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-heading h2,
.method-copy h2,
.contact-copy h2,
.compact-heading h2 {
  font-size: 3rem;
}

.section-heading p,
.method-copy p,
.contact-copy p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.work-section {
  background: var(--mist);
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

.service-card,
.standards-grid article {
  min-height: 246px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 26px;
  box-shadow: 0 10px 34px rgba(7, 17, 20, 0.05);
}

.service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  border-radius: 8px;
  background: var(--graphite);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 800;
}

.service-card:nth-child(2) .service-index {
  background: var(--blue-dark);
  color: var(--white);
}

.service-card:nth-child(3) .service-index {
  background: var(--cyan);
  color: var(--dark);
}

.service-card:nth-child(4) .service-index {
  background: var(--dark);
  color: var(--white);
}

.service-card:nth-child(5) .service-index {
  background: var(--blue-dark);
  color: var(--white);
}

.service-card:nth-child(6) .service-index {
  background: var(--cyan-dark);
  color: var(--dark);
}

.service-card h3,
.standards-grid h3,
.method-list h3 {
  margin: 26px 0 0;
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.25;
}

.service-card p,
.standards-grid p,
.method-list p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.method-section {
  background: var(--paper);
}

.method-layout {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 64px;
  align-items: start;
}

.method-copy {
  position: sticky;
  top: 112px;
}

.method-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: method;
}

.method-list li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 22px;
}

.method-list span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--dark);
  font-weight: 850;
}

.method-list h3 {
  margin-top: 2px;
}

.standards-section {
  background: var(--dark);
  color: var(--white);
}

.standards-section .section-kicker {
  color: var(--cyan);
}

.compact-heading {
  max-width: 680px;
}

.standards-section h2,
.standards-grid h3 {
  color: var(--white);
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.standards-grid article {
  min-height: 220px;
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--dark-soft);
  box-shadow: none;
}

.standards-grid p {
  color: rgba(255, 255, 255, 0.7);
}

.contact-section {
  background: var(--paper-strong);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 26px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 760;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c9dde3;
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 13px 14px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue-dark);
  outline: none;
  box-shadow: 0 0 0 4px rgba(19, 155, 211, 0.16);
}

.contact-form .button {
  justify-self: start;
  min-width: 150px;
}

.contact-form .button:disabled {
  cursor: progress;
  opacity: 0.7;
  transform: none;
}

.captcha-wrap {
  display: none;
  width: 304px;
  max-width: 100%;
  min-height: 78px;
  overflow: hidden;
}

.captcha-wrap.is-active {
  display: block;
}

.captcha-wrap .g-recaptcha {
  transform-origin: 0 0;
}

@media (max-width: 380px) {
  .captcha-wrap {
    width: 280px;
    min-height: 72px;
  }

  .captcha-wrap .g-recaptcha {
    transform: scale(0.92);
  }
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--ink-soft);
}

.form-status.is-success {
  color: var(--blue-dark);
}

.form-status.is-error {
  color: #b3261e;
}

.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--white);
  font-weight: 760;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  text-decoration: underline;
  outline: none;
}

@media (max-width: 1020px) {
  .hero h1 {
    font-size: 4.1rem;
  }

  .services-grid,
  .standards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .method-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding: 0 18px;
    background: var(--paper-strong);
    box-shadow: none;
  }

  .nav-toggle {
    position: absolute;
    z-index: 4;
    top: 10px;
    right: 18px;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: grid;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 38px rgba(7, 17, 20, 0.1);
    padding: 12px 18px 20px;
    transform: translateY(-120%);
    transition: transform 220ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 12px;
  }

  .hero {
    min-height: 76svh;
  }

  .hero-inner {
    padding: 62px 22px 34px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-lede {
    font-size: 1.08rem;
  }

  .hero-metrics {
    display: none;
  }

  .section-inner,
  .statement-grid {
    padding-left: 22px;
    padding-right: 22px;
  }

  .section-inner {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .statement-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .statement-copy {
    order: -1;
  }

  .statement-visual {
    min-height: 0;
  }

  .statement h2,
  .section-heading h2,
  .method-copy h2,
  .contact-copy h2,
  .compact-heading h2 {
    font-size: 2.35rem;
  }

  .services-grid,
  .standards-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .standards-grid article {
    min-height: 0;
  }

  .method-list li {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 560px) {
  .hero-inner {
    padding-top: 54px;
  }

  .hero h1 {
    max-width: 9.4ch;
    font-size: 2.65rem;
  }

  .hero-lede {
    max-width: 31ch;
    font-size: 1rem;
  }
}

@media (max-width: 430px) {
  .brand-logo {
    height: 36px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .contact-form {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
