/* ---------- Base ---------- */
:root {
  --ink: #16191d;
  --ink-soft: #4a5058;
  --muted: #7a8089;
  --paper: #f5f4f0;
  --white: #ffffff;
  --line: #d9d7d0;
  --accent: #d9480f;      /* safety orange */
  --dark: #1c2127;

  --sans: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;

  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--accent);
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.15s, color 0.15s;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 96px 0 88px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
  max-width: 820px;
}

.hero p {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 36px;
}

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

.hero-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta div { font-size: 15px; }
.hero-meta .label { display: block; margin-bottom: 4px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 8px 0 0;
}
.section-head p {
  color: var(--ink-soft);
  margin: 0;
  align-self: end;
}

/* ---------- Disciplines ---------- */
.disciplines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
}

.discipline {
  padding: 32px;
  border-right: 1px solid var(--line);
}
.discipline:last-child { border-right: none; }

.discipline .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
.discipline h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 12px 0 12px;
}
.discipline p {
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.discipline ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.discipline li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}
.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0;
}
.step p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

/* ---------- Approach (two column) ---------- */
.approach {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.approach h2 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  margin: 8px 0 16px;
}
.approach p { color: var(--ink-soft); }

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.spec td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec td:first-child {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  width: 40%;
  padding-top: 16px;
}

/* ---------- Contact band ---------- */
.contact-band {
  background: var(--dark);
  color: var(--white);
  padding: 72px 0;
}
.contact-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.contact-band h2 {
  font-size: 30px;
  font-weight: 600;
  margin: 8px 0 8px;
}
.contact-band p { color: #aab0b8; margin: 0; }
.contact-band .label { color: #8a9099; }
.contact-band .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.contact-band .btn-primary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #8a9099;
  border-top: 1px solid #2e343b;
  padding: 24px 0;
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: #aab0b8; text-decoration: none; margin-left: 20px; }
.site-footer a:hover { color: var(--white); }

/* ---------- CMS preview banner (staff only) ---------- */
.preview-banner {
  background: var(--accent);
  color: var(--white);
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}
.preview-banner a { color: var(--white); margin-left: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .disciplines { grid-template-columns: 1fr; }
  .discipline { border-right: none; border-bottom: 1px solid var(--line); }
  .discipline:last-child { border-bottom: none; }
  .process { grid-template-columns: 1fr 1fr; }
  .section-head,
  .approach-grid { grid-template-columns: 1fr; gap: 16px; }
  .approach-grid { gap: 40px; }
}

@media (max-width: 600px) {
  .nav { gap: 16px; font-size: 14px; }
  .brand span { display: none; }
  .hero { padding: 64px 0; }
  .section { padding: 64px 0; }
  .process { grid-template-columns: 1fr; }
  .site-footer a { margin: 0 20px 0 0; }
}
