/* Self-hosted fonts (SIL OFL 1.1, see /assets/fonts/LICENSE). Replaces the Google Fonts
   stylesheet of the V15 source so the page fits the strict palvexa.com CSP and sends no
   visitor IP address to a third-party font host. */
@font-face{font-family:"Rajdhani";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/rajdhani-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Rajdhani";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/rajdhani-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Rajdhani";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/rajdhani-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Rajdhani";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/rajdhani-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"Exo 2";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/exo-2-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Exo 2";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/exo-2-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Exo 2";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/exo-2-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Exo 2";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/exo-2-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2")}

/* Palvexa — Direction B « Salle de contrôle » (V15). Tokens: Design System Palvexa V1. */
:root {
  --red: #e10600;
  --red-hover: #c90500;
  --red-dark: #9e0400;
  --ink: #111111;
  --charcoal: #2a2a2a;
  --paper: #f2f2f2;
  --white: #ffffff;
  --muted: #626262;
  --line: #d2d2d2;
  --muted-on-dark: #b3b3b3;
  --line-on-dark: #505050;
  --success: #169b62;
  --warning: #e5a000;
  --offline: #858585;
  --heading: "Rajdhani", "Exo 2", sans-serif;
  --sans: "Exo 2", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --radius: 6px;
  --gutter: 5.25%;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--heading); font-weight: 600; }
h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.05em; margin-top: 24px; }
h3 { letter-spacing: -0.03em; }
em { font-style: normal; color: var(--red); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border-radius: var(--radius); }
button:disabled { cursor: not-allowed; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
::selection { background: var(--red); color: var(--white); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; line-height: 1.6; text-transform: uppercase; }
.accent { color: var(--red); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.narrow { max-width: 900px; text-align: center; }
.skip-link { position: fixed; top: -60px; left: 12px; padding: 12px; background: var(--white); color: var(--ink); z-index: 100; }
.skip-link:focus { top: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 48px; padding: 13px 20px; border-radius: var(--radius);
  font: 600 14px/1.2 var(--sans); border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn-primary:disabled { background: var(--line-on-dark); border-color: var(--line-on-dark); color: var(--muted-on-dark); }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-ghost:hover { background: var(--charcoal); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--charcoal); }
.arrow-icon { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; }

/* Status dots: always paired with a text label */
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--offline); }
.dot[data-state="warning"] { background: var(--red); }
.dot[data-state="normal"] { background: var(--success); }
.dot[data-state="offline"] { background: var(--offline); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter); background: var(--ink); border-bottom: 1px solid var(--charcoal);
}
.wordmark { display: block; width: 150px; color: var(--white); }
.brand-logo { display: block; width: 100%; height: auto; }
.desktop-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.desktop-nav a:hover { color: var(--red); }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-on-dark); padding: 0; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); transition: transform 0.2s ease; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav { position: absolute; top: 100%; left: 0; right: 0; display: grid; padding: 12px var(--gutter) 24px; background: var(--ink); border-bottom: 1px solid var(--line-on-dark); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 14px 0; border-bottom: 1px solid var(--charcoal); font-size: 17px; }

