:root {
  --charcoal: #202321;
  --charcoal-light: #303431;
  --concrete: #777b76;
  --concrete-light: #d8d7d0;
  --paper: #f2f0e8;
  --white: #fffef7;
  --yellow: #f5c400;
  --orange: #ef7d00;
  --ink: #181a18;
  --rule: #4a4e4a;
  --max-width: 1240px;
  --label-font: "Arial Narrow", "Roboto Condensed", "Barlow Condensed", Impact, sans-serif;
  --body-font: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body-font);
  line-height: 1.55;
}

body,
button,
input,
select,
textarea {
  font-family: var(--body-font);
}

button,
a,
input,
select,
textarea {
  border-radius: 0;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.caution-strip {
  overflow: hidden;
  color: var(--ink);
  background: var(--yellow);
  border-bottom: 4px solid var(--ink);
}

.caution-track {
  width: max-content;
  min-width: 100%;
  padding: 7px 14px;
  display: flex;
  justify-content: space-around;
  gap: 24px;
  font-family: var(--label-font);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.site-header {
  max-width: var(--max-width);
  min-height: 90px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--paper);
  border-right: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  padding: 7px;
  color: var(--ink);
  border: 3px solid var(--ink);
}

.brand strong,
.brand small {
  display: block;
  font-family: var(--label-font);
}

.brand strong {
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.06em;
}

.brand small {
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 12px;
  border-bottom: 3px solid transparent;
  font-family: var(--label-font);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-color: var(--ink);
}

.main-nav .nav-contact {
  padding: 12px 16px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  color: var(--white);
  background: var(--charcoal);
  border: 2px solid var(--ink);
}

.hero-copy {
  padding: clamp(48px, 7vw, 94px) clamp(24px, 5vw, 72px);
  border-right: 2px dashed var(--concrete);
}

.stamp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.stamp {
  padding: 5px 9px 4px;
  color: var(--white);
  border: 2px solid currentColor;
  font-family: var(--label-font);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  transform: rotate(-1deg);
}

.stamp:nth-child(even) {
  transform: rotate(1deg);
}

.stamp-yellow {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.eyebrow,
.section-code {
  margin: 0 0 12px;
  font-family: var(--label-font);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--yellow);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--label-font);
  font-size: clamp(3.7rem, 7.6vw, 7.3rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.84;
  text-transform: uppercase;
}

.scope {
  max-width: 680px;
  margin: 30px 0 0;
  color: var(--concrete-light);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 50px;
  padding: 14px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid currentColor;
  font-family: var(--label-font);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px);
}

.button-primary {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 5px 5px 0 var(--orange);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 7px 7px 0 var(--orange);
}

.button-ghost {
  color: var(--white);
  background: transparent;
  border-color: var(--concrete-light);
}

.hero-diagram {
  min-height: 460px;
  padding: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--charcoal-light);
  background-size: 32px 32px;
}

.hero-diagram::before,
.hero-diagram::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-diagram::before {
  inset: 15px;
  border: 2px dashed var(--concrete);
}

.hero-diagram::after {
  width: 46px;
  height: 46px;
  right: 15px;
  bottom: 15px;
  border-top: 5px solid var(--yellow);
  border-left: 5px solid var(--yellow);
}

