:root {
  --ink: #111820;
  --ink-soft: #3d4650;
  --paper: #f6f1e8;
  --paper-deep: #e8dfd0;
  --white: #ffffff;
  --navy: #101923;
  --navy-2: #142232;
  --navy-3: #0b121a;
  --line: #cbc0ad;
  --line-soft: rgba(17, 24, 32, .12);
  --line-dark: rgba(246, 241, 232, .18);
  --cream-logo: #efe5d3;
  --brass: #8b6b38;
  --brass-soft: rgba(139, 107, 56, .2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(17, 24, 32, .012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 32, .01) 1px, transparent 1px);
  background-size: 72px 72px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Defensive cleanup: remove any legacy standalone icon/mark from previous hero concepts. */
.hero .hero-mark,
.hero .brand-mark,
.hero .semperix-mark,
.hero img[src*="semperix-mark"],
.hero img[src*="semperix-icon"] {
  display: none !important;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 0 clamp(22px, 4vw, 58px);
  color: var(--paper);
  background: rgba(16, 25, 35, .985);
  border-bottom: 1px solid var(--line-dark);
}

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

.brand-logo {
  width: clamp(178px, 18vw, 260px);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.3vw, 28px);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav a {
  color: rgba(246, 241, 232, .76);
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--paper);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  outline: none;
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(246, 241, 232, .75);
  outline-offset: 4px;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -7px;
}

.nav-toggle-bars::after {
  top: 7px;
}

.site-header.nav-open .nav-toggle-bars {
  transform: rotate(45deg);
}

.site-header.nav-open .nav-toggle-bars::before {
  transform: translateY(7px) rotate(90deg);
}

.site-header.nav-open .nav-toggle-bars::after {
  opacity: 0;
}

.section-dark,
.section-light,
.section-muted {
  position: relative;
  padding: clamp(58px, 7vw, 98px) clamp(22px, 4vw, 58px);
}

.section-dark {
  color: var(--paper);
  background: var(--navy);
}

.section-light {
  background: rgba(246, 241, 232, .98);
}

.section-muted {
  background: var(--paper-deep);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, .72fr);
  gap: clamp(34px, 5.2vw, 76px);
  align-items: center;
  min-height: clamp(520px, 64vh, 690px);
  border-bottom: 3px solid var(--brass);
}

.hero-content {
  max-width: 760px;
}

.company-line,
.section-label {
  margin: 0 0 15px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.company-line,
.dark-heading .section-label,
.contracting .section-label {
  color: rgba(246, 241, 232, .72);
}

.section-label {
  color: var(--brass);
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 4.7vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 32px;
  color: rgba(246, 241, 232, .84);
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 12px 18px 11px;
  border: 1px solid transparent;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .065em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button-primary {
  color: var(--white);
  background: var(--brass);
  border-color: var(--brass);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #76592e;
  border-color: #76592e;
}

.button-secondary {
  color: var(--paper);
  border-color: rgba(246, 241, 232, .34);
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--paper);
}

.snapshot-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 3.4vw, 38px);
  background: rgba(20, 34, 50, .86);
  border-left: 3px solid var(--brass);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.snapshot-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  line-height: 1.22;
}

.snapshot-panel p {
  margin-bottom: 26px;
  color: rgba(246, 241, 232, .78);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.05rem;
}

.snapshot-panel dl {
  margin: 0;
}

.snapshot-panel div + div {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}

