/* HSE MOTOR English site. Colours follow the Chinese site: brand blue #3156b3 with a gold accent. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --band: #f5f6f8;
  --panel: #ffffff;
  --ink: #1f2633;
  --body: #3a4250;
  --steel: #636b78;
  --rule: #e2e5ea;
  --brand: #3156b3;
  --brand-dark: #24448f;
  --brand-soft: #eef2fb;
  --deep: #14254f;
  --gold: #d5a21e;
  --gold-text: #8f6a06;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (max-width: 760px) { html { scroll-padding-top: 0; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.55; font-stretch: 100%;
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; font-stretch: 100%; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; font-weight: 620; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.15; font-weight: 580; }
h3 { font-size: 1.16rem; line-height: 1.28; font-weight: 600; }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--steel); }
.lede { font-size: 1.12rem; color: var(--body); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 0.9rem; }

/* Top bar and header */
.topbar { background: var(--band); border-bottom: 1px solid var(--rule); font-size: 0.8rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.topbar a { color: var(--steel); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--brand); }
.topbar svg { width: 14px; height: 14px; flex: none; }
.site-head { background: var(--panel); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(20, 37, 79, 0.05); }
.site-head .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand-sub { font-size: 0.74rem; color: var(--steel); line-height: 1.25; max-width: 15em; }
.nav { display: flex; justify-content: center; gap: 34px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.98rem; font-weight: 520; padding: 8px 0 6px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: 3px;
  font: inherit; font-weight: 560; font-size: 0.98rem; text-decoration: none; border: 1px solid var(--ink); color: var(--ink);
  background: transparent; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.actions.center { justify-content: center; margin-top: 36px; }

/* Sections */
.section { padding: clamp(52px, 7vw, 92px) 0; }
.section.band { background: var(--band); }
.section.white { background: var(--panel); }
.section.tight { padding-top: 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 780px; }
.section-head h2::after, .plant h2::after, .page-head h1::after { content: ""; display: block; width: 52px; height: 3px; background: var(--gold); margin-top: 16px; }
.section-head p { color: var(--steel); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head.center h2::after { margin-left: auto; margin-right: auto; }
.section-head.center p { margin: 0 auto; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.split.wide-left { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }

/* Hero: photo banner as on the Chinese site */
.hero { position: relative; overflow: hidden; background: var(--deep); color: #fff; display: grid; align-items: center;
  min-height: clamp(420px, 34vw, 520px); padding: 52px 0 100px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(14, 30, 72, 0.94) 0%, rgba(14, 30, 72, 0.84) 36%, rgba(14, 30, 72, 0.3) 68%, rgba(14, 30, 72, 0.05) 100%); }
.hero .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 640px; }
.eyebrow { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: #f2c94c; margin: 0 0 16px; }
.hero h1 { color: #fff; max-width: 21ch; font-size: clamp(2.1rem, 3.6vw, 2.9rem); }
.hero .lede { margin-top: 18px; color: #dde5f3; max-width: 56ch; }
.hero .btn.primary { background: var(--gold); border-color: var(--gold); color: #1d1606; }
.hero .btn.primary:hover { background: #e6b53a; border-color: #e6b53a; color: #1d1606; }

.curve { margin: 0; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; padding: 18px 18px 16px; }
.curve svg { width: 100%; height: auto; }
.curve .axis text, .curve .tick { fill: var(--steel); font-size: 12px; font-family: inherit; }
.curve .grid { stroke: #e3e8ee; stroke-width: 1; }
.curve .axis line { stroke: var(--ink); stroke-width: 1.2; }
.curve path { fill: none; stroke-width: 2; stroke-linecap: round; }
.curve .l-speed { stroke: var(--ink); }
.curve .l-current { stroke: var(--brand); stroke-dasharray: 6 4; }
.curve .l-eff { stroke: var(--gold); stroke-width: 3; }
.curve .l-power { stroke: #8a97a6; stroke-dasharray: 2 4; }
.curve .lbl { font-size: 13px; font-weight: 600; font-family: inherit; }
.curve .marker-line { stroke: var(--gold); stroke-width: 1.2; }
.curve .marker-dot { fill: var(--gold); stroke: #fff; stroke-width: 2; }
.op-control { display: grid; gap: 6px; margin-top: 12px; }
.op-control label { font-size: 0.92rem; font-weight: 560; }
.op-control input[type="range"] { width: 100%; accent-color: var(--gold); height: 28px; margin: 0; }
.readout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 8px 0 0; border-top: 1px solid var(--rule); }
.readout div { padding: 10px 10px 2px 0; }
.readout dt { font-size: 0.8rem; color: var(--steel); }
.readout dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 620; font-stretch: 110%; }
.readout dd small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--steel); font-stretch: 100%; }
.curve figcaption { font-size: 0.88rem; color: var(--steel); margin-top: 12px; max-width: none; }

/* Fact card over the hero */
.facts { position: relative; z-index: 3; margin-top: -64px; }
.facts dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; background: #fff; border-radius: 4px;
  border-top: 3px solid var(--gold); box-shadow: 0 14px 36px rgba(20, 37, 79, 0.14); }
.facts dl > div { padding: 24px 28px; }
.facts dl > div + div { border-left: 1px solid var(--rule); }
.facts dt { font-weight: 640; font-size: 1.35rem; color: var(--brand); margin-bottom: 6px; line-height: 1.15; }
.facts dd { margin: 0; color: var(--steel); font-size: 0.93rem; }

/* Industries, as on the Chinese site */
.industries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
.industries figure { margin: 0; overflow: hidden; border-radius: 4px; background: var(--band); }
.industries img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s ease; }
.industries li:hover img { transform: scale(1.04); }
.industries .body { text-align: center; padding: 20px 12px 0; }
.industries h3 { font-size: 1.4rem; font-weight: 580; margin-bottom: 8px; }
.industries p { color: var(--steel); margin: 0 auto; font-size: 0.97rem; max-width: 48ch; }

/* Customer logos */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.logos li { display: grid; place-items: center; padding: 28px 16px; min-height: 116px; }
.logos li + li { border-left: 1px solid var(--rule); }
.logos img { max-height: 48px; width: auto; }
.curve-split { align-items: center; }

/* Family cards */
.families { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.family-card { background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; display: grid; grid-template-rows: auto 1fr; overflow: hidden; transition: box-shadow 0.25s, border-color 0.25s; }
.family-card:hover { border-color: var(--brand); box-shadow: 0 10px 28px rgba(20, 37, 79, 0.1); }
.family-card .pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--rule); background: #fff; }
.family-card .pics img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 10px; }
.family-card .body { padding: 18px 20px 20px; display: grid; gap: 10px; align-content: start; }
.family-card h3 a { color: var(--ink); text-decoration: none; font-size: 1.25rem; }
.family-card h3 a:hover { text-decoration: underline; }
.family-card p { font-size: 0.96rem; color: var(--body); margin: 0; }
.ranges { margin: 4px 0 0; display: grid; gap: 4px; font-size: 0.9rem; }
.ranges div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 8px; }
.ranges dt { color: var(--steel); }
.ranges dd { margin: 0; font-weight: 560; }

/* Model cards */
.models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.model-card { background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; display: grid; grid-template-rows: 1fr auto; overflow: hidden; transition: box-shadow 0.25s, border-color 0.25s; }
.model-card:hover { border-color: var(--brand); box-shadow: 0 10px 26px rgba(20, 37, 79, 0.1); }
.model-card .card-link { color: inherit; text-decoration: none; display: grid; grid-template-rows: auto 1fr; }
.model-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 12px; background: #fff; border-bottom: 1px solid var(--rule); transition: transform 0.4s ease; }
.model-card:hover img { transform: scale(1.03); }
.model-card .body { padding: 12px 14px 14px; display: grid; gap: 4px; align-content: start; }
.model-card h3 { font-size: 1.06rem; }
.model-card .card-link:hover h3 { color: var(--brand); }
.model-card .kind { font-size: 0.8rem; color: var(--steel); line-height: 1.35; }
.model-card .key { font-size: 0.85rem; margin-top: 6px; color: var(--body); }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.card-actions a { display: flex; align-items: center; justify-content: center; min-height: 40px; font-size: 0.84rem; font-weight: 560; text-decoration: none; color: var(--ink); }
.card-actions a.q { background: var(--brand); color: #fff; }
.card-actions a.q:hover { background: var(--brand-dark); }
.card-actions a:not(.q):hover { color: var(--brand); background: var(--brand-soft); }

/* Selector */
.filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; margin-bottom: 14px; }
.filters fieldset { border: 0; padding: 0; margin: 0; }
.filters legend, .filters label { font-size: 0.85rem; font-weight: 560; display: block; margin-bottom: 6px; padding: 0; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 3px; background: var(--panel); overflow: hidden; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; padding: 8px 12px; font-size: 0.9rem; font-weight: 500; cursor: pointer; border-left: 1px solid var(--rule); }
.seg label:first-of-type { border-left: 0; }
.seg input:checked + label { background: var(--brand); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: -2px; }
.filters select, .filters input[type="search"] {
  font: inherit; font-size: 0.95rem; min-height: 40px; padding: 6px 10px; border: 1px solid #9aa6b5; border-radius: 3px; background: #fff; color: var(--ink);
}
.filters input[type="search"] { width: 14rem; }
.result-count { font-size: 0.9rem; color: var(--steel); margin: 0 0 10px; }
.table-scroll { overflow-x: auto; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; }
.data { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.data th, .data td { padding: 9px 12px; text-align: right; border-bottom: 1px solid #e3e8ee; white-space: nowrap; }
.data th:first-child, .data td:first-child, .data th.l, .data td.l { text-align: left; }
.data thead th { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; font-size: 0.84rem; vertical-align: bottom; position: sticky; top: 0; }
.data thead th small { display: block; font-weight: 400; color: var(--steel); }
.data th button { font: inherit; font-weight: 600; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: inherit; }
.data th button::after { content: " ↕"; color: var(--steel); font-weight: 400; }
.data th[aria-sort="ascending"] button::after { content: " ↑"; color: var(--brand); }
.data th[aria-sort="descending"] button::after { content: " ↓"; color: var(--brand); }
.data tbody tr:hover { background: var(--brand-soft); }
.data td:first-child { position: sticky; left: 0; background: var(--panel); }
.data tbody tr:hover td:first-child { background: var(--brand-soft); }
.data .req { color: var(--steel); font-style: italic; }

/* Page head and breadcrumbs */
.page-head { padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 22ch; }
.page-head .lede { margin-top: 16px; }
.crumbs { font-size: 0.88rem; color: var(--steel); margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--steel); }
.crumbs a { color: var(--steel); }
.jump { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.jump a { display: inline-block; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 3px; background: var(--panel); text-decoration: none; color: var(--ink); font-size: 0.92rem; }
.jump a:hover { border-color: var(--ink); }

/* Model page */
.model-top { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.model-photo { background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 20px; display: grid; place-items: center; }
.model-photo img { max-height: 340px; width: auto; }
.model-top h1 { font-size: clamp(2rem, 4vw, 3rem); }
.model-top .kind { color: var(--steel); margin-top: 8px; font-size: 1.05rem; }
.glance { margin: 22px 0 0; border-top: 2px solid var(--brand); }
.glance div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.glance dt { color: var(--steel); }
.glance dd { margin: 0; font-weight: 560; }

.spec { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--panel); }
.spec th, .spec td { padding: 9px 14px; border-bottom: 1px solid #e3e8ee; text-align: right; }
.spec thead th { background: var(--brand-soft); color: var(--brand-dark); font-size: 0.88rem; vertical-align: bottom; }
.spec th[scope="row"] { text-align: left; font-weight: 500; color: var(--body); }
.spec th[scope="row"] small { color: var(--steel); font-weight: 400; }
.spec .group th { text-align: left; background: #f7f9fb; font-size: 0.82rem; font-weight: 620; color: var(--brand-dark); padding-top: 12px; }
.spec td.mark sup { color: var(--gold-text); font-weight: 700; }
.notes { font-size: 0.85rem; color: var(--steel); margin: 10px 0 0; padding: 0; list-style: none; }
.notes li + li { margin-top: 4px; }
.notes sup { color: var(--gold-text); font-weight: 700; }

.ratio-table { border-collapse: collapse; width: 100%; background: var(--panel); font-size: 0.95rem; }
.ratio-table th, .ratio-table td { text-align: left; padding: 9px 14px; border-bottom: 1px solid #e3e8ee; }
.ratio-table thead th { background: var(--brand-soft); color: var(--brand-dark); font-size: 0.88rem; }

.figure { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 16px; }
.figure img { width: 100%; height: auto; }
.figure figcaption { font-size: 0.86rem; color: var(--steel); margin-top: 10px; max-width: none; }
.figures { display: grid; gap: 24px; }
.h-block { margin: 0 0 14px; }
.block + .block { margin-top: 44px; }

.apps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.apps li { background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; padding: 4px 10px; font-size: 0.9rem; }

.feature-list { margin: 0; padding-left: 1.1em; }
.feature-list li + li { margin-top: 6px; }

/* Cutaway and options */
.cutaway { background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; padding: 16px; margin: 0; }
.cutaway svg { width: 100%; height: auto; }
.cutaway text { font-family: inherit; font-size: 16px; fill: var(--ink); }
.cutaway figcaption { font-size: 0.88rem; color: var(--steel); margin-top: 10px; }
.options { margin: 0; border-top: 2px solid var(--brand); }
.options div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.options dt { font-weight: 620; }
.options dd { margin: 0; color: var(--body); font-size: 0.97rem; }
@media (min-width: 981px) { .split > .cutaway { position: sticky; top: 24px; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; border-top: 2px solid var(--brand); }
.steps li { counter-increment: step; padding: 18px 18px 0 0; }
.steps li + li { padding-left: 18px; border-left: 1px solid var(--rule); }
.steps li::before { content: counter(step); display: block; font-stretch: 125%; font-weight: 700; font-size: 1.6rem; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.steps h3 { font-size: 1.04rem; margin-bottom: 6px; }
.steps p { font-size: 0.93rem; color: var(--body); }

/* Factory band */
.plant { background: var(--deep); color: #dce3ec; }
.plant-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.plant h2 { color: #fff; }
.plant .lede { color: #c2ccd9; margin-top: 16px; }
.plant-facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, 0.16); }
.plant-facts div { padding: 16px 16px 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.plant-facts div:nth-child(even) { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.plant-facts dt { font-stretch: 118%; font-weight: 620; font-size: 1.2rem; color: #fff; line-height: 1.2; }
.plant-facts dd { margin: 4px 0 0; font-size: 0.9rem; color: #a8b5c6; }
.btn.light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn.light:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.plant-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.plant-photos.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plant-photos figure { position: relative; margin: 0; overflow: hidden; border-radius: 3px; background: #0d1a3a; }
.plant-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.plant-photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 12px 10px; font-size: 0.82rem; font-weight: 560;
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); max-width: none;
  background: linear-gradient(rgba(14, 22, 38, 0), rgba(14, 22, 38, 0.55) 45%, rgba(14, 22, 38, 0.9)); }

/* Factory */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.gallery figcaption { font-size: 0.86rem; color: var(--steel); margin-top: 6px; }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: auto; height: 100%; max-height: 420px; }
.depts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--brand); }
.depts div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--rule); }
.depts div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.depts div:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
.depts h3 { font-size: 1.02rem; margin-bottom: 6px; }
.depts p { font-size: 0.93rem; color: var(--body); }

.cert { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; padding: 24px; }
.cert img { width: 220px; height: auto; border: 1px solid var(--rule); }
.cert-note { font-size: 0.82rem; color: var(--steel); margin-top: 8px; }
.record { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.record th, .record td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.record th { font-weight: 560; color: var(--steel); width: 34%; }
.record caption { text-align: left; font-weight: 620; font-size: 1.12rem; font-stretch: 110%; padding-bottom: 10px; }

/* Form */
.rfq { background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; padding: clamp(18px, 3vw, 32px); }
.rfq fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.rfq legend { font-weight: 640; font-stretch: 110%; font-size: 1.1rem; margin-bottom: 14px; padding: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: grid; gap: 6px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.92rem; font-weight: 560; }
.field .hint { font-size: 0.82rem; color: var(--steel); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #9aa6b5; border-radius: 3px; padding: 10px 12px; min-height: 46px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.req-mark { color: #c62828; }
.honey { display: none; }
.contact-list { margin: 0; border-top: 2px solid var(--brand); }
.contact-list div { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 12px; }
.contact-list dt { font-weight: 600; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }

/* CTA band */
.cta { background: var(--brand); color: #fff; background-image: linear-gradient(110deg, var(--brand) 0%, var(--brand-dark) 100%); }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; }
.cta p { color: #dbe4f7; margin-top: 10px; }
.cta .btn.primary { background: var(--gold); color: #1d1606; border-color: var(--gold); }
.cta .btn.primary:hover { background: #e6b53a; border-color: #e6b53a; color: #1d1606; }

/* Footer */
.site-foot { background: var(--band); border-top: 3px solid var(--brand); padding: 40px 0 28px; font-size: 0.92rem; color: var(--steel); }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-foot h2 { font-size: 0.98rem; font-stretch: 105%; color: var(--ink); margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li + li { margin-top: 6px; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { color: var(--brand); text-decoration: underline; }
.site-foot p { margin: 0 0 8px; }
.legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.legal p { margin: 0; max-width: none; }

/* Responsive */
@media (max-width: 1080px) {
  .models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
  .brand-sub { display: none; }
}
@media (max-width: 980px) {
  .plant-grid { grid-template-columns: minmax(0, 1fr); }
  .plant-photos.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.wide-left, .model-top { grid-template-columns: minmax(0, 1fr); }
  .site-head .wrap { grid-template-columns: auto minmax(0, 1fr); }
  .site-head .btn { display: none; }
  .nav { justify-content: flex-end; gap: 22px; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos li:nth-child(3) { border-left: 0; }
  .logos li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .hero h1 { max-width: 16ch; }
  .families { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 16px 0 16px 52px; border-left: 0; border-bottom: 1px solid var(--rule); position: relative; }
  .steps li::before { position: absolute; left: 0; top: 16px; }
  .depts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .depts div:nth-child(4n + 1) { padding-left: 20px; border-left: 1px solid var(--rule); }
  .depts div:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .wide { grid-column: span 2; }
}
@media (max-width: 760px) {
  .plant-photos, .plant-photos.three { gap: 8px; }
  .plant-photos figcaption { font-size: 0.75rem; padding: 20px 8px 7px; }
  .site-head { position: static; }
  .site-head .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 10px; min-height: 0; }
  .nav { justify-content: flex-start; overflow-x: auto; gap: 20px; padding: 8px 0 6px; margin-top: 8px; border-top: 1px solid var(--rule); }
  .topbar { font-size: 0.76rem; }
  .hero { min-height: 0; padding: 44px 0 92px; }
  .hero::before { background: linear-gradient(180deg, rgba(14, 30, 72, 0.88), rgba(14, 30, 72, 0.78)); }
  .hero-bg { object-position: 60% center; }
  .facts { margin-top: -52px; }
  .industries { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .industries h3 { font-size: 1.2rem; }
  .nav a { white-space: nowrap; font-size: 0.93rem; }
  .brand img { height: 32px; }
  .facts dl { grid-template-columns: minmax(0, 1fr); }
  .facts dl > div, .facts dl > div + div { padding: 16px 20px; border-left: 0; border-bottom: 1px solid var(--rule); }
  .facts dt { font-size: 1.15rem; }
  .facts dl > div:last-child { border-bottom: 0; }
  .readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .curve { padding: 12px 12px 14px; }
  .curve .tick, .curve .axis text { font-size: 19px; }
  .curve .lbl { font-size: 21px; }
  .curve .ytitle { display: none; }
  .models { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cert { grid-template-columns: minmax(0, 1fr); }
  .cert img { width: 200px; }
  .options div, .glance div, .contact-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .site-foot .cols { grid-template-columns: minmax(0, 1fr); }
  .depts { grid-template-columns: minmax(0, 1fr); }
  .depts div, .depts div + div, .depts div:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery .wide { grid-column: auto; }
  .filters input[type="search"] { width: 100%; }
  .filters > div { width: 100%; }
  .seg { display: flex; overflow-x: auto; }
  .seg label { white-space: nowrap; }
  .spec th, .spec td { padding: 8px 10px; }
  .record th, .record td { display: block; width: auto; padding: 0; border: 0; }
  .record th { padding-top: 10px; font-size: 0.85rem; }
  .record td { padding-bottom: 10px; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
  .cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
