:root {
  --ink: #1e292e;
  --ink-soft: #46545a;
  --paper: #f4f1e9;
  --paper-deep: #e7e1d6;
  --white: #fffdf8;
  --sage: #7b8878;
  --sage-dark: #536052;
  --bronze: #9a8058;
  --line: #cfc8bb;
  --max-width: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.13;
}

h1 {
  max-width: 850px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

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

.eyebrow {
  margin-bottom: 20px;
  color: var(--sage-dark);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.lead {
  max-width: 690px;
  color: var(--ink-soft);
  font-size: clamp(1.14rem, 2vw, 1.36rem);
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(244, 241, 233, 0.3);
  color: var(--white);
  background: var(--ink);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

.brand-logo {
  width: 190px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.brand-mark {
  width: 38px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 253, 248, 0.7);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.24rem;
  letter-spacing: 0.035em;
}

.brand-note {
  margin-top: 7px;
  color: #bfc6bf;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(17px, 2.4vw, 34px);
}

.primary-nav a {
  padding-block: 30px;
  color: #e8e5dd;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--white);
  box-shadow: inset 0 -2px var(--bronze);
}

.menu-button {
  display: none;
  padding: 10px 0;
  border: 0;
  color: var(--white);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  min-height: 730px;
  display: grid;
  align-items: end;
  color: var(--white);
  background: linear-gradient(90deg, rgba(22, 32, 37, 0.96) 0%, rgba(22, 32, 37, 0.82) 48%, rgba(22, 32, 37, 0.34) 100%),
    url("../images/hero-facility.jpg") center / cover no-repeat,
    #26343a;
}

.hero-content {
  padding-block: 120px 100px;
}

.hero .eyebrow {
  color: #c9b28d;
}

.hero .lead {
  max-width: 620px;
  color: #d6d9d5;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link::after {
  content: "→";
  font-size: 1.15rem;
  font-weight: 400;
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.section {
  padding-block: 110px;
}

.section-compact {
  padding-block: 72px;
}

.section-white {
  background: var(--white);
}

.section-dark {
  color: var(--white);
  background: var(--ink);
}

.section-dark .eyebrow {
  color: #c9b28d;
}

.section-dark .lead,
.section-dark .muted {
  color: #cdd3cf;
}

.section-rule {
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.split-balanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.body-copy {
  max-width: 670px;
}

.body-copy p {
  margin-bottom: 22px;
}

.muted {
  color: var(--ink-soft);
}

.principles {
  border-top: 1px solid var(--line);
}

.principle {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 22px;
  padding-block: 25px;
  border-bottom: 1px solid var(--line);
}

.principle-number {
  color: var(--bronze);
  font-family: var(--serif);
  font-size: 1.1rem;
}

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 310px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.service-card .card-index {
  margin-bottom: 54px;
  color: var(--bronze);
  font-family: var(--serif);
}

.service-card p {
  color: var(--ink-soft);
}

.service-card .text-link {
  margin-top: auto;
  align-self: flex-start;
}

.image-frame {
  min-height: 540px;
  position: relative;
  overflow: hidden;
  background: #d3d5ce;
}

.image-frame img {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.image-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 310px;
  padding: 20px 24px;
  color: var(--white);
  background: rgba(30, 41, 46, 0.92);
  font-size: 0.79rem;
  letter-spacing: 0.035em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.stat {
  min-height: 210px;
  padding: 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.stat strong {
  display: block;
  margin-bottom: 30px;
  color: #c9b28d;
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 400;
}

.stat span {
  color: #d2d7d3;
}

.industry-list {
  border-top: 1px solid var(--line);
}

.industry-row {
  display: grid;
  grid-template-columns: 62px minmax(210px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  padding-block: 29px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.industry-row:hover h3 {
  color: var(--sage-dark);
}

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

.cta-band {
  color: var(--white);
  background: var(--sage-dark);
}

.cta-inner {
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.cta-inner h2 {
  max-width: 700px;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
}

.page-hero {
  padding-block: 105px 95px;
  color: var(--white);
  background: var(--ink);
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(3.2rem, 7vw, 6rem);
}

.page-hero .lead {
  color: #cdd3cf;
}

.service-detail {
  display: grid;
  grid-template-columns: 90px minmax(230px, 0.65fr) minmax(0, 1.35fr);
  gap: 34px;
  padding-block: 54px;
  border-top: 1px solid var(--line);
}

.service-detail:last-child {
  border-bottom: 1px solid var(--line);
}

.service-detail .detail-number {
  color: var(--bronze);
  font-family: var(--serif);
  font-size: 1.3rem;
}

.service-detail ul {
  margin: 0;
  padding-left: 19px;
  columns: 2;
  column-gap: 42px;
  color: var(--ink-soft);
}

.service-detail li {
  margin-bottom: 9px;
  break-inside: avoid;
}

.quote-panel {
  padding: clamp(38px, 6vw, 72px);
  color: var(--white);
  background: var(--sage-dark);
}

.quote-panel blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.25;
}

.quote-panel p {
  margin: 30px 0 0;
  color: #d9ded8;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list {
  border-top: 1px solid var(--line);
}

.contact-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}

.contact-item strong {
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-item p,
.contact-item address {
  margin: 0;
  color: var(--ink-soft);
  font-style: normal;
}

.site-footer {
  padding-block: 64px 38px;
  color: #d5d7d3;
  background: #172126;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(140px, 0.6fr));
  gap: 50px;
  padding-bottom: 58px;
}

.footer-intro {
  max-width: 400px;
}

.footer-heading {
  margin-bottom: 17px;
  color: #9fa9a2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #e8e9e4;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #98a39d;
  font-size: 0.76rem;
  letter-spacing: 0.045em;
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 86px;
    right: 0;
    left: 0;
    display: none;
    padding: 18px 24px 28px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .primary-nav[data-open="true"] {
    display: flex;
  }

  .primary-nav a {
    padding-block: 13px;
  }

  .split,
  .split-balanced {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail {
    grid-template-columns: 55px minmax(0, 1fr);
  }

  .service-detail > :last-child {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 150px;
  }

  body {
    font-size: 16px;
  }

  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .header-inner {
    min-height: 76px;
  }

  .primary-nav {
    top: 76px;
  }

  .brand-note {
    display: none;
  }

  .hero {
    min-height: 650px;
    background: linear-gradient(90deg, rgba(22, 32, 37, 0.94), rgba(22, 32, 37, 0.68)),
      url("../images/hero-facility.jpg") center / cover no-repeat,
      #26343a;
  }

  .hero-content,
  .page-hero {
    padding-block: 80px 72px;
  }

  .section {
    padding-block: 78px;
  }

  .service-grid,
  .stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .industry-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .industry-row p {
    grid-column: 2;
  }

  .cta-inner {
    min-height: 330px;
    padding-block: 55px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .service-detail {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 18px;
  }

  .service-detail ul {
    columns: 1;
  }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

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

.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: inherit;
}

.error-page {
  background: var(--paper);
}

.error-layout {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.error-content {
  max-width: 760px;
  padding-block: 80px;
}

.error-code {
  margin: 70px 0 12px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: clamp(72px, 15vw, 150px);
  line-height: 0.8;
}