.snapshot-panel dt {
  margin-bottom: 5px;
  color: rgba(246, 241, 232, .64);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.snapshot-panel dd {
  margin: 0;
  color: rgba(246, 241, 232, .94);
}

.intro,
.services,
.competencies,
.specialized,
.contracting,
.sdvosb,
.contact {
  display: grid;
  grid-template-columns: minmax(230px, .38fr) minmax(0, .92fr);
  gap: clamp(32px, 5.4vw, 82px);
}

.section-heading {
  max-width: 400px;
}

.section-heading h2,
.contact h2 {
  margin-bottom: 15px;
  font-size: clamp(1.65rem, 2.75vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.section-heading p:not(.section-label),
.contact-copy p,
.sdvosb-copy,
.intro-copy {
  color: var(--ink-soft);
}

.dark-heading p:not(.section-label) {
  color: rgba(246, 241, 232, .74);
}

.intro-copy {
  max-width: 860px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.06rem, 1.42vw, 1.26rem);
  line-height: 1.58;
}

.intro-copy p:last-child,
.contact-copy p:last-child,
.sdvosb-copy p:last-child {
  margin-bottom: 0;
}

.service-list {
  border-top: 2px solid var(--ink);
}

.service-list article {
  display: grid;
  grid-template-columns: minmax(180px, .28fr) minmax(0, .72fr);
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.service-list h3,
.naics-group h3 {
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.service-list p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.capability-table {
  width: 100%;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.table-row {
  display: grid;
  grid-template-columns: minmax(190px, .32fr) minmax(0, .68fr);
  border-top: 1px solid var(--line);
}

.table-row:first-child {
  border-top: 0;
}

.table-row > div {
  padding: 20px;
}

.table-row > div:first-child {
  font-weight: 700;
  border-right: 1px solid var(--line);
}

.table-head {
  color: var(--ink);
  background: rgba(17, 24, 32, .045);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.table-head > div {
  padding-top: 12px;
  padding-bottom: 12px;
}

.capability-table ul,
.specialized-list ul,
.naics-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-table ul,
.specialized-list ul {
  columns: 2;
  column-gap: 30px;
}

.capability-table li,
.specialized-list li {
  break-inside: avoid;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.capability-table li::before,
.specialized-list li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 10px 2px 0;
  background: var(--brass);
}

.specialized-list {
  padding: 28px;
  background: rgba(255, 255, 255, .25);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.contracting {
  border-top: 3px solid var(--brass);
}

.contracting-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.naics-group {
  padding: 24px;
  background: rgba(20, 34, 50, .88);
  border: 1px solid var(--line-dark);
}

.naics-group h3 {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
}

.naics-list {
  display: grid;
  gap: 11px;
}

.naics-list li {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr);
  gap: 14px;
  color: rgba(246, 241, 232, .82);
}

.naics-list span {
  color: var(--paper);
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .065em;
}

.sdvosb-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.sdvosb-copy {
  max-width: 860px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.04rem, 1.32vw, 1.2rem);
  line-height: 1.58;
}

.sdvosb-credential {
  justify-self: end;
  width: 142px;
  padding: 14px 12px 12px;
  text-align: center;
  background: rgba(255, 255, 255, .24);
  border: 1px solid var(--line);
}

.sdvosb-credential img {
  width: 92px;
  margin: 0 auto 10px;
  opacity: .82;
}

.sdvosb-credential span {
  display: block;
  color: var(--ink-soft);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.capability-note {
  margin: 22px 0 0;
  color: var(--brass);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sdvosb-actions {
  margin-top: 18px;
}

.contact {
  align-items: start;
}

.contact-copy {
  max-width: 500px;
}

.contact-detail {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-detail div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.contact-detail div:first-child {
  border-top: 0;
}

.contact-detail div > span:first-child {
  color: var(--ink-soft);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.contact-detail a,
.contact-detail div > span:last-child {
  color: var(--ink);
  font-size: .80rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
}

.contact-detail a:hover {
  color: var(--brass-dark);
}

.contact-form {
  display: grid;
  gap: 10px;
  padding: 28px;
  background: rgba(255, 255, 255, .28);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.contact-form label {
  margin-top: 7px;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--brass-soft);
  outline-offset: 2px;
}

.contact-form .button {
  width: fit-content;
  margin-top: 13px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px clamp(22px, 4vw, 58px);
  color: rgba(246, 241, 232, .74);
  background: var(--navy-3);
  border-top: 1px solid var(--line-dark);
  font-size: .8rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  width: 190px;
  height: auto;
  opacity: .92;
}

.footer-right {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.footer-right nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
}

.footer-right a {
  color: var(--paper);
  text-decoration: none;
}

.footer-right p {
  margin: 0;
}

@media (max-width: 980px) {
  body {
    padding-top: 68px;
  }

  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    align-items: center;
    flex-direction: row;
    min-height: 68px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px clamp(22px, 4vw, 58px) 14px;
    background: rgba(16, 25, 35, .985);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .22);
  }

  .site-header.nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    border-top: 1px solid var(--line-dark);
  }

  .hero,
  .intro,
  .services,
  .competencies,
  .specialized,
  .contracting,
  .sdvosb,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .section-heading,
  .contact-copy {
    max-width: 760px;
  }

  .snapshot-panel {
    align-self: auto;
  }

  .contracting-layout,
  .sdvosb-body {
    grid-template-columns: 1fr;
  }

  .sdvosb-credential {
    justify-self: start;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15.5px;
  }

  .brand-logo {
    width: 186px;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.35rem);
  }

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

  .service-list article,
  .table-row,
  .naics-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .table-row > div:first-child {
    border-right: 0;
    padding-bottom: 4px;
  }

  .table-row > div:last-child {
    padding-top: 4px;
  }

  .table-head {
    display: none;
  }

  .competencies {
    gap: 0;
  }

  .capability-table ul,
  .specialized-list ul {
    columns: 1;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-right {
    justify-items: start;
  }

  .footer-right nav {
    justify-content: flex-start;
  }
}
