:root {
  --black: #181818;
  --panel: #2b2b2b;
  --blue: #3e90c3;
  --white: #ffffff;
  --muted: #d6d6d6;
  --line: #5a5a5a;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 16px/1.7 var(--body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2 { font-family: var(--head); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; margin: 0 0 .5em; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { padding: 28px 0 0; }
.site-header .logo img { width: 200px; }
.site-header nav { border-top: 1px solid var(--line); margin-top: 24px; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-header nav a { font-size: 14px; text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { border-color: var(--blue); }

/* Hero */
.hero {
  min-height: clamp(360px, 62vh, 640px);
  display: grid; place-items: center; text-align: center;
  padding: 64px 16px;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), var(--img) center 70% / cover no-repeat;
}
.hero h1 { font-size: clamp(36px, 6vw, 72px); margin-bottom: .3em; }
.hero p { font-weight: 600; max-width: 640px; margin: 0 auto; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

section { padding: 64px 0; }

/* Equipment / Production / Service tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); }
.tile img { aspect-ratio: 9 / 8; object-fit: cover; width: 100%; }
.tile h2 { margin: 0; padding: 48px 16px; text-align: center; font-size: 24px; background: var(--panel); }
.tile.accent h2 { background: var(--blue); }

/* Story */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split .text { background: var(--panel); padding: 56px clamp(24px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.split .text h2 { font-size: clamp(28px, 3vw, 36px); }
.split .text p { color: var(--muted); max-width: 520px; }
.split img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

.button {
  display: inline-block; margin-top: 16px; padding: 10px 24px;
  background: var(--white); color: var(--black);
  font-size: 14px; text-decoration: none;
  transition: background .2s, color .2s;
}
.button:hover { background: var(--blue); color: var(--white); }

/* Contact */
.contact { background: var(--blue); text-align: center; }
.contact h2 { font-size: clamp(28px, 3vw, 36px); }
.contact p { margin: 0 auto; max-width: 560px; }
.contact .button:hover { background: var(--black); }

/* Inner pages */
.page-title { text-align: center; padding: 72px 0 32px; }
.page-title h1 { font-size: clamp(36px, 5vw, 56px); margin: 0; }
.prose { max-width: 760px; margin-inline: auto; text-align: center; color: var(--muted); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.services article { background: var(--panel); }
.services img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.services h2 { font-size: 24px; text-align: center; padding: 28px 16px; margin: 0; }

/* Footer */
.site-footer { padding: 40px 0; text-align: center; font-size: 13px; color: var(--muted); }
.site-footer p { margin: 4px 0; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--white); }

@media (max-width: 768px) {
  .tiles, .split, .services { grid-template-columns: 1fr; }
  .tile h2 { padding: 28px 16px; }
  section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
