:root {
  --bg: #f7f6f2;
  --paper: #ffffff;
  --ink: #17242b;
  --muted: #5d676b;
  --line: #dddcd6;
  --copper: #c8371f;
  --copper-dark: #8f2617;
  --graphite: #09232b;
  --graphite-soft: #20343d;
  --white: #ffffff;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  max-width: 100%;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23, 36, 43, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 36, 43, 0.026) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 68%);
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 3px solid rgba(184, 92, 56, 0.55);
  outline-offset: 5px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 10;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}

.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: 5;
  background: rgba(247, 246, 242, 0.94);
  border-bottom: 1px solid rgba(221, 220, 214, 0.8);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-name {
  display: grid;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 780;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-name strong {
  color: var(--copper);
  font-size: 0.72em;
  letter-spacing: 0.3em;
  margin-top: 7px;
}

.header-contact {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration-color: rgba(184, 92, 56, 0.5);
}

.hero {
  min-height: 720px;
  display: grid;
  align-items: center;
  padding: 76px 0 70px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  overflow-wrap: anywhere;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.95rem, 9vw, 4.8rem);
  line-height: 1.02;
  font-weight: 760;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--copper);
}

.hero-text {
  max-width: 540px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 4vw, 1.3rem);
  line-height: 1.55;
}

.rule {
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 22px;
  background: var(--copper);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 30px;
  padding: 0 24px;
  border-radius: 4px;
  background: linear-gradient(180deg, #d94329, #bf301b);
  box-shadow: 0 12px 26px rgba(184, 55, 31, 0.18);
  color: var(--white);
  font-size: 1.04rem;
  font-weight: 720;
  text-decoration: none;
}

.hero-visual {
  position: relative;
  min-height: 310px;
  background: linear-gradient(90deg, rgba(184, 92, 56, 0.08), rgba(255, 255, 255, 0));
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(184, 92, 56, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent);
}

.hero-visual svg {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 310px;
}

.grid-line {
  fill: none;
  stroke: rgba(23, 36, 43, 0.09);
  stroke-width: 1;
}

.circuit {
  fill: none;
  stroke: rgba(23, 36, 43, 0.22);
  stroke-width: 1.5;
}

.circuit.muted {
  stroke: rgba(93, 103, 107, 0.25);
}

.circuit.accent {
  stroke: url("#copper-line");
}

.circle-icon circle {
  fill: rgba(255, 255, 255, 0.86);
  stroke: rgba(23, 36, 43, 0.28);
  stroke-width: 1.5;
}

.circle-icon path,
.circle-icon ellipse {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dot.accent {
  fill: var(--copper);
}

.section {
  padding: 76px 0;
}

.service-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
}

.item-number {
  margin: 0 0 18px;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 760;
}

.service-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.service-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: #ece8e1;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 760;
}

.service-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-icon svg circle {
  fill: none;
}

.service-item h3,
.principle-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.18;
  font-weight: 720;
  letter-spacing: 0;
}

.service-item p:last-child,
.principle-list p:last-child {
  max-width: 360px;
  margin: 16px 0 0;
  color: var(--muted);
}

.principles {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.07), transparent 28%),
    var(--graphite);
  color: var(--white);
}

.principles-grid {
  display: grid;
  gap: 46px;
  align-items: center;
}

.dark-eyebrow {
  color: #d98764;
}

.principles-copy h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  font-weight: 740;
  letter-spacing: 0;
}

.contact h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.06;
  font-weight: 760;
  letter-spacing: 0;
}

.principles-copy p:last-child {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.65;
}

.principle-list {
  display: grid;
}

.principle-list article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.principle-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--copper);
  border-radius: 50%;
  color: var(--copper);
}

.principle-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.principle-list h3 span {
  color: var(--copper);
  margin-right: 8px;
}

.principle-list h3 {
  color: var(--white);
  font-size: 1.22rem;
}

.principle-list p:last-child {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.98rem;
  line-height: 1.6;
}

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

.contact-grid {
  min-height: 460px;
  display: grid;
  gap: 42px;
  align-items: center;
}

.contact-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}

.field {
  display: grid;
  gap: 7px;
  text-align: left;
}

.field label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 720;
}

.field label span {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field input {
  min-height: 46px;
  padding: 0 13px;
}

.field textarea {
  min-height: 132px;
  padding: 12px 13px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid rgba(184, 92, 56, 0.25);
  border-color: var(--copper);
}

.contact-action {
  border: 0;
  cursor: pointer;
  width: 100%;
  color: var(--white);
  font-size: clamp(1rem, 5vw, 1.22rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
  font-family: inherit;
}

.contact-address {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.contact-address span {
  color: var(--ink);
  font-weight: 680;
}

.site-footer {
  padding: 38px 0 46px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-brand .brand-logo {
  height: 38px;
}

.footer-copy {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-copy p {
  margin: 0;
}

.footer-copy p:first-child {
  color: var(--ink);
  font-weight: 700;
}

.footer-copy a {
  color: var(--ink);
}

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

  .header-inner {
    min-height: 68px;
  }

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

  .brand-name {
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    padding: 52px 0 64px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 10.8vw, 2.95rem);
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .section {
    padding: 64px 0;
  }

  .contact-action {
    font-size: 0.98rem;
  }
}

@media (min-width: 760px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
  }

  .service-item {
    min-height: 252px;
    padding: 44px 34px 40px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .service-item:first-child {
    padding-left: 0;
  }

  .service-item:last-child {
    padding-right: 0;
    border-right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-copy {
    min-width: 380px;
  }
}

@media (min-width: 940px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 64px;
  }

  .hero-visual {
    min-height: 460px;
  }

  .principles-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.68fr);
  }

  .principle-list article:first-child {
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
