/* ============================================================
   MODERN MACHINING, INC. — Precision since 1986
   Industrial design system: graphite / machined steel / hot brass
   ============================================================ */

:root {
  --ink: #16181d;
  --ink-2: #23262e;
  --ink-3: #2e323c;
  --steel: #8b919e;
  --steel-lt: #c3c7d0;
  --paper: #f4f3ef;
  --paper-2: #eceae4;
  --white: #ffffff;
  --brass: #d98e28;
  --brass-hot: #f0a739;
  --brass-deep: #b06f14;
  --line: rgba(22, 24, 29, 0.14);
  --line-dark: rgba(255, 255, 255, 0.12);
  --font-head: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-head);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }
.accent { color: var(--brass); }

h1, h2, h3 { line-height: 1.08; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

a { color: inherit; }

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brass-deep);
  margin-bottom: 18px;
  display: inline-block;
}
.section-dark .kicker { color: var(--brass-hot); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-solid {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.btn-solid:hover { background: var(--brass-hot); border-color: var(--brass-hot); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: var(--brass-hot); color: var(--brass-hot); }
.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: rgba(22, 24, 29, 0.35);
}
.btn-ghost-dark:hover { border-color: var(--brass-deep); color: var(--brass-deep); }
.btn-block { width: 100%; text-align: center; }
.btn-nav { padding: 10px 20px; font-size: 0.75rem; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink);
  color: var(--steel);
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.72rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar-phone { color: var(--brass-hot); text-decoration: none; font-weight: 600; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 24, 29, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.brand-mark { color: var(--brass); display: flex; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 800; letter-spacing: 0.06em; font-size: 1.02rem; line-height: 1.2; }
.brand-sub { font-size: 0.6rem; color: var(--steel); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--steel-lt);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--brass-hot); }
.nav-links a.btn { color: var(--ink); }
.nav-links a.btn:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 75% -10%, rgba(217, 142, 40, 0.13), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--white);
  overflow: hidden;
}
.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: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding-top: 110px;
  padding-bottom: 90px;
}
.hero .kicker { color: var(--brass-hot); }
.hero h1 .accent {
  color: var(--brass);
  position: relative;
}
.hero-lede {
  max-width: 620px;
  margin-top: 26px;
  font-size: 1.15rem;
  color: var(--steel-lt);
}
.hero-cta { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  margin-top: 72px;
}
.stat {
  background: rgba(22, 24, 29, 0.85);
  padding: 26px 24px;
}
.stat-num {
  display: block;
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--brass);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--steel);
}

/* ---------- Ticker ---------- */
.hero-ticker {
  position: relative;
  border-top: 1px solid var(--line-dark);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  padding: 13px 0;
  font-size: 0.74rem;
  color: var(--steel);
}
.ticker-track {
  display: flex;
  gap: 38px;
  white-space: nowrap;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker-track .tick { color: var(--brass-deep); font-size: 0.6rem; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-dark {
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(217, 142, 40, 0.09), transparent 60%),
    var(--ink);
  color: var(--white);
}
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-lede { margin-top: 20px; font-size: 1.08rem; color: rgba(22, 24, 29, 0.66); }
.section-dark .section-lede { color: var(--steel-lt); }

/* ---------- Capabilities ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cap-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 34px 30px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cap-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease, background 0.25s ease;
}
.cap-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(22, 24, 29, 0.3); border-color: rgba(22,24,29,0.28); }
.cap-card:hover::before { transform: scaleX(1); background: var(--brass); }
.cap-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 0.72rem;
  color: rgba(22, 24, 29, 0.35);
}
.cap-icon { color: var(--brass-deep); margin-bottom: 20px; }
.cap-card h3 { margin-bottom: 12px; }
.cap-card p { font-size: 0.95rem; color: rgba(22, 24, 29, 0.68); }
.cap-list {
  list-style: none;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 0.74rem;
  color: rgba(22, 24, 29, 0.55);
}
.cap-list li { padding: 3px 0; }
.cap-list li::before { content: "+ "; color: var(--brass-deep); font-weight: 600; }
.cap-card-cta {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  display: flex;
  flex-direction: column;
}
.cap-card-cta .cap-num { color: var(--brass); }
.cap-card-cta p { color: var(--steel-lt); flex: 1; }
.cap-card-cta .btn { margin-top: 22px; align-self: flex-start; }
.cap-card-cta:hover::before { background: var(--brass); }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.process-step {
  background: var(--ink);
  padding: 36px 28px 40px;
  position: relative;
}
.process-num {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--brass-hot);
  border: 1px solid rgba(240, 167, 57, 0.35);
  padding: 4px 10px;
  margin-bottom: 22px;
}
.process-step h3 { margin-bottom: 10px; }
.process-step p { font-size: 0.92rem; color: var(--steel); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-copy p { margin-top: 20px; color: rgba(22, 24, 29, 0.72); font-size: 1.03rem; }
.about-badges { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.badge {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  min-width: 120px;
}
.badge-top { font-size: 0.62rem; color: var(--brass-deep); letter-spacing: 0.1em; }
.badge-main { font-weight: 700; font-size: 1.02rem; margin-top: 2px; }

.spec-sheet {
  background: var(--ink);
  color: var(--steel-lt);
  padding: 34px;
  border: 1px solid var(--ink);
  box-shadow: 14px 14px 0 rgba(217, 142, 40, 0.9);
}
.spec-title {
  font-size: 0.72rem;
  color: var(--brass-hot);
  letter-spacing: 0.16em;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-dark);
}
.spec-list { font-size: 0.8rem; }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt { color: var(--steel); }
.spec-row dd { color: var(--white); text-align: right; }
.spec-live { color: var(--brass-hot) !important; }
.spec-live::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass-hot);
  margin-right: 8px;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ---------- RFQ ---------- */
.rfq-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: start;
}
.rfq-copy p { margin-top: 20px; color: var(--steel-lt); font-size: 1.03rem; }
.rfq-points { list-style: none; margin-top: 28px; }
.rfq-points li { padding: 8px 0; color: var(--steel-lt); display: flex; gap: 12px; }
.rfq-direct {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rfq-direct > .mono { font-size: 0.68rem; color: var(--steel); letter-spacing: 0.12em; }
.rfq-phone {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brass-hot);
  text-decoration: none;
}
.rfq-hours { font-size: 0.7rem; color: var(--steel); }

