/* Montavo site styles. Token names and values follow the Montavo design system (tokens.json). */
/* Archivo's ampersand reads like a delta at small sizes ("C&I"); borrow a plainer one from the system font. */
@font-face { font-family: "Montavo Amp"; src: local("Helvetica Neue"), local("HelveticaNeue"), local("Helvetica"), local("Arial"), local("Liberation Sans"); unicode-range: U+0026; }
:root {
  color-scheme: only light;
  /* Brand */
  --graphite: #15191e;
  --copper: #c0682f;
  --steel: #59616b;
  --steel-light: #8a939d;
  --mist: #eef0f2;
  /* Semantic (light theme) */
  --surface: #ffffff;
  --surface-sunken: #eef0f2;
  --surface-raised: #ffffff;
  --surface-inverse: #15191e;
  --ink: #15191e;
  --ink-muted: #59616b;
  --ink-inverse: #eef0f2;
  --line: #d5d9de;
  --line-strong: #7a838d;
  --action: #15191e;
  --action-hover: #2e353d;
  --on-action: #ffffff;
  --copper-strong: #a9581f;
  --on-copper: #ffffff;
  --copper-text: #9a4e1e;
  --focus: #a9581f;
  --success: #1f6f7f;
  --warning: #8a5a00;
  --danger: #b3261e;
  /* On surface-inverse (the dark theme's values) */
  --inv-raised: #1f252c;
  --inv-line: #2e353d;
  --inv-muted: #a3abb4;
  /* Type */
  --font-sans: "Montavo Amp", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* Spacing, radius, shadow */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 2px; --radius-md: 4px; --radius-lg: 8px;
  --shadow-2: 0 8px 24px rgba(21, 25, 30, 0.12);
  --container: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 15px/24px var(--font-sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--copper-text); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 600; color: var(--ink); margin: 0 0 0.5em; font-variation-settings: "wdth" 112; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.14; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; line-height: 28px; }
p { margin: 0 0 1em; }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--action); color: var(--on-action); padding: 8px 14px; border-radius: var(--radius-md); z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.section--dark :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--ink-inverse); }

.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--space-16) 0; }
@media (min-width: 961px) { .section { padding: 96px 0; } }
.section--soft { background: var(--surface-sunken); }
.section--dark { background: var(--surface-inverse); color: var(--ink-inverse); }
.section--dark h2, .section--dark h3 { color: var(--ink-inverse); }
.section-head { max-width: 720px; margin-bottom: var(--space-12); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: block; font: 600 12px/16px var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-4); }
.section--dark .eyebrow, .cta-band .eyebrow { color: var(--inv-muted); }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 64ch; }
.section--dark .lead { color: var(--inv-muted); }

/* Buttons: no pills, no gradients, no shadows */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: var(--space-3) var(--space-6); border: 1px solid transparent; border-radius: var(--radius-md); font: 600 14px/20px var(--font-sans); letter-spacing: 0.02em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--action); color: var(--on-action); }
.btn--primary:hover { background: var(--action-hover); }
.btn--copper { background: var(--copper-strong); color: var(--on-copper); }
.btn--copper:hover { background: #8f4a1a; }
.btn--outline, .btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover, .btn--secondary:hover { background: var(--surface-sunken); }
.btn--ghost { background: transparent; color: var(--ink-inverse); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink-inverse); }
.section--dark .btn--primary, .cta-band .btn--primary { background: var(--ink-inverse); color: var(--graphite); }
.section--dark .btn--primary:hover, .cta-band .btn--primary:hover { background: #d5d9de; }
.btn--sm { min-height: 40px; padding: var(--space-2) var(--space-4); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.link-arrow { font-weight: 600; color: var(--copper-text); text-decoration: none; }
@media (pointer: coarse) { a.link-arrow { display: inline-block; padding: 10px 0; margin: -10px 0; } }
.link-arrow::after { content: " →"; }
a:hover .link-arrow, .link-arrow:hover { text-decoration: underline; }
.section--dark .link-arrow { color: var(--ink-inverse); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.brand { display: inline-flex; align-items: center; text-decoration: none; padding: 6px 0; }
.brand img { width: 168px; height: auto; }
.site-nav { display: flex; align-items: center; gap: var(--space-8); }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; position: relative; padding: 6px 0; }
.site-nav a:not(.btn):hover { color: var(--ink-muted); }
.site-nav a[aria-current="page"]:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ink); }
.site-nav .btn[aria-current="page"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); transition: transform .2s, top .2s; content: ""; }
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { left: 0; top: -7px; }
.nav-toggle__bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  /* Closed menu is hidden from keyboard and screen readers too, not just moved off-screen */
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); padding: var(--space-2) 24px var(--space-6); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .2s, opacity .2s, visibility 0s linear .2s; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .2s, opacity .2s, visibility 0s; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav a[aria-current="page"]:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: var(--space-4); }
}