/* Hero */
.hero { padding: 96px var(--gutter) 0; text-align: center; background: var(--ink); overflow: hidden; }
.eyebrow { font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-on-dark); }
.hero h1 { max-width: 1100px; margin: 24px auto 0; font-size: clamp(48px, 7vw, 104px); line-height: 0.92; letter-spacing: -0.04em; }
.hero-lead { max-width: 620px; margin: 28px auto 0; font-size: 18px; line-height: 1.65; color: var(--muted-on-dark); }
.commercial-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 32px; }
.hero-preview {
  display: block; max-width: var(--wrap); margin: 72px auto 0; text-align: left;
  background: var(--charcoal); border: 1px solid var(--line-on-dark); border-bottom: 0;
  border-radius: 10px 10px 0 0; overflow: hidden; transition: transform 0.25s ease;
}
.hero-preview:hover { transform: translateY(-4px); }
.preview-top, .dash-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line-on-dark); color: var(--muted-on-dark); font-size: 14px; }
.preview-top b, .dash-brand b { color: var(--white); }
.preview-top i, .dash-brand i { font-style: normal; color: var(--line-on-dark); }
.preview-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line-on-dark); }
.preview-kpis > div { padding: 22px; border-right: 1px solid var(--line-on-dark); }
.preview-kpis > div:last-child { border-right: 0; }
.preview-kpis .mono { display: flex; align-items: center; gap: 8px; color: var(--muted-on-dark); }
.preview-kpis strong { display: block; font: 600 56px/1 var(--heading); }
.preview-body { display: flex; flex-wrap: wrap; }
.preview-chart { flex: 999 1 520px; min-width: 0; padding: 22px; }
.preview-chart-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted-on-dark); }
.preview-reading { font: 600 28px var(--heading); color: var(--white); }
.preview-reading small { font-size: 16px; color: var(--muted-on-dark); }
.preview-chart svg { display: block; width: 100%; height: auto; margin-top: 12px; }
.grid-line { stroke: #3a3a3a; fill: none; }
.trend { fill: none; stroke: var(--red); stroke-width: 3; stroke-linejoin: round; }
.trend-dot { fill: var(--red); }
.preview-axis { display: flex; justify-content: space-between; color: var(--muted-on-dark); }
.preview-list { flex: 1 1 280px; display: grid; gap: 10px; align-content: start; padding: 22px; border-left: 1px solid var(--line-on-dark); }
.preview-list li { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--ink); border-radius: var(--radius); font-size: 14px; font-weight: 600; }
.preview-list li span { flex: 1; }
.preview-list small { display: block; font-size: 12px; font-weight: 400; color: var(--muted-on-dark); }

/* Sections */
.section { padding: 120px var(--gutter); }
.section.light { background: var(--white); color: var(--ink); }
.section.paper { background: var(--paper); color: var(--ink); }
.section.charcoal { background: var(--charcoal); color: var(--white); }
.section.dark { background: var(--ink); color: var(--white); }
.section-label { font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.charcoal .section-label, .dark .section-label { color: var(--muted-on-dark); }
.body-copy { margin-top: 20px; max-width: 440px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.charcoal .body-copy, .dark .body-copy { color: var(--muted-on-dark); }
.heading-row { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: end; justify-content: space-between; }
.heading-row > div:first-child { flex: 1 1 520px; }
.heading-row > :last-child { flex: 0 1 400px; }
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.split > * { flex: 1 1 400px; min-width: 0; }

/* Approach */
.intro-pair { display: flex; flex-wrap: wrap; gap: 24px 48px; margin-top: 32px; }
.intro-pair > * { flex: 1 1 360px; }
.intro-text { font-size: 22px; line-height: 1.45; font-weight: 500; }
.intro-pair .body-copy { margin-top: 0; max-width: none; }

.signal-lab {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0;
  margin-top: 64px; background: var(--ink); color: var(--white); border-radius: 10px; overflow: hidden;
}
.lab-intro { padding: 36px; border-right: 1px solid var(--line-on-dark); }
.lab-intro h3 { margin-top: 18px; font-size: clamp(30px, 3vw, 42px); line-height: 1; }
.lab-intro p { margin-top: 14px; color: var(--muted-on-dark); font-size: 15px; line-height: 1.6; }
.lab-machine { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-on-dark); }
.lab-machine span { color: var(--muted-on-dark); }
.lab-chart { padding: 28px 32px; }
.chart-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted-on-dark); }
.text-control { min-height: 36px; padding: 6px 12px; background: none; border: 1px solid var(--line-on-dark); color: var(--white); font: 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.text-control:hover { border-color: var(--white); }
.wave-wrap { margin-top: 18px; }
#signal-wave { display: block; width: 100%; height: 170px; }
.wave-baseline { stroke: #3a3a3a; fill: none; }
#wave-reference { stroke: var(--line-on-dark); stroke-width: 1.2; fill: none; stroke-dasharray: 3 4; }
#wave-path { stroke: var(--white); stroke-width: 2; fill: none; transition: stroke 0.3s ease; }
.wave-scale { display: flex; justify-content: space-between; color: var(--muted-on-dark); }
.signal-reading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.signal-reading > div { display: flex; align-items: baseline; gap: 8px; }
#signal-value { font: 600 56px/1 var(--heading); }
.signal-reading small { font: 14px var(--mono); color: var(--muted-on-dark); }
.signal-state { padding: 6px 12px; border-left: 3px solid var(--white); background: var(--charcoal); font-size: 14px; font-weight: 600; }
.lab-controls { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-on-dark); }
.lab-controls button {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 14px 20px;
  background: none; border: 0; border-right: 1px solid var(--line-on-dark); border-radius: 0;
  color: var(--muted-on-dark); font-weight: 600; text-align: left;
}
.lab-controls button:last-child { border-right: 0; }
.lab-controls button span { font: 12px var(--mono); }
.lab-controls button:hover { color: var(--white); }
.lab-controls button[aria-pressed="true"] { color: var(--white); box-shadow: inset 0 3px 0 var(--red); background: var(--charcoal); }
.lab-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding: 20px 32px; border-top: 1px solid var(--line-on-dark); }
.lab-bottom p { max-width: 720px; font-size: 15px; line-height: 1.6; color: var(--muted-on-dark); }
.lab-bottom .mono { color: var(--muted-on-dark); }

