:root {
  --ink: #080807;
  --carbon: #101112;
  --panel: #171819;
  --panel-soft: #202224;
  --steel: #83909a;
  --steel-blue: #516f7a;
  --bone: #f7f7f2;
  --muted: #d5d5cf;
  --cream: #ded5c7;
  --copper: #b75a35;
  --brass: #ded5c7;
  --line: rgba(247, 247, 242, 0.15);
  --shadow: rgba(0, 0, 0, 0.36);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

section[id] {
  scroll-margin-top: 86px;
}

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

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-180%);
  background: var(--cream);
  color: var(--ink);
  padding: 0.65rem 0.9rem;
  border-radius: 4px;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(8, 8, 7, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.nav-shell {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-weight: 800;
  text-transform: uppercase;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a {
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--bone);
  border-color: var(--brass);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.1rem;
  border: 1px solid var(--brass);
  border-radius: 4px;
  color: var(--bone);
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-cta {
  min-width: 144px;
  font-size: 0.8rem;
}

.button {
  min-width: 168px;
}

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

.button-primary {
  background: var(--cream);
  color: #15110a;
  border-color: var(--cream);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #f1e9dc;
  border-color: #f1e9dc;
}

.button-secondary {
  background: rgba(8, 8, 7, 0.34);
  color: var(--bone);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(247, 247, 242, 0.08);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(8, 8, 7, 0.72);
  color: var(--bone);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 86vh;
  padding: 8.2rem 1.25rem 5.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.48), rgba(8, 8, 7, 0.68) 42%, rgba(8, 8, 7, 0.98) 100%),
    linear-gradient(90deg, rgba(8, 8, 7, 0.94), rgba(8, 8, 7, 0.48) 46%, rgba(8, 8, 7, 0.88)),
    url("../img/welding-sparks.jpg") center right / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(247, 247, 242, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 247, 242, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, black 22%, transparent 82%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 930px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.hero-content::before,
.hero-content::after {
  content: "";
  display: block;
  width: min(210px, 42vw);
  height: 1px;
  margin: 0 auto 1.2rem;
  background: linear-gradient(90deg, transparent, rgba(222, 213, 199, 0.82), transparent);
}

.hero-content::after {
  margin: 1.5rem auto 0;
  opacity: 0.55;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.hero-mark {
  width: 132px;
  height: 132px;
  object-fit: contain;
  margin: 0 auto 1rem;
  padding: 0;
  background: transparent;
  filter: drop-shadow(0 24px 40px var(--shadow));
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(4.2rem, 8.2vw, 7.4rem);
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: break-word;
  text-wrap: balance;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.58);
}

h2 {
  margin-bottom: 1.1rem;
  font-size: 3rem;
  max-width: 780px;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.hero-copy {
  width: min(100%, 690px);
  margin: 0 auto 1.6rem;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.hero-strip {
  position: relative;
  z-index: 3;
  width: min(100%, var(--max));
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-top-color: rgba(222, 213, 199, 0.44);
  background: rgba(8, 8, 7, 0.78);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.hero-strip div {
  min-height: 118px;
  padding: 1.3rem;
  border-right: 1px solid var(--line);
  display: grid;
  align-content: center;
  gap: 0.35rem;
}

.hero-strip div:last-child {
  border-right: 0;
}

.hero-strip strong {
  color: var(--bone);
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-strip span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
}

.section-band {
  background:
    radial-gradient(circle at 14% 12%, rgba(183, 90, 53, 0.16), transparent 34%),
    linear-gradient(180deg, var(--carbon), #141516 64%, #0d0e0f);
  color: var(--bone);
}

.intro,
.services,
.store-preview,
.contact {
  padding: 6.5rem 0;
}

.intro {
  position: relative;
  overflow: hidden;
  z-index: 2;
  margin-top: -78px;
  padding-top: calc(6.5rem + 78px);
  clip-path: polygon(
    0 64px,
    7% 56px,
    15% 62px,
    25% 52px,
    36% 59px,
    48% 49px,
    60% 57px,
    72% 51px,
    84% 61px,
    100% 53px,
    100% 100%,
    0 100%
  );
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 3rem;
}

.image-panel {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08);
}

.image-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 35%, rgba(8, 8, 7, 0.7)),
    linear-gradient(90deg, rgba(8, 8, 7, 0.2), transparent);
}

.image-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  width: min(260px, calc(100% - 2rem));
  padding: 0.95rem 1rem;
  border-left: 3px solid var(--cream);
  background: rgba(8, 8, 7, 0.78);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.image-badge strong,
.image-badge span {
  display: block;
}

.image-badge strong {
  text-transform: uppercase;
  line-height: 1.1;
}

.image-badge span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.copy-panel p:not(.eyebrow),
.section-heading p,
.feature-layout p,
.store-copy p,
.contact-copy p,
.site-footer p {
  color: inherit;
  opacity: 0.78;
}

.copy-panel {
  position: relative;
}

.copy-panel h2,
.intro-lead {
  max-width: 640px;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.65rem 0;
}

.intro-stats div {
  min-height: 112px;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.intro-stats strong {
  color: var(--muted);
  font-size: 0.88rem;
}

.intro-stats span {
  color: var(--bone);
  font-weight: 800;
  line-height: 1.2;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.check-grid span {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-left: 3px solid var(--cream);
  background: rgba(255, 255, 255, 0.055);
  color: var(--bone);
  font-weight: 800;
}

.services {
  background: var(--carbon);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.2rem;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -1rem;
}

.section-heading p:last-child {
  margin-bottom: 1.2rem;
}

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

.service-card {
  min-height: 282px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(247, 247, 242, 0.055), rgba(247, 247, 242, 0.018));
  display: flex;
  flex-direction: column;
}

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

.service-number {
  margin-bottom: auto;
  color: var(--muted);
  font-weight: 900;
}

.feature-band {
  padding: 4.2rem 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.93), rgba(23, 24, 25, 0.78)),
    url("../img/shop-sparks.jpg") center / cover no-repeat;
  border-block: 1px solid var(--line);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.45fr);
  gap: 2rem;
  align-items: end;
}

.feature-layout h2,
.feature-layout p {
  margin-bottom: 0;
}

.gallery {
  padding: 1.2rem 0;
  background: var(--ink);
  overflow: hidden;
}

.gallery-track {
  width: min(100% - 2.5rem, 1380px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 1rem;
}

.gallery figure {
  position: relative;
  min-height: 390px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08);
}

.gallery figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.7rem;
  border-radius: 4px;
  background: rgba(8, 8, 7, 0.78);
  color: var(--bone);
  font-weight: 800;
}

