/* ============================================================
   PROCTORED — Graphite & Steel
   Site stylesheet · Rev 3.0
   ============================================================ */

:root {
  /* ——— Color tokens ——— */
  --paper:    #F4F5F5;
  --card:     #FBFBFB;
  --ink:      #1C1F21;
  --steel:    #556678;
  --steel-dk: #37485A;
  --line:     #D2D5D7;
  --muted:    #626A70;

  /* Ink-surface derivatives (dark bands) */
  --ink-paper:  #F4F5F5;
  --ink-muted:  #9AA3AB;
  --ink-line:   #333A40;
  --ink-steel:  #7C8B9C;

  /* ——— Type ——— */
  --display: "Spectral", Georgia, "Times New Roman", serif;
  --body:    "Inter", -apple-system, system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* ——— Space ——— */
  --measure: 66ch;
  --gutter:  clamp(20px, 5vw, 48px);
  --bay:     clamp(72px, 11vw, 148px);   /* vertical section rhythm */
  --maxw:    1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--steel-dk); text-underline-offset: 3px; text-decoration-thickness: 1px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ——— Shared type utilities ——— */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-dk);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}
.eyebrow.muted { color: var(--muted); }
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--steel);
  display: inline-block;
}
.eyebrow.no-tick::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.014em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(38px, 6.6vw, 76px); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4.2vw, 46px); }
h3 { font-size: clamp(21px, 2.4vw, 27px); letter-spacing: -0.01em; }

p { max-width: var(--measure); }
.lede {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(19px, 2.3vw, 25px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 40ch;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  padding-left: 2px;
}

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); }
.nav-links a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--steel-dk);
}
/* In-menu CTA is for the mobile dropdown only; desktop uses .header-cta */
.nav-links .btn { display: none; }

