/* ============================================================
   MetalsForASteel.com — independent metal forms reference
   Bespoke CSS. No framework. Squared industrial system:
   navy / steel / oxide-red, condensed display type, hairline
   rules, zero border radius anywhere.
   Content is NEVER hidden waiting on JavaScript.
   ============================================================ */

:root {
  --navy-900: #0c1c30;
  --navy-800: #132a46;
  --navy-700: #1b3a5e;
  --navy-600: #27527f;

  --steel-600: #4a5a6b;
  --steel-500: #66788b;
  --steel-300: #aab6c2;
  --steel-200: #ccd4dc;
  --steel-100: #e4e9ee;
  --steel-050: #f2f4f7;

  --oxide-600: #a33f1d;
  --oxide-500: #c8532b;
  --oxide-300: #e8a487;

  --ink: #15191e;
  --ink-soft: #3d4750;
  --paper: #ffffff;

  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --rail-w: 232px;
  --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--steel-050);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  overflow-x: hidden;
}

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

a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--oxide-600); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--oxide-500); color: #fff; padding: 10px 18px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em;
}
.skip:focus { left: 0; }

/* ---------------- header ---------------- */

.top { background: var(--navy-900); color: var(--steel-100); }

.top__bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  min-width: 0;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.brand__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .1em;
  background: var(--oxide-500);
  color: #fff;
  padding: 5px 9px 4px;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.brand__tld { color: var(--steel-300); font-weight: 500; }

.top__tag {
  margin: 0;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-300);
  min-width: 0;
}

.burger {
  display: none;
  background: transparent;
  border: 1px solid var(--steel-600);
  color: var(--steel-100);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 15px;
  padding: 6px 14px;
  cursor: pointer;
}

.nav { background: var(--navy-800); border-top: 1px solid rgba(255,255,255,.08); }
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
}
.nav__link {
  display: block;
  padding: 12px 18px 11px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--steel-200);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  min-width: 0;
  flex-shrink: 1;
}
.nav__link:first-child { padding-left: 0; }
.nav__link:hover { color: #fff; background: var(--navy-700); }
.nav__link.is-current { color: #fff; border-bottom-color: var(--oxide-500); }

/* ---------------- hero / masthead ---------------- */

.hero {
  position: relative;
  background-color: var(--navy-800);
  border-bottom: 4px solid var(--oxide-500);
  overflow: hidden;
  isolation: isolate;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,28,48,.30), rgba(12,28,48,.72));
  z-index: -1;
}
.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 74px 24px 58px;
}
.masthead {
  background: var(--navy-800);
  border-bottom: 4px solid var(--oxide-500);
  padding: 48px 24px 40px;
}
.masthead > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.spec {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--oxide-300);
  margin: 0 0 12px;
}
.hero h1, .masthead h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.02;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  max-width: 20ch;
}

/* ---------------- shell / rail / main ---------------- */

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 72px;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 18px;
  margin-top: 40px;
  border-top: 3px solid var(--navy-800);
  padding-top: 18px;
  min-width: 0;
}
.rail__group + .rail__group { margin-top: 26px; }
.rail__title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin: 0 0 8px;
}
.rail__list { list-style: none; margin: 0; padding: 0; }
.rail__list li { border-top: 1px solid var(--steel-200); }
.rail__list li:last-child { border-bottom: 1px solid var(--steel-200); }
.rail__link {
  display: block;
  padding: 8px 0 8px 12px;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ink-soft);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.rail__link:hover { color: var(--navy-800); border-left-color: var(--steel-300); background: #fff; }
.rail__link.is-current { color: var(--navy-800); font-weight: 600; border-left-color: var(--oxide-500); background: #fff; }

.main { min-width: 0; margin-top: 40px; }

/* ---------------- prose ---------------- */

.prose {
  background: var(--paper);
  border: 1px solid var(--steel-200);
  border-top: 3px solid var(--navy-800);
  padding: 40px clamp(20px, 4vw, 56px) 48px;
  min-width: 0;
}
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }

.prose p { margin: 0 0 1.15em; max-width: 74ch; }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(25px, 3vw, 33px);
  line-height: 1.14;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--navy-800);
  margin: 2.2em 0 .7em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--steel-200);
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.2;
  letter-spacing: .015em;
  color: var(--oxide-600);
  margin: 1.9em 0 .5em;
}