.store-preview {
  background: var(--panel);
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 3rem;
  align-items: center;
}

.store-copy .button {
  margin-top: 1rem;
}

.product-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-preview article {
  min-height: 330px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.1), rgba(8, 8, 7, 0.74)),
    linear-gradient(135deg, rgba(183, 90, 53, 0.46), rgba(81, 111, 122, 0.34));
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.product-preview span {
  margin-bottom: auto;
  color: var(--brass);
  font-weight: 900;
}

.product-preview p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact {
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.86), rgba(8, 8, 7, 0.96)),
    url("../img/precision-weld.jpg") center / cover no-repeat;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.82fr);
  gap: 3rem;
  align-items: start;
}

.contact-note {
  margin-top: 2rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-left-color: var(--brass);
  border-radius: 6px;
  background: rgba(8, 8, 7, 0.42);
}

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

.contact-note span {
  margin-top: 0.35rem;
  color: var(--muted);
}

.quote-form {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.72);
  box-shadow: 0 24px 60px var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(247, 247, 242, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--bone);
  outline: none;
}

.quote-form textarea {
  resize: vertical;
  min-height: 140px;
}

.quote-form select option {
  color: var(--ink);
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(222, 213, 199, 0.16);
}

.quote-form .button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--brass);
  font-weight: 800;
}

.site-footer {
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.footer-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
}

.footer-brand img {
  width: 44px;
  height: 44px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav,
  .nav-cta {
    display: none;
  }

  .site-header.is-open .site-nav {
    position: absolute;
    top: calc(100% - 0.3rem);
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0;
    justify-items: stretch;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(8, 8, 7, 0.96);
  }

  .site-header.is-open .site-nav a {
    padding: 0.9rem;
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .site-nav a:last-child {
    border-bottom: 0;
  }

  h1 {
    font-size: clamp(3.25rem, 8vw, 5.2rem);
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-strip,
  .split,
  .section-heading,
  .feature-layout,
  .store-layout,
  .contact-layout,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .hero-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-strip div:last-child {
    border-bottom: 0;
  }

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

  .gallery-track,
  .product-preview {
    grid-template-columns: 1fr;
  }

  .gallery figure,
  .gallery img {
    min-height: 330px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand span {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: auto;
    padding: 5.9rem 1rem 4.4rem;
    background-position: center;
  }

  .hero-content {
    margin-bottom: 1.25rem;
    width: calc(100vw - 2rem);
  }

  .hero-content::before,
  .hero-content::after {
    width: min(170px, 48vw);
  }

  .hero-mark {
    width: 88px;
    height: 88px;
    padding: 0;
  }

  h1 {
    font-size: clamp(2.1rem, 7.2vw, 3rem);
    max-width: 310px;
    margin-left: auto;
    margin-right: auto;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-copy {
    max-width: 300px;
    font-size: 1rem;
    overflow-wrap: break-word;
  }

  .hero .eyebrow {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    display: grid;
    gap: 0.7rem;
  }

  .hero-strip div {
    min-height: 86px;
    padding: 0.95rem 1rem;
  }

  .hero-strip span {
    font-size: 0.88rem;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .section-inner {
    width: min(100% - 1.5rem, var(--max));
  }

  .intro,
  .services,
  .store-preview,
  .contact {
    padding: 4.5rem 0;
  }

  .intro {
    margin-top: -56px;
    padding-top: calc(4.5rem + 56px);
    clip-path: polygon(
      0 45px,
      12% 38px,
      25% 47px,
      40% 36px,
      57% 44px,
      74% 39px,
      100% 46px,
      100% 100%,
      0 100%
    );
  }

  .image-panel,
  .image-panel img {
    min-height: 340px;
  }

  .check-grid,
  .intro-stats,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .product-preview article {
    min-height: 230px;
  }

  .gallery-track {
    width: min(100% - 1.5rem, 1380px);
  }

  .contact-layout,
  .store-layout,
  .split {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    width: calc(100vw - 2rem);
  }

  h1 {
    font-size: 2rem;
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  .hero .eyebrow {
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy {
    max-width: 300px;
  }
}

@media (max-width: 420px) {
  .brand span {
    max-width: 150px;
  }

  h1 {
    font-size: 1.95rem;
  }

  .hero .eyebrow {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy {
    max-width: 300px;
    font-size: 0.95rem;
  }

  .hero-strip div {
    min-height: 78px;
  }
}
