/* HSE Consulting Services
   Layout: signage-style condensed headlines over a calm paper ground;
   dark green bands for services and contact; an "inspection tag" hero card. */
:root {
  --paper: #f7f7f5;
  --paper-2: #eceeeb;
  --white: #ffffff;
  --navy: #03173c;
  --ink: #1d2738;
  --muted: #56606e;
  --green: #044436;
  --green-2: #0a5b47;
  --green-3: #0d6e55;
  --lime: #8cc63f;
  --lime-ink: #10260a;
  --steel: #c4c8cc;
  --line: #d9ddd9;

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Public Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem);

  --radius: 6px;
  --wrap: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-stretch: 75%;
  color: var(--navy);
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--navy); color: var(--white); padding: 10px 14px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-3);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--lime); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--f-body); font-weight: 600; font-size: 0.98rem;
  text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--green); color: var(--white); }
.btn-solid:hover { background: var(--green-2); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { background: #9fd453; }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 247, 245, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand img { width: 168px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink);
  padding-block: 6px; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover, .site-nav a.is-active { border-bottom-color: var(--green); color: var(--green); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 10px; width: 24px; height: 2px; background: var(--navy); content: ""; transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before { top: -7px; left: 0; }
.nav-toggle-bars::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--step-4); font-weight: 850; letter-spacing: -0.01em; text-transform: uppercase; }
.hero h1 span { color: var(--green-3); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 58ch; margin-top: 22px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Inspection tag card */
.tag {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 10px solid var(--green);
  border-radius: 4px 4px 14px 14px;
  padding: 34px 26px 24px;
  box-shadow: 0 18px 40px -24px rgba(3, 23, 60, 0.35);
  min-width: 0;
}
.tag-hole {
  position: absolute; top: 12px; left: 50%; width: 18px; height: 18px; margin-left: -9px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--steel);
}
.tag-head {
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-align: center; padding-bottom: 14px; border-bottom: 1px dashed var(--steel);
}
.tag-list { margin: 0; display: grid; }
.tag-list > div { padding-block: 14px; border-bottom: 1px dashed var(--steel); display: grid; gap: 2px; }
.tag-list dt { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-3); }
.tag-list dd { margin: 0; font-weight: 600; color: var(--navy); line-height: 1.4; }
.tag-status { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 0.92rem; font-weight: 600; color: var(--green); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(140, 198, 63, 0.25); }

/* Pillars strip */
.pillars { background: var(--navy); color: var(--white); }
.pillars-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding-block: 18px;
  font-family: var(--f-display); font-stretch: 100%; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.95rem;
}
.pillars-row span { display: inline-flex; align-items: center; gap: 24px; }
.pillars-row span:not(:last-child)::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--green); color: #dbe8e2; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section h2 { font-size: var(--step-3); font-weight: 800; }
.section-intro { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.intro-text { color: var(--muted); font-size: var(--step-1); margin-top: 16px; max-width: 62ch; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); }
.about-copy { display: grid; gap: 18px; font-size: 1.05rem; max-width: 62ch; }
.purpose { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--lime); padding: 22px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.purpose h3 { font-size: var(--step-2); margin-bottom: 8px; color: var(--green); }
.sub-head { font-size: var(--step-2); margin: clamp(48px, 6vw, 72px) 0 22px; }
.values { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--navy); }
.values li { padding: 22px 20px 6px 0; display: grid; gap: 8px; align-content: start; }
.values li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.values svg { width: 34px; height: 34px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.values h4 { font-size: 1.35rem; font-weight: 800; }
.values p { color: var(--muted); font-size: 0.95rem; }

.led-by {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 28px;
  padding: 10px 20px 10px 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .18s;
}
.led-by:hover { border-color: var(--green-3); }
.led-by img { width: 72px; height: 90px; object-fit: cover; object-position: 50% 0; border-radius: 4px; }
.led-by > span { display: grid; line-height: 1.3; }
.led-label { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-3); }
.led-name { font-weight: 600; color: var(--navy); }
.led-role { font-size: 0.88rem; color: var(--muted); }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.14); }
.service { background: var(--green); padding: 28px 24px 30px; display: grid; gap: 12px; align-content: start; transition: background-color .2s; }
.service:hover { background: var(--green-2); }
.service svg { width: 40px; height: 40px; fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.45rem; font-weight: 800; }
.service p { font-size: 0.95rem; color: #c6d9d1; }
.service-cta { background: var(--navy); }
.service-cta:hover { background: #0a2350; }
.service-cta .btn { justify-self: start; margin-top: 6px; }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.industries li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: grid; gap: 10px; align-content: start;
  position: relative; overflow: hidden;
}
.industries li::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--navy) 0 10px, var(--lime) 10px 20px);
  opacity: 0; transition: opacity .2s;
}
.industries li:hover::before { opacity: 1; }
.industries h3 { font-size: 1.6rem; font-weight: 800; }
.industries p { color: var(--muted); font-size: 0.97rem; }

