/* ============================================================
   Mechanicode — Homepage v2 ("Dark Forge")
   Drop-in stylesheet: static/css/home-v2.css
   Self-contained: tokens inlined, no dependency on legacy theme.
   Pairs with the new index.html. Fonts: Montserrat, Nunito Sans,
   JetBrains Mono (Google Fonts) + Font Awesome 5 (static/css/all.min.css).
   ============================================================ */

:root {
  --orange-50:  #FFF6EC;
  --orange-400: #FF9F26;
  --orange-500: #FF8C00;
  --orange-600: #E07800;
  --graphite-50:  #F5F7FA;
  --graphite-200: #DDE2EC;
  --graphite-300: #C2CAD9;
  --graphite-400: #6B7A99;
  --graphite-500: #4F4F4F;
  --graphite-800: #1A1A1A;
  --graphite-900: #090909;
  --success-500: #1E8C5A;
  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-sans: 'Nunito Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--graphite-900); font-family: var(--font-sans); color: var(--graphite-500); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
img { max-width: 100%; }

.mc-wordmark { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; font-style: normal; }
.mc-wordmark em { color: var(--orange-500); font-style: normal; }

@keyframes mc-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.mc-cog-spin { animation: mc-spin 5s linear infinite; }
@media (prefers-reduced-motion: reduce) { .mc-cog-spin { animation: none; } }

/* ---------- nav ---------- */
.v1-nav { display: flex; align-items: center; justify-content: space-between; padding: 26px 64px; gap: 24px; }
.v1-nav__brand { display: flex; align-items: center; gap: 12px; }
.v1-nav__brand img { width: 34px; height: 34px; }
.v1-nav__brand .mc-wordmark { color: #fff; font-size: 19px; }
.v1-nav__links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.v1-nav__links a { color: rgba(255,255,255,.62); font: 600 13px/1 var(--font-sans); letter-spacing: .04em; white-space: nowrap; transition: color .15s; }
.v1-nav__links a:hover { color: var(--orange-500); }
.v1-status { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; color: var(--success-500); border: 1px solid rgba(30,140,90,.35); border-radius: 3px; padding: 7px 12px; white-space: nowrap; }
.v1-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success-500); }

