:root {
  color-scheme: dark;
  --ink: #f5f7f4;
  --muted: #b4beb6;
  --dim: #78847d;
  --coal: #0f1418;
  --coal-2: #15212a;
  --panel: rgba(17, 26, 34, 0.82);
  --panel-solid: #1b2732;
  --line: rgba(232, 239, 228, 0.16);
  --line-strong: rgba(232, 239, 228, 0.3);
  --amber: #f6b33f;
  --amber-2: #d47d2a;
  --teal: #2fd0ff;
  --green: #4f8dff;
  --concrete: #c9cbc4;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--coal);
  background-size: 56px 56px;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: clip;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 32px), var(--max));
  margin: 14px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(15, 20, 18, 0.64);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.topbar.is-scrolled {
  background: rgba(15, 20, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(246, 179, 63, 0.5);
  background:
    linear-gradient(135deg, rgba(246, 179, 63, 0.28), rgba(47, 208, 255, 0.1)),
    #111614;
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--amber);
}

.brand-mark::before {
  width: 22px;
  height: 3px;
  transform: translateY(-5px) rotate(-18deg);
}

.brand-mark::after {
  width: 22px;
  height: 3px;
  transform: translateY(6px) rotate(-18deg);
}

.brand-mark span:first-child {
  position: absolute;
  width: 3px;
  height: 27px;
  background: var(--teal);
  transform: rotate(17deg);
}

.brand-mark span:last-child {
  position: absolute;
  width: 19px;
  height: 19px;
  border: 2px solid rgba(255, 255, 255, 0.56);
  transform: rotate(45deg);
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 0.94rem;
  letter-spacing: 0;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #dce4dd;
  font-size: 0.88rem;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 88vh;
  padding: 150px max(24px, calc((100vw - var(--max)) / 2)) 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
  align-items: end;
  gap: 40px;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 12, 16, 0.82) 0%, rgba(8, 12, 16, 0.62) 36%, rgba(8, 12, 16, 0.28) 70%, rgba(8, 12, 16, 0.12) 100%),
    linear-gradient(0deg, rgba(15, 20, 24, 0.86) 0%, rgba(15, 20, 24, 0.2) 40%, rgba(15, 20, 24, 0.08) 100%);
}

.blueprint-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.38;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black 0%, transparent 70%);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  max-width: 10ch;
  color: rgba(245, 247, 244, 0.84);
  font-size: clamp(4.6rem, 12vw, 9.6rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}

.hero-lede {
  max-width: 680px;
  margin: 28px 0 0;
  color: #e4eae3;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.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: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button.primary {
  color: #12130f;
  background: linear-gradient(135deg, var(--amber), #ffe07e);
  box-shadow: 0 12px 28px rgba(246, 179, 63, 0.24);
}

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

.hero-panel {
  align-self: end;
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(13, 19, 17, 0.64);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-panel > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.metric {
  display: grid;
  place-items: center;
  min-height: 56px;
  border: 1px solid rgba(47, 208, 255, 0.42);
  border-radius: var(--radius);
  color: #effffb;
  background:
    linear-gradient(135deg, rgba(47, 208, 255, 0.24), rgba(246, 179, 63, 0.12)),
    rgba(8, 12, 11, 0.58);
  font-size: 0.9rem;
  font-weight: 900;
}

.hero-panel p {
  margin: 0;
  color: #d5ddd6;
  font-size: 0.92rem;
  line-height: 1.42;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(246, 179, 63, 0.06), rgba(47, 208, 255, 0.12), rgba(79, 141, 255, 0.1)),
    rgba(18, 28, 38, 0.9);
}

.signal-item {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 22px clamp(18px, 4vw, 42px);
  border-right: 1px solid var(--line);
}

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

.signal-item span {
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 900;
}

.signal-item strong {
  color: #f6f8f5;
  font-size: clamp(0.95rem, 1.7vw, 1.2rem);
  line-height: 1.2;
}

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.74fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 720px;
}

.section-heading h2,
.stormwater-copy h2,
.project-copy h2,
.contact-inner h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-heading > p:last-child,
.stormwater-copy > p,
.project-copy,
.contact-inner > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

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

.service-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.066), rgba(255, 255, 255, 0.026)),
    var(--panel-solid);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--teal), var(--green));
  opacity: 0;
  transition: opacity 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    #213243;
}

.service-card:hover::after {
  opacity: 1;
}

