/* Bracket Barn — metal-fab industrial theme.
   Sharp corners, structural borders, brushed steel, condensed signage type.
   Fonts load non-blocking from <head>; system stacks render instantly. */

:root {
  --ink: #1b1e21;          /* near-black steel */
  --steel: #2b3036;        /* header / dark bands */
  --steel-hi: #373d44;
  --steel-text: #5d626a;
  --paper: #ece9e2;        /* concrete / paper */
  --panel: #dddacf;        /* recessed panel */
  --panel-2: #e4e1d7;
  --line: #c8c4b8;
  --on-dark: #d9d6cd;
  --on-dark-dim: #9a979016;

  --accent: #c1471d;       /* burnt ember — refined, not neon */
  --accent-deep: #8f3415;
  --accent-soft: #dd9069;  /* legible accent tint for dark backgrounds */
  --ok: #3c6b46;

  --maxw: 1200px;

  --display: 'Oswald', 'Arial Narrow', 'Segoe UI', sans-serif;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'Consolas', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.58;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0; }
h1, h2 { text-transform: uppercase; letter-spacing: 0.005em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { display: block; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* slim accent rule under the header — refined, not a hazard stripe */
.hazard {
  height: 3px;
  background: var(--accent);
}

/* mono kicker / engineering labels */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* placeholder fields the user must fill before launch */
.fill {
  font-family: var(--mono);
  font-size: 0.84em;
  font-weight: 700;
  background: #fbe7b0;
  color: #6b4e00;
  padding: 0.05em 0.4em;
  border: 1px solid #e0b73a;
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.06em;
  line-height: 1; padding: 14px 22px;
  background: var(--accent); color: #fff;
  border: 2px solid var(--accent);
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--lg { padding: 17px 30px; font-size: 16px; }

/* ---------- top info strip ---------- */
.topbar { background: var(--ink); color: var(--on-dark); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 8px 20px; }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .sep { color: var(--steel-text); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  color: var(--on-dark);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, var(--steel-hi), var(--steel));
  border-bottom: 2px solid var(--ink);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; }
.brand .mark { width: 40px; height: 40px; flex: none; }
.brand .mark .plate-fill { fill: currentColor; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand .wordmark b {
  font-family: var(--display); font-weight: 600; font-size: 23px;
  letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
}
.brand .wordmark small {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em;
  color: var(--accent); margin-top: 4px; text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) {
  text-decoration: none; font-family: var(--display); font-weight: 500;
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--on-dark); padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { color: #fff; border-bottom-color: var(--accent); }

/* ---------- riveted steel plate utility ---------- */
.riveted {
  position: relative;
  background-image:
    radial-gradient(circle at 9px 9px, var(--steel-text) 1.6px, transparent 2.4px),
    radial-gradient(circle at calc(100% - 9px) 9px, var(--steel-text) 1.6px, transparent 2.4px),
    radial-gradient(circle at 9px calc(100% - 9px), var(--steel-text) 1.6px, transparent 2.4px),
    radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), var(--steel-text) 1.6px, transparent 2.4px);
  background-repeat: no-repeat;
}

/* ---------- hero ---------- */
.hero { padding: clamp(44px, 6.5vw, 88px) 0 clamp(40px, 6vw, 80px); border-bottom: 2px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 0.95fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); margin: 16px 0 0; max-width: 15ch; }
.hero .sub { font-size: clamp(16px, 1.5vw, 19px); color: #2f3338; max-width: 48ch; margin-top: 20px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* spec plate (right of hero) — looks like a steel job traveler */
.plate { border: 2px solid var(--ink); background: var(--panel-2); }
.plate .plate-head {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--ink); color: var(--on-dark);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 14px;
}
.plate .plate-head b { color: var(--accent); font-weight: 700; }
.plate .photo {
  aspect-ratio: 5 / 3;
  background:
    linear-gradient(rgba(27,30,33,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,30,33,.05) 1px, transparent 1px),
    var(--panel);
  background-size: 22px 22px, 22px 22px, auto;
  border-bottom: 2px solid var(--ink);
  display: grid; place-content: center; padding: 16px;
}
.plate .photo svg { width: 100%; height: auto; max-width: 430px; }
.plate .rows { font-family: var(--mono); font-size: 12.5px; }
.plate .rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.plate .rows div:last-child { border-bottom: 0; }
.plate .rows span:first-child { color: var(--steel-text); letter-spacing: .04em; }

/* ---------- certifications band ---------- */
.certs { background: var(--panel); border-bottom: 2px solid var(--line); }
.certs .wrap { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; }
.certs .label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--steel-text); display: flex; align-items: center; padding: 18px 26px 18px 0;
  border-right: 2px solid var(--line); margin-right: 26px;
}
.cert { display: flex; align-items: center; gap: 11px; padding: 18px 26px 18px 0; font-size: 15px; }
.cert .stamp {
  font-family: var(--display); font-weight: 600; font-size: 13px;
  border: 2px solid var(--ink); padding: 3px 8px; text-transform: uppercase; letter-spacing: .03em;
  color: var(--ink); white-space: nowrap;
}

