:root {
  --ink: #111827;
  --muted: #5d6676;
  --line: #d9dee7;
  --paper: #f7f5ef;
  --white: #ffffff;
  --steel: #263241;
  --steel-2: #3d4a5b;
  --red: #c9362c;
  --red-dark: #9e251e;
  --teal: #157a76;
  --gold: #d49a2f;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#services,
#work,
#process,
#contact {
  scroll-margin-top: 86px;
}

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

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  letter-spacing: 0;
}

.brand-name,
.brand-area {
  display: block;
}

.brand-name {
  font-size: 1rem;
  line-height: 1.1;
}

.brand-area {
  margin-top: 2px;
  color: currentColor;
  font-size: 0.76rem;
  font-weight: 650;
  opacity: 0.72;
}

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

.site-nav a {
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 750;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible,
.site-header.is-open .site-nav a:hover,
.site-header.is-open .site-nav a:focus-visible {
  background: #edf1f4;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 84svh;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -2;
  background-image: url("assets/steel-fabrication.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 18, 25, 0.86) 0%, rgba(13, 18, 25, 0.66) 46%, rgba(13, 18, 25, 0.2) 100%),
    linear-gradient(0deg, rgba(13, 18, 25, 0.4), rgba(13, 18, 25, 0.12));
}

.hero-content {
  align-self: end;
  width: min(850px, 100%);
  padding: 144px clamp(18px, 5vw, 72px) 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #f6c14f;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--red);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: 8rem;
  line-height: 0.84;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.22rem;
}

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

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 13px 18px;
  font-weight: 900;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.btn-secondary svg {
  fill: currentColor;
  stroke: none;
}

.btn-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 14px 30px rgba(201, 54, 44, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--red-dark);
  outline: none;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.hero-panel {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 44px;
  width: min(280px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(17, 24, 39, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-panel span,
.hero-panel strong,
.hero-panel a {
  display: block;
}

.panel-label {
  color: #f6c14f;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-panel strong {
  margin: 8px 0 10px;
  font-size: 1.2rem;
}

.hero-panel a {
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.quick-strip div {
  min-height: 118px;
  padding: 28px clamp(18px, 4vw, 46px);
  background: var(--white);
}

.quick-strip strong,
.quick-strip span {
  display: block;
}

.quick-strip strong {
  font-size: 1.08rem;
}

.quick-strip span {
  margin-top: 5px;
  color: var(--muted);
}

.section,
.work-section,
.contact-section {
  padding: clamp(72px, 9vw, 124px) clamp(18px, 5vw, 72px);
}

.intro,
.contact-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: start;
}

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

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

.section-heading h2,
.contact-content h2,
.work-section h2 {
  margin: 0;
  font-size: 4rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.intro-copy > p {
  margin: 0;
  color: #3d4655;
  font-size: 1.16rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.proof-grid div {
  min-height: 190px;
  padding: 24px;
  background: #fbfaf6;
}

.proof-grid span {
  display: block;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
}

.proof-grid strong {
  display: block;
  margin-top: 16px;
  font-size: 1.08rem;
}

.proof-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.services-section {
  background: #eef1f3;
}

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

.service-card {
  min-height: 250px;
  border: 1px solid #d7dde5;
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 54, 44, 0.44);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.09);
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--steel);
}

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

.service-card h3 {
  margin: 26px 0 10px;
  font-size: 1.22rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.work-section {
  color: var(--white);
  background: var(--steel);
}

.work-section .section-heading {
  margin-bottom: 34px;
}

.work-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-auto-rows: 300px;
  gap: 16px;
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111827;
}

.work-item.featured {
  grid-row: span 2;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 280ms ease, opacity 280ms ease;
}

.work-item:hover img {
  opacity: 1;
  transform: scale(1.04);
}

.work-item::after {
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  content: "";
  background: linear-gradient(0deg, rgba(5, 8, 12, 0.86), rgba(5, 8, 12, 0));
}

.work-item div {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  z-index: 1;
}

.work-item span {
  color: #f6c14f;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.work-item h3 {
  max-width: 560px;
  margin: 6px 0 0;
  font-size: 2.25rem;
  line-height: 1;
}

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

.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--white);
}

.process-list span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
}

.process-list strong {
  display: block;
  margin-top: 28px;
  font-size: 1.18rem;
}

.process-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.contact-section {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(38, 50, 65, 0.96), rgba(38, 50, 65, 0.9)),
    var(--steel);
}

.contact-media {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.contact-media img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
}

.contact-content {
  align-self: center;
}

.contact-content p:not(.eyebrow) {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.contact-link {
  display: block;
  min-height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: rgba(246, 193, 79, 0.7);
  outline: none;
}

.contact-link span,
.contact-link strong {
  display: block;
}

.contact-link span {
  color: #f6c14f;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-link strong {
  margin-top: 8px;
  font-size: 1.16rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: #101720;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #f6c14f;
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero {
    min-height: 82svh;
  }

  .hero-panel {
    position: static;
    align-self: end;
    margin: 0 18px 22px;
  }

  .hero-content {
    padding-bottom: 28px;
  }

  .quick-strip,
  .intro,
  .contact-section,
  .proof-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

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

  .work-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 330px;
  }

  .work-item.featured {
    grid-row: auto;
  }

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

  .section-heading h2,
  .contact-content h2,
  .work-section h2 {
    font-size: 3.2rem;
  }

  .work-item h3 {
    font-size: 1.85rem;
  }

  .site-footer {
    display: block;
  }

  .credits {
    margin-top: 10px;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 16px 38px rgba(17, 24, 39, 0.12);
  }

  .site-header.is-open .site-nav {
    display: grid;
  }

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

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

  .hero {
    min-height: 80svh;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(13, 18, 25, 0.9), rgba(13, 18, 25, 0.36)),
      linear-gradient(90deg, rgba(13, 18, 25, 0.6), rgba(13, 18, 25, 0.18));
  }

  .hero-content {
    padding: 124px 18px 24px;
  }

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

  .hero-copy,
  .intro-copy > p,
  .contact-content p:not(.eyebrow) {
    font-size: 1.04rem;
  }

  .section-heading h2,
  .contact-content h2,
  .work-section h2 {
    font-size: 2.6rem;
  }

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

  .quick-strip div {
    min-height: auto;
    padding: 22px 18px;
  }

  .section,
  .work-section,
  .contact-section {
    padding: 62px 18px;
  }

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

  .service-card,
  .process-list li {
    min-height: auto;
  }

  .work-gallery {
    grid-auto-rows: 270px;
  }

  .work-item h3 {
    font-size: 1.38rem;
  }

  .contact-media img {
    aspect-ratio: 1.18 / 1;
  }
}

@media (max-width: 430px) {
  .brand-area {
    display: none;
  }

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

  .section-heading h2,
  .contact-content h2,
  .work-section h2 {
    font-size: 2.1rem;
  }

  .work-gallery {
    grid-auto-rows: 240px;
  }
}
