:root {
  --ink: #17211d;
  --muted: #5f6b66;
  --paper: #f4f7f6;
  --panel: #ffffff;
  --line: #d4ded9;
  --green: #245a43;
  --deep: #11372d;
  --gold: #c6923b;
  --steel: #3d5964;
  --shadow: 0 18px 45px rgba(23, 33, 29, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(244, 247, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  text-decoration: none;
}
.brand img {
  width: 84px;
  height: auto;
  object-fit: contain;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 22px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover, .nav a.active {
  color: var(--green);
  border-bottom-color: var(--gold);
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 28px;
  padding: clamp(54px, 8vw, 110px) clamp(18px, 4vw, 54px) 34px;
  background:
    linear-gradient(90deg, rgba(14, 31, 25, 0.88), rgba(14, 31, 25, 0.55) 48%, rgba(14, 31, 25, 0.12)),
    url("assets/knt-geotechnical-hero.png") center / cover no-repeat;
  color: #fff;
}
.hero-copy { max-width: 790px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, h3 { letter-spacing: 0; }
.hero h1, .page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
}
.lead, .page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 21px);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,0.42);
  text-decoration: none;
  font-weight: 800;
}
.button.primary { background: var(--gold); border-color: var(--gold); color: #17120b; }
.button.secondary { color: #fff; }

.quick-contact {
  justify-self: end;
  width: min(100%, 360px);
  padding: 22px;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.quick-contact strong, .quick-contact a { display: block; }
.quick-contact strong { color: var(--deep); margin-bottom: 14px; }
.quick-contact a {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.quick-contact span { display: block; color: var(--muted); font-size: 13px; }

.page-hero {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 54px);
  background: var(--deep);
  color: #fff;
}
.page-hero p:not(.eyebrow) { margin-top: 18px; }

.section {
  padding: clamp(54px, 7vw, 94px) clamp(18px, 4vw, 54px);
}
.section-heading {
  max-width: 860px;
  margin-bottom: 30px;
}
.section-heading h2, .intro-grid h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.9fr);
  gap: 32px;
  background: #fff;
}
.intro-grid > p, .section-heading p, article p, li { color: var(--muted); }

.service-grid, .people-grid, .project-list, .columns, .gallery-grid {
  display: grid;
  gap: 18px;
}
.service-grid { grid-template-columns: repeat(3, 1fr); }
.people-grid, .project-list, .columns { grid-template-columns: repeat(2, 1fr); }

article, .columns > div, .contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 26px;
  box-shadow: 0 1px 0 rgba(23, 33, 29, 0.03);
}
article h2, article h3, .columns h2 {
  margin: 0 0 12px;
  color: var(--deep);
  line-height: 1.18;
}
.role {
  color: var(--steel);
  font-weight: 800;
}
.project-list span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 620px);
}
.contact-card {
  border-left: 6px solid var(--gold);
  box-shadow: var(--shadow);
}
.contact-card p { margin: 0 0 18px; color: var(--muted); }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card a { color: var(--green); font-weight: 800; }

.gallery-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}
.gallery-grid figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
}
.gallery-grid figcaption {
  min-height: 56px;
  padding: 14px 16px;
  color: var(--deep);
  font-weight: 800;
  line-height: 1.25;
}

.project-history {
  max-width: 1100px;
  margin: 0 auto;
}
.history-year {
  margin-top: 30px;
}
.history-year h3 {
  position: sticky;
  top: 96px;
  z-index: 1;
  margin: 0 0 12px;
  padding: 12px 16px;
  background: var(--deep);
  color: #fff;
  font-size: 24px;
}
.history-year article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 20px;
  border-top: 0;
  box-shadow: none;
}
.history-year time {
  color: var(--gold);
  font-weight: 900;
}
.history-year h4 {
  margin: 0 0 6px;
  color: var(--deep);
  font-size: 18px;
  line-height: 1.25;
}
.history-year p {
  margin: 0;
}

.highlight-list {
  max-width: 1100px;
  margin: 0 auto;
}
.highlight-list h3 {
  margin: 34px 0 14px;
  padding: 12px 16px;
  background: var(--deep);
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}
.highlight-list ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: highlight-item;
}
.highlight-list li {
  counter-increment: highlight-item;
  position: relative;
  margin: 0 0 12px;
  padding: 18px 20px 18px 68px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}
.highlight-list li::before {
  content: counter(highlight-item);
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--gold);
  color: #17120b;
  font-weight: 900;
}
.highlight-list strong,
.highlight-list span {
  display: block;
}
.highlight-list strong {
  margin-bottom: 6px;
  color: var(--deep);
  font-size: 18px;
  line-height: 1.25;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 54px);
  background: var(--ink);
  color: rgba(255,255,255,0.74);
  font-size: 14px;
}
footer a { color: #fff; }

@media (max-width: 980px) {
  .site-header, footer { align-items: flex-start; flex-direction: column; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .hero, .intro-grid { grid-template-columns: 1fr; }
  .quick-contact { justify-self: start; }
  .service-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 660px) {
  .hero { min-height: auto; }
  .hero h1, .page-hero h1 { font-size: 38px; }
  .service-grid, .people-grid, .project-list, .columns, .gallery-grid { grid-template-columns: 1fr; }
  .history-year article { grid-template-columns: 1fr; gap: 6px; }
  .actions, .button { width: 100%; }
  .brand { min-width: 0; }
}
