:root {
  --ink: #16202a;
  --muted: #62707f;
  --line: #dbe5ee;
  --brand: #2189f3;
  --cyan: #55dce1;
  --steel: #344454;
  --paper: #f6f9fc;
  --white: #ffffff;
  --amber: #f2b544;
  --green: #3fb777;
  --shadow: 0 18px 50px rgba(23, 32, 43, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

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

.section {
  scroll-margin-top: 88px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 48px);
  color: var(--white);
  transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(31, 45, 61, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 184px;
  text-transform: uppercase;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-size: 1.08rem;
  letter-spacing: 0.18em;
}

.brand small {
  margin-top: 5px;
  font-size: 0.68rem;
  letter-spacing: 0.58em;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border: 4px solid var(--brand);
  border-right-color: transparent;
  border-radius: 50%;
}

.brand-mark span {
  position: absolute;
  inset: 8px -4px -4px 8px;
  border: 4px solid var(--cyan);
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  font-weight: 800;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  font-size: 0.92rem;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

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

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.03);
  animation: slowZoom 16s ease-in-out infinite alternate;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(95deg, rgba(12, 20, 30, 0.92) 0%, rgba(12, 20, 30, 0.78) 38%, rgba(12, 20, 30, 0.28) 70%),
    linear-gradient(0deg, rgba(12, 20, 30, 0.4), rgba(12, 20, 30, 0.05));
}

.hero-content {
  padding: 128px 0 86px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow,
.contact .eyebrow {
  color: var(--cyan);
}

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

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn.primary {
  color: var(--white);
  background: var(--brand);
  box-shadow: 0 14px 32px rgba(33, 137, 243, 0.28);
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  max-width: 760px;
  gap: 12px;
  margin-top: 48px;
}

.hero-metrics div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(14, 24, 36, 0.72);
  backdrop-filter: blur(10px);
}

.hero-metrics strong {
  display: block;
  color: var(--cyan);
  font-size: 1.7rem;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.intro-band,
.projects,
.capabilities {
  background: var(--paper);
}

.intro-band,
.about,
.services,
.capabilities,
.projects,
.quality,
.blog,
.contact {
  padding: 96px 0;
}

.intro-grid,
.service-grid,
.blog-grid,
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.intro-card,
.service-card,
.blog-card,
.project-card,
.process-list article,
.quality-card,
.quality-points,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.intro-card {
  padding: 28px;
}

.intro-card span,
.process-list span,
.quality-card span {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro-card h2,
.service-card h3,
.project-card h3,
.blog-card h3,
.process-list h3 {
  margin: 12px 0;
  font-size: 1.22rem;
  line-height: 1.25;
}

.intro-card p,
.service-card p,
.service-card li,
.project-card p,
.blog-card p,
.section-copy p,
.process-list p,
.quality-points p,
.contact-copy p,
.contact-copy span,
.contact-copy a {
  color: var(--muted);
  line-height: 1.65;
}

.split-layout,
.capability-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.contact-copy h2,
.quality-card h2 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-copy > p:not(.eyebrow),
.contact-copy > p:not(.eyebrow) {
  max-width: 700px;
  margin: 22px 0 0;
  font-size: 1.04rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.stats div {
  min-height: 112px;
  padding: 18px;
  border-left: 4px solid var(--brand);
  background: #f3f7fb;
}

.stats strong {
  display: block;
  color: var(--steel);
  font-size: 2.15rem;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.engineering-graphic {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(33, 137, 243, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(33, 137, 243, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff, #eef5fb);
  background-size: 28px 28px, 28px 28px, auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.beam,
.column,
.foundation,
.truss,
.tower,
.slab {
  position: absolute;
  background: var(--steel);
}

.beam {
  height: 18px;
  border-radius: 3px;
  transform-origin: left center;
}

.beam-a {
  width: 330px;
  left: 58px;
  top: 130px;
  transform: rotate(13deg);
}

.beam-b {
  width: 300px;
  left: 82px;
  top: 210px;
  transform: rotate(-13deg);
}

.beam-c {
  width: 270px;
  left: 88px;
  top: 168px;
}

.column {
  width: 18px;
  height: 220px;
  bottom: 88px;
  border-radius: 3px;
}

.column-a {
  left: 88px;
}

.column-b {
  left: 244px;
}

.column-c {
  left: 384px;
}

.foundation {
  right: 54px;
  bottom: 68px;
  left: 52px;
  height: 30px;
  background: #cfd8e2;
}

.graphic-note {
  position: absolute;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(23, 32, 43, 0.08);
}

.note-a {
  top: 64px;
  left: 42px;
}

.note-b {
  right: 46px;
  bottom: 32px;
}

.note-c {
  right: 38px;
  top: 144px;
}

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

.service-card {
  padding: 30px;
}

.line-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--brand);
  background: #e9f5ff;
  border: 1px solid #cce7ff;
  border-radius: var(--radius);
}

.line-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.service-card ul {
  display: grid;
  gap: 9px;
  padding: 18px 0 0 18px;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}

.capability-layout {
  align-items: start;
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-list article {
  padding: 22px;
}

.process-list h3,
.process-list p {
  margin-bottom: 0;
}

.project-showcase {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 20px;
}

.project-feature {
  grid-row: span 2;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--steel);
  box-shadow: var(--shadow);
}

.project-visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(85, 220, 225, 0.18), transparent 42%),
    linear-gradient(180deg, #202d39, #3b4e60);
}

.truss {
  width: 380px;
  height: 16px;
  left: 32px;
  top: 120px;
  transform: rotate(-9deg);
  transform-origin: left center;
}

.truss::before,
.truss::after {
  position: absolute;
  width: 16px;
  height: 150px;
  top: -4px;
  background: var(--cyan);
  content: "";
}

.truss::before {
  left: 60px;
}

.truss::after {
  right: 70px;
}

.truss.lower {
  top: 202px;
  background: #6f8294;
  transform: rotate(8deg);
}

.tower {
  right: 86px;
  bottom: 38px;
  width: 22px;
  height: 230px;
  background: #f0f6fb;
}

.slab {
  right: 30px;
  bottom: 32px;
  left: 30px;
  height: 24px;
  background: #9aa8b5;
}

.project-feature > div:last-child {
  padding: 30px;
}

.project-feature span,
.project-card span {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-feature h3 {
  margin: 12px 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.project-feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.project-card {
  min-height: 220px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.project-card span {
  color: var(--brand);
}

.project-card::after {
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 116px;
  height: 116px;
  border: 18px solid rgba(33, 137, 243, 0.12);
  border-radius: 50%;
  content: "";
}

.quality {
  background: #17202a;
}

.quality-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
}

.quality-card,
.quality-points {
  padding: 32px;
}

.quality-card {
  color: var(--white);
  background: linear-gradient(135deg, #233343, #15202b);
  border-color: rgba(255, 255, 255, 0.12);
}

.quality-card h2 {
  margin-top: 14px;
}

.quality-points {
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.96);
}

.quality-points p {
  margin: 0;
  padding: 14px 0 14px 22px;
  border-left: 3px solid var(--green);
}

.blog-card {
  min-height: 300px;
  padding: 28px;
}

.blog-card time {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-card a {
  display: inline-block;
  margin-top: 10px;
  color: var(--steel);
  font-weight: 900;
}

.contact {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(23, 32, 43, 0.94), rgba(23, 32, 43, 0.84)),
    url("assets/custom-steel-hero.png") center / cover;
}

.contact-copy h2 {
  color: var(--white);
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
}

address {
  display: grid;
  gap: 16px;
  margin-top: 30px;
  font-style: normal;
}

.contact-copy span,
.contact-copy a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.82);
  border-left: 3px solid var(--brand);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  color: var(--ink);
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(33, 137, 243, 0.18);
  border-color: var(--brand);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--steel);
  font-weight: 800;
}

.site-footer {
  padding: 26px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #101820;
}

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

.footer-inner span:first-child {
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slowZoom {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1.08);
  }
}

@media (max-width: 980px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

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

  .main-nav a {
    padding: 14px;
  }

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

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

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

  .intro-grid,
  .service-grid,
  .blog-grid,
  .split-layout,
  .capability-layout,
  .contact-layout,
  .project-showcase,
  .quality-grid {
    grid-template-columns: 1fr;
  }

  .project-feature {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1140px);
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.92rem;
    letter-spacing: 0.12em;
  }

  .brand small {
    letter-spacing: 0.36em;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-content {
    padding: 110px 0 64px;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .hero-metrics,
  .stats {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
  }

  .intro-band,
  .about,
  .services,
  .capabilities,
  .projects,
  .quality,
  .blog,
  .contact {
    padding: 72px 0;
  }

  .intro-card,
  .service-card,
  .project-card,
  .blog-card,
  .contact-form,
  .quality-card,
  .quality-points,
  .project-feature > div:last-child {
    padding: 22px;
  }

  .engineering-graphic {
    min-height: 340px;
  }

  .beam-a {
    width: 250px;
    left: 38px;
  }

  .beam-b {
    width: 230px;
    left: 48px;
  }

  .beam-c {
    width: 220px;
    left: 52px;
  }

  .column-a {
    left: 56px;
  }

  .column-b {
    left: 168px;
  }

  .column-c {
    left: 274px;
  }

  .note-c {
    right: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