.service-code {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 34px;
  border: 1px solid rgba(246, 179, 63, 0.48);
  border-radius: var(--radius);
  color: var(--amber);
  background:
    linear-gradient(135deg, rgba(246, 179, 63, 0.12), rgba(47, 208, 255, 0.08)),
    rgba(0, 0, 0, 0.18);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card h3,
.timeline-item h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.service-card p,
.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.stormwater-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  padding: 96px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 68% 32%, rgba(47, 208, 255, 0.12), transparent 42%),
    linear-gradient(135deg, #111a22 0%, #1a2a38 54%, #101821 100%);
}

.stormwater-visual {
  position: relative;
  min-height: 510px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #111614;
  background-size: 36px 36px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contour {
  position: absolute;
  border: 2px solid rgba(201, 203, 196, 0.35);
  border-radius: 46% 54% 49% 51%;
  transform: rotate(-18deg);
}

.contour-a {
  inset: 52px 54px 70px 64px;
}

.contour-b {
  inset: 106px 110px 126px 118px;
  border-color: rgba(47, 208, 255, 0.42);
}

.contour-c {
  inset: 168px 168px 184px 176px;
  border-color: rgba(246, 179, 63, 0.42);
}

.flow-line {
  position: absolute;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  transform-origin: left center;
  opacity: 0.9;
}

.line-a {
  width: 70%;
  top: 124px;
  left: 26px;
  transform: rotate(19deg);
}

.line-b {
  width: 58%;
  bottom: 120px;
  left: 110px;
  transform: rotate(-22deg);
}

.basin {
  position: absolute;
  left: 50%;
  top: 52%;
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(47, 208, 255, 0.08);
}

.basin span {
  position: absolute;
  border: 2px solid rgba(47, 208, 255, 0.4);
  border-radius: 50%;
}

.basin span:nth-child(1) {
  width: 142px;
  height: 142px;
}

.basin span:nth-child(2) {
  width: 96px;
  height: 96px;
  border-color: rgba(246, 179, 63, 0.42);
}

.basin span:nth-child(3) {
  width: 42px;
  height: 42px;
  background: rgba(246, 179, 63, 0.2);
}

.stormwater-copy {
  max-width: 620px;
}

.spec-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.spec-list div:last-child {
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  color: #ffffff;
  font-weight: 900;
}

.spec-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline-item {
  min-height: 292px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(255, 255, 255, 0.035);
}

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

.timeline-item span {
  display: inline-flex;
  margin-bottom: 72px;
  color: var(--amber);
  font-weight: 900;
}

.project-types {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
  padding: 78px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(47, 208, 255, 0.11), rgba(246, 179, 63, 0.045), rgba(255, 255, 255, 0.018)),
    #182532;
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-list span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: #e7ece6;
  background: rgba(255, 255, 255, 0.06);
}

.contact-section {
  padding: 112px 24px;
  background:
    linear-gradient(135deg, rgba(47, 208, 255, 0.13), rgba(246, 179, 63, 0.13)),
    #111614;
}

.contact-inner {
  width: min(100%, 920px);
  margin: 0 auto;
  text-align: center;
}

.contact-inner h2 {
  margin-inline: auto;
  max-width: 880px;
}

.contact-inner > p {
  max-width: 650px;
  margin: 22px auto 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  margin-top: 34px;
  padding: 0 24px;
  border: 1px solid rgba(246, 179, 63, 0.38);
  border-radius: var(--radius);
  color: #12130f;
  background: var(--amber);
  box-shadow: 0 18px 50px rgba(246, 179, 63, 0.22);
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 26px 0;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
}

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

@media (max-width: 980px) {
  .hero {
    min-height: 86vh;
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-panel {
    max-width: 680px;
  }

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

  .section-heading,
  .stormwater-band,
  .project-types {
    grid-template-columns: 1fr;
  }

  .stormwater-visual {
    min-height: 400px;
  }

  .timeline-item:nth-child(2) {
    border-right: 0;
  }

  .timeline-item:nth-child(1),
  .timeline-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .topbar {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 74px;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(15, 20, 18, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    min-height: 48px;
    justify-content: center;
  }

  .hero {
    min-height: 84vh;
    padding: 132px 20px 42px;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 6.3rem);
  }

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

  .metric {
    min-height: 50px;
  }

  .signal-strip,
  .services-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .signal-item {
    min-height: 90px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-item:last-child {
    border-bottom: 0;
  }

  .section {
    width: min(calc(100% - 32px), var(--max));
    padding: 78px 0;
  }

  .service-card {
    min-height: 220px;
  }

  .stormwater-band,
  .project-types {
    padding: 74px 20px;
  }

  .stormwater-visual {
    min-height: 330px;
  }

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .timeline-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-item:last-child {
    border-bottom: 0;
  }

  .timeline-item span {
    margin-bottom: 46px;
  }

  .contact-section {
    padding: 82px 18px;
  }

  .contact-link {
    width: 100%;
  }

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

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