/* Marvel Precision Engineering — site styles
   Industrial palette: graphite + steel + safety amber. */
:root {
  --ink: #0d1117;
  --ink-2: #161b22;
  --steel-9: #1f262e;
  --steel-7: #3a444f;
  --steel-5: #6b7682;
  --steel-3: #c5ccd3;
  --steel-1: #eef1f4;
  --paper: #f7f8fa;
  --white: #ffffff;
  --amber: #f5a524;
  --amber-d: #d98b0b;
  --text: #1a2028;
  --muted: #5b6672;
  --line: #dde2e7;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(13,17,23,.06), 0 8px 24px rgba(13,17,23,.08);
  --f-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 400 16px/1.65 var(--f-body); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.05; letter-spacing: .005em; margin: 0 0 .5em; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.accent { color: var(--amber); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }

.eyebrow { font: 600 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-d); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--amber); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .95rem/1 var(--f-body); padding: 13px 22px; border-radius: var(--radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: #ffb63d; }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--steel-9); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--sm { padding: 9px 14px; font-size: .85rem; }
.btn--lg { padding: 16px 26px; font-size: 1rem; }

/* Top bar + header */
.topbar { background: var(--ink); color: var(--steel-3); font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar__tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); letter-spacing: .04em; }
.topbar__tag .dot { width: 7px; height: 7px; border-radius: 50%; background: #3fb950; box-shadow: 0 0 0 3px rgba(63,185,80,.2); }
.topbar__links { display: flex; gap: 20px; }
.topbar__links a { text-decoration: none; }
.topbar__links a:hover { color: #fff; }

.header { position: sticky; top: 0; isolation: isolate; z-index: 50; background: rgba(13,17,23,.96); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__wordmark { height: 46px; width: auto; }
.footer__badge { width: 96px; height: 96px; margin-bottom: 18px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--steel-3); text-decoration: none; font-weight: 500; font-size: .92rem; padding: 10px 12px; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a.is-active { color: #fff; border-bottom-color: var(--amber); }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero, .page-hero { position: relative; color: #fff; background: var(--ink) var(--hero, none) center/cover no-repeat; isolation: isolate; }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(13,17,23,.94) 0%, rgba(13,17,23,.82) 45%, rgba(13,17,23,.45) 100%); }
.hero__grid { position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, #000 30%, transparent 85%); }
.hero__inner { padding-block: 120px 72px; }
.hero__title { max-width: 14ch; margin-bottom: 24px; }
.hero__lead { max-width: 60ch; font-size: 1.12rem; color: var(--steel-3); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.statbar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.statbar li { padding: 26px 20px 30px 0; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid rgba(255,255,255,.08); padding-left: 20px; }
.statbar li:first-child { padding-left: 0; }
.statbar li:last-child { border-right: 0; }
.statbar__k { font: 700 1.7rem/1 var(--f-head); color: var(--amber); text-transform: uppercase; }
.statbar__v { font-size: .85rem; color: var(--steel-3); }

.page-hero__inner { padding-block: 96px 72px; }
.page-hero h1 { max-width: 20ch; font-size: clamp(2.3rem, 5vw, 3.8rem); }
.page-hero__lead { max-width: 62ch; color: var(--steel-3); font-size: 1.08rem; margin: 0; }
.page-hero .hero__actions { margin-top: 28px; }

/* Sections */
.section { padding: 96px 0; }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .eyebrow { color: var(--amber); }
.section--steel { background: var(--steel-1); }
.section__head { max-width: 760px; margin-bottom: 48px; }

/* Capability cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--steel-3); }
.card__img { aspect-ratio: 3/2; overflow: hidden; background: var(--steel-9); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; filter: saturate(.85); }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 22px 24px 26px; position: relative; flex: 1; display: flex; flex-direction: column; border-top: 3px solid var(--amber); }
.card__code { font-size: .75rem; color: var(--steel-5); letter-spacing: .1em; }
.card__body h3 { margin: 8px 0 10px; }
.card__body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card__more { font-weight: 600; font-size: .9rem; color: var(--ink); }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.12); border-left: 1px solid rgba(255,255,255,.12); }
.process__step { padding: 32px 28px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.process__n { display: inline-block; color: var(--ink); background: var(--amber); font-size: .8rem; padding: 4px 8px; margin-bottom: 18px; }
.process__step p { color: var(--steel-3); margin: 0; font-size: .95rem; }

/* Split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.split__media::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 110px; height: 110px; border-left: 4px solid var(--amber); border-bottom: 4px solid var(--amber); pointer-events: none; }
.split--rev .split__media::after { left: auto; right: -14px; border-left: 0; border-right: 4px solid var(--amber); }
.cap--alt { background: var(--white); }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; }
.ticks li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 8px; border-left: 2px solid var(--amber-d); border-bottom: 2px solid var(--amber-d); transform: rotate(-45deg); }
.specs { width: 100%; border-collapse: collapse; margin: 0 0 28px; font-size: .92rem; }
.specs th, .specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.specs th { font-weight: 600; width: 55%; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { background: var(--white); padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.feature__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--ink); color: var(--amber); font-size: 1.3rem; margin-bottom: 18px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); background: var(--white); }
.industry { padding: 32px 26px; border-right: 1px solid var(--line); }
.industry:last-child { border-right: 0; }
.industry h3 { position: relative; padding-top: 18px; }
.industry h3::before { content: ""; position: absolute; top: 0; left: 0; width: 32px; height: 4px; background: var(--amber); }
.industry p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { margin: 0; background: var(--white); padding: 28px; border-left: 4px solid var(--amber); }
.quote blockquote { margin: 0 0 18px; font-size: 1.02rem; }
.quote figcaption { display: flex; flex-direction: column; font-size: .88rem; color: var(--muted); }
.quote figcaption strong { color: var(--text); }

/* Chips */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--white); border: 1px solid var(--line); padding: 10px 16px; font-weight: 500; font-size: .92rem; }

/* Subnav */
.subnav { position: sticky; top: 72px; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; text-decoration: none; padding: 16px 12px; font-size: .88rem; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); border-bottom-color: var(--amber); }

/* Founders */
.founders { display: grid; gap: 48px; }
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; background: var(--white); border: 1px solid var(--line); padding: 40px; border-radius: var(--radius); }
.founder__photo { aspect-ratio: 1; background: var(--ink); display: grid; place-items: center; overflow: hidden; position: relative; border-bottom: 4px solid var(--amber); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__initials { font: 800 5rem/1 var(--f-head); color: var(--amber); letter-spacing: .04em; }
.founder__links { display: flex; gap: 10px; flex-wrap: wrap; }

/* Prose */
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; font-size: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); }
.prose thead { display: none; }
.prose a { color: var(--amber-d); font-weight: 600; }

/* Contact + RFQ form */
.contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.rfq fieldset { border: 1px solid var(--line); background: var(--white); padding: 24px; margin: 0 0 20px; border-radius: var(--radius); }
.rfq legend { font: 700 1.05rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .04em; padding: 0 8px; }
.rfq label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; margin-bottom: 14px; }
.rfq input:not([type=checkbox]):not([type=file]), .rfq textarea { font: 400 1rem/1.4 var(--f-body); padding: 12px 14px; border: 1px solid var(--steel-3); border-radius: var(--radius); background: var(--paper); color: var(--text); width: 100%; }
.rfq input:focus, .rfq textarea:focus { outline: 2px solid var(--amber); outline-offset: 0; border-color: var(--amber); background: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin: 4px 0 18px; }
.checks__label { grid-column: 1 / -1; font-size: .88rem; font-weight: 600; }
.checks label { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; margin: 0; }
.checks input { width: 18px; height: 18px; accent-color: var(--amber-d); }
.drop { position: relative; border: 2px dashed var(--steel-3); background: var(--paper); padding: 32px 20px; text-align: center; align-items: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.is-over { border-color: var(--amber); background: #fffaf0; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__title { font: 700 1.15rem/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .03em; }
.drop__hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.drop__list { font: 500 .85rem/1.5 var(--f-mono); color: var(--text); }
.form-error { color: #b42318; font-weight: 600; margin-top: 12px; }
.panel { background: var(--white); border: 1px solid var(--line); padding: 24px; margin-bottom: 20px; border-radius: var(--radius); }
.panel h3 { font-size: 1.15rem; }
.panel address { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { color: var(--muted); }
.contact-list a { font-weight: 600; text-decoration: none; }
.map { aspect-ratio: 4/3; background: var(--steel-1); margin-bottom: 10px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4); }

/* CTA band */
.cta-band { background: var(--amber); color: var(--ink); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { margin-bottom: 8px; max-width: 22ch; }
.cta-band .eyebrow { color: var(--ink); }
.cta-band .muted { color: rgba(13,17,23,.75); margin: 0; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; flex: none; }
.cta-band .btn--primary { background: var(--ink); color: #fff; }
.cta-band .btn--primary:hover { background: var(--steel-9); }
.cta-band .btn--ghost { color: var(--ink); border-color: var(--ink); }
.cta-band .btn--ghost:hover { background: rgba(13,17,23,.08); }

/* Footer */
.footer { background: var(--ink); color: var(--steel-3); padding-top: 64px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__about .muted { color: var(--steel-5); }
.footer__h { font-size: 1rem; color: #fff; letter-spacing: .05em; }
.footer__map { display: inline-block; margin-top: 12px; color: var(--amber); font-weight: 600; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--amber); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; padding-bottom: 28px; font-size: .8rem; color: var(--steel-5); }

/* WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; text-decoration: none; font-weight: 600; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .15s; }
.wa-float:hover { transform: translateY(-2px); }

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features, .industries { grid-template-columns: repeat(2, 1fr); }
  .industry:nth-child(2) { border-right: 0; }
  .industry:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .contact { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 72px); overflow-y: auto; flex-direction: column; align-items: stretch; background: var(--ink); padding: 12px 20px 24px; border-bottom: 1px solid rgba(255,255,255,.1); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin: 14px 0 0; }
  .nav-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .split, .founder { grid-template-columns: 1fr; gap: 32px; }
  .split--rev .split__media { order: 0; }
  .founder { padding: 24px; }
  .founder__photo { max-width: 260px; }
  .statbar { grid-template-columns: repeat(2, 1fr); }
  .statbar li { padding: 20px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .statbar li:nth-child(2n) { border-right: 0; }
  .statbar li:nth-child(odd) { padding-left: 0; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band__actions { width: 100%; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .brand__wordmark { height: 38px; }
  .topbar__links a[href^="mailto"] { display: none; }
  .section { padding: 64px 0; }
  .hero__inner { padding-block: 64px 40px; }
  .page-hero__inner { padding-block: 56px 44px; }
  .cards, .features, .industries, .process, .grid2, .checks, .footer__grid { grid-template-columns: 1fr; }
  .industry { border-right: 0; border-bottom: 1px solid var(--line); }
  .industry:last-child { border-bottom: 0; }
  .btn--lg { width: 100%; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; right: 16px; bottom: 16px; }
  .footer { padding-top: 48px; }
  .footer__grid { gap: 28px; padding-bottom: 32px; }
  .footer__base { padding-bottom: 88px; }
  .cta-band__inner { padding-block: 44px; gap: 24px; }
  .cta-band__actions .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; }
  .section__head { margin-bottom: 32px; }
  .card__body { padding: 20px; }
  .process__step { padding: 24px 20px; }
  .feature { padding: 24px 20px; }
  .industry { padding: 24px 20px; }
  .rfq fieldset { padding: 18px 16px; }
  .panel { padding: 20px 16px; }
  .founder { padding: 20px; gap: 24px; }
  .founder__photo { max-width: 200px; }
  .statbar li { padding: 18px 12px; }
  .statbar__k { font-size: 1.4rem; }
  .hero__lead, .page-hero__lead { font-size: 1rem; }
  .topbar__inner { gap: 8px; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose td { padding: 4px 0; border: 0; }
  .prose tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .specs th { width: auto; }
  .footer__base { flex-direction: column; }
  .split__media::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