.hero-diagram svg {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.diagram-label,
.diagram-status {
  position: absolute;
  z-index: 2;
  font-family: var(--label-font);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.diagram-label {
  top: 28px;
  left: 28px;
  padding: 6px 8px;
  color: var(--ink);
  background: var(--yellow);
}

.diagram-status {
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.diagram-status span {
  width: 10px;
  height: 10px;
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--white);
}

.pipe,
.controller,
.controller-line {
  fill: none;
  stroke: var(--concrete-light);
  stroke-width: 7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.pipe.thin {
  stroke-width: 4;
  stroke-dasharray: 10 7;
}

.node {
  fill: var(--yellow);
  stroke: var(--white);
  stroke-width: 4;
}

.drop {
  fill: var(--yellow);
  stroke: var(--white);
  stroke-width: 3;
}

.controller {
  fill: var(--charcoal);
  stroke: var(--yellow);
}

.controller-line {
  stroke-width: 3;
}

.spec-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--paper);
}

.spec-meta div {
  min-height: 92px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 2px dashed var(--concrete);
}

.spec-meta div:last-child {
  border-right: 0;
}

.spec-meta span,
.spec-meta strong {
  display: block;
  font-family: var(--label-font);
}

.spec-meta span {
  color: var(--concrete-light);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
}

.spec-meta strong {
  margin-top: 5px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.status-ok {
  color: var(--yellow);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(70px, 9vw, 120px) clamp(22px, 5vw, 70px);
  border-right: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-code {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 4px solid var(--orange);
}

.section-heading h2,
.contact-copy h2,
.legal-header h1 {
  margin: 0;
  font-family: var(--label-font);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
}

.section-heading > p:last-child {
  max-width: 670px;
  margin: 22px 0 0;
  color: #4e514d;
}

.checklist {
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}

.check-item {
  min-height: 132px;
  padding: 24px 18px;
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: start;
  gap: 20px;
  border-bottom: 2px dashed var(--rule);
}

.check-item:last-child {
  border-bottom: 0;
}

.check {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  font-family: var(--label-font);
  font-size: 1.4rem;
  font-weight: 900;
}

.check-item h3,
.process-step h3 {
  margin: 0;
  font-family: var(--label-font);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.check-item p {
  max-width: 730px;
  margin: 7px 0 0;
  color: #4e514d;
}

.spec-tag {
  padding: 6px 8px;
  border: 2px solid var(--ink);
  font-family: var(--label-font);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.note-box {
  margin-top: 28px;
  padding: 20px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  border: 3px dashed var(--rule);
}

.note-box strong {
  font-family: var(--label-font);
  letter-spacing: 0.1em;
}

.note-box p {
  margin: 0;
}

.process {
  color: var(--white);
  background: var(--charcoal);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.light-heading .section-code {
  color: var(--yellow);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 8px solid var(--yellow);
  border-bottom: 4px solid var(--concrete);
}

.process-step {
  min-height: 310px;
  padding: 28px 24px;
  border-right: 2px dashed var(--concrete);
}

.process-step:last-child {
  border-right: 0;
}

.step-number {
  display: block;
  margin-bottom: 42px;
  color: var(--yellow);
  font-family: var(--label-font);
  font-size: 4.3rem;
  font-weight: 900;
  line-height: 0.8;
}

.process-step h3 {
  padding-top: 14px;
  border-top: 5px solid var(--white);
}

.process-step p {
  color: var(--concrete-light);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 4px solid var(--ink);
  border-left: 2px solid var(--ink);
}

.area-grid span {
  min-height: 88px;
  padding: 20px 12px;
  display: grid;
  place-items: center;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-family: var(--label-font);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
}

.area-grid span:nth-child(3n) {
  background: var(--concrete-light);
}

.coverage-note {
  margin: 28px 0 0;
  font-weight: 700;
}

.coverage-note span {
  margin-right: 8px;
  padding: 5px 8px;
  display: inline-block;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-family: var(--label-font);
  letter-spacing: 0.1em;
  transform: rotate(-2deg);
}

.contact-section {
  padding: clamp(36px, 7vw, 90px) 22px;
  color: var(--white);
  background: var(--concrete);
  border-top: 10px solid var(--yellow);
}

.contact-panel {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  background: var(--charcoal);
  border: 6px solid var(--ink);
  box-shadow: 12px 12px 0 rgba(24, 26, 24, 0.35);
}

.contact-copy,
.contact-form {
  padding: clamp(30px, 5vw, 64px);
}

.contact-copy {
  border-right: 3px dashed var(--concrete);
}

.contact-copy h2 {
  font-size: clamp(2.3rem, 4.5vw, 4.4rem);
}

.contact-copy > p:not(.section-code) {
  color: var(--concrete-light);
}

.contact-list {
  margin: 34px 0 0;
}

.contact-list div {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 15px;
  border-top: 1px dashed var(--concrete);
}

.contact-list dt {
  color: var(--yellow);
  font-family: var(--label-font);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.contact-list dd {
  margin: 0;
}

.contact-form {
  align-self: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  margin-bottom: 7px;
  display: block;
  font-family: var(--label-font);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--concrete-light);
  font-size: 1rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-color: var(--ink);
}

.form-field textarea {
  resize: vertical;
}

.consent {
  margin: 4px 0 22px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--concrete-light);
  font-size: 0.87rem;
}

.consent input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--yellow);
}

.form-submit {
  width: 100%;
  border-color: var(--yellow);
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--yellow);
  font-weight: 700;
}

.site-footer {
  padding: 44px max(24px, calc((100vw - var(--max-width)) / 2));
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  color: var(--white);
  background: #131513;
  border-top: 2px solid var(--concrete);
}

.footer-brand strong,
.footer-brand span {
  display: block;
  font-family: var(--label-font);
}

.footer-brand strong {
  color: var(--yellow);
  font-size: 1.7rem;
  letter-spacing: 0.05em;
}

.footer-brand span {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
}

.footer-links,
.social-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-links a,
.social-links a {
  color: var(--concrete-light);
  font-size: 0.87rem;
  text-underline-offset: 4px;
}

.footer-links a:hover,
.social-links a:hover {
  color: var(--yellow);
}

.copyright {
  grid-column: 1 / -1;
  margin: 20px 0 0;
  padding-top: 20px;
  color: var(--concrete-light);
  border-top: 1px dashed var(--concrete);
  font-size: 0.77rem;
}

.legal-main {
  padding: clamp(35px, 7vw, 90px) 22px;
  background: var(--concrete-light);
  border-top: 2px solid var(--ink);
}

.legal-sheet {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px);
  background: var(--paper);
  border: 5px solid var(--ink);
  box-shadow: 12px 12px 0 var(--concrete);
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 34px;
  border-bottom: 8px solid var(--ink);
}

.legal-header .stamp:not(.stamp-yellow) {
  color: var(--ink);
}

.legal-header .eyebrow {
  color: #665300;
}

.legal-date {
  margin: 22px 0 0;
  font-weight: 700;
}

.legal-sheet section {
  padding: 26px 0;
  border-bottom: 2px dashed var(--rule);
}

.legal-sheet section h2 {
  margin: 0 0 13px;
  font-family: var(--label-font);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.legal-sheet section p {
  margin: 10px 0 0;
}

.legal-actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.dark-ghost {
  color: var(--ink);
  border-color: var(--ink);
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    border-right: 0;
    border-bottom: 2px dashed var(--concrete);
  }

  .hero-diagram {
    min-height: 390px;
  }

  .spec-meta {
    grid-template-columns: 1fr 1fr;
  }

  .spec-meta div:nth-child(2) {
    border-right: 0;
  }

  .spec-meta div:nth-child(-n + 2) {
    border-bottom: 2px dashed var(--concrete);
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-step:nth-child(2) {
    border-right: 0;
  }

  .process-step:nth-child(-n + 2) {
    border-bottom: 2px dashed var(--concrete);
  }

  .area-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    border-right: 0;
    border-bottom: 3px dashed var(--concrete);
  }
}

@media (max-width: 680px) {
  .caution-track {
    justify-content: flex-start;
  }

  .site-header {
    min-height: auto;
    padding: 15px;
    display: block;
  }

  .brand {
    margin-bottom: 16px;
  }

  .main-nav {
    padding-top: 12px;
    justify-content: flex-start;
    border-top: 2px dashed var(--rule);
  }

  .main-nav a {
    padding: 8px;
    font-size: 0.73rem;
  }

  .main-nav .nav-contact {
    width: 100%;
    margin-top: 5px;
  }

  .hero-copy {
    padding: 44px 22px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 5.2rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-diagram {
    min-height: 320px;
    padding: 16px;
  }

  .spec-meta {
    grid-template-columns: 1fr;
  }

  .spec-meta div,
  .spec-meta div:nth-child(2) {
    border-right: 0;
    border-bottom: 2px dashed var(--concrete);
  }

  .spec-meta div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 68px 20px;
  }

  .check-item {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

  .spec-tag {
    grid-column: 2;
    justify-self: start;
  }

  .note-box {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step,
  .process-step:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 2px dashed var(--concrete);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .step-number {
    margin-bottom: 28px;
  }

  .area-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-section {
    padding-right: 12px;
    padding-left: 12px;
  }

  .contact-panel {
    border-width: 4px;
    box-shadow: 7px 7px 0 rgba(24, 26, 24, 0.35);
  }

  .contact-copy,
  .contact-form {
    padding: 32px 20px;
  }

  .contact-list div,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-list div {
    gap: 4px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .copyright {
    grid-column: 1;
  }

  .legal-sheet {
    padding: 30px 20px;
    box-shadow: 7px 7px 0 var(--concrete);
  }

  .legal-actions,
  .legal-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