.rfq-form {
  position: relative;
  background: var(--white);
  color: var(--ink);
  padding: 40px 36px;
  border-top: 4px solid var(--brass);
}
.form-row { margin-bottom: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row-3 { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; gap: 18px; }
.rfq-form label { display: flex; flex-direction: column; gap: 7px; }
.rfq-form label > .mono {
  font-size: 0.64rem;
  font-weight: 600;
  color: rgba(22, 24, 29, 0.55);
  letter-spacing: 0.1em;
}
.rfq-form input,
.rfq-form select,
.rfq-form textarea {
  font-family: var(--font-head);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  border-radius: 0;
  width: 100%;
}
.rfq-form input:focus,
.rfq-form select:focus,
.rfq-form textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(217, 142, 40, 0.18);
}
.rfq-form textarea { resize: vertical; }
.form-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.64rem;
  color: rgba(22, 24, 29, 0.45);
  letter-spacing: 0.12em;
}
.form-success {
  position: absolute;
  inset: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  border-top: 4px solid var(--brass);
}
.form-success[hidden] { display: none; }
.success-mark {
  width: 62px;
  height: 62px;
  border: 2px solid var(--brass);
  color: var(--brass-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.form-success p { margin-top: 10px; color: rgba(22, 24, 29, 0.68); max-width: 380px; }
.form-success a { color: var(--brass-deep); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-label {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--brass-deep);
  letter-spacing: 0.14em;
}
.contact-card p { font-size: 1.05rem; font-weight: 600; line-height: 1.45; }
.contact-card p a { text-decoration: none; }
.contact-card p a:hover { color: var(--brass-deep); }
.contact-sub { font-size: 0.68rem; color: rgba(22, 24, 29, 0.5); }
.contact-link {
  margin-top: auto;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brass-deep);
  text-decoration: none;
}
.contact-link:hover { color: var(--ink); }
.contact-card-cta { background: var(--paper-2); border-style: dashed; }
.contact-card-cta .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--steel); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 56px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .brand-name { color: var(--white); font-weight: 800; letter-spacing: 0.06em; }
.footer-tag { font-size: 0.66rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: var(--steel-lt);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--brass-hot); }
.footer-meta { display: flex; flex-direction: column; gap: 10px; font-size: 0.74rem; }
.footer-bar { border-top: 1px solid var(--line-dark); }
.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 0.64rem;
  color: rgba(139, 145, 158, 0.7);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .rfq-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero-inner { padding-top: 72px; padding-bottom: 60px; }
  .cap-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; }
  .topbar-item:first-child { display: none; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 26px;
    gap: 18px;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-links.open { display: flex; }
}