/* ---------- section scaffolding ---------- */
section { padding: clamp(54px, 7vw, 92px) 0; }
.band-dark { background: var(--steel); color: var(--on-dark); }
.band-panel { background: var(--panel); }
.sec-head { max-width: 62ch; margin-bottom: clamp(28px, 3.6vw, 48px); }
.sec-head .kicker { display: block; margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(27px, 3.6vw, 42px); }
.band-dark .sec-head .kicker { color: var(--accent-soft); }

/* ---------- what we make (parts strip) ---------- */
.make-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 2px solid var(--ink); }
.make-grid .part { padding: 24px 18px; border-right: 1px solid rgba(255,255,255,.12); }
.make-grid .part:last-child { border-right: 0; }
.make-grid .part .pn { font-family: var(--mono); font-size: 11px; color: var(--accent-soft); letter-spacing: .1em; }
.make-grid .part h3 { font-size: 19px; text-transform: none; margin: 10px 0 0; color: #fff; }
@media (max-width: 760px){ .make-grid { grid-template-columns: 1fr 1fr; } .make-grid .part { border-right:0; border-bottom:1px solid rgba(255,255,255,.12);} }

/* ---------- who we are (straight copy + aside) ---------- */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px,4vw,56px); align-items: start; }
.split .lede p { font-size: 19px; }
.split .lede p:first-of-type { font-size: clamp(20px,2.2vw,26px); font-family: var(--display); font-weight: 500; line-height: 1.25; color: var(--ink); text-transform: none; }
.aside-plate { border: 2px solid var(--ink); background: var(--paper); }
.aside-plate .ap-head { background: var(--ink); color:#fff; border-left: 4px solid var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing:.12em; text-transform:uppercase; padding: 10px 16px; }
.aside-plate ul { list-style: none; margin: 0; padding: 6px 0; }
.aside-plate li { display:flex; gap:12px; padding: 12px 16px; border-bottom:1px solid var(--line); font-size: 15px; align-items:baseline; }
.aside-plate li:last-child { border-bottom: 0; }
.aside-plate li b { font-family: var(--mono); color: var(--accent-deep); font-size: 12px; flex:none; }

/* ---------- why cards (varied, heavy, industrial) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card { border: 2px solid var(--ink); background: var(--paper); padding: 26px 24px; display: flex; flex-direction: column; }
.card .n { font-family: var(--mono); font-size: 12px; color: var(--accent-deep); letter-spacing: .12em; margin-bottom: 14px; }
.card h3 { font-size: 21px; text-transform: none; margin-bottom: 8px; }
.card p { color: #34383d; margin-bottom: 0; }
.card--wide { grid-column: span 4; }
.card--mid  { grid-column: span 3; }
.card--tall { grid-column: span 3; background: var(--ink); color: var(--on-dark); }
.card--tall h3 { color: #fff; }
.card--tall p { color: var(--on-dark); }
.card--tall .n { color: var(--accent-soft); }
.card--narrow { grid-column: span 2; }
.card--feature { grid-column: span 6; background: var(--panel); flex-direction: row; align-items: stretch; gap: 26px; flex-wrap: wrap; }
.card--feature .body { flex: 1 1 320px; display:flex; flex-direction:column; justify-content:center; }
.card--feature .pic {
  flex: 1 1 280px; min-height: 190px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(rgba(27,30,33,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,30,33,.05) 1px, transparent 1px),
    var(--panel);
  background-size: 20px 20px, 20px 20px, auto;
  display: grid; place-content: center; gap: 12px; text-align: center; color: var(--steel-text);
  font-size: 11px; letter-spacing: .12em; font-family: var(--mono); padding: 16px;
}
.card--feature .pic svg { width: 56px; height: 56px; margin: 0 auto; }

/* ---------- process / how it works ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); background: var(--paper); }
.step { padding: 26px 22px 30px; border-right: 2px solid var(--ink); position: relative; }
.step:last-child { border-right: 0; }
.step .num {
  font-family: var(--display); font-weight: 600; font-size: 38px; color: var(--accent);
  line-height: 1; display: inline-block; padding-bottom: 12px; margin-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}
.step h3 { font-size: 19px; text-transform: none; margin-bottom: 8px; }
.step p { font-size: 15px; color: #34383d; margin-bottom: 0; }

/* ---------- closing CTA ---------- */
.cta { background: var(--ink); color: var(--paper); }
.cta .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; padding: clamp(48px,6vw,82px) 20px; }
.cta h2 { font-size: clamp(28px, 3.8vw, 46px); max-width: 16ch; }
.cta p { color: #c7c4bc; max-width: 44ch; margin-top: 18px; }
.cta .right { justify-self: end; }
.cta .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- about page ---------- */
.page-hero { padding: clamp(50px,7vw,104px) 0 clamp(28px,4vw,52px); border-bottom: 2px solid var(--line); }
.page-hero h1 { font-size: clamp(32px,4.8vw,56px); max-width: 18ch; margin-top: 14px; }
.page-hero .lead { font-family: var(--display); font-weight: 400; font-size: clamp(18px,2vw,24px); line-height:1.3; color: #2f3338; max-width: 40ch; margin-top: 18px; }

.story-aside { border-left: 4px solid var(--accent); padding-left: 22px; font-family: var(--mono); font-size: 13px; color: var(--steel-text); line-height: 1.7; position: sticky; top: 110px; }
.beliefs { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.beliefs li { display: flex; gap: 20px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 500; font-size: clamp(19px,2.4vw,27px); line-height: 1.2; }
.beliefs li .b-n { font-family: var(--mono); font-size: 14px; color: var(--accent-soft); font-weight: 700; flex: none; padding-top: 5px; }
.industries { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.industries span { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing:.04em; font-size: 14px; padding: 9px 15px; border: 2px solid var(--ink); }

.editor-note {
  background: #fff8e6; border: 1px solid #e6cd7a; border-left: 4px solid #e0b73a;
  padding: 14px 18px; font-size: 13.5px; color: #6b5300; font-family: var(--mono); line-height: 1.6; margin: 16px 0 0;
}

/* ---------- footer ---------- */
.site-foot { background: var(--steel); color: var(--on-dark); border-top: 2px solid var(--ink); padding: 48px 0 38px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.site-foot .brand .wordmark b { font-size: 21px; }
.site-foot .col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); margin: 0 0 12px; }
.site-foot a { display: block; text-decoration: none; color: var(--on-dark); font-size: 15px; margin-bottom: 8px; }
.site-foot a:hover { color: #fff; }
.site-foot .small { font-size: 13px; color: var(--steel-text); margin-top: 14px; font-family: var(--mono); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .plate { max-width: 440px; }
  .split { grid-template-columns: 1fr; }
  .story-aside { position: static; }
  .cta .wrap { grid-template-columns: 1fr; }
  .cta .right { justify-self: start; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2){ border-right: 0; }
  .step:nth-child(1), .step:nth-child(2){ border-bottom: 2px solid var(--ink); }
  .why-grid { grid-template-columns: 1fr; }
  .why-grid > .card { grid-column: 1 / -1 !important; }
}
@media (max-width: 620px) {
  .nav { gap: 14px; }
  .nav a:not(.btn) { display: none; }
  .brand .wordmark small { display: none; }
  .process-grid { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 2px solid var(--ink); }
  .step:last-child { border-bottom: 0; }
  .certs .label { border-right: 0; margin-right: 0; }
}

/* ---------- quote / contact form ---------- */
.quote-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px,4vw,56px); align-items: start; }
.quote-form fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.quote-form legend {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep); padding: 0 0 12px; border-bottom: 2px solid var(--line);
  width: 100%; margin-bottom: 18px;
}
.field { margin-bottom: 16px; }
.field > label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--steel-text); margin-bottom: 7px; }
.field .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 0; padding: 12px 14px;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(226,83,29,.3); border-color: var(--accent); }
.field .hint { font-family: var(--mono); font-size: 11.5px; color: var(--steel-text); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .field-row { grid-template-columns: 1fr; } }

