/* MN Metrology — one-page site
   System fonts only. No third-party requests or trackers. */

:root {
  --navy: #0e1c2f;
  --navy-2: #16283f;
  --navy-3: #1e334d;
  --ink: #1a2330;
  --muted: #4a5a6a;
  --steel: #5c6e82;
  --line: #d4dbe3;
  --line-strong: #b7c2cd;
  --bg: #f3f5f7;
  --bg-alt: #e8edf2;
  --paper: #ffffff;
  --accent: #2c6a86;
  --accent-hover: #1f536b;
  --accent-soft: #7aa0b8;
  --brass: #c4a35a;
  --brass-text: #7a5c28;
  --focus: #2c6a86;
  --radius: 8px;
  --max: 1100px;
  --header-h: 4.25rem;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "Segoe UI Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(14, 28, 47, 0.06), 0 8px 24px rgba(14, 28, 47, 0.06);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 0.9rem;
  background: var(--paper);
  color: var(--navy);
  font-weight: 600;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  text-decoration: none;
  min-width: 0;
}

.wordmark:hover {
  color: var(--navy);
}

.wordmark .mark {
  flex: none;
  border-radius: 3px;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.wordmark-name {
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
}

.wordmark-place {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
}

.wordmark-tagline {
  margin-top: 0.12rem;
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--steel);
  line-height: 1.2;
}

.nav-wrap {
  position: relative;
}

.nav-wrap > summary {
  list-style: none;
}

.nav-wrap > summary::-webkit-details-marker {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper);
  color: var(--navy);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle-icon {
  width: 1rem;
  height: 0.7rem;
  position: relative;
  display: inline-block;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
}

.nav-toggle-icon::before {
  top: 0;
  box-shadow: 0 5px 0 currentColor;
}

.nav-toggle-icon::after {
  bottom: 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

@media (max-width: 799px) {
  .site-nav {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 14rem;
    padding: 0.4rem 0;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 1rem;
  }
}

@media (min-width: 800px) {
  .nav-toggle {
    display: none;
  }

  .nav-wrap {
    display: block;
  }

  .site-nav,
  .nav-wrap:not([open]) .site-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.6rem;
  }
}

/* Hero */

.hero {
  position: relative;
  background: var(--navy);
  color: #f4f7fa;
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 5.25rem 0 5.5rem;
  max-width: 44rem;
  margin-left: max((100% - var(--max)) / 2, 1.25rem);
  margin-right: auto;
  width: min(44rem, calc(100% - 2.5rem));
}

.hero-inner::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  background: var(--brass);
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero .eyebrow {
  color: var(--accent-soft);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.subhead {
  margin: 0 0 1.15rem;
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  line-height: 1.55;
  color: #d5dee8;
  max-width: 38rem;
}

.hero-byline {
  margin: 0 0 2rem;
  color: #9aabbb;
  font-size: 1rem;
}

.hero-actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: #e8eef4;
  color: var(--navy);
  border-color: #e8eef4;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #e8eef4;
  border-color: rgba(232, 238, 244, 0.45);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: #e8eef4;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.section-head h2,
.experience-grid h2,
.contact-inner h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Service / result cards */

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  border-top: 3px solid var(--navy);
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Process steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  counter-reset: none;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brass-text);
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* Industries */

.industry-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

@media (min-width: 800px) {
  .industry-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.industry-grid li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
}

/* Experience */

.section-navy {
  background: var(--navy-2);
  color: #e8eef4;
}

.section-navy h2 {
  color: #fff;
}

.eyebrow-light {
  color: var(--accent-soft);
}

.lede-light {
  color: #c5d0db;
}

.experience-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .experience-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 3rem;
  }
}

.why-mn {
  margin-top: 2.35rem;
  padding-top: 1.7rem;
  border-top: 1px solid rgba(232, 238, 244, 0.16);
  max-width: 40rem;
}

.why-mn h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.why-mn p {
  margin: 0;
  color: #c5d0db;
  font-size: 1.02rem;
  line-height: 1.65;
}

.why-mn i {
  font-style: italic;
  color: #e8eef4;
}

.software-block .software-label {
  margin: 0 0 0.7rem;
}

.software-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.software-list li {
  border: 1px solid rgba(232, 238, 244, 0.18);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
}

.software-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.25rem;
}

.software-name {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

/* Contact — email only, no phone */

.section-contact {
  background: var(--paper);
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact-inner {
  max-width: 36rem;
}

.contact-inner .eyebrow,
.contact-inner h2,
.contact-inner .lede {
  margin-left: auto;
  margin-right: auto;
}

.contact-email {
  margin: 1.75rem 0 0;
}

.contact-email a {
  display: inline-block;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.15rem;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.contact-email a:hover,
.contact-email a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: #9aabbb;
  padding: 2rem 0;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  font-weight: 600;
  color: #e8eef4;
}

.site-footer a {
  color: #e8eef4;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  flex-basis: 100%;
  margin-top: 0.35rem;
  color: #7b8b9a;
  font-size: 0.82rem;
}

@media (max-width: 479px) {
  .wrap,
  .header-inner {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .hero-inner {
    width: min(44rem, calc(100% - 1.5rem));
    margin-left: max((100% - var(--max)) / 2, 0.75rem);
    padding: 3.5rem 0 4rem;
  }

  .section {
    padding: 3.25rem 0;
  }
}
