:root {
  --ink: #182322;
  --ink-strong: #071210;
  --muted: #5c6764;
  --line: #d8ded9;
  --paper: #f7f8f4;
  --white: #ffffff;
  --teal: #0f766e;
  --teal-deep: #0b504b;
  --amber: #d8973c;
  --copper: #a65f3a;
  --steel: #77827f;
  --shadow: 0 22px 60px rgba(11, 32, 28, 0.16);
  --radius: 8px;
  --shell: min(1180px, calc(100vw - 40px));
}

* {
  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;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: var(--shell);
  margin: 18px auto 0;
  padding: 12px 14px;
  color: var(--white);
  background: rgba(7, 18, 16, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(24, 35, 34, 0.1);
  box-shadow: 0 16px 40px rgba(20, 32, 30, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink-strong);
  background: linear-gradient(135deg, #f6c064, #d8973c 45%, #0f766e);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-size: 0.92rem;
}

.brand small {
  color: currentColor;
  opacity: 0.72;
  font-size: 0.72rem;
  font-weight: 700;
}

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

.site-nav a {
  padding: 10px 14px;
  border-radius: 6px;
  color: currentColor;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(216, 151, 60, 0.18);
  color: var(--amber);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: currentColor;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 132px max(20px, calc((100vw - 1180px) / 2)) 56px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

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

.hero-media {
  z-index: -3;
  background: var(--ink-strong);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.hero-media canvas {
  width: 100%;
  height: 100%;
  opacity: 0.42;
  mix-blend-mode: screen;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 18, 16, 0.88) 0%, rgba(7, 18, 16, 0.66) 33%, rgba(7, 18, 16, 0.18) 72%),
    linear-gradient(0deg, rgba(7, 18, 16, 0.7) 0%, rgba(7, 18, 16, 0) 42%);
}

.hero-content {
  max-width: 760px;
  padding: 0 0 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
blockquote {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 710px;
  font-size: 6.4rem;
  font-weight: 900;
}

h2 {
  font-size: 3.65rem;
  font-weight: 860;
}

h3 {
  font-size: 1.05rem;
  font-weight: 830;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.2rem;
}

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

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

.button:hover {
  transform: translateY(-2px);
}

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

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

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-panel div {
  padding: 18px;
  background: rgba(7, 18, 16, 0.52);
  backdrop-filter: blur(16px);
}

.hero-panel span {
  display: block;
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 1.02rem;
}

.section-band {
  background:
    linear-gradient(90deg, rgba(216, 151, 60, 0.09), transparent 44%),
    var(--white);
}

.intro,
.services,
.approach,
.standards,
.mission,
.contact {
  padding: clamp(72px, 9vw, 118px) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: start;
}

.intro-grid p:last-child,
.approach-copy p,
.standards-copy p,
.contact-details p {
  margin: 0;
  color: var(--muted);
  font-size: 1.14rem;
}

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

.service-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 24px;
}

.filter-button {
  min-height: 40px;
  padding: 8px 14px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 250px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(16, 31, 28, 0.05);
  transition: opacity 170ms ease, transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.38);
  box-shadow: var(--shadow);
}

.service-card.is-hidden {
  display: none;
}

.service-card p,
.process-step p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-icon {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 6px;
  background: rgba(15, 118, 110, 0.1);
}

.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
}

.icon-renovation::before {
  inset: 13px 11px 10px;
  border: 3px solid var(--teal);
  border-top: 0;
}

.icon-renovation::after {
  left: 9px;
  top: 12px;
  width: 28px;
  height: 20px;
  border-top: 3px solid var(--amber);
  transform: rotate(-26deg);
}

.icon-electric::before {
  left: 20px;
  top: 8px;
  width: 9px;
  height: 29px;
  background: var(--amber);
  clip-path: polygon(40% 0, 100% 0, 66% 43%, 100% 43%, 22% 100%, 44% 54%, 0 54%);
}

.icon-electric::after {
  inset: 9px;
  border: 2px solid var(--teal);
  border-radius: 50%;
}

.icon-plumbing::before {
  left: 10px;
  top: 12px;
  width: 28px;
  height: 16px;
  border: 3px solid var(--teal);
  border-right: 0;
  border-radius: 16px 0 0 16px;
}

.icon-plumbing::after {
  right: 10px;
  top: 20px;
  width: 12px;
  height: 18px;
  background: var(--amber);
  border-radius: 50% 50% 55% 55%;
  transform: rotate(45deg);
}

.icon-facade::before {
  inset: 10px;
  border: 2px solid var(--teal);
  box-shadow: inset 12px 0 0 transparent, inset -12px 0 0 transparent;
}

.icon-facade::after {
  left: 22px;
  top: 10px;
  width: 2px;
  height: 26px;
  background: var(--amber);
  box-shadow: -9px 0 0 rgba(216, 151, 60, 0.55), 9px 0 0 rgba(216, 151, 60, 0.55);
}

.icon-security::before {
  left: 13px;
  top: 11px;
  width: 20px;
  height: 24px;
  background: var(--teal);
  clip-path: polygon(50% 0, 90% 16%, 90% 52%, 50% 100%, 10% 52%, 10% 16%);
}

.icon-security::after {
  left: 20px;
  top: 18px;
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
}

.icon-consulting::before {
  inset: 11px;
  border: 3px solid var(--teal);
  border-radius: 50%;
}

.icon-consulting::after {
  right: 9px;
  bottom: 9px;
  width: 14px;
  height: 3px;
  background: var(--amber);
  transform: rotate(45deg);
}