.chain { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 80px; }
.chain::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line); }
.chain li { position: relative; }
.chain-num { display: grid; place-items: center; width: 48px; height: 48px; background: var(--ink); color: var(--white); border-radius: var(--radius); font: 14px var(--mono); }
.chain li:first-child .chain-num { background: var(--red); }
.chain h3 { margin-top: 22px; font-size: 28px; }
.chain p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Sensor (no device shown until a real photo exists) */
.measure-visual { padding: 36px; background: var(--ink); border: 1px solid var(--line-on-dark); border-radius: 10px; }
.sensor-signal { display: grid; gap: 14px; }
.sensor-signal svg { display: block; width: 100%; height: 120px; overflow: visible; }
.mv-label { color: var(--muted-on-dark); }
.mv-label + svg + .mv-label { margin-top: 18px; }
.mv-base { stroke: #3a3a3a; fill: none; }
.mv-wave { stroke: var(--white); stroke-width: 1.6; vector-effect: non-scaling-stroke; fill: none; stroke-linejoin: round; }
.mv-temp { stroke: var(--red); stroke-width: 3; vector-effect: non-scaling-stroke; fill: none; }
.mv-dot { fill: var(--red); }
.measure-visual figcaption { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-on-dark); font-size: 13px; color: var(--muted-on-dark); }
.measure-visual figcaption strong { color: var(--white); font-weight: 600; }
.feature-list { display: grid; gap: 10px; margin-top: 32px; }
.feature-list > div { padding: 16px 18px; border: 1px solid var(--line-on-dark); border-radius: var(--radius); }
.feature-list h3 { font-size: 22px; }
.feature-list p { font-size: 14px; color: var(--muted-on-dark); }

/* Platform */
.platform-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
.platform-cards article { padding: 28px; background: var(--charcoal); border-radius: var(--radius); }
.platform-cards .mono { color: var(--muted-on-dark); }
.platform-cards h3 { margin-top: 16px; font-size: 28px; line-height: 1.1; }
.platform-cards article > p:last-child { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted-on-dark); }

.dashboard { margin-top: 14px; background: var(--charcoal); border: 1px solid var(--line-on-dark); border-radius: 10px; overflow: hidden; }
.demo-badge { padding: 4px 10px; border: 1px solid var(--line-on-dark); border-radius: 4px; }
.dash-layout { display: flex; flex-wrap: wrap; }
.machine-list { flex: 1 1 260px; max-width: 340px; display: grid; gap: 8px; align-content: start; padding: 20px; border-right: 1px solid var(--line-on-dark); }
.machine-list-heading { display: flex; justify-content: space-between; color: var(--muted-on-dark); margin-bottom: 4px; }
.machine-list button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; text-align: left;
  background: var(--ink); border: 1px solid transparent; font-size: 14px; font-weight: 600;
}
.machine-list button:hover { border-color: var(--line-on-dark); }
.machine-list button[aria-pressed="true"] { border-color: var(--white); }
.machine-list button > span:nth-child(2) { flex: 1; min-width: 0; }
.machine-list small { display: block; font-size: 12px; font-weight: 400; color: var(--muted-on-dark); }
.machine-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; background: var(--charcoal); border-radius: 4px; font: 12px var(--mono); }
.fleet-note { margin-top: 12px; padding: 16px; border: 1px solid var(--line-on-dark); border-radius: var(--radius); }
.fleet-note .mono { color: var(--muted-on-dark); }
.fleet-note strong { display: block; font: 600 40px/1.1 var(--heading); }
.fleet-note p { font-size: 13px; color: var(--muted-on-dark); }
.dash-main { flex: 999 1 520px; min-width: 0; padding: 24px; }
.dash-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 12px; }
.dash-heading .mono { color: var(--muted-on-dark); }
.dash-heading h3 { font-size: 32px; }
.equipment-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-on-dark); border-radius: 4px; font-size: 13px; font-weight: 600; }
.equipment-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--offline); }
.equipment-status[data-state="warning"] { border-color: var(--red); }
.equipment-status[data-state="warning"]::before { background: var(--red); }
.equipment-status[data-state="normal"]::before { background: var(--success); }
.dash-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.dash-metrics > div { padding: 18px; background: var(--ink); border-radius: var(--radius); }
.dash-metrics span, .dash-metrics > div > small { display: block; font-size: 13px; color: var(--muted-on-dark); }
.dash-metrics strong { display: block; font: 600 44px/1.1 var(--heading); }
.dash-metrics strong small { font-size: 20px; }
.trend-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; color: var(--muted-on-dark); }
.range-controls { display: flex; gap: 4px; }
.range-controls button { min-height: 36px; padding: 6px 14px; border: 1px solid var(--line-on-dark); background: none; font: 600 13px var(--sans); }
.range-controls button[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--ink); }
.trend-chart { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.chart-axis { display: flex; flex-direction: column; justify-content: space-between; color: var(--muted-on-dark); }
#trend-svg { display: block; width: 100%; height: 180px; }
.chart-grid { stroke: #3a3a3a; fill: none; }
#trend-area { fill: rgba(225, 6, 0, 0.12); stroke: none; }
#trend-line { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linejoin: round; }
#trend-end { fill: var(--red); }
#no-data { position: absolute; inset: 0 0 0 60px; display: grid; place-content: center; text-align: center; font-weight: 600; }
#no-data[hidden] { display: none; }
#no-data span { font-weight: 400; font-size: 14px; color: var(--muted-on-dark); }
.chart-times { display: flex; justify-content: space-between; margin-top: 6px; padding-left: 60px; color: var(--muted-on-dark); }
.dash-insight { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; padding: 18px; background: var(--ink); border-radius: var(--radius); }
.dash-insight > div { flex: 1 1 300px; }
.dash-insight p { margin-top: 4px; font-size: 14px; color: var(--muted-on-dark); }
.dash-bottom { padding: 12px 24px; border-top: 1px solid var(--line-on-dark); color: var(--muted-on-dark); }
.platform-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* Applications */
.equipment { align-items: start; }
.equipment-list { border-top: 1px solid var(--ink); }
.equipment-list li { display: flex; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.equipment-list svg { flex: none; width: 48px; height: 48px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.equipment-list h3 { flex: 1; font-size: 32px; }
.equipment-list span { font-size: 14px; color: var(--muted); }

/* Story */
.story { border-top: 1px solid var(--line); }
.story-mark { width: 64px; height: 64px; fill: var(--red); }
.story .section-label { margin-top: 24px; }
.story h2 { margin-top: 20px; }
.story-copy { max-width: 680px; margin: 28px auto 0; font-size: 18px; line-height: 1.7; color: var(--muted); }
.story-copy.strong { margin-top: 16px; color: var(--ink); font-weight: 500; }
.founder { margin-top: 28px; font-weight: 600; }
.founder span { font-weight: 400; color: var(--muted); }

/* Pilot */
.pilot-cta { margin-top: 20px; }
.heading-row .body-copy { margin-top: 0; }
.pilot-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pilot-steps > div { padding: 28px; border-right: 1px solid var(--line); }
.pilot-steps > div:last-child { border-right: 0; }
.pilot-steps h3 { margin-top: 14px; font-size: 26px; }
.pilot-steps p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.pilot-disclaimer { max-width: 860px; margin-top: 28px; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* Contact */
.contact { align-items: start; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.text-link { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--red); }
.contact-form { display: grid; gap: 16px; padding: 28px; background: var(--charcoal); border-radius: var(--radius); }
.form-title { font: 600 24px var(--heading); }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-form label, #plan-form label { display: grid; gap: 7px; min-width: 0; font-size: 13px; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line-on-dark); border-radius: var(--radius);
  background: var(--ink); color: var(--white); font: 400 14px var(--sans);
}
.contact-form ::placeholder { color: var(--muted-on-dark); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-content: space-between; }
#contact-feedback { font-size: 12px; line-height: 1.6; color: var(--muted-on-dark); }

/* Footer */
.footer { padding: 80px var(--gutter) 32px; background: var(--charcoal); border-top: 3px solid var(--red); }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.footer-brand { flex: 1 1 360px; max-width: 440px; }
.footer-brand .wordmark { width: 240px; }
.footer-tag { margin: 20px 0 24px; font: 600 28px/1.1 var(--heading); }
.footer-nav { flex: 0 1 220px; display: grid; gap: 12px; align-content: start; font-size: 15px; }
.footer-nav .mono { color: var(--muted-on-dark); }
.footer-nav a:hover { color: var(--red); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line-on-dark); color: var(--muted-on-dark); }
#motion-toggle { min-height: 36px; padding: 6px 12px; background: none; border: 1px solid var(--line-on-dark); color: var(--muted-on-dark); font: 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
#motion-toggle:hover { color: var(--white); border-color: var(--white); }

/* Planning dialog */
#plan-dialog { width: min(520px, calc(100% - 32px)); padding: 32px; border: 1px solid var(--line-on-dark); border-radius: 10px; background: var(--charcoal); color: var(--white); }
#plan-dialog::backdrop { background: rgba(17, 17, 17, 0.75); }
#plan-dialog h2 { margin-top: 14px; font-size: 40px; }
#dialog-equipment { margin-top: 8px; color: var(--muted-on-dark); }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; background: none; border: 1px solid var(--line-on-dark); color: var(--white); font-size: 22px; }
#plan-form { display: grid; gap: 10px; margin-top: 22px; }
#plan-form[hidden] { display: none; }
#plan-form input, #plan-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line-on-dark); border-radius: var(--radius); background: var(--ink); color: var(--white); color-scheme: dark; }
.form-note { font-size: 12px; color: var(--muted-on-dark); }
.form-submit { justify-content: space-between; margin-top: 6px; }
#plan-confirmation { margin-top: 22px; padding: 16px; border-left: 3px solid var(--success); background: var(--ink); font-size: 14px; line-height: 1.6; }

/* Reveal */
.reveal { opacity: 1; transform: none; }
.motion-ready .reveal { transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.65, 0.2, 1); }
.motion-ready .reveal:not(.visible) { opacity: 0; transform: translateY(24px); }

/* Responsive */
@media (max-width: 1000px) {
  .desktop-nav, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .signal-lab { grid-template-columns: minmax(0, 1fr); }
  .lab-intro { border-right: 0; border-bottom: 1px solid var(--line-on-dark); }
  .lab-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-controls button:nth-child(2) { border-right: 0; }
  .lab-controls button:nth-child(-n + 2) { border-bottom: 1px solid var(--line-on-dark); }
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .chain::before { display: none; }
  .platform-cards { grid-template-columns: minmax(0, 1fr); }
  .machine-list { max-width: none; border-right: 0; border-bottom: 1px solid var(--line-on-dark); }
}
@media (max-width: 700px) {
  /* Mobile = the desktop structure, compressed: rows stay rows, nothing new stacks. */
  h2 { font-size: 38px; margin-top: 14px; }
  .section { padding: 64px var(--gutter); }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 46px; margin-top: 16px; }
  .hero-lead { font-size: 15px; margin-top: 18px; }
  .commercial-actions { flex-wrap: nowrap; margin-top: 22px; }
  .commercial-actions .btn { flex: 1 1 0; min-width: 0; padding: 12px 10px; gap: 6px; font-size: 13px; }
  .hero-preview { margin-top: 40px; border-radius: 8px 8px 0 0; }
  .preview-top { padding: 10px 12px; font-size: 12px; }
  .preview-top > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .preview-top .mono { flex: none; white-space: nowrap; font-size: 10px; }
  .preview-kpis > div { padding: 12px 10px; }
  .preview-kpis .mono { font-size: 10px; gap: 5px; letter-spacing: 0; white-space: nowrap; }
  .preview-kpis strong { font-size: 34px; }
  .preview-chart { flex-basis: 100%; padding: 12px; }
  .preview-chart-head .mono { font-size: 10px; }
  .preview-reading { font-size: 22px; }
  .preview-axis { font-size: 10px; }
  .preview-list { flex-basis: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px 12px 12px; border-left: 0; border-top: 1px solid var(--line-on-dark); }
  .preview-list li { gap: 6px; padding: 8px; font-size: 12px; }
  .preview-list li b { display: none; }
  .preview-list small { font-size: 10px; }

  .intro-pair { gap: 14px; margin-top: 20px; }
  .intro-text { font-size: 18px; }
  .signal-lab { margin-top: 40px; }
  .lab-intro { padding: 20px; }
  .lab-intro h3 { font-size: 26px; margin-top: 10px; }
  .lab-intro p { font-size: 14px; margin-top: 8px; }
  .lab-machine { margin-top: 14px; padding-top: 12px; }
  .lab-chart { padding: 18px 20px; }
  #signal-wave { height: 110px; }
  #signal-value { font-size: 40px; }
  .lab-controls, .lab-controls button:nth-child(-n + 2) { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 0; }
  .lab-controls button { flex-direction: column; align-items: flex-start; gap: 2px; min-height: 52px; padding: 8px 8px; font-size: 12px; border-right: 1px solid var(--line-on-dark); }
  .lab-controls button:nth-child(2) { border-right: 1px solid var(--line-on-dark); }
  .lab-controls button span { font-size: 10px; }
  .lab-bottom { padding: 14px 20px; }
  .lab-bottom p { font-size: 13px; }

  .chain { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 40px; }
  .chain::before { display: block; top: 15px; }
  .chain-num { width: 32px; height: 32px; font-size: 11px; }
  .chain h3 { margin-top: 12px; font-size: 17px; letter-spacing: -0.01em; }
  .chain p { margin-top: 4px; font-size: 12px; line-height: 1.45; }

  .split { gap: 28px; }
  #capteur .split { flex-direction: column-reverse; }
  .split > * { flex-basis: auto; width: 100%; }
  .measure-visual { padding: 16px; }
  .sensor-signal { gap: 6px; }
  .sensor-signal svg { height: 60px; }
  .mv-label + svg + .mv-label { margin-top: 8px; }
  .measure-visual figcaption { margin-top: 12px; padding-top: 10px; font-size: 12px; }
  .feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 20px; }
  .feature-list > div { padding: 10px; }
  .feature-list h3 { font-size: 16px; line-height: 1.1; }
  .feature-list p { font-size: 12px; line-height: 1.4; margin-top: 4px; }

  .heading-row { gap: 14px; }
  .heading-row > * { flex-basis: 100%; }
  .platform-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 28px; }
  .platform-cards article { padding: 12px 10px; }
  .platform-cards .mono { font-size: 9.5px; letter-spacing: 0.02em; }
  .platform-cards h3 { margin-top: 8px; font-size: 16px; }
  .platform-cards article > p:last-child { margin-top: 6px; font-size: 12px; line-height: 1.4; }
  .dash-top { padding: 10px 12px; }
  .machine-list { flex-basis: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px 12px; }
  .machine-list-heading, .fleet-note { display: none; }
  .machine-list button { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px; font-size: 12px; position: relative; }
  .machine-list button .machine-icon { display: none; }
  .machine-list button .dot { position: absolute; top: 10px; right: 8px; }
  .machine-list small { font-size: 10px; }
  .dash-main { padding: 14px 12px; }
  .dash-heading h3 { font-size: 24px; }
  .dash-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  .dash-metrics > div { padding: 10px; }
  .dash-metrics span, .dash-metrics > div > small { font-size: 11px; }
  .dash-metrics strong { font-size: 30px; }
  .dash-metrics strong small { font-size: 15px; }
  .trend-heading { margin-top: 14px; }
  .trend-chart { grid-template-columns: minmax(0, 1fr); }
  .chart-axis { display: none; }
  #no-data { inset: 0; }
  #trend-svg { height: 120px; }
  .chart-times { padding-left: 0; font-size: 10px; }
  .dash-insight { flex-wrap: nowrap; gap: 10px; margin-top: 12px; padding: 12px; }
  .dash-insight > div { flex: 1 1 auto; min-width: 0; }
  .dash-insight strong { font-size: 14px; }
  .dash-insight p { font-size: 12px; }
  .dash-insight .btn { flex: none; padding: 10px 12px; gap: 8px; font-size: 13px; }
  .dash-bottom { padding: 10px 12px; font-size: 10px; }
  .platform-actions { flex-wrap: nowrap; }
  .platform-actions .btn { flex: 1 1 0; min-width: 0; padding: 12px 10px; gap: 6px; font-size: 12px; text-align: center; }

  .equipment-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .equipment-list li { gap: 10px; padding: 14px 0; flex-wrap: nowrap; }
  .equipment-list svg { width: 34px; height: 34px; }
  .equipment-list h3 { font-size: 20px; flex: none; }
  .equipment-list li > span { display: none; }

  .story-mark { width: 44px; height: 44px; }
  .story-copy { font-size: 15px; margin-top: 18px; }
  .founder { margin-top: 18px; font-size: 14px; }

  .pilot-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
  .pilot-steps > div { padding: 12px 10px; border-right: 1px solid var(--line); border-bottom: 0; }
  .pilot-steps h3 { margin-top: 8px; font-size: 16px; }
  .pilot-steps p { font-size: 12px; line-height: 1.4; margin-top: 4px; }
  .pilot-disclaimer { font-size: 12px; margin-top: 18px; }

  .contact-links { margin-top: 18px; }
  .contact-form { padding: 16px; gap: 12px; }
  .contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .contact-form label { font-size: 12px; }
  .contact-form input, .contact-form select, .contact-form textarea { padding: 10px; font-size: 16px; }

  .footer { padding: 44px var(--gutter) 24px; }
  .footer-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
  .footer-brand .wordmark { width: 170px; }
  .footer-tag { font-size: 22px; margin: 14px 0 16px; }
  .footer-nav { font-size: 14px; gap: 10px; }
  .footer-bottom { margin-top: 36px; gap: 10px; font-size: 10px; }
}
@media (max-width: 400px) {
  .site-header { padding: 14px var(--gutter); }
  .wordmark { width: 120px; }
  .hero h1 { font-size: 40px; }
  .commercial-actions .btn, .platform-actions .btn { font-size: 12px; padding: 12px 6px; }
  .lab-controls button { font-size: 11px; padding: 8px 6px; }
  .chain { gap: 8px; }
  .chain h3 { font-size: 15px; }
  #plan-dialog { padding: 20px; }
}
@media (max-width: 340px) {
  .contact-fields { grid-template-columns: minmax(0, 1fr); }
  .preview-kpis .mono { font-size: 9px; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready .reveal:not(.visible) { opacity: 1; transform: none; }
}
html[data-reduced-motion="true"] { scroll-behavior: auto; }
html[data-reduced-motion="true"] * { animation: none !important; transition: none !important; }
html[data-reduced-motion="true"] .reveal { opacity: 1 !important; transform: none !important; }

/* palvexa.com additions (connected demo-request form and legal links). */
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: 12px; line-height: 1.6; color: var(--muted-on-dark); }
.form-privacy a, .footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.form-privacy a:hover, .footer-legal a:hover { color: var(--red); }
#contact-feedback[data-state="error"] { color: var(--white); }
.contact-form[aria-busy="true"] .btn { opacity: 0.7; cursor: progress; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
