/* ViTronTech — industrial-editorial, warm paper + green */
:root {
  --bg: #F5F1EA;
  --bg-alt: #ebe6dc;
  --ink: #1A1814;
  --ink-soft: #4a4740;
  --muted: #6e6a60;
  --line: #1A1814;
  --card: #fffcf7;
  --accent: #0F6B57;
  --accent-ink: #094539;
  --accent-soft: #d7ebe4;
  --warn: #8a3b12;
  --ok: #0d5c4d;
  --err: #8b1e1e;
  --radius: 0px;
  --shadow: 4px 4px 0 var(--ink);
  --font: "Instrument Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1120px;
  --header-h: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 720px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.logo-mark {
  width: 2rem; height: 2rem; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .75rem; font-weight: 500;
}
.logo-text { font-family: var(--display); font-size: 1.15rem; letter-spacing: -0.02em; }
.logo-tech { color: var(--accent); }

.site-nav {
  display: flex; align-items: center; gap: 1.25rem;
}
.nav-links { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft);
  font-size: .92rem; font-weight: 500;
  padding: .45rem .65rem; border-radius: 6px;
}
.nav-links a:hover, .nav-links a.is-active {
  color: var(--ink); background: var(--bg-alt);
}
.nav-toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 1.35rem; height: 2px; background: var(--ink);
  margin: 5px 0; transition: .2s;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; border-radius: 999px; border: 1px solid transparent;
  padding: .7rem 1.25rem; font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: .15s ease;
}
.btn-sm { padding: .45rem .95rem; font-size: .88rem; }
.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { background: var(--card); color: var(--ink); }

/* Hero / page */
.hero { padding: 3.5rem 0 2.5rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.35fr .9fr; gap: 2.5rem; align-items: start;
}
.page-hero { padding: 3rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.eyebrow {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 .75rem; font-weight: 500;
}
.lede { font-size: 1.15rem; max-width: 42rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-card, .aside-card, .card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card { padding: 1.35rem 1.4rem; }
.stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1rem;
}
.stat-grid dt {
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .03em; color: var(--muted); margin: 0 0 .2rem;
}
.stat-grid dd {
  margin: 0; font-family: var(--display); font-size: 1.45rem; font-weight: 600; color: var(--ink);
}
.hero-note { font-size: .9rem; margin: 0; color: var(--muted); }

.section { padding: 3.25rem 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-lede { margin: 0; }

.card-grid {
  display: grid; gap: 1rem;
}
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  display: block; padding: 1.25rem 1.3rem; text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.card.static:hover { transform: none; border-color: var(--line); }
.card-kicker {
  font-family: var(--mono); font-size: .75rem; color: var(--accent);
  margin: 0 0 .5rem; letter-spacing: .03em;
}
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; font-size: .95rem; }
.center-link { text-align: center; margin: 1.75rem 0 0; }
.center-link a { font-weight: 600; text-decoration: none; }
.center-link a:hover { text-decoration: underline; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.steps.large li { padding: 1.5rem; }
.step-num {
  font-family: var(--mono); font-size: .85rem; color: var(--accent);
  background: var(--accent-soft); border-radius: 8px;
  padding: .45rem .55rem; min-width: 2.5rem; text-align: center;
}
.steps h3, .steps h2 { margin-bottom: .35rem; }
.steps p { margin-bottom: .35rem; }
.meta { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin: 0; }

.principle-list { display: grid; gap: 1.25rem; }
.principle-list article {
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--line);
}
.principle-list article:last-child { border: 0; padding: 0; }

.cta-band { background: var(--ink); color: #f4f1ea; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfc9bc; margin: 0; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cta-band .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn-primary:hover { background: var(--accent-soft); color: var(--accent-ink); }

.two-col {
  display: grid; grid-template-columns: 1.4fr .85fr; gap: 2rem; align-items: start;
}
.aside-card { padding: 1.25rem 1.35rem; }
.aside-h {
  font-family: var(--mono); font-size: .75rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); margin: 0 0 .75rem;
}
.aside-card ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.aside-card li { margin-bottom: .4rem; }
.check-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.check-list li {
  position: relative; padding-left: 1.4rem; margin-bottom: .55rem; color: var(--ink-soft);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .55rem;
  width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent);
}
.tag-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tag-grid span {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .8rem; font-size: .88rem; color: var(--ink);
}
.tag-grid.large span { padding: .5rem 1rem; }

.solution {
  padding: 1.75rem 0; border-bottom: 1px solid var(--line);
}
.solution:last-child { border: 0; }
.muted { color: var(--muted); }
.x-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.x-list li {
  padding: .65rem 0 .65rem 1.5rem; border-bottom: 1px solid var(--line);
  position: relative; color: var(--ink-soft);
}
.x-list li::before { content: "×"; position: absolute; left: 0; color: var(--warn); font-weight: 700; }

