:root {
  color-scheme: dark;
  --ink: #f5f7f4;
  --muted: #b9c0b8;
  --line: rgba(255, 255, 255, 0.14);
  --panel: #151916;
  --panel-strong: #20251f;
  --accent: #ffb02e;
  --accent-2: #69d2c2;
  --bg: #090b0a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

section {
  scroll-margin-top: 118px;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(180px, 1fr);
  width: 100%;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: rgba(9, 11, 10, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
  font-weight: 800;
  font-size: 1.06rem;
}

.nav-links {
  grid-column: 2;
  justify-self: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
}

.logo-steel {
  fill: #8e9792;
  stroke: #070908;
  stroke-linejoin: round;
  stroke-width: 4;
}

.logo-orange {
  fill: #ff8a13;
  stroke: #070908;
  stroke-linejoin: round;
  stroke-width: 4;
}

.logo-core {
  fill: #2d3531;
  stroke: #070908;
  stroke-linejoin: round;
  stroke-width: 4;
}

.logo-hole {
  fill: #070908;
  stroke: #070908;
  stroke-linejoin: round;
  stroke-width: 4;
}

.nav-links a {
  color: #eef4ed;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.96rem;
  font-weight: 800;
  transition: background-color 240ms ease, color 240ms ease, transform 240ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 176, 46, 0.16);
  color: #ffffff;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  padding: 132px clamp(20px, 6vw, 92px) 36px;
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.1), rgba(5, 7, 6, 0.1)),
    url("hexcore-fastener-hero.jpg") center / cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.96) 0%, rgba(5, 7, 6, 0.78) 38%, rgba(5, 7, 6, 0.18) 72%),
    linear-gradient(0deg, rgba(9, 11, 10, 0.96) 0%, rgba(9, 11, 10, 0) 42%);
}

.hero-content,
.hero-metrics {
  position: relative;
}

.hero-content {
  max-width: 720px;
  align-self: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  min-height: 2.4em;
  font-size: clamp(1.26rem, 1.7vw, 1.52rem);
  line-height: 1.12;
}

.hero-copy {
  max-width: 620px;
  color: #d8ded7;
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  line-height: 1.65;
}

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

.button,
.contact-form button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 20px;
  font-weight: 800;
}

.button.primary,
.contact-form button {
  background: var(--accent);
  color: #15130d;
}

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

.hero-actions .button.secondary {
  background: var(--accent);
  color: #15130d;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 860px;
  align-self: end;
  margin-top: 80px;
  border: 1px solid var(--line);
  background: var(--line);
}

.hero-metrics div {
  padding: 20px;
  background: rgba(12, 15, 13, 0.82);
}

.hero-metrics strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.hero-metrics span,
.capability p,
.systems-copy p,
.systems-list span,
.contact p,
footer {
  color: var(--muted);
  line-height: 1.6;
}

.story,
.section,
.systems,
.contact {
  padding: clamp(72px, 9vw, 128px) clamp(20px, 6vw, 92px);
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
  border-top: 1px solid var(--line);
  background: #0d100e;
}

.story h2 {
  margin-bottom: 0;
}

.story p:not(.eyebrow) {
  max-width: 760px;
  color: #d8ded7;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.section-heading {
  display: block;
  max-width: 980px;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin-bottom: 0;
  max-width: 900px;
}

#products .section-heading h2 {
  max-width: 900px;
}

.section-heading::after {
  content: "Imported supply, local fabrication, and custom sizing for auto-related industries and general hardware.";
  display: block;
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: transparent;
}

.capability {
  display: grid;
  grid-template-rows: 310px auto auto 1fr;
  min-height: 550px;
  padding: 24px;
  background: linear-gradient(180deg, #171c19, #111512);
  transition: transform 240ms ease, background-color 240ms ease, box-shadow 240ms ease;
}

.capability:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.22);
}

.product-image {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  height: 310px;
  margin-bottom: 24px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
}

.product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 360ms ease, transform 360ms ease, filter 360ms ease;
}

.product-photo-primary {
  opacity: 1;
}

.product-photo-hover {
  opacity: 0;
}

.capability:hover .product-image {
  transform: scale(1.018);
  filter: saturate(1.04) contrast(1.04);
}

.capability:hover .product-photo-primary {
  opacity: 0;
  transform: scale(0.985);
}

.capability:hover .product-photo-hover {
  opacity: 1;
  transform: scale(1.018);
}

.capability span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
}

.systems {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(32px, 6vw, 96px);
  background: #eef1eb;
  color: #111411;
}

.systems .eyebrow {
  color: #087d70;
}

.systems-copy p,
.systems-list span {
  color: #4a514b;
}

.systems-list {
  display: grid;
  gap: 1px;
  align-self: start;
  background: rgba(17, 20, 17, 0.15);
}

.systems-list div {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 22px;
  padding: 24px 0;
  background: #eef1eb;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 520px);
  gap: clamp(32px, 7vw, 104px);
  background: var(--panel-strong);
}

.contact > *,
.contact-form,
.contact-form label {
  min-width: 0;
}

.hidden-field {
  display: none;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  font: inherit;
  padding: 14px;
  overflow-wrap: anywhere;
}

.contact-form textarea {
  resize: vertical;
  line-height: 1.45;
}

.contact-form button {
  cursor: pointer;
  font: inherit;
  width: 100%;
  white-space: normal;
  text-align: center;
}

.form-success {
  display: none;
  margin: 0;
  border: 1px solid rgba(105, 210, 194, 0.35);
  border-radius: 6px;
  background: rgba(105, 210, 194, 0.1);
  color: #dffaf6;
  font-weight: 700;
  line-height: 1.5;
  padding: 14px 16px;
}

.contact-form.is-submitted .form-success {
  display: block;
}

footer {
  padding: clamp(52px, 7vw, 88px) clamp(20px, 6vw, 92px) 28px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, #111512, #070908);
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: end;
  padding-bottom: 44px;
}

.footer-content h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.footer-content p:not(.eyebrow),
.footer-bottom {
  color: var(--muted);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.social-link {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-logo {
  display: block;
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
}

.success-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.94), rgba(5, 7, 6, 0.66)),
    url("hexcore-fastener-hero.jpg") center / cover;
}

.success-shell {
  display: grid;
  min-height: 100vh;
  align-content: center;
  gap: 44px;
  padding: clamp(24px, 6vw, 92px);
}

.success-brand {
  width: fit-content;
}

.success-card {
  max-width: 640px;
}

.success-card h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
}

.success-card p:not(.eyebrow) {
  color: #d8ded7;
  font-size: 1.1rem;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 100vh;
    padding-top: 116px;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(5, 7, 6, 0.94), rgba(5, 7, 6, 0.58)),
      linear-gradient(0deg, rgba(9, 11, 10, 0.96), rgba(9, 11, 10, 0.05));
  }

  .hero-metrics,
  .story,
  .capability-grid,
  .systems,
  .contact,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 260px;
  }

  .systems-list div {
    grid-template-columns: 1fr;
  }
}