/* Bow tie */
.bowtie { margin: 0 0 clamp(36px, 5vw, 56px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.bowtie-scroll { overflow-x: auto; }
.bowtie-hint { display: none; margin-top: 10px; font-size: 0.85rem; color: var(--muted); text-align: center; }
.bowtie svg { width: 100%; min-width: 640px; height: auto; display: block; font-family: var(--f-body); }
.bt-threats rect { fill: var(--white); stroke: var(--navy); stroke-width: 1.5; }
.bt-threats text, .bt-cons text { font-size: 15px; font-weight: 600; text-anchor: middle; }
.bt-threats text { fill: var(--navy); }
.bt-cons rect { fill: var(--white); stroke: var(--green-3); stroke-width: 1.5; }
.bt-cons text { fill: var(--green); }
.bt-lines, .bt-lines path { fill: none; stroke: var(--steel); stroke-width: 2; }
.bt-prev { fill: var(--navy); }
.bt-mit { fill: var(--green-3); }
.bt-wing { fill: var(--white); font-size: 14px; font-weight: 700; text-anchor: middle; letter-spacing: 0.04em; text-transform: uppercase; }
.bt-top { fill: var(--white); stroke: var(--lime); stroke-width: 6; }
.bt-top-text { fill: var(--navy); font-family: var(--f-display); font-size: 24px; font-weight: 800; text-anchor: middle; text-transform: uppercase; }
.bt-axis { fill: var(--muted); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

.cycle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.cycle li { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 3px solid var(--navy); }
.cycle span { font-family: var(--f-mono); font-size: 0.8rem; color: var(--green-3); }
.cycle h3 { font-size: 1.6rem; font-weight: 800; text-transform: uppercase; }
.cycle p { color: var(--muted); font-size: 0.97rem; }

/* Founder */
.founder-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.founder-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: grid; gap: 6px; justify-items: start;
}
.portrait {
  margin: -30px -26px 20px; width: calc(100% + 52px); max-width: none;
  aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 5px solid var(--green); background: #5a5d62;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.founder-mono {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--white);
  font-family: var(--f-display); font-weight: 800; font-size: 2rem; letter-spacing: 0.04em;
  border: 4px solid var(--steel); margin-bottom: 16px;
}
.founder-card .eyebrow { margin-bottom: 0; }
.founder-name { font-size: var(--step-3); font-weight: 800; }
.founder-role { color: var(--muted); font-weight: 500; }
.creds { display: grid; gap: 8px; margin: 18px 0 22px; width: 100%; }
.creds li {
  font-family: var(--f-mono); font-size: 0.82rem; color: var(--navy);
  padding: 8px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
}
.founder-body .lead { margin-top: 0; color: var(--ink); }

.noscar { margin: 32px 0; padding: 22px; background: var(--navy); border-radius: var(--radius); }
.noscar-label { color: var(--white); font-weight: 600; margin-bottom: 14px; }
.noscar-years { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; }
.noscar-years li {
  font-family: var(--f-mono); font-size: 0.74rem; text-align: center; font-variant-numeric: tabular-nums;
  padding: 10px 0 8px; background: rgba(255, 255, 255, 0.06); color: var(--white);
  border-top: 3px solid var(--lime); border-radius: 2px;
}

.resp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.resp-grid h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.resp-grid li { position: relative; padding-left: 20px; margin-top: 8px; color: var(--ink); font-size: 0.97rem; }
.resp-grid li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--lime); border-radius: 1px; }

/* Why */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.why li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; }
.why h3 { font-size: 1.4rem; font-weight: 800; color: var(--green); }
.why p { color: var(--muted); font-size: 0.97rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-intro { margin-top: 16px; max-width: 52ch; font-size: 1.05rem; }
.contact-list { margin-top: 32px; display: grid; }
.contact-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-block: 16px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.contact-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.c-label { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); width: 92px; }
.c-value { color: var(--white); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; min-width: 0; }
.c-value:hover { text-decoration: underline; }
.copy {
  margin-left: auto; background: transparent; color: #dbe8e2; border: 1px solid rgba(255, 255, 255, 0.3);
  font: 500 0.8rem var(--f-body); padding: 5px 10px; border-radius: 4px; cursor: pointer;
}
.copy:hover { border-color: var(--lime); color: var(--white); }

.contact-form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--steel); border-radius: 4px; padding: 11px 12px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-3); box-shadow: 0 0 0 3px rgba(13, 110, 85, 0.2); background: var(--white); }
.field .invalid { border-color: #b3261e; }
.form-error { color: #b3261e; font-weight: 600; font-size: 0.92rem; }
.form-note { color: var(--muted); font-size: 0.85rem; text-align: center; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c3d6; padding-block: 44px 28px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 44px; background: var(--paper); border-radius: 8px; padding: 4px; }
.footer-name { color: var(--white); font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: 1.3rem; text-transform: uppercase; }
.footer-tag { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; font-size: 0.88rem; }
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 1060px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .values li:nth-child(4) { padding-left: 0; border-left: 0; }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder-grid { grid-template-columns: minmax(0, 1fr); }
  .founder-card { max-width: 460px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px clamp(16px, 4vw, 40px) 20px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder-card { position: static; max-width: 460px; }

}

@media (max-width: 600px) {
  .brand img { width: 138px; }
  .services, .industries, .why, .cycle, .resp-grid, .field-row { grid-template-columns: minmax(0, 1fr); }
  .values { grid-template-columns: minmax(0, 1fr); }
  .values li, .values li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .pillars-row { justify-content: center; font-size: 0.82rem; }
  .pillars-row span { gap: 14px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .copy { margin-left: 0; }
  .noscar-years { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .bowtie-hint { display: block; }
  .c-label { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
