/* ---- Tokens ---- */
:root {
  --bg: #FFFFFF;
  --bg-subtle: #FAFAF8;
  --ink: #1A1A1A;
  --ink-muted: #5A5A5A;
  --rule: #E5E5E5;
  --gold: #CFAE70;      /* decorative only — never a text color */
  --gold-deep: #8A6D3B; /* the accent for text */

  /* h1/h2 only; h3 and below use --font-body. The fallbacks are the two
     grotesques already installed almost everywhere, so a failed font load
     degrades to something close rather than to a serif. */
  --font-display: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --max: 1100px;
  --measure: 68ch;
}

/* ---- Fonts ---- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400;
  src: url("../fonts/inter-400.woff2") format("woff2"); font-display: swap;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500;
  src: url("../fonts/inter-500.woff2") format("woff2"); font-display: swap;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600;
  src: url("../fonts/inter-600.woff2") format("woff2"); font-display: swap;
}
@font-face {
  font-family: "Roboto"; font-style: normal; font-weight: 600;
  src: url("../fonts/roboto-600.woff2") format("woff2"); font-display: swap;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img { max-width: 100%; display: block; height: auto; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important;
    transition-duration: .01ms !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600;
  line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600;
  line-height: 1.3; }
p + p { margin-top: var(--s4); }

a { color: var(--ink); text-decoration: underline var(--gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px; transition: color .15s ease; }
a:hover { color: var(--gold-deep); }

:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.eyebrow { font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--gold-deep); margin-bottom: var(--s3); }

.prose { max-width: var(--measure); }
.prose p + p { margin-top: var(--s4); }

.arrow-link { font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.arrow-link::after { content: " \2192"; }

/* ---- Layout ---- */
.wrap { max-width: var(--max); margin-inline: auto;
  padding-inline: var(--s5); }
section { padding-block: var(--s9); }
section + section { border-top: 1px solid var(--rule); }
.rule { border: 0; border-top: 1px solid var(--rule); margin-block: var(--s7); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink);
  color: #fff; padding: var(--s3) var(--s4); z-index: 100; }
.skip-link:focus { left: 0; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg);
  border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center;
  justify-content: space-between; gap: var(--s5); padding-block: var(--s3); }
.site-header img { width: 132px; height: auto; }
.site-nav ul { display: flex; gap: var(--s5); list-style: none;
  margin: 0; padding: 0; }
.site-nav a { font-size: .875rem; font-weight: 500; text-decoration: none;
  color: var(--ink-muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-deep); }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule);
  padding: var(--s2) var(--s3); font: inherit; font-size: .875rem;
  cursor: pointer; color: var(--ink); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav[data-open="true"] { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; gap: 0; padding-block: var(--s3); }
  .site-nav li { border-top: 1px solid var(--rule); }
  .site-nav a { display: block; padding-block: var(--s3); }
}
/* No-JS fallback: if the script never runs, the nav stays visible. */
.no-js .site-nav { display: block; }
.no-js .nav-toggle { display: none; }

/* ---- Hero ---- */
.hero { padding-block: var(--s8) var(--s9); }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); max-width: 20ch; }
.hero p { margin-top: var(--s5); max-width: var(--measure);
  font-size: 1.125rem; color: var(--ink-muted); }
.hero img { margin-top: var(--s7); width: 100%; }

/* ---- Image band (full-width band for non-hero letterbox images) ---- */
.img-band { width: 100%; }

/* ---- Portrait photo (caps tall images so they don't dominate the page;
   landscape/letterbox images should use .img-band instead) ---- */
.img-portrait { max-width: min(520px, 100%); margin-inline: auto; }

/* ---- Hiring banner ---- */
.hiring { background: var(--bg-subtle); border-left: 3px solid var(--gold);
  border-bottom: 1px solid var(--rule); padding: var(--s4) var(--s5); }
.hiring p { max-width: none; font-size: .9375rem; }
.hiring strong { font-weight: 600; }

/* ---- Services ---- */
.services__grid { display: grid; gap: var(--s7);
  grid-template-columns: repeat(2, 1fr); margin-top: var(--s6); }
.services__col { display: flex; flex-direction: column; }
.services__col h3 { padding-bottom: var(--s3);
  border-bottom: 1px solid var(--rule); }
.services__col ul { margin-top: var(--s4); list-style: none; padding-left: 0; }
.services__col li { padding-block: var(--s2); color: var(--ink-muted); }
.services__col .arrow-link { display: inline-block; margin-top: auto;
  padding-top: var(--s4); color: var(--ink); }
@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; gap: var(--s6); }
}

/* ---- Team ---- */
.team-grid { display: grid; gap: var(--s7);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: var(--s6); }
.team-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.team-card h3 { margin-top: var(--s4); }
.team-card .role { color: var(--gold-deep); font-size: .875rem;
  font-weight: 500; }
.team-card p { margin-top: var(--s3); font-size: .9375rem;
  color: var(--ink-muted); }

/* ---- News ---- */
.news-grid { display: grid; gap: var(--s6);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: var(--s6); align-items: start; }
.news-item { border-top: 1px solid var(--rule); padding-top: var(--s4); }
.news-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  margin-bottom: var(--s4); }
.news-item .outlet { font-size: .75rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--gold-deep); }
.news-item h3 { margin-top: var(--s2); font-size: 1.125rem; }
.news-item .news-note { margin-top: var(--s1); font-size: .75rem;
  color: var(--ink-muted); }

/* ---- Titled list (divided list of heading + optional prose entries;
   used for equipment specs, project portfolios, portal directories) ---- */
.titled-list { margin-top: var(--s6); }
.titled-list > li { border-top: 1px solid var(--rule);
  padding-block: var(--s5); }
.titled-list h3 { margin-bottom: var(--s2); }
.titled-list p { color: var(--ink-muted); max-width: var(--measure); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--rule); background: var(--bg-subtle);
  padding-block: var(--s8); font-size: .9375rem; }
.site-footer .grid { display: grid; gap: var(--s6);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h2 { font-family: var(--font-body); font-size: .75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  color: var(--gold-deep); margin-bottom: var(--s4); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { padding-block: var(--s1); }
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-deep); }
.site-footer .colophon { margin-top: var(--s7); padding-top: var(--s5);
  border-top: 1px solid var(--rule); color: var(--ink-muted);
  font-size: .875rem; }