.price-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.price-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.price-table th, .price-table td {
  text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line);
}
.price-table th {
  font-family: var(--mono); font-size: .75rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); background: var(--bg-alt); font-weight: 500;
}
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

.contact-grid {
  display: grid; grid-template-columns: 1.35fr .85fr; gap: 2rem; align-items: start;
}
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 500; font-size: .92rem; color: var(--ink); }
.field input, .field textarea {
  font: inherit; padding: .7rem .85rem; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card); color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-color: var(--accent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-check {
  display: flex; align-items: flex-start; gap: .65rem; grid-template-columns: none;
}
.field-check input { margin-top: .3rem; }
.field-check label { font-weight: 400; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.status {
  padding: .9rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .95rem;
  border: 1px solid var(--line);
}
.status.ok { background: var(--accent-soft); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); color: var(--accent-ink); }
.status.err { background: #f8e8e8; border-color: #e2b4b4; color: var(--err); }

.prose p { max-width: 42rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-alt);
  padding: 2.75rem 0 1.5rem; margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 2rem;
  padding-bottom: 2rem;
}
.footer-wordmark {
  font-family: var(--display); font-size: 1.35rem; font-weight: 600;
  margin: 0 0 .5rem; color: var(--ink);
}
.footer-tag { font-size: .92rem; margin: 0; max-width: 22rem; }
.footer-h {
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); margin: 0 0 .75rem;
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .4rem; color: var(--ink-soft); font-size: .95rem; }
.footer-list a { color: var(--ink-soft); text-decoration: none; }
.footer-list a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 1rem;
  font-size: .85rem; color: var(--muted);
}
.footer-bottom p { margin: 0; color: var(--muted); }

@media (max-width: 960px) {
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .card-grid.four, .card-grid.three { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1rem; flex-direction: column; align-items: stretch; gap: .75rem;
  }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .header-ctas { width: 100%; }
  .header-ctas .header-cta { flex: 1; text-align: center; }
}
@media (max-width: 640px) {
  .card-grid.four, .card-grid.three, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 2.25rem; }
}

/* ===== Editorial layer ===== */
body { background-image: radial-gradient(rgba(26,24,20,.05) 1px, transparent 1px); background-size: 22px 22px; }
h1 { font-weight: 500; font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.04; letter-spacing: -0.035em; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h2 { font-weight: 500; letter-spacing: -0.03em; }
.site-header { border-bottom: 2px solid var(--ink); background: color-mix(in srgb, var(--bg) 94%, transparent); }
.logo-svg { display: block; flex: none; }
.logo-text { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.03em; }
.logo-tech, .footer-wordmark .logo-tech { font-style: italic; font-weight: 500; color: var(--accent); }
.footer-wordmark { display: flex; align-items: center; gap: .55rem; font-family: var(--display); font-size: 1.5rem; }
.nav-links a { border-radius: 0; font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.nav-links a.is-active { background: transparent; box-shadow: inset 0 -2px 0 var(--accent); }
.nav-links a:hover { background: transparent; color: var(--accent); }
.btn { border-radius: 0; border: 2px solid var(--ink); font-family: var(--mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.btn-primary { background: var(--accent); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn-primary:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-ghost { border-color: var(--ink); }
.hero { padding: 4rem 0 3rem; border-bottom: 2px solid var(--ink); }
.hero-grid > div:first-child { grid-row: span 2; }
.hero-art, .page-art { margin: 0; }
.hero-art img, .page-art img { display: block; width: 100%; height: auto; }
.page-hero { border-bottom: 2px solid var(--ink); padding: 3.5rem 0 2.5rem; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 2.5rem; align-items: center; }
.page-hero-grid > .page-art { grid-column: 2; grid-row: 1 / span 4; }
.page-hero-grid > :not(.page-art) { grid-column: 1; }
.hero-card, .aside-card, .card { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.card:hover { box-shadow: 6px 6px 0 var(--accent); }
.eyebrow { letter-spacing: .12em; }
.eyebrow::before { content: ""; display: inline-block; width: 1.6rem; height: 2px; background: var(--accent); vertical-align: middle; margin-right: .55rem; }
.section-alt { background: #EDE7DC; border-block: 2px solid var(--ink); }
.cta-band { background: var(--ink); color: var(--bg); }
.cta-band h2, .cta-band p, .cta-band strong { color: var(--bg); }
.site-footer { border-top: 2px solid var(--ink); }
input, select, textarea { border-radius: 0 !important; border: 2px solid var(--ink) !important; }
dd { font-family: var(--display); }
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-grid > .page-art { grid-column: 1; grid-row: auto; order: -1; max-width: 420px; }
  .hero-grid > div:first-child { grid-row: auto; }
}
.hero-art img, .page-art img { mix-blend-mode: multiply; border-radius: 4px; }

.header-ctas { display: flex; gap: .5rem; align-items: center; }
