/* UnionOnly — palette: safety yellow, logo gold, white, black, greys */
:root {
  --black: #000000;
  --yellow: #ffd100;
  --gold: #f7b12c;
  --white: #ffffff;
  --paper: #e4ddce;
  --paper-light: #f0ebdf;
  --ink: #172120;
  /* Pexels License: pexels.com/license/. Photos 35919093 (Jafar Gidado),
     33404353 (Ryan Stephens), and 15532135 (Tom Van Dyck). */
  --hero-photo: url("images/welding-hands.webp");
  --framing-photo: url("images/timber-framing.webp");
  --cranes-photo: url("images/cranes-at-dusk.webp");
  --slab-grey: #626260;
  --grey-900: #222222;
  --grey-700: #3d3d3d;
  --grey-600: #575757;
  --grey-400: #9a9a9a;
  --grey-200: #dcdcdc;
  --grey-100: #f1f1ef;
  --line: rgba(0, 0, 0, 0.14);
  --line-dark: rgba(255, 255, 255, 0.14);
  --wrap: 1180px;
  --display: "Libre Franklin", "Public Sans", system-ui, sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1; margin: 0 0 .45em; letter-spacing: 0; }
h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h3 { font-size: 1.3rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
h2, h3 { text-wrap: balance; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--black); padding: 8px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--yellow); color: var(--black);
  font: 700 1rem/1 var(--body);
  padding: 16px 24px; border: 2px solid var(--yellow); border-radius: 4px;
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); }
.btn-line { background: transparent; color: var(--white); border-color: var(--grey-400); }
.btn-line:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-small { padding: 10px 16px; font-size: .92rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--slab-grey); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font: 900 1.7rem/1 var(--display); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--grey-100); }
.site-nav a:not(.btn):hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .nav-toggle .bar { transition: none; } }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--slab-grey); padding: 8px 16px 20px;
    border-bottom: 3px solid var(--yellow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 16px; }
}