.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.25em; max-width: 74ch; }
.prose li { margin-bottom: .5em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li {
  position: relative;
  padding-left: 22px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .68em;
  width: 9px;
  height: 2px;
  background: var(--oxide-500);
}
.prose ol { counter-reset: step; list-style: none; padding-left: 0; }
.prose ol li { counter-increment: step; position: relative; padding-left: 34px; }
.prose ol li::before {
  content: counter(step);
  position: absolute; left: 0; top: .1em;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  background: var(--navy-700);
  width: 22px; height: 22px;
  display: grid; place-items: center;
}

.prose strong { font-weight: 600; color: var(--navy-900); }
.prose em { font-style: italic; }
.prose code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--steel-100);
  padding: 1px 5px;
}

.prose .posted {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-500);
  border-bottom: 1px solid var(--steel-200);
  padding-bottom: 14px;
  margin-bottom: 1.5em;
}

/* the load-bearing non-affiliation notice */
.prose .notice {
  background: var(--steel-050);
  border-left: 4px solid var(--oxide-500);
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 1.6em 0 1.8em;
  max-width: none;
}
.prose .notice strong { color: var(--navy-900); }

.fig { margin: 2em 0; }
.fig img { width: 100%; border: 1px solid var(--steel-200); }
.fig figcaption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--steel-500);
  padding-top: 9px;
  border-top: 1px solid var(--steel-200);
  margin-top: 9px;
}

/* ---------------- footer ---------------- */

.foot { background: var(--navy-900); color: var(--steel-200); margin-top: 0; }
.foot__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 36px;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
.foot__head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.foot__note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--steel-300); max-width: 62ch; }
.foot__note strong { color: #fff; }
.foot__col ul { list-style: none; margin: 0; padding: 0; }
.foot__col li { margin-bottom: 7px; }
.foot__col a { color: var(--steel-200); text-decoration: none; font-size: 14.5px; }
.foot__col a:hover { color: var(--oxide-300); text-decoration: underline; }
.foot__rule { border-top: 1px solid rgba(255,255,255,.12); }
.foot__rule p {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px 26px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--steel-500);
}
.foot__rule a { color: var(--steel-300); }

/* ---------------- responsive ---------------- */

@media (max-width: 1020px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail {
    position: static;
    margin-top: 32px;
    order: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px 30px;
  }
  .rail__group + .rail__group { margin-top: 0; }
  .main { order: 1; }
  .foot__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .top__bar { padding: 12px 18px; gap: 12px; }
  .top__tag { display: none; }
  .burger { display: block; margin-left: auto; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav__inner { flex-direction: column; padding: 0 18px 10px; }
  .nav__link { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.09); width: 100%; }
  .nav__link:first-child { padding-left: 0; }
  .nav__link.is-current { border-bottom-color: var(--oxide-500); }
  .hero__inner { padding: 52px 18px 40px; }
  .masthead { padding: 36px 18px 30px; }
  .shell { padding: 0 18px 56px; }
  .prose { padding: 28px 20px 34px; }
  .foot__inner { grid-template-columns: minmax(0, 1fr); padding: 36px 18px 28px; gap: 28px; }
  .foot__rule p { padding: 16px 18px 24px; }
}

/* Nav is a plain wrapping flex row and is never JS-dependent above 760px:
   above that width `.nav` has no display:none rule at all, so a failed
   script cannot hide it. Below 760px the burger toggles `.is-open`, and
   every nav destination is ALSO reachable from the footer and the site
   map, so no content is unreachable if the script never runs. */

/* Safeguard: nothing on this site is hidden waiting on JavaScript.
   No scroll-reveal library is used; this rule exists so that any future
   [data-aos]-style markup cannot blank the page. */
[data-aos] { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