.icon-sustain::before {
  left: 11px;
  top: 10px;
  width: 24px;
  height: 24px;
  background: var(--teal);
  border-radius: 2px 24px 24px;
  transform: rotate(-35deg);
}

.icon-sustain::after {
  left: 22px;
  top: 16px;
  width: 2px;
  height: 18px;
  background: var(--amber);
  transform: rotate(30deg);
}

.icon-turnkey::before {
  inset: 11px;
  border: 3px solid var(--teal);
  border-radius: 50%;
  border-right-color: transparent;
}

.icon-turnkey::after {
  right: 9px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--amber);
  border-right: 3px solid var(--amber);
  transform: rotate(45deg);
}

.approach-grid,
.standards-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.approach-copy p {
  margin-top: 24px;
}

.process {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.process-step {
  min-height: 198px;
  padding: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--ink-strong), #1e3835);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(11, 32, 28, 0.14);
}

.process-step span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--amber);
  font-weight: 900;
}

.process-step p {
  color: rgba(255, 255, 255, 0.72);
}

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

.standards-grid {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.standards-graphic {
  position: relative;
  min-height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(rgba(24, 35, 34, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 35, 34, 0.075) 1px, transparent 1px),
    radial-gradient(circle at 28% 24%, rgba(216, 151, 60, 0.28), transparent 28%),
    linear-gradient(145deg, #f4f5ef, #dbe3dd);
  background-size: 28px 28px, 28px 28px, auto, auto;
  border: 1px solid var(--line);
}

.beam {
  position: absolute;
  height: 3px;
  background: var(--teal);
  transform-origin: left center;
  opacity: 0.75;
}

.beam-a {
  left: 17%;
  top: 30%;
  width: 58%;
  transform: rotate(28deg);
}

.beam-b {
  left: 25%;
  top: 66%;
  width: 46%;
  transform: rotate(-30deg);
  background: var(--copper);
}

.beam-c {
  left: 42%;
  top: 18%;
  width: 38%;
  transform: rotate(84deg);
  background: var(--amber);
}

.node {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 5px solid var(--white);
  background: var(--teal);
  box-shadow: var(--shadow);
}

.node-a {
  left: 16%;
  top: 27%;
}

.node-b {
  right: 21%;
  top: 55%;
  background: var(--amber);
}

.node-c {
  left: 34%;
  bottom: 19%;
  background: var(--copper);
}

.spec-card {
  position: absolute;
  display: grid;
  gap: 8px;
  width: min(188px, 42%);
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(24, 35, 34, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(11, 32, 28, 0.12);
  backdrop-filter: blur(12px);
}

.spec-card span {
  color: var(--amber);
  font-weight: 900;
}

.spec-card strong {
  font-size: 1.1rem;
}

.spec-a {
  left: 9%;
  top: 11%;
}

.spec-b {
  right: 8%;
  top: 40%;
}

.spec-c {
  left: 20%;
  bottom: 12%;
}

.standards-copy p {
  margin-top: 24px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.metric-row div {
  padding: 20px;
  background: var(--white);
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  color: var(--teal);
  font-size: 2.35rem;
  line-height: 1;
}

.metric-row span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.mission {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(216, 151, 60, 0.22), transparent 48%),
    var(--ink-strong);
}

.mission blockquote {
  max-width: 1000px;
  margin: 0;
  font-size: 3.7rem;
  line-height: 1.06;
  font-weight: 850;
}

.contact {
  background:
    linear-gradient(180deg, transparent, rgba(216, 151, 60, 0.08)),
    var(--paper);
}

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

.contact-details p {
  margin-top: 22px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.contact-list a,
.contact-list address,
.contact-list div {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-style: normal;
}

.contact-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list strong {
  color: var(--ink-strong);
  font-size: 1rem;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcf9;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

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

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink-strong);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  margin: 4px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a:hover {
  color: var(--amber);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

  h2 {
    font-size: 3rem;
  }

  .mission blockquote {
    font-size: 3.1rem;
  }

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

  .intro-grid,
  .approach-grid,
  .standards-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .standards-graphic {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100vw - 28px, 1180px);
  }

  .site-header {
    margin-top: 10px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 78px;
    display: grid;
    gap: 6px;
    padding: 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(24, 35, 34, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

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

  .hero {
    min-height: 94vh;
    padding-top: 112px;
    padding-bottom: 34px;
  }

  .hero-media img {
    object-position: 70% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 18, 16, 0.94) 0%, rgba(7, 18, 16, 0.72) 62%, rgba(7, 18, 16, 0.35) 100%),
      linear-gradient(0deg, rgba(7, 18, 16, 0.72) 0%, rgba(7, 18, 16, 0) 48%);
  }

  h1 {
    font-size: 3.7rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-copy,
  .intro-grid p:last-child,
  .approach-copy p,
  .standards-copy p,
  .contact-details p {
    font-size: 1.04rem;
  }

  .hero-panel strong {
    font-size: 0.96rem;
  }

  .metric-row strong {
    font-size: 1.95rem;
  }

  .mission blockquote {
    font-size: 2.5rem;
  }

  .hero-panel,
  .process,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: none;
  }

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

  .service-card {
    min-height: 0;
  }

  .standards-graphic {
    min-height: 360px;
  }

  .spec-card {
    width: min(164px, 46%);
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.75rem;
  }

  h2,
  .mission blockquote {
    font-size: 2.05rem;
  }

  .brand strong {
    font-size: 0.8rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .contact-list strong {
    font-size: 0.92rem;
  }
}

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