/* Hero: text left, graphite slab with the module M right */
.hero { background: var(--surface); padding: var(--space-16) 0 0; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-12); align-items: stretch; }
.hero__copy { padding: var(--space-8) 0 var(--space-12); }
.hero h1 { max-width: 17ch; }
.hero .lead { margin-bottom: var(--space-8); }
.hero__visual { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-sunken); text-decoration: none; color: inherit; align-self: center; }
.hero__visual img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__caption { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); background: var(--surface); font: 400 13px/20px var(--font-mono); color: var(--ink-muted); }
.hero__caption b { font-weight: 500; color: var(--ink); }
.hero__caption em { font-style: normal; }
.hero__caption > span:last-child { white-space: nowrap; }
@media (max-width: 600px) { .hero__caption em { display: none; } }
a.hero__visual:hover { border-color: var(--line-strong); }
.hero__slab { margin: 0; position: relative; background: var(--surface-inverse); border-radius: var(--radius-md); min-height: 440px; display: grid; place-items: center; padding: var(--space-12); overflow: hidden; }
.hero__slab figcaption { position: absolute; left: var(--space-6); bottom: var(--space-6); right: var(--space-6); display: flex; justify-content: space-between; font: 400 13px/20px var(--font-mono); color: var(--inv-muted); }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--space-16); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero__stat { padding: var(--space-6) var(--space-6) var(--space-6) 0; border-right: 1px solid var(--line); }
.hero__stat + .hero__stat { padding-left: var(--space-6); }
.hero__stat:last-child { border-right: 0; }
.hero__stat strong { display: block; font: 500 28px/36px var(--font-mono); color: var(--ink); }
.hero__stat span { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero__copy { padding: 0; }
  .hero__slab { min-height: 300px; padding: var(--space-8) var(--space-8) var(--space-16); }
  .hero__visual img { aspect-ratio: 4 / 3; height: auto; }
  .hero__stat strong { font-size: 22px; line-height: 30px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stat { border-bottom: 1px solid var(--line); }
  .hero__stat:nth-child(2n) { border-right: 0; }
  .hero__stat:nth-child(2n+1) { padding-left: 0; }
}

/* The module M (logo geometry: 20-unit modules, 25-unit pitch) */
.mv-m { width: 100%; max-width: 260px; height: auto; }
.mv-m rect { rx: 3px; }
.mv-m .mv-lit { fill: var(--ink-inverse); }
.mv-m .mv-key { fill: var(--copper); }
.mv-m .mv-ghost { fill: none; stroke: var(--steel); stroke-width: 1.5px; }
.mv-m--assemble .mv-lit, .mv-m--assemble .mv-key { opacity: 0; animation: mv-place .45s ease-out forwards; animation-delay: calc(var(--i) * 140ms + 300ms); }
@keyframes mv-place { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mv-m--assemble .mv-lit, .mv-m--assemble .mv-key { animation: none; opacity: 1; } }

.page-hero { background: var(--surface-sunken); padding: var(--space-16) 0 var(--space-12); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20ch; font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.page-hero .lead { max-width: 64ch; }
/* Title on the left, intro and actions on the right, so the hero doesn't leave half the band empty */
@media (min-width: 961px) {
  .page-hero--split > .container { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); column-gap: var(--space-16); align-items: end; }
  .page-hero--split > .container > * { grid-column: 1; }
  .page-hero--split h1 { margin-bottom: 0; }
  .page-hero--split > .container > .lead { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin: 0; }
  .page-hero--split > .container > .btn-row { grid-column: 2; margin-top: var(--space-6) !important; }
}
.breadcrumb { font-size: 13px; line-height: 20px; margin-bottom: var(--space-6); color: var(--ink-muted); }
.breadcrumb a { color: var(--ink-muted); text-decoration: none; display: inline-block; padding: 6px 0; margin: -6px 0; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* Grids and cards */
.grid { display: grid; gap: var(--space-8); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } .section { padding: var(--space-12) 0; } }

.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); transition: border-color .15s; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: var(--line-strong); }
.card p { color: var(--ink-muted); }
.card p:last-child { margin-bottom: 0; }
.card__icon { width: 24px; height: 24px; color: var(--ink); margin-bottom: var(--space-6); }
.card__icon svg { width: 24px; height: 24px; }
.section--dark .card { background: var(--inv-raised); border-color: var(--inv-line); }
.section--dark .card p { color: var(--inv-muted); }
.section--dark .card__icon { color: var(--ink-inverse); }

.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-card__art { height: 200px; background: var(--surface-sunken); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.product-card__art img { width: auto; height: 148px; max-width: 72%; object-fit: contain; }
.product-card__body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; }
.product-card__body h3 { margin-top: var(--space-4); }
.product-card__body .link-arrow { margin-top: auto; }
.spec-list { margin: 0 0 var(--space-6); padding: 0; display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-6); row-gap: var(--space-2); border-top: 1px solid var(--line); padding-top: var(--space-4); list-style: none; }
.spec-list li { display: contents; }
.spec-list li span:first-child { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.spec-list li span:last-child { font: 400 14px/20px var(--font-mono); color: var(--ink); text-align: right; }
@media (max-width: 640px) {
  .spec-list { grid-template-columns: 1fr; row-gap: 0; }
  .spec-list li span:first-child { margin-top: var(--space-3); }
  .spec-list li span:first-child:first-child { margin-top: 0; }
  .spec-list li span:last-child { text-align: left; }
}

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 22px; margin-bottom: var(--space-2); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 1px; background: var(--ink); }
.section--dark .check-list li::before { background: var(--ink-inverse); }

/* Spec card */
.spec-card { display: flex; flex-direction: column; gap: var(--space-4); }
.spec-card__rule { height: 3px; width: 40px; background: var(--copper); border: 0; margin: 0; }
.spec-card__figure { font: 500 32px/36px var(--font-mono); color: var(--ink); margin: 0; }
.spec-card__figure small { font-size: 15px; color: var(--ink-muted); margin-left: 4px; }

/* Lifecycle */
.lifecycle { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--inv-line); border-left: 1px solid var(--inv-line); }
.lifecycle__step { padding: var(--space-6); border-right: 1px solid var(--inv-line); border-bottom: 1px solid var(--inv-line); counter-increment: step; }
.lifecycle { counter-reset: step; }
.lifecycle__step::before { content: counter(step, decimal-leading-zero); display: block; font: 500 14px/20px var(--font-mono); color: var(--inv-muted); margin-bottom: var(--space-4); }
.lifecycle__step h3 { font-size: 17px; line-height: 24px; margin-bottom: var(--space-2); }
.lifecycle__step p { font-size: 14px; line-height: 22px; color: var(--inv-muted); margin: 0; }
@media (max-width: 960px) { .lifecycle { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lifecycle { grid-template-columns: 1fr; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: var(--space-8); } .split--reverse > :first-child { order: 0; } }

.config-teaser { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.config-teaser:hover { border-color: var(--line-strong); }
.config-teaser img { width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.config-teaser__kpis { display: grid; grid-template-columns: repeat(3, 1fr); }
.config-teaser__kpis div { padding: var(--space-4); border-right: 1px solid var(--line); }
.config-teaser__kpis div:last-child { border-right: 0; }
.config-teaser__kpis small { display: block; font: 600 12px/16px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.config-teaser__kpis strong { display: block; color: var(--ink); font: 500 18px/28px var(--font-mono); margin-top: 4px; white-space: nowrap; }
.config-teaser__note { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0 !important; font-size: 12px; line-height: 16px; color: var(--ink-muted); padding: var(--space-2) var(--space-4) !important; }

/* Tags: square dot plus words, never colour alone */
.tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: var(--space-1) var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font: 600 12px/16px var(--font-sans); letter-spacing: 0.04em; color: var(--ink); }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--ink-muted); flex: none; }
.tag--key::before { background: var(--copper); }
.tag--success::before { background: var(--success); }

/* Insights */
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
@media (max-width: 960px) { .insight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .insight-grid { grid-template-columns: 1fr; } }
.insight-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); transition: border-color .15s; }
.insight-card:hover { border-color: var(--line-strong); }
.insight-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.insight-card[hidden] { display: none; }
.insight-card { padding: 0; overflow: hidden; }
.insight-card__art { aspect-ratio: 16 / 9; background: var(--surface-inverse); border-bottom: 1px solid var(--line); }
.insight-card__art svg { width: 100%; height: 100%; }
.insight-card__art .l { fill: #c4cad1; }
.insight-card__art .g { fill: var(--inv-line); }
.insight-card__art .k { fill: var(--copper); }
.insight-card__art .p { fill: none; stroke: var(--steel-light); stroke-width: 2; }
.insight-card__body { padding: var(--space-6); }
/* Index: the newest article leads across the full width, so four articles never leave an orphan */
@media (min-width: 961px) {
  .insight-grid--featured .insight-card:first-child { grid-column: 1 / -1; flex-direction: row; }
  .insight-grid--featured .insight-card:first-child .insight-card__art { flex: 0 0 52%; aspect-ratio: auto; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--line); }
  .insight-grid--featured .insight-card:first-child h3 { font-size: 26px; line-height: 34px; }
}
.related__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); margin-bottom: var(--space-8); }
.related__head h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.insight-card__body { display: flex; flex-direction: column; flex: 1; }
.insight-card__body h3 { font-size: 20px; line-height: 28px; }
.insight-card__body p { color: var(--ink-muted); font-size: 15px; }
.insight-card__body .link-arrow { margin-top: auto; font-size: 14px; }
.insight-card__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-6); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.insight-card__meta > span:last-child { font: 400 13px/20px var(--font-mono); color: var(--ink-muted); }

.filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.filter-bar button { font: 600 14px/20px var(--font-sans); min-height: 40px; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.filter-bar button:hover { background: var(--surface-sunken); }
.filter-bar button[aria-pressed="true"] { background: var(--action); color: var(--on-action); border-color: var(--action); }

/* Article */
.article { max-width: 720px; margin: 0 auto; }
.article__meta { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; font: 400 13px/20px var(--font-mono); color: var(--ink-muted); margin-top: var(--space-6); }
.page-hero .article h1 { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.12; }
.article h2 { font-size: 28px; line-height: 36px; margin-top: 1.8em; }
.article h3 { margin-top: 1.5em; }
.article p, .article li { font-size: 17px; line-height: 28px; }
.article ul, .article ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.article li { margin-bottom: 0.4em; }
.article li::marker { color: var(--ink-muted); }
.article blockquote { margin: 2em 0; padding: var(--space-6) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 600 22px/32px var(--font-sans); font-variation-settings: "wdth" 112; color: var(--ink); }
.article table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 22px; }
.article th { font: 600 12px/16px var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-sunken); }
.table-wrap { overflow-x: auto; }
.callout { background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); margin: 2em 0; }
.article .callout, .article .callout p { font-size: 17px; line-height: 28px; }
@media (max-width: 640px) { .article .table-wrap table { min-width: 560px; } .article .table-wrap { margin: 0 -24px; padding: 0 24px; } }
.callout strong { color: var(--ink); }
.article-cta { margin-top: var(--space-12); padding: var(--space-8); border-radius: var(--radius-md); background: var(--surface-inverse); color: var(--inv-muted); }
.article-cta h3 { color: var(--ink-inverse); }
.article-cta .btn--primary { background: var(--ink-inverse); color: var(--graphite); }