/* Buttons */
.btn {
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.005em;
  padding: 13px 26px;
  border-radius: 2px;
  border: 1px solid var(--steel-dk);
  background: var(--steel-dk);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn .arw { transition: transform 0.18s ease; }
.btn:hover .arw { transform: translateX(3px); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: var(--paper); }
.btn.sm { padding: 10px 20px; font-size: 14px; }
.btn.ghost-light { background: transparent; color: var(--ink-paper); border-color: var(--ink-steel); }
.btn.ghost-light:hover { background: var(--ink-paper); color: var(--ink); border-color: var(--ink-paper); }
.btn.on-ink { background: var(--ink-paper); color: var(--ink); border-color: var(--ink-paper); }
.btn.on-ink:hover { background: transparent; color: var(--ink-paper); border-color: var(--ink-steel); }
.btn:focus-visible { outline: 2px solid var(--steel-dk); outline-offset: 3px; }

.header-cta { display: inline-flex; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  padding: 8px;
  color: var(--ink);
}
.nav-toggle span {
  display: block; height: 1.6px; background: currentColor;
  margin: 5px 0; transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(64px, 9vw, 116px); padding-bottom: var(--bay); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 30px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* Inspection stamp block, sits to the right of the hero */
.hero-stamp {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 26px;
  width: 260px;
  align-self: end;
  position: relative;
}
.hero-stamp .doc-line {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.hero-stamp .big-check { width: 44px; height: 44px; margin-bottom: 16px; }
.hero-stamp .stamp-title {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.hero-stamp .stamp-sub {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  max-width: none;
}
.hero-stamp .rev {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--steel-dk);
  display: flex; justify-content: space-between;
}

/* Statement band under hero */
.statement { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.statement .wrap { padding-block: clamp(44px, 7vw, 80px); }
.statement p {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 24ch;
}
.statement .accent { color: var(--steel-dk); font-style: italic; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section[id] { scroll-margin-top: 80px; }
.bay { padding-block: var(--bay); border-bottom: 1px solid var(--line); }
.section-head { max-width: var(--measure); }
.section-head h2 { margin-top: 4px; }
.section-head .sub { color: var(--muted); margin-top: 18px; font-size: 18px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-intro { display: grid; grid-template-columns: 1fr; gap: 0; }
.svc-list { margin-top: clamp(40px, 6vw, 68px); border-top: 1px solid var(--line); }
.svc {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(38px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}
.svc .num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--steel);
  padding-top: 8px;
}
.svc-headcol h3 { max-width: 14ch; }
.svc-headcol .problem {
  color: var(--muted);
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.58;
}
.svc-body p { font-size: 16.5px; line-height: 1.62; }
.svc-body .result {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.svc-body .result svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.svc-body .result span {
  font-family: var(--display);
  font-size: 17.5px;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
}

.svc-cta { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.svc-cta .txt h3 { margin-bottom: 8px; }
.svc-cta .txt p { color: var(--muted); font-size: 16px; margin: 0; }

/* ============================================================
   STATS / TRACK RECORD
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(40px, 6vw, 60px); }
.stat { background: var(--paper); padding: clamp(26px, 3.5vw, 40px); }
.stat .fig { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 5vw, 54px); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.stat .fig .unit { color: var(--steel); }
.stat .cap { margin-top: 14px; font-size: 14.5px; color: var(--muted); line-height: 1.5; max-width: 30ch; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.about-portrait { position: sticky; top: 104px; }
.portrait-frame {
  border: 1px solid var(--line);
  background: var(--card);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.portrait-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; z-index: 1; }
.portrait-frame .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, color-mix(in srgb, var(--steel) 8%, transparent) 22px 23px),
    var(--card);
  color: var(--steel);
}
.portrait-frame .placeholder svg { width: 64px; height: 64px; opacity: 0.5; }
.portrait-cap {
  position: relative;
  z-index: 2;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--ink) 90%, transparent);
  color: var(--ink-paper);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}
.about-body h2 { max-width: 16ch; }
.about-body .overview { margin-top: 24px; font-size: 18px; color: var(--ink); }
.about-body .bio { margin-top: 20px; color: var(--muted); font-size: 16.5px; line-height: 1.64; }
.about-body .bio + .bio { margin-top: 16px; }
.about-body .bio strong { color: var(--ink); font-weight: 600; }

.credentials { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 26px; }
.credentials .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.cred-grid li { list-style: none; font-size: 15px; display: flex; gap: 10px; align-items: baseline; }
.cred-grid { margin: 0; padding: 0; }
.cred-grid li::before { content: ""; width: 5px; height: 5px; flex: none; background: var(--steel); transform: translateY(-2px); }

.philosophy {
  margin-top: 40px;
  border-left: 2px solid var(--steel);
  padding: 4px 0 4px 24px;
}
.philosophy .quote {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.34;
  color: var(--ink);
  max-width: 26ch;
}
.philosophy .expand { margin-top: 16px; color: var(--muted); font-size: 16px; }
.about-body .about-actions { margin-top: 36px; }

/* ============================================================
   CONTACT (dark band)
   ============================================================ */
.contact {
  background: var(--ink);
  color: var(--ink-paper);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1100px 500px at 82% -10%, color-mix(in srgb, var(--steel) 26%, transparent), transparent 60%);
  pointer-events: none;
}
.contact .wrap { position: relative; z-index: 1; }
.contact .eyebrow { color: var(--ink-steel); }
.contact .eyebrow::before { background: var(--ink-steel); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact h2 { color: var(--ink-paper); max-width: 15ch; }
.contact .body { color: var(--ink-muted); margin-top: 24px; font-size: 18px; max-width: 44ch; }
.contact .sub { color: var(--ink-muted); margin-top: 16px; font-size: 16px; max-width: 44ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.contact-card {
  border: 1px solid var(--ink-line);
  background: color-mix(in srgb, #ffffff 4%, transparent);
  padding: clamp(26px, 3vw, 34px);
}
.contact-card .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-steel); margin-bottom: 20px; }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--ink-line); text-decoration: none; color: var(--ink-paper); transition: color 0.15s ease; }
.contact-row:first-of-type { border-top: none; }
.contact-row:hover { color: #fff; }
.contact-row:hover .ci { border-color: var(--ink-paper); }
.contact-row .ci { width: 38px; height: 38px; flex: none; border: 1px solid var(--ink-line); display: flex; align-items: center; justify-content: center; color: var(--ink-steel); transition: border-color 0.15s ease; }
.contact-row .ci svg { width: 18px; height: 18px; }
.contact-row .meta small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 3px; }
.contact-row .meta span { font-size: 15.5px; }
.contact-row .arw { margin-left: auto; color: var(--ink-steel); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--ink-muted); padding-block: clamp(48px, 6vw, 72px); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 34px; border-bottom: 1px solid var(--ink-line); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand svg { width: 34px; height: 34px; }
.footer-brand .wordmark { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-paper); }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink-paper); }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 28px; align-items: center; }
.footer-industries { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.sdvosb {
  display: inline-flex; align-items: center; gap: 11px;
  border: 1px solid var(--ink-line); padding: 9px 14px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-steel);
}
.sdvosb svg { width: 18px; height: 18px; flex: none; }
.footer-legal { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: var(--ink-muted); text-transform: uppercase; width: 100%; margin-top: 6px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.06s; }
.reveal[data-d="2"] { transition-delay: 0.12s; }
.reveal[data-d="3"] { transition-delay: 0.18s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stamp { display: none; }
  .svc { grid-template-columns: 48px 1fr; }
  .svc-body { grid-column: 2; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 380px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 72px; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-120%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 24px 40px -28px rgba(28,31,33,0.4);
  }
  .nav-open .nav-links { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 15px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav-links a.active::after { display: none; }
  .nav-links .btn { display: inline-flex; margin-top: 18px; width: 100%; justify-content: center; border-bottom: none; padding: 14px 26px; }
  .svc { grid-template-columns: 1fr; gap: 22px; }
  .svc .num { padding-top: 0; }
  .cred-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