/* Hero */
.hero { position: relative; isolation: isolate; color: var(--white); background: #101919; border-bottom: 6px solid var(--yellow); }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero::before { z-index: -2; left: 37%; background: var(--hero-photo) 28% 48% / cover no-repeat; }
.hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, #101919 37%, #101919e5 46%, #10191945 64%, #1019190a 82%),
    linear-gradient(0deg, #101919 0%, #1019199c 18%, transparent 52%);
}
.hero-grid { display: grid; gap: clamp(32px, 5vw, 72px); padding-top: clamp(60px, 6vw, 96px); padding-bottom: 32px; }
.hero-copy { width: min(53%, 39rem); }
.kicker { font-weight: 600; color: var(--gold); margin-bottom: 1.2rem; }
.hero h1 { max-width: 15ch; font-size: clamp(3rem, 5.2vw, 4.85rem); }
.lede { font-size: clamp(1.06rem, 1.5vw, 1.2rem); max-width: 38em; color: var(--grey-200); margin: 1.4rem 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card { background: #15201fe8; color: var(--paper-light); padding: 17px 22px; border-left: 4px solid var(--gold); }
.hero-card-label { font-weight: 700; font-size: .9rem; color: #f3c566; margin-bottom: .6rem; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 22px; }
.hero-card li { padding: 6px 0; border-top: 1px solid #ffffff2e; font-family: var(--body); }
@media (max-width: 760px) {
  :root {
    --hero-photo: url("images/welding-hands-small.webp");
    --framing-photo: url("images/timber-framing-small.webp");
    --cranes-photo: url("images/cranes-at-dusk-small.webp");
  }
  .hero { --photo-height: clamp(220px, 62vw, 315px); }
  .hero::before, .hero::after { inset: 0 0 auto; height: var(--photo-height); }
  .hero::before { background-position: 58% 44%; }
  .hero::after { background: linear-gradient(180deg, #10191908 0%, #1019190d 44%, #10191970 73%, #101919 100%); }
  .hero-grid { padding-top: calc(var(--photo-height) - 22px); padding-bottom: 24px; gap: 28px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(2.45rem, 7vw, 3.5rem); }
  .hero-card { padding: 15px 16px; }
  .hero-card ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 15px; }
}

/* Sections */
.section { padding: 96px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { color: var(--grey-600); font-size: 1.1rem; }
.two-col { display: grid; gap: 28px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1.15fr; gap: 72px; } }
.prose { color: var(--grey-600); font-size: 1.08rem; max-width: 40em; }
.why {
  color: var(--ink);
  background: linear-gradient(104deg, #d5cab0b8 0%, #ddd3bfc9 39%, #e2dacaed 61%, #e2dacaf2),
              var(--framing-photo) center 70% / cover no-repeat, var(--paper);
}
.why .prose { color: #303a33; }

/* Stat band */
.stat-band { margin-top: 64px; display: grid; gap: 8px 40px; align-items: center; background: #1c2928; color: var(--paper-light); padding: 32px; border-left: 5px solid var(--gold); }
@media (min-width: 820px) { .stat-band { grid-template-columns: auto 1fr; padding: 40px 48px; } .stat-src { grid-column: 2; } }
.stat-num { font: 900 clamp(4rem, 9vw, 6.4rem)/.9 var(--display); margin: 0; color: #f4c45a; }
.stat-text { font-size: 1.15rem; font-weight: 600; margin: 0; max-width: 36em; }
.stat-src { font-size: .82rem; color: #d1d3c8; margin: 0; }

/* PLA */
.pla { background: #172221; color: var(--white); }
.pla-grid { display: grid; gap: 48px; }
@media (min-width: 1040px) { .pla-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; } .pla-side { position: sticky; top: 100px; } }
.pla h2 { color: var(--white); max-width: 22ch; }
.pla-setup strong { color: var(--paper-light); }
.pla-turn { margin: 1.4rem 0 .45rem; color: var(--paper-light); font-weight: 700; }
.pla-amount { display: block; color: #f4c45a; font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; }
.pla-source { color: var(--grey-200); max-width: 44em; font-size: .9rem; margin: 0 0 1.35rem; }
.pla-source a { color: var(--yellow); text-underline-offset: .15em; }
.pla-intro { color: var(--grey-200); font-size: 1.12rem; max-width: 36em; }
.pla-parts { margin-top: 36px; display: grid; }
.pla-part { padding: 22px 0; border-top: 1px solid var(--line-dark); }
.pla-part h3 { color: var(--yellow); margin-bottom: .35em; }
.pla-part p { color: var(--grey-200); margin: 0; max-width: 38em; }

.monitor { margin: 0; background: var(--paper-light); color: var(--black); border-top: 8px solid var(--yellow); }
.monitor-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; padding: 22px 24px 18px; border-bottom: 2px solid var(--black); }
.monitor-title { font: 800 1.6rem/1 var(--display); margin: 0 0 6px; }
.monitor-sub { color: var(--grey-600); font-size: .9rem; margin: 0; }
.monitor-score { margin: 0; font-size: .92rem; color: var(--grey-600); }
.monitor-score strong { font: 900 2rem/1 var(--display); color: var(--black); margin-right: 4px; }
.monitor-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.monitor-table th, .monitor-table td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--grey-200); vertical-align: middle; }
.monitor-table thead th { font-size: .78rem; font-weight: 700; color: var(--grey-600); background: var(--grey-100); border-bottom: 1px solid var(--grey-200); }
.monitor-table th:first-child, .monitor-table td:first-child { padding-left: 24px; }
.monitor-table th:last-child, .monitor-table td:last-child { padding-right: 24px; }
.monitor-table tbody th { font-weight: 600; }
.row-flag { background: #fff8d6; }
.row-flag td:nth-child(3) { font-weight: 700; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: 4px 9px; border-radius: 3px; white-space: nowrap; }
.tag-ok { background: var(--grey-100); color: var(--grey-700); border: 1px solid var(--grey-200); }
.tag-flag { background: var(--black); color: var(--yellow); }
.monitor-foot { display: grid; gap: 6px; padding: 14px 24px 18px; font-size: .82rem; color: var(--grey-600); }
@media (max-width: 560px) {
  .monitor-table thead { display: none; }
  .monitor-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; border-bottom: 1px solid var(--grey-200); }
  .monitor-table th, .monitor-table td { border: 0; padding: 0 !important; }
  .monitor-table tbody th { grid-column: 1 / -1; }
  .monitor-table td:nth-child(2)::before { content: "Requires "; color: var(--grey-600); }
  .monitor-table td:nth-child(3) { grid-column: 1; }
  .monitor-table td:nth-child(3)::before { content: "On payroll "; color: var(--grey-600); font-weight: 400; }
  .monitor-table td:nth-child(4) { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .monitor-head, .monitor-foot { padding-left: 16px; padding-right: 16px; }
}

/* Services */
.services { background: #d1cbbd; --grey-600: #3b443c; }
.service-grid { display: grid; gap: 40px 48px; }
@media (min-width: 760px) { .service-grid { grid-template-columns: 1fr 1fr; } }
.service { border-top: 4px solid var(--black); padding-top: 22px; }
.service > p { color: var(--grey-600); }
.service ul { list-style: none; padding: 0; margin: 16px 0 0; }
.service li { padding: 9px 0 9px 22px; border-top: 1px solid var(--line); position: relative; font-weight: 500; font-size: .98rem; }
.service li::before { content: ""; position: absolute; left: 0; top: 17px; width: 10px; height: 10px; background: var(--gold); }

/* Campaigns */
.campaigns {
  color: var(--paper-light);
  background: linear-gradient(105deg, #0e1c1deb 8%, #17292ad4 56%, #17292ab8),
              var(--cranes-photo) center 58% / cover no-repeat, #172525;
  --grey-600: #e2e4da;
}
.campaign-list { display: grid; gap: 36px 40px; }
@media (min-width: 720px) { .campaign-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .campaign-list { grid-template-columns: repeat(3, 1fr); } }
.campaign { border-left: 4px solid var(--gold); padding-left: 20px; }
.campaign p { color: var(--grey-600); margin: 0; }

/* Approach — a real sequence, so numbered */
.approach { background: #ded5c2; --grey-600: #3b443c; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { border-top: 4px solid var(--black); padding-top: 20px; }
.step-num { display: inline-grid; place-items: center; width: 42px; height: 42px; background: var(--yellow); color: var(--black); font: 900 1.4rem/1 var(--display); margin-bottom: 14px; }
.steps p { color: var(--grey-600); }

/* Work */
.work-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card { padding: 26px; border: 2px dashed var(--grey-400); min-height: 210px; }
.work-tag { font-weight: 700; font-size: .85rem; color: var(--grey-600); }
.work-card p:last-child { color: var(--grey-600); margin: 0; }
.placeholder-note { background: #fff8d6; border-left: 4px solid var(--gold); padding: 12px 16px; font-size: .95rem !important; color: var(--black) !important; }
.placeholder-inline { background: #fff8d6; color: var(--black); padding: 0 4px; border-radius: 2px; font-size: .92em; }

/* Principles */
.principles { background: #c8c9bc; border-top: 1px solid var(--line); --grey-600: #384139; }
.principle-list { list-style: none; padding: 0; margin: 0; }
.principle-list li { padding: 22px 0; border-top: 2px solid var(--black); font-size: 1.06rem; color: var(--grey-600); }
.principle-list li:last-child { border-bottom: 2px solid var(--black); }
.principle-list strong { color: var(--black); display: block; font: 800 1.55rem/1.1 var(--display); margin-bottom: 6px; }

/* Contact */
.contact { background: #131e1d; color: var(--white); }
.contact .prose { color: var(--grey-200); }
.contact-direct a { color: var(--yellow); font-weight: 700; }
.contact .placeholder-inline { background: var(--grey-900); color: var(--yellow); }
.contact-form { background: var(--paper); color: var(--black); border-radius: 4px; padding: 28px; display: grid; gap: 16px; box-shadow: 8px 8px 0 var(--gold); }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
.contact-form .req { color: var(--grey-600); }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--black);
  background: var(--paper-light); border: 1.5px solid #75796f; border-radius: 3px; padding: 12px 14px;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--black); }
.contact-form .btn { justify-self: start; padding-left: 32px; padding-right: 32px; }
.form-note { font-size: .86rem; color: var(--grey-600); margin: 0; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--slab-grey); color: var(--grey-100); padding: 48px 0; font-size: .95rem; border-top: 4px solid var(--gold); }
.footer-inner { display: grid; gap: 24px; }
@media (min-width: 820px) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } .legal { grid-column: 1 / -1; } }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font: 900 1.5rem/1 var(--display); margin-bottom: 8px; }
.footer-mark { width: 32px; height: 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer nav a { text-decoration: none; color: inherit; }
.site-footer nav a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--yellow); }
.legal { border-top: 1px solid var(--line-dark); padding-top: 20px; margin: 0; font-size: .85rem; }
.site-footer .placeholder-inline { background: var(--grey-900); color: var(--yellow); }

/* Wage shortfall checker (sits under the payroll sample in the PLA section) */
.pla-side { display: grid; gap: 24px; }
.checker { background: var(--paper-light); color: var(--black); border: 2px solid var(--yellow); }
.checker-head { background: var(--yellow); padding: 16px 20px; }
.checker-title { font: 800 1.6rem/1.05 var(--display); margin: 0 0 .25em; }
.checker-sub { margin: 0; font-size: .9rem; }
.checker-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 18px 20px 4px; }
.checker label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
.checker .hint { font-weight: 400; color: var(--grey-600); font-size: .8rem; line-height: 1.35; }
.checker input { width: 100%; margin-top: auto; font: 600 1.15rem/1.2 var(--body); padding: 8px 10px; border: 2px solid var(--black); border-radius: 0; background: var(--white); color: var(--black); font-variant-numeric: tabular-nums; }
.money { position: relative; display: block; margin-top: auto; }
.money::before { content: "$"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-weight: 600; font-size: 1.15rem; }
.money input { padding-left: 24px; }
.checker-result { display: block; margin: 14px 20px 20px; padding: 14px 16px; background: var(--grey-100); border-left: 6px solid var(--gold); }
.result-amount { display: block; font: 900 clamp(2.2rem, 4vw, 3rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.result-text { display: block; margin-top: 6px; font-size: .9rem; color: var(--grey-700); }
.checker.is-clear .checker-result { border-left-color: var(--grey-400); }
@media (max-width: 480px) { .checker-fields { grid-template-columns: 1fr; } }

/* Display sizes for Libre Franklin. These sit last so they apply over the shorthand font rules above. */
.brand-name { font-size: 1.4rem; letter-spacing: -0.02em; }
.hero-card li { font-size: .98rem; font-weight: 600; line-height: 1.4; }
.stat-num { font-size: clamp(3.2rem, 7vw, 5rem); letter-spacing: -0.04em; }
.monitor-title, .checker-title { font-size: 1.3rem; line-height: 1.15; }
.monitor-score strong { font-size: 1.6rem; }
.step-num { font-size: 1.15rem; }
.principle-list strong { font-size: 1.25rem; line-height: 1.2; }
.footer-brand { font-size: 1.3rem; letter-spacing: -0.02em; }

@media (prefers-contrast: more) {
  .hero::before, .hero::after { display: none; }
  .why, .campaigns { background-image: none; }
  .hero-card { background: #101919; }
}