/* ---------- hero ---------- */
.v1-hero { position: relative; padding: 84px 64px 0; overflow: hidden; }
.v1-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.v1-eyebrow { font: 500 12px/1.5 var(--font-mono); letter-spacing: .1em; color: var(--orange-500); margin: 0 0 26px; }
.v1-hero h1 { font: 800 74px/1.04 var(--font-display); letter-spacing: -0.015em; color: #fff; margin: 0 0 28px; }
.v1-hero h1 em { font-style: normal; color: var(--orange-500); }
.v1-hero__lead { font: 300 19px/1.65 var(--font-sans); color: #fff; max-width: 540px; margin: 0 0 40px; }
.v1-hero__cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.v1-btn { display: inline-flex; align-items: center; gap: 10px; font: 700 14px/1 var(--font-display); letter-spacing: .04em; padding: 17px 32px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; transition: all .15s; }
.v1-btn--orange { background: var(--orange-500); color: #fff; }
.v1-btn--orange:hover { background: var(--orange-600); }
.v1-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.v1-btn--ghost:hover { border-color: var(--orange-500); color: var(--orange-500); }
.v1-hero__emblem { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.v1-hero__emblem img { width: 430px; opacity: .92; filter: drop-shadow(0 0 80px rgba(255,140,0,.25)); }
.v1-ring { position: absolute; border: 1px dashed rgba(255,140,0,.22); border-radius: 50%; }
.v1-ring--1 { width: 520px; height: 520px; }
.v1-ring--2 { width: 620px; height: 620px; border-color: rgba(255,255,255,.07); }
.v1-hero__rule { margin-top: 64px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 18px; padding: 14px 0 18px; font: 500 10px/1.5 var(--font-mono); letter-spacing: .1em; color: rgba(255,255,255,.32); flex-wrap: wrap; }

/* ---------- light body ---------- */
.v1-body { background: #fff; }
.v1-sec { padding: 88px 64px; }
.v1-sechead { display: flex; align-items: baseline; gap: 18px; margin-bottom: 56px; }
.v1-sechead .num { font: 500 12px/1 var(--font-mono); color: var(--orange-500); letter-spacing: .08em; }
.v1-sechead h2 { font: 800 34px/1.1 var(--font-display); color: var(--graphite-800); margin: 0; letter-spacing: -0.01em; }

/* competencies */
.v1-comp { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.v1-comp__cell { padding: 8px 36px 8px 0; }
.v1-comp__cell + .v1-comp__cell { border-left: 1px solid var(--graphite-200); padding-left: 36px; }
.v1-comp__icon { width: 52px; height: 52px; border-radius: 6px; background: var(--graphite-900); color: var(--orange-500); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 22px; }
.v1-comp__cell h3 { font: 700 21px/1.2 var(--font-display); color: var(--graphite-800); margin: 0 0 10px; }
.v1-comp__cell p { font: 400 15px/1.65 var(--font-sans); color: var(--graphite-400); margin: 0; }
.v1-comp__tag { display: block; font: 500 10px/1 var(--font-mono); letter-spacing: .1em; color: var(--graphite-300); margin-top: 20px; }

/* terminal section */
.v1-term { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.v1-term__copy .num { font: 500 12px/1 var(--font-mono); color: var(--orange-500); letter-spacing: .08em; display: block; margin-bottom: 16px; }
.v1-term__copy h2 { font: 800 34px/1.1 var(--font-display); color: var(--graphite-800); margin: 0 0 16px; letter-spacing: -0.01em; }
.v1-term__copy p { font: 400 15px/1.7 var(--font-sans); color: var(--graphite-400); margin: 0; max-width: 400px; }
.v1-console { background: var(--graphite-900); border-radius: 12px; box-shadow: 0 24px 60px rgba(41,41,41,.25); overflow: hidden; }
.v1-console__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.v1-console__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.v1-console__bar span { margin-left: auto; font: 500 10px/1 var(--font-mono); letter-spacing: .1em; color: rgba(255,255,255,.35); }
.v1-console__body { padding: 22px 22px 26px; font: 400 13px/2.1 var(--font-mono); }
.v1-console__body .p { color: var(--orange-500); }
.v1-console__body .c { color: #d6d9de; }
.v1-console__body .ok { color: var(--success-500); }
.v1-console__body .dim { color: rgba(255,255,255,.35); }

/* spotlight */
.v1-spot { background: var(--graphite-900); border-radius: 12px; margin: 0 64px; padding: 64px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.v1-spot::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border: 1px dashed rgba(255,140,0,.18); border-radius: 50%; }
.v1-spot__eyebrow { font: 500 11px/1 var(--font-mono); letter-spacing: .1em; color: var(--orange-500); margin: 0 0 18px; }
.v1-spot h3 { font: 800 36px/1.12 var(--font-display); color: #fff; margin: 0 0 18px; letter-spacing: -0.01em; }
.v1-spot p { font: 300 16px/1.7 var(--font-sans); color: rgba(255,255,255,.6); margin: 0 0 30px; max-width: 520px; }
.v1-spot__link { display: inline-flex; align-items: center; gap: 10px; font: 700 14px/1 var(--font-display); letter-spacing: .04em; color: var(--orange-500); cursor: pointer; }
.v1-spot__link:hover { color: var(--orange-400); }
.v1-spot__meta { display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,.12); margin: 0; }
.v1-spot__meta > div { padding: 18px 0 18px 28px; }
.v1-spot__meta > div + div { border-top: 1px solid rgba(255,255,255,.08); }
.v1-spot__meta dt { font: 500 10px/1 var(--font-mono); letter-spacing: .1em; color: rgba(255,255,255,.35); margin: 0 0 8px; }
.v1-spot__meta dd { font: 700 17px/1.3 var(--font-display); color: #fff; margin: 0; }

/* clients */
.v1-clients { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.v1-clients img { max-height: 72px; max-width: 175px; object-fit: contain; filter: grayscale(1); opacity: .55; transition: all .18s; }
.v1-clients img:hover { filter: none; opacity: 1; }
.v1-clients__lbl { font: 500 12px/1 var(--font-mono); letter-spacing: .12em; color: var(--graphite-400); margin-bottom: 36px; display: block; }

/* footer */
.v1-foot { background: var(--graphite-900); padding: 56px 64px 36px; }
.v1-foot__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.v1-foot .mc-wordmark { color: #fff; font-size: 20px; }
.v1-foot__creds { display: flex; gap: 26px; flex-wrap: wrap; font: 500 10px/1.6 var(--font-mono); letter-spacing: .06em; color: #fff; margin-top: 14px; }
.v1-foot__bar { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; font: 400 12px/1.5 var(--font-sans); color: #fff; flex-wrap: wrap; }
.v1-foot__contact { text-align: right; font: 400 13px/1.9 var(--font-sans); color: #fff; }
.v1-foot__contact a { color: var(--orange-500); }

/* ============================================================
   Inner pages (past_performance.html, careers.html)
   ============================================================ */

.v1-nav__links a.is-active { color: var(--orange-500); }

/* compact dark hero strip */
.v1-pagehero { position: relative; padding: 72px 64px 0; overflow: hidden; }
.v1-pagehero__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; padding-bottom: 64px; }
.v1-pagehero h1 { font: 800 54px/1.06 var(--font-display); letter-spacing: -0.015em; color: #fff; margin: 0 0 22px; }
.v1-pagehero h1 em { font-style: normal; color: var(--orange-500); }
.v1-pagehero__lead { font: 300 18px/1.65 var(--font-sans); color: #fff; max-width: 560px; margin: 0; }
.v1-pagehero__lead strong { color: #fff; font-weight: 600; }
.v1-pagehero__emblem { position: relative; display: flex; justify-content: center; align-items: center; min-height: 260px; }
.v1-pagehero__emblem img { width: 220px; opacity: .92; filter: drop-shadow(0 0 60px rgba(255,140,0,.22)); }
.v1-pagehero__emblem .v1-ring--s { position: absolute; width: 300px; height: 300px; border: 1px dashed rgba(255,140,0,.22); border-radius: 50%; }
.v1-pagehero__rule { border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 18px; padding: 14px 0 18px; font: 500 10px/1.5 var(--font-mono); letter-spacing: .1em; color: rgba(255,255,255,.32); flex-wrap: wrap; }

/* performance rows */
.v1-perf { display: flex; flex-direction: column; }
.v1-perf__row { display: grid; grid-template-columns: 110px 52px 1fr 220px; gap: 28px; align-items: start; padding: 44px 0; border-top: 1px solid var(--graphite-200); }
.v1-perf__row:last-child { border-bottom: 1px solid var(--graphite-200); }
.v1-perf__code { font: 500 12px/1.6 var(--font-mono); color: var(--graphite-300); letter-spacing: .04em; padding-top: 14px; }
.v1-perf__icon { width: 52px; height: 52px; border-radius: 6px; background: var(--graphite-900); color: var(--orange-500); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.v1-perf__body h3 { font: 700 22px/1.2 var(--font-display); color: var(--graphite-800); margin: 0 0 10px; }
.v1-perf__body p { font: 400 15px/1.7 var(--font-sans); color: var(--graphite-400); margin: 0; max-width: 640px; }
.v1-perf__client { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding-top: 8px; }
.v1-perf__client img { max-height: 60px; max-width: 95px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: all .18s; }
.v1-perf__client__name { font: 700 15px/1 var(--font-display); color: var(--graphite-300); letter-spacing: .04em; }
.v1-perf__row:hover .v1-perf__client img { filter: none; opacity: 1; }

/* careers benefits */
.v1-bens { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.v1-ben { border: 1px solid var(--graphite-200); border-radius: 12px; padding: 34px 32px; transition: all .18s; }
.v1-ben:hover { border-color: var(--graphite-300); box-shadow: 0 4px 24px rgba(79,79,79,.08); transform: translateY(-2px); }
.v1-ben__icon { width: 52px; height: 52px; border-radius: 6px; background: var(--graphite-900); color: var(--orange-500); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 20px; }
.v1-ben h3 { font: 700 20px/1.25 var(--font-display); color: var(--graphite-800); margin: 0 0 10px; }
.v1-ben p { font: 400 15px/1.65 var(--font-sans); color: var(--graphite-400); margin: 0; }
.v1-ben p strong { color: var(--graphite-800); font-weight: 700; }
.v1-ben__tag { display: block; font: 500 10px/1 var(--font-mono); letter-spacing: .1em; color: var(--graphite-300); margin-top: 18px; }

/* apply band */
.v1-apply { background: var(--graphite-900); border-radius: 12px; margin: 0 64px; padding: 56px 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; flex-wrap: wrap; }
.v1-apply::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 380px; height: 380px; border: 1px dashed rgba(255,140,0,.18); border-radius: 50%; }
.v1-apply h2 { font: 800 32px/1.15 var(--font-display); color: #fff; margin: 0 0 12px; letter-spacing: -0.01em; }
.v1-apply p { font: 300 16px/1.6 var(--font-sans); color: rgba(255,255,255,.6); margin: 0; max-width: 480px; }
.v1-apply .v1-btn { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .v1-pagehero { padding: 48px 28px 0; }
  .v1-pagehero__grid { grid-template-columns: 1fr; }
  .v1-pagehero__emblem { display: none; }
  .v1-pagehero h1 { font-size: 38px; }
  .v1-perf__row { grid-template-columns: 52px 1fr; }
  .v1-perf__code { grid-column: 1 / -1; padding-top: 0; }
  .v1-perf__client { grid-column: 1 / -1; justify-content: flex-start; }
  .v1-bens { grid-template-columns: 1fr; }
  .v1-apply { margin: 0 28px; padding: 40px 28px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .v1-hero h1 { font-size: 56px; }
  .v1-hero__emblem img { width: 320px; }
  .v1-ring--1 { width: 400px; height: 400px; }
  .v1-ring--2 { width: 480px; height: 480px; }
}
@media (max-width: 900px) {
  .v1-nav { padding: 20px 28px; flex-wrap: wrap; }
  .v1-status { display: none; }
  .v1-hero { padding: 56px 28px 0; }
  .v1-hero__grid { grid-template-columns: 1fr; }
  .v1-hero__emblem { min-height: 0; order: -1; }
  .v1-hero__emblem img { width: 200px; }
  .v1-ring { display: none; }
  .v1-hero h1 { font-size: 42px; }
  .v1-sec { padding: 64px 28px; }
  .v1-comp { grid-template-columns: 1fr; gap: 36px; }
  .v1-comp__cell + .v1-comp__cell { border-left: none; padding-left: 0; border-top: 1px solid var(--graphite-200); padding-top: 36px; }
  .v1-term { grid-template-columns: 1fr; }
  .v1-spot { margin: 0 28px; padding: 40px 28px; grid-template-columns: 1fr; }
  .v1-foot { padding: 48px 28px 28px; }
  .v1-foot__contact { text-align: left; }
  .v1-clients { justify-content: center; }
  .v1-clients img { max-height: 56px; }
}
