@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('assets/bricolage-grotesque.woff2') format('woff2');
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --stone: #efede6;
  --ink: #1e2423;
  --muted: #505751;
  --line: #d4d4ca;
  --accent: #a44129;
  --warm-accent: #ffa888;
  --gutter: clamp(20px, 4.5vw, 76px);
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.shell {
  width: min(calc(100% - 2 * var(--gutter)), 1280px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--paper);
  transform: translateY(calc(-100% - 20px));
}

.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }

.header-inner, .footer-inner {
  min-height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.header-inner nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 36px); }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font: 760 clamp(1.05rem, 2vw, 1.35rem)/1 var(--display);
  letter-spacing: -.045em;
  text-decoration: none;
}

.brand-mark {
  width: 25px;
  height: 25px;
  flex: none;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 23%, 38% 77%, 100% 77%, 100% 100%, 0 100%, 0 77%, 62% 23%, 0 23%);
}

.nav-link, .button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  text-decoration: none;
  white-space: nowrap;
  font-size: .875rem;
  font-weight: 660;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.nav-link:hover { color: var(--accent); }
.nav-contact { padding-inline: 15px; border: 1px solid var(--line); border-radius: 4px; }
.nav-contact:hover { border-color: var(--accent); }

.arrow {
  display: inline-block;
  position: relative;
  flex: none;
  width: 13px;
  height: 13px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}

.arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 3px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
  transform: rotate(45deg);
}

.arrow--diagonal { transform: rotate(-45deg); }

.hero {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  align-items: stretch;
  gap: clamp(28px, 4vw, 67px);
  padding-block: clamp(28px, 4vw, 60px) clamp(44px, 5vw, 76px);
}

.hero-copy { align-self: center; padding-block: 18px 24px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before { content: ''; width: 19px; height: 1px; background: currentColor; }

h1, h2, h3 { font-family: var(--display); }

h1 {
  margin-top: 22px;
  font-size: clamp(3.25rem, 5.1vw, 5rem);
  font-weight: 760;
  letter-spacing: -.078em;
  line-height: .97;
}

h1 em { display: block; color: var(--accent); font-style: normal; }

.hero-description {
  max-width: 37ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.62;
}

.button {
  min-height: 52px;
  margin-top: 28px;
  padding: 0 18px;
  border-radius: 4px;
}

.button--dark { background: var(--ink); color: var(--paper); }
.button--dark:hover { background: var(--accent); }

.hero-media {
  position: relative;
  min-height: clamp(350px, 38vw, 502px);
  background: #545452;
}

.hero-media img { height: 100%; position: absolute; inset: 0; object-fit: cover; }

.hero-media::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14%;
  height: 4px;
  background: var(--warm-accent);
}

.services { padding-block: clamp(55px, 6.1vw, 94px); background: var(--stone); }
.section-heading { margin-bottom: clamp(25px, 3.5vw, 49px); }

h2 {
  margin-top: 12px;
  font-size: clamp(2.5rem, 4.75vw, 4.3rem);
  font-weight: 730;
  letter-spacing: -.07em;
  line-height: 1.04;
}

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service { padding: 29px clamp(20px, 2.5vw, 38px) 0 0; }
.service + .service { border-left: 1px solid var(--line); padding-left: clamp(20px, 2.5vw, 38px); }

.service h3 {
  margin-top: 18px;
  font-size: clamp(1.23rem, 2.1vw, 1.64rem);
  font-weight: 740;
  letter-spacing: -.045em;
  line-height: 1.17;
}

.service p { max-width: 37ch; margin-top: 10px; color: var(--muted); }

.service-icon {
  display: block;
  position: relative;
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.service-icon::before, .service-icon::after, .service-icon i { position: absolute; }
.service-icon::before, .service-icon::after { content: ''; }
.icon--coordination::before, .icon--coordination::after { width: 16px; height: 16px; border: 1.5px solid; }
.icon--coordination::before { top: 2px; left: 2px; }
.icon--coordination::after { right: 2px; bottom: 2px; }
.icon--equipment::before { inset: 5px 2px; border: 1.5px solid; }
.icon--equipment::after { left: 11px; top: 11px; width: 8px; border-top: 1.5px solid; }
.icon--systems::before { inset: 2px; border: 1.5px solid; border-radius: 50%; }
.icon--systems::after { inset: 7px 14px; border-left: 1.5px solid; }
.icon--systems i { inset: 14px 7px; border-top: 1.5px solid; }

.contact { background: var(--ink); color: var(--paper); }
.contact .eyebrow { color: var(--warm-accent); }
.contact :focus-visible { outline-color: var(--warm-accent); }

.contact-inner {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  align-items: end;
  gap: 30px clamp(30px, 8vw, 120px);
  padding-block: clamp(53px, 6vw, 89px);
}

.contact-description { margin-top: 15px; color: #d3d7cf; }
.contact-links { border-top: 1px solid #555d56; font-style: normal; }

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 54px;
  padding: 10px 3px;
  border-bottom: 1px solid #555d56;
  font-weight: 640;
  text-decoration: none;
  transition: color .18s ease;
}

.contact-link .arrow, .contact-link:hover { color: var(--warm-accent); }
.contact-link:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; }

.site-footer { background: var(--paper); }
.footer-inner p { color: var(--muted); font-size: .84rem; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr 1fr; }
  h1 { letter-spacing: -.064em; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 25px; }
  .hero-copy { padding-block: 15px 6px; }
  h1 { font-size: clamp(3.15rem, 8.6vw, 4.5rem); }
  .hero-media { min-height: auto; aspect-ratio: 1.45; }
  .service-grid, .contact-inner { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 19px 0 23px; border-left: 0; border-bottom: 1px solid var(--line); }
  .service h3 { margin-top: 10px; }
  .service p { max-width: 48ch; margin-top: 6px; }
  .contact-inner { align-items: start; }
  .contact-links { max-width: 450px; }
}

@media (max-width: 420px) {
  .header-inner { min-height: 67px; gap: 12px; }
  .header-inner .wordmark { gap: 7px; }
  .header-inner .brand-mark { width: 19px; height: 19px; }
  .nav-contact { padding-inline: 0; border: 0; }
  .nav-contact .arrow { display: none; }
  .hero-description { margin-top: 18px; }
  .button { margin-top: 23px; }
}

@media (max-width: 350px) {
  .header-inner, .footer-inner { flex-wrap: wrap; padding-block: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-link, .button, .contact-link { transition: none; }
}