.filedrop { display: block; border: 2px dashed var(--steel-text); background: var(--panel-2); padding: 26px 20px; text-align: center; cursor: pointer; position: relative; }
.filedrop:hover, .filedrop.drag { border-color: var(--accent); background: #fff; }
.filedrop .fd-title { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 16px; }
.filedrop .fd-sub { font-family: var(--mono); font-size: 11.5px; color: var(--steel-text); margin-top: 8px; }
.filedrop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.filelist { list-style: none; margin: 12px 0 0; padding: 0; font-family: var(--mono); font-size: 12.5px; }
.filelist li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.filelist li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist li button { border: 0; background: none; color: var(--accent-deep); cursor: pointer; font-family: var(--mono); font-size: 12px; flex: none; }
.filetotal { font-family: var(--mono); font-size: 11.5px; color: var(--steel-text); margin-top: 10px; }
.filetotal.warn { color: var(--accent-deep); }

.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-actions .note { font-family: var(--mono); font-size: 11.5px; color: var(--steel-text); }
.form-status { display: none; padding: 14px 16px; border: 2px solid; font-family: var(--mono); font-size: 14px; line-height: 1.5; margin-top: 20px; }
.form-status.ok { display: block; border-color: var(--ok); background: #eaf3ec; color: var(--ok); }
.form-status.err { display: block; border-color: var(--accent-deep); background: #fbeae3; color: var(--accent-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 900px){ .quote-layout { grid-template-columns: 1fr; } }