/* CTA band: the one copper action of the page */
.cta-band { background: var(--surface-inverse); border-radius: var(--radius-md); padding: var(--space-12); display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); align-items: center; color: var(--inv-muted); }
.cta-band h2 { color: var(--ink-inverse); margin-bottom: var(--space-3); font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.cta-band p { margin: 0; max-width: 60ch; }
.cta-band .btn--dark { background: var(--copper-strong); color: var(--on-copper); }
.cta-band .btn--dark:hover { background: #8f4a1a; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: var(--space-8) var(--space-6); } }

/* Services */
.service-row { display: grid; grid-template-columns: 96px 1fr 1fr; gap: var(--space-8); padding: var(--space-8) 0; border-top: 1px solid var(--line); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row__num { font: 500 28px/36px var(--font-mono); color: var(--ink-muted); }
.service-row h3 { font-size: 22px; line-height: 30px; }
.service-row p { color: var(--ink-muted); margin: 0; }
.service-row h4 { font: 600 12px/16px var(--font-sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); margin: 6px 0 var(--space-3); }
@media (max-width: 860px) { .service-row { grid-template-columns: 1fr; gap: var(--space-3); } }
.model-card { border-top: 3px solid var(--ink); }
.model-card--amber, .model-card--navy { border-top-color: var(--ink); }

/* Product families */
.family { padding: var(--space-16) 0; border-bottom: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.family:last-of-type { border-bottom: 0; }
.family__art { border-radius: var(--radius-md); background: var(--surface-sunken); border: 1px solid var(--line); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: var(--space-12); }
.family__art img { width: auto; height: 100%; max-width: 100%; }
.family__art--render { padding: 0; overflow: hidden; display: block; }
.family__art--render img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.family__art--render:hover img { transform: scale(1.02); }
.process-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-4) 0 var(--space-6); counter-reset: ps; }
.process-strip span { font-size: 13px; line-height: 20px; padding: var(--space-1) var(--space-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); counter-increment: ps; }
.process-strip span::before { content: counter(ps, decimal-leading-zero) " "; font-family: var(--font-mono); color: var(--ink-muted); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-6); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font: 600 12px/16px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--space-2); color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.form-note { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.form-success { display: none; padding: var(--space-4); border-radius: var(--radius-sm); background: var(--surface-sunken); border: 1px solid var(--line); color: var(--ink); margin-top: var(--space-4); }
.form-success.is-visible { display: block; }
.form-success pre { white-space: pre-wrap; font: 400 13px/20px var(--font-mono); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-3); max-height: 220px; overflow: auto; margin: var(--space-3) 0; }
.form-success .btn-row { margin-top: var(--space-3); }
.contact-aside { background: var(--surface-inverse); color: var(--inv-muted); border-radius: var(--radius-md); padding: var(--space-8); }
.contact-aside h3 { color: var(--ink-inverse); }
.contact-aside a { color: var(--ink-inverse); }
.contact-aside dl { margin: 0; }
.contact-aside dt { font: 600 12px/16px var(--font-sans); text-transform: uppercase; letter-spacing: .1em; margin-top: var(--space-6); }
.contact-aside dd { margin: 4px 0 0; color: var(--ink-inverse); font-family: var(--font-mono); font-size: 14px; }

/* Footer */
.site-footer { background: var(--surface-inverse); color: var(--inv-muted); padding: var(--space-16) 0 var(--space-8); font-size: 14px; line-height: 22px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-8); }
.site-footer h4 { color: var(--ink-inverse); font: 600 12px/16px var(--font-sans); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--space-4); }
.site-footer a:not(.brand) { display: block; text-decoration: none; color: var(--inv-muted); margin-bottom: var(--space-2); }
.site-footer a:not(.brand):hover { color: var(--ink-inverse); text-decoration: underline; }
.site-footer__brand p { max-width: 340px; margin-top: var(--space-6); }
.site-footer__base { position: relative; display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-12); padding-top: var(--space-6); font-size: 13px; }
/* Divider spans the content column, not the container's side padding */
.site-footer__base::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; border-top: 1px solid var(--inv-line); }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
