/* www.bosswerkz.com: direction B, "The Works". Archivo (variable) and IBM Plex Mono are self-hosted (SIL OFL 1.1, the
   licence text sits beside each font file, in ../fonts/archivo and ../fonts/ibm-plex-mono); every asset is served
   from this origin. No inline styles are needed anywhere. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo/archivo-latin-wdth-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --ink: #000;
  --panel: #141414;
  --signal: #ffd800;
  --text: #fff;
  --soft: #e0e0e0;
  --muted: #c0c0c0;
  --dim: #aaa;
  --rule: #4a4a4a;
  --line: #262626;
  --display: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1240px;
  --hazard: repeating-linear-gradient(-45deg, var(--signal) 0 18px, #000 18px 36px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--display);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--signal);
  color: #000;
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* Display type: condensed, uppercase, heavy (Archivo's width axis) ------------------------------------------ */
.hero h1, .page-head h1, .about h2, .head h2, .plate h3, .crest h3, .step h3, .cta h2, .page-heading {
  font-family: var(--display);
  font-stretch: 68%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  overflow-wrap: break-word;
}
.tag {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Buttons --------------------------------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 16px 26px;
  border: 0;
  font: 800 16px/1 var(--display);
  font-stretch: 80%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn-solid { background: var(--signal); color: #000; }
.btn-ink { background: #000; color: var(--signal); }
.btn-outline { background: transparent; box-shadow: inset 0 0 0 2px var(--signal); color: var(--signal); }
.btn-solid:hover { background: #fff; }
.btn-ink:hover { background: #fff; color: #000; }
.btn-outline:hover { background: var(--signal); color: #000; }

/* Hazard stripe: the only animation (switched off for prefers-reduced-motion at the end of this file) ------------- */
.hazard {
  height: 36px;
  background: var(--hazard);
  background-size: 51px 51px;
  animation: roll 3s linear infinite;
}
@keyframes roll { to { background-position: 51px 0; } }

/* Header ---------------------------------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 78px;
}
.logo { display: block; line-height: 0; }
.logo img { display: block; width: 168px; height: auto; }
.main-nav .menu { display: flex; gap: 30px; }
.main-nav .menu a {
  font: 700 15px/1 var(--display);
  font-stretch: 85%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.main-nav .menu a:hover { color: #fff; }
.main-nav .menu a[aria-current] { color: var(--signal); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--signal);
  background: transparent;
  cursor: pointer;
}
.menu-toggle .bars { display: block; width: 18px; margin: 0 auto; }
.menu-toggle .bars span { display: block; height: 3px; margin: 3px 0; background: var(--signal); }
.main-nav.open .menu-toggle { background: var(--signal); }
.main-nav.open .menu-toggle .bars span { background: #000; }

/* Home: hero ------------------------------------------------------------------------------------------------ */
.hero { padding: 72px 0 0; }
.hero .tag { color: var(--signal); }
.hero h1 { margin: 26px 0 34px; font-size: clamp(56px, 11.2vw, 168px); line-height: 0.86; }
.hero h1 .hl { display: block; color: var(--signal); }
.hero-under {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding-bottom: 56px;
}
.hero-under .lede { max-width: 31em; font-size: 21px; line-height: 1.5; color: var(--muted); }
.hero-under .btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Home: about ----------------------------------------------------------------------------------------------- */
.about { padding: 84px 0; background: var(--signal); color: #000; }
.about .about-grid {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 40px;
  align-items: start;
}
.about h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 0.98; }
.about .btn { margin-top: 8px; }
.about :focus-visible { outline-color: #000; }

/* Bands and section heads ---------------------------------------------------------------------------------- */
.band { padding: 112px 0; }
.head { display: grid; grid-template-columns: 240px 1fr; gap: 40px; margin-bottom: 56px; }
.head .tag { padding-top: 10px; color: var(--signal); }
.head h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1; }

/* Spec plates: the service list (home and /services/) ---------------------------------------------------------- */
.plates { border-top: 2px solid var(--signal); }
.plate {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr 1.25fr 64px;
  gap: 40px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.plate:hover, .plate:focus-within { background: var(--panel); }
.plate .kind {
  padding-top: 12px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
}
.plate h3 { font-size: clamp(28px, 3vw, 42px); line-height: 0.95; }
.plate h3 a { text-decoration: none; }
.plate h3 a::after { content: ""; position: absolute; inset: 0; }
.plate p { font-size: 16px; color: var(--muted); }
.plate .arr {
  display: grid;
  justify-self: end;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--signal);
  color: var(--signal);
  font: 800 22px/1 var(--display);
}
.plate .arr::before { content: "\2192"; }
.plate:hover .arr { background: var(--signal); color: #000; }
.plate.dl .kind { color: var(--muted); }
.plate.dl h3 { font-size: clamp(22px, 2.2vw, 30px); color: var(--soft); }
.plate.dl .arr { border-color: var(--rule); color: var(--dim); }
.plate.dl:hover .arr { border-color: var(--signal); background: var(--signal); color: #000; }

/* What we run: crest-shaped plates (two layers, so the clip does not eat the border) ---------------------------- */
.run { background: var(--panel); }
.crests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.crest {
  --crest: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%);
  padding: 2px;
  background: var(--signal);
  clip-path: var(--crest);
}
.crest > div {
  position: relative;
  height: 100%;
  padding: 34px 30px 84px;
  background: #000;
  clip-path: var(--crest);
}
.crest:hover > div, .crest:focus-within > div { background: #1b1b1b; }
.crest .tag { color: var(--signal); }
.crest h3 { margin: 18px 0 14px; font-size: 38px; line-height: 0.95; }
.crest h3 a { text-decoration: none; }
.crest h3 a::after { content: ""; position: absolute; inset: 0; }
.crest p:not(.tag) { font-size: 15.5px; color: var(--muted); }
.crest .go {
  display: inline-block;
  margin-top: 18px;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
}
.crest .go::after { content: " \2192"; }

/* How we work ------------------------------------------------------------------------------------------------ */
.process { padding-bottom: 96px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--signal); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.16em;
  color: var(--signal);
}
.step h3 { margin-bottom: 12px; font-size: 30px; line-height: 0.95; }
.step p { font-size: 16px; color: var(--muted); }

/* Callout (every page except the contact page) ---------------------------------------------------------------- */
.cta { padding: 96px 0 0; border-top: 1px solid var(--line); }
.cta h2 { max-width: 14em; font-size: clamp(40px, 6.4vw, 96px); line-height: 0.9; }
.cta h2 .hl { color: var(--signal); }
.cta .btn { margin: 40px 0 72px; }

/* Inner pages ------------------------------------------------------------------------------------------------ */
.page-head { padding: 64px 0 0; }
.page-head .tag { color: var(--signal); }
.page-head h1 { margin: 22px 0 44px; font-size: clamp(44px, 7vw, 104px); line-height: 0.9; }
.page-head .hazard { height: 24px; }
.page-body { padding: 80px 0 112px; }
.page-heading { margin-bottom: 28px; font-size: clamp(30px, 3.6vw, 50px); line-height: 1; color: var(--signal); }
.page-heading.plain { color: #fff; }
.services-intro { max-width: 46em; margin-bottom: 64px; }
.services-intro .prose p { font-size: 21px; line-height: 1.5; color: var(--muted); }

.prose { max-width: 46em; }
.prose p { margin-bottom: 20px; font-size: 18px; color: var(--soft); }
.prose h2 { margin: 44px 0 12px; font: 700 24px/1.2 var(--display); font-stretch: 85%; color: var(--signal); }
.prose h3 { margin: 28px 0 8px; font: 700 19px/1.3 var(--display); font-stretch: 90%; }
.prose > :first-child { margin-top: 0; }
.prose ul { margin: 0 0 20px 22px; list-style: disc; color: var(--soft); }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--signal); text-decoration: underline; }
.prose a:hover { color: #fff; }
.prose strong { color: #fff; }

/* Contact form (markup untouched; styled only through these rules) ------------------------------------------------ */
.form-wrapper { max-width: 640px; }
.contact-form { margin-top: 8px; }
.contact-form .field { margin-bottom: 22px; }
.contact-form label {
  display: block;
  margin-bottom: 8px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
}
.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--dim);  /* >= 3:1 boundary (WCAG 1.4.11); #4a4a4a measured 2.37:1 */
  border-radius: 0;
  background: var(--panel);
  color: #fff;
  font: 400 17px/1.4 var(--display);
  font-stretch: 100%;
}
.contact-form textarea { min-height: 180px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--signal); }
.contact-form [aria-invalid="true"] { border-color: #ff7b7b; }
.contact-form button {
  padding: 16px 26px;
  border: 0;
  background: var(--signal);
  color: #000;
  font: 800 16px/1 var(--display);
  font-stretch: 80%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.contact-form button:hover { background: #fff; }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .g-recaptcha { margin-bottom: 22px; }
@media (max-width: 343px) {  /* the widget is 304 px wide; the page content is 280 px at 320 px */
  .contact-form .g-recaptcha { transform: scale(0.85); transform-origin: 0 0; margin-bottom: 8px; }
}
.field-error { margin: 6px 0 0; font-size: 14px; color: #ff9b9b; }
.notice { margin: 0 0 24px; padding: 14px 18px; border: 2px solid var(--signal); }
.notice p { margin: 0; }
.notice-error { border-color: #ff7b7b; }

/* Footer ---------------------------------------------------------------------------------------------------- */
.site-footer { padding: 56px 0 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; }
.footer-col h2 {
  margin-bottom: 16px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.16em;
  color: var(--signal);
}
.footer-col ul { display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { display: block; width: 168px; height: auto; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

@media (max-width: 960px) {
  .header-bar { gap: 12px; }
  .header-cta { order: 2; margin-left: auto; padding: 14px 16px; font-size: 14px; }
  .main-nav { order: 3; }
  .menu-toggle { display: block; }
  .main-nav .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--panel);
    border-bottom: 2px solid var(--signal);
  }
  .main-nav.open .menu { display: flex; }
  .main-nav .menu li + li { border-top: 1px solid var(--line); }
  .main-nav .menu a { display: block; padding: 18px 28px; font-size: 16px; }

  .hero-under, .about .about-grid, .head { grid-template-columns: 1fr; gap: 18px; }
  .plate { grid-template-columns: 1fr auto; gap: 10px 18px; }
  .plate .kind { grid-column: 1 / -1; padding-top: 0; }
  .plate p { grid-column: 1 / -1; order: 3; }
  .crests { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .band { padding: 76px 0; }
  .page-body { padding: 56px 0 76px; }
}
@media (min-width: 521px) and (max-width: 960px) {
  .about .btn { justify-self: start; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .logo img { width: 140px; }
  .hero h1 { font-size: clamp(48px, 16vw, 64px); }
  .main-nav .menu a { padding: 18px 20px; }
  .steps { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; gap: 8px; }
  .crest > div { padding-bottom: 64px; }
  .hazard { height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .hazard { animation: none; }
  .plate { transition: none; }
}
