/* Ferum Engineering — site styles (v4)
   Colours: taken from the logo lockup (mark #797E83, wordmark #363A40, tagline #82858A)
   Type: Lexend for headings (geometric, wide, like the FERUM wordmark), Source Sans 3 for body
   Layout rule: every multi-column block stretches so its parts start and end on the same line. */

:root {
  --ink: #1F2328;          /* body text, dark bands */
  --ink-deep: #15181C;     /* hero, deepest bands */
  --charcoal: #363A40;     /* FERUM wordmark: primary buttons */
  --steel-700: #3A3F45;
  --steel-600: #565B62;    /* secondary text: 6.4:1 on white */
  --logo: #797E83;         /* the mark: large numerals, linework (4.1:1 on white, large text only) */
  --steel-400: #A9AEB5;
  --steel-300: #CBCED2;
  --steel-200: #DFE1E4;
  --steel-100: #EEF0F2;
  --steel-50: #F7F8F9;
  --white: #FFFFFF;
  --on-dark: #F7F8F9;
  --on-dark-muted: #B4B9BF; /* 7.9:1 on --ink */
  --success: #236B42;
  --error: #B42318;

  --font: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Lexend", "Source Sans 3", Arial, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(80px, 9vw, 128px);
  --header-h: 88px;
  --cut: 28px;
  --cut-lg: 44px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.65; }
@media (max-width: 767px) { body { font-size: 17px; } }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
p, ul, ol, dl, figure { margin: 0; }
a { color: var(--charcoal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--on-dark); }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--charcoal); color: var(--white); padding: 12px 18px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--white); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section) 0; }
.section-pad { padding-block: var(--section); }
.band { background: var(--steel-100); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark a { color: var(--on-dark); }

/* ---------- Type scale: 14 · 16 · 18 · 20 · 24 · 32/40 · 40/56 ---------- */
.display { font-size: clamp(36px, 4.8vw, 60px); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; }
.h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.12; }
.h3 { font-size: 22px; font-weight: 500; line-height: 1.25; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; max-width: 36em; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--steel-600); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--logo); }
.dark .eyebrow { color: var(--on-dark-muted); }
.muted { color: var(--steel-600); }
.dark .muted { color: var(--on-dark-muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; font: inherit; font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.btn-primary { background: var(--charcoal); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-primary:active { background: var(--ink-deep); }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.dark .btn-primary, .btn-light { background: var(--on-dark); color: var(--ink); }
.dark .btn-primary:hover, .btn-light:hover { background: var(--white); color: var(--ink); }
.dark .btn-outline { border-color: rgba(247, 248, 249, .5); color: var(--on-dark); }
.dark .btn-outline:hover { background: rgba(247, 248, 249, .1); border-color: var(--on-dark); color: var(--on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--steel-200); }
.header-bar { max-width: 1376px; margin-inline: auto; min-height: var(--header-h); padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; }
.brand img { height: 56px; width: auto; }
.site-nav ul { list-style: none; padding: 0; display: flex; align-items: center; gap: 4px 28px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600; }
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--logo); }
.site-nav .nav-cta a { background: var(--charcoal); color: var(--white); padding: 0 22px; }
.site-nav .nav-cta a:hover { background: var(--ink); text-decoration: none; }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; background: var(--white); color: var(--ink); border: 1.5px solid var(--steel-300); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
@media (max-width: 1080px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--steel-200); padding: 0 var(--gutter) 16px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-top: 1px solid var(--steel-200); }
  .site-nav a { width: 100%; font-size: 18px; }
  .site-nav .nav-cta { border-top: 0; margin-top: 12px; }
  .site-nav .nav-cta a { justify-content: center; min-height: 52px; }
}
@media (max-width: 480px) {
  :root { --header-h: 72px; }
  .brand img { height: 42px; }
  .nav-toggle { padding: 10px 12px; }
}

/* ---------- Stage: one banner component for every page ----------
   One full-bleed dark panel + blueprint grid; content aligns to the page wrap.
   .stage--photo  : a workshop photo fills the frame (infrastructure pages only)
   .stage--object : a product or machine cut-out stands on the grid with a soft glow
   .stage--text   : text only (FAQ, contact, guides) */
.stage { background: var(--ink-deep); color: var(--on-dark); }
.stage-frame { position: relative; }
.stage-bg { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse 60% 75% at 74% 52%, #3A4047 0%, #23272C 48%, #1A1D21 100%); }
.stage-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(247, 248, 249, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(247, 248, 249, .045) 1px, transparent 1px); background-size: 56px 56px; background-position: -1px -1px; mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35), #000 60%); }
.stage-bg::after { content: ""; position: absolute; right: -3%; bottom: -8%; width: min(36vw, 460px); aspect-ratio: 878 / 960; background: url("/assets/img/ferum-mark-light-960.webp") center / contain no-repeat; opacity: .05; }
.stage--photo .stage-bg::before, .stage--photo .stage-bg::after { display: none; }
.stage-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.stage--photo .stage-bg .stage-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 24, 28, .95) 0%, rgba(21, 24, 28, .8) 42%, rgba(21, 24, 28, .25) 100%); }

.stage-content { position: relative; max-width: var(--wrap); margin-inline: auto; min-height: var(--stage-h, 560px); padding: clamp(48px, 6vw, 88px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 56px; align-items: center; }
.stage--home .stage-content { --stage-h: min(720px, calc(100svh - var(--header-h))); }
.stage--photo .stage-content, .stage--text .stage-content { grid-template-columns: minmax(0, 1fr); }
.stage--text .stage-content { --stage-h: 380px; }
.stage-text { max-width: 620px; }
.stage-text > .breadcrumbs { margin-bottom: 28px; }
.stage h1 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -0.022em; }
.stage--home h1 { font-size: clamp(36px, 4.8vw, 60px); }
.stage .lead { color: var(--on-dark-muted); margin-top: 20px; }
.stage .btn-row { margin-top: 32px; }
.stage-visual { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; min-height: 300px; }
.stage-visual::before { content: ""; position: absolute; left: 50%; top: 50%; width: 88%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(247, 248, 249, .10) 0%, rgba(247, 248, 249, 0) 62%); pointer-events: none; }
.stage-visual img { position: relative; width: auto; height: auto; max-width: 100%; max-height: var(--visual-h, 440px); object-fit: contain; filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .5)); }
.stage--home .stage-visual img { --visual-h: 520px; }
.stage-visual.tall img { --visual-h: 500px; }
/* Photo panel: a small workshop photo framed with the cut corner instead of stretched full-bleed */
.stage-panel::before { display: none; }
.stage-panel img { width: 100%; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; filter: none; clip-path: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%, 0 100%); box-shadow: 0 0 0 1px rgba(247, 248, 249, .12); }
/* Leave room for the lifted spec strip */
.stage.has-strip .stage-content { padding-bottom: clamp(72px, 8vw, 112px); }
@media (max-width: 860px) {
  .stage-content { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .stage-visual { min-height: 0; order: 2; }
  .stage-visual img { --visual-h: 300px; }
  .stage--home .stage-visual img, .stage-visual.tall img { --visual-h: 320px; }
  .stage--photo .stage-bg .stage-shade { background: linear-gradient(180deg, rgba(21, 24, 28, .6) 0%, rgba(21, 24, 28, .94) 62%); }
  .stage-bg::after { display: none; }
}
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 15px; }
.breadcrumbs li { color: var(--on-dark-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--steel-600); }
.breadcrumbs a { color: var(--on-dark); }
.article-meta { font-size: 15px; color: var(--on-dark-muted); margin-top: 20px; }

/* ---------- Section head ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: 48px; }
.section-head p { color: var(--steel-600); max-width: 34em; justify-self: end; }
.dark .section-head p { color: var(--on-dark-muted); }
@media (max-width: 860px) { .section-head { grid-template-columns: minmax(0, 1fr); } .section-head p { justify-self: start; } }
.section-head.center { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
.section-head.center p { justify-self: center; }

/* ---------- Stats (equal cells) ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--steel-300); border-bottom: 1px solid var(--steel-300); }
.stats > div { padding: 32px 24px; border-left: 1px solid var(--steel-300); display: flex; flex-direction: column; gap: 6px; }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats dt { order: 2; font-size: 16px; color: var(--steel-600); }
.stats dd { order: 1; margin: 0; font-family: var(--font-head); font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
@media (max-width: 860px) {
  .stats > div { padding: 24px 16px; }
  .stats dd { font-size: 22px; white-space: nowrap; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats > div { border-left: 0; padding: 20px 0; }
  .stats > div + div { border-top: 1px solid var(--steel-300); }
}

/* ---------- Service tiles (3 x 2, equal) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; background: var(--white); border: 1px solid var(--steel-200); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); transition: border-color .18s ease; }
.tile:hover { color: var(--ink); border-color: var(--steel-400); }
.tile:hover .tile-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
/* Images sit absolutely inside fixed-ratio frames, so a square photo can never make its frame taller than a 3:2 neighbour */
.tile-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--steel-200); }
.tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
/* Each tile shares its row tracks with its neighbours: media, then body */
.tiles > .tile { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; }
.tiles > .tile-cta .tile-body { grid-row: 1 / span 2; }
.tile-media.fit-contain img { object-fit: contain; padding: 6%; }
.tile:hover .tile-media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .tile-media img, .tile:hover .tile-media img { transition: none; transform: none; } }
.tile-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.tile-body p { font-size: 17px; color: var(--steel-600); line-height: 1.55; }
.tile-more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 16px; }
.tile-cta { background: var(--charcoal); color: var(--on-dark); border-color: var(--charcoal); }
.tile-cta:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.tile-cta .tile-body { justify-content: space-between; padding: 32px; position: relative; overflow: hidden; }
.tile-cta .tile-body::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 220px; aspect-ratio: 878 / 960; background: url("/assets/img/ferum-mark-light-480.webp") center / contain no-repeat; opacity: .12; }
.tile-cta .h3 { font-size: 26px; position: relative; }
.tile-cta p { color: var(--on-dark-muted); position: relative; }

/* ---------- Feature / project (two equal columns) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; clip-path: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%, var(--cut-lg) 100%, 0 calc(100% - var(--cut-lg))); }
.feature-body { background: var(--ink); color: var(--on-dark); padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.feature-body p { color: var(--on-dark-muted); max-width: 32em; }
.feature-media { position: relative; min-height: 420px; background: var(--white); box-shadow: inset 0 0 0 1px var(--steel-200); }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.feature-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--steel-700); }
.feature-facts > div { padding: 16px 16px 0 0; }
.feature-facts dt { font-size: 15px; color: var(--on-dark-muted); }
.feature-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--on-dark); }
@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-media { order: -1; min-height: 0; aspect-ratio: 3 / 2; }
}

/* ---------- Process (dark band, equal columns) ---------- */
.process-band { position: relative; overflow: hidden; }
.process-band::before { content: ""; position: absolute; left: -6%; bottom: -18%; width: 460px; aspect-ratio: 878 / 960; background: url("/assets/img/ferum-mark-light-960.webp") center / contain no-repeat; opacity: .05; pointer-events: none; }
.process { position: relative; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 0; row-gap: 0; border-top: 1px solid var(--steel-700); }
/* Number, title and text rows line up across all five steps */
.process li { padding: 28px 24px 0 0; display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 10px; align-content: start; }
.process-num { font-family: var(--font-head); font-size: 44px; font-weight: 300; line-height: 1; color: var(--logo); }
.process h3 { font-size: 20px; font-weight: 500; }
.process p { font-size: 17px; line-height: 1.55; color: var(--on-dark-muted); }
/* Five steps never split 2-2-1: below 1000px they stack as one even column */
@media (max-width: 1000px) { .process { grid-template-columns: minmax(0, 1fr); } .process li { padding-right: 0; padding-bottom: 20px; border-bottom: 1px solid var(--steel-700); } }

/* ---------- Equal grids: industries, guides, related, machines ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
/* 4-up grids hold 4 or 8 items, so 2-up never leaves an orphan. 3-up grids hold 3 or 6, so they go straight to one column. */
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-2 { grid-template-columns: minmax(0, 1fr); } }
/* Every card has exactly three parts (title, text, link). Subgrid lines them up across a row. */
.card { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 12px; align-content: start; padding: 28px; background: var(--white); border: 1px solid var(--steel-300); }
.card > :last-child { align-self: start; }
/* Filled cards on grey bands carry the cut corner; outlined cards stay square so the border is never clipped */
.band .card { border-color: transparent; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.card h2, .card h3 { font-size: 21px; font-weight: 500; line-height: 1.3; }
.card p { font-size: 17px; color: var(--steel-600); line-height: 1.55; }
.card .card-link { padding-top: 6px; font-weight: 600; font-size: 16px; }
.card-icon { width: 44px; height: 44px; color: var(--logo); }
.card-num { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--logo); }
.dark .card { background: rgba(247, 248, 249, .04); border-color: var(--steel-700); }
.dark .card p { color: var(--on-dark-muted); }

/* ---------- Location split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: stretch; border: 1px solid var(--steel-200); }
.split > * { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.split > :last-child { background: var(--steel-100); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.nap { border-top: 1px solid var(--steel-300); }
.nap > div { padding: 14px 0; border-bottom: 1px solid var(--steel-300); }
.nap dt { font-size: 14px; color: var(--steel-600); }
.nap dd { margin: 2px 0 0; }
.dark .nap { border-color: var(--steel-700); }
.dark .nap > div { border-color: var(--steel-700); }
.dark .nap dt { color: var(--on-dark-muted); }

/* ---------- Spec strip (equal cells) ---------- */
/* Explicit column count (set per strip) so cells never wrap into an uneven second row */
.spec-strip { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border: 1px solid var(--steel-300); background: var(--white); }
.spec-strip > div { padding: 20px 22px; border-right: 1px solid var(--steel-200); }
.spec-strip > div:last-child { border-right: 0; }
.spec-strip dt { font-size: 14px; color: var(--steel-600); }
.spec-strip dd { margin: 4px 0 0; font-family: var(--font-head); font-size: 19px; font-weight: 500; line-height: 1.3; }
@media (max-width: 860px) { .spec-strip { grid-template-columns: minmax(0, 1fr); } .spec-strip > div { border-right: 0; border-bottom: 1px solid var(--steel-200); } .spec-strip > div:last-child { border-bottom: 0; } }
.lift { position: relative; margin-top: -36px; z-index: 2; }

/* ---------- Capacity (infrastructure) ---------- */
.capacity { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px 72px; align-items: stretch; background: var(--steel-100); padding: clamp(28px, 5vw, 64px); clip-path: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%, var(--cut-lg) 100%, 0 calc(100% - var(--cut-lg))); }
.capacity-text { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
@media (max-width: 960px) { .capacity { grid-template-columns: minmax(0, 1fr); } }
.plates { display: flex; flex-direction: column; gap: 22px; }
.plate-label { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; margin-bottom: 6px; }
.plate-label strong { font-weight: 600; }
.plate { background: var(--steel-700); }
.plate.ss { background: var(--logo); }
.plate.al { background: var(--steel-300); border: 1px solid var(--steel-400); }
.sheet-figure { display: flex; flex-direction: column; justify-content: center; }
/* Materials as an even 2 x 2 block */
.material-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--steel-300); border-left: 1px solid var(--steel-300); }
.material-list li { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-right: 1px solid var(--steel-300); border-bottom: 1px solid var(--steel-300); background: var(--white); }
.material-list strong { font-family: var(--font-head); font-weight: 500; font-size: 19px; }
.material-list span { font-size: 15px; color: var(--steel-600); }
@media (max-width: 420px) { .material-list { grid-template-columns: minmax(0, 1fr); } }
/* Welding processes: four equal cells */
.process-types { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .process-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .process-types { grid-template-columns: minmax(0, 1fr); } }
.sheet-figure figcaption { margin-top: 12px; font-size: 15px; color: var(--steel-600); }

/* ---------- Prose (centred column) ---------- */
.prose-wrap { max-width: 760px; margin-inline: auto; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.4vw, 32px); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose strong { font-weight: 600; }
.prose figure { margin: 2em 0; }
.prose figcaption { margin-top: 10px; font-size: 15px; color: var(--steel-600); }
.prose .note { background: var(--steel-100); border-left: 3px solid var(--logo); padding: 16px 20px; }
.table-scroll { overflow-x: auto; margin: 1.6em 0; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--steel-300); vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); font-weight: 600; }
caption { text-align: left; font-size: 15px; color: var(--steel-600); padding-bottom: 10px; }
.toc { border: 1px solid var(--steel-300); padding: 20px 24px; }
.toc h2 { font-size: 16px; font-family: var(--font); font-weight: 700; letter-spacing: 0; }
.toc ol { margin-top: 10px; padding-left: 1.2em; columns: 2; column-gap: 32px; font-size: 16px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---------- Gallery ---------- */
.gallery figure { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; background: var(--steel-100); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.gallery .media { position: relative; aspect-ratio: 3 / 2; background: var(--white); }
.gallery .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.gallery figcaption { padding: 20px 22px; font-size: 17px; color: var(--steel-600); }
.gallery figcaption strong { display: block; font-family: var(--font-head); font-weight: 500; font-size: 19px; color: var(--ink); margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--steel-300); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 48px 20px 0; font-family: var(--font-head); font-size: 19px; font-weight: 500; line-height: 1.4; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 0 22px; max-width: 64ch; color: var(--steel-600); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; margin-top: var(--section); background: var(--ink); color: var(--on-dark); clip-path: polygon(0 0, calc(100% - 64px) 0, 100% 64px, 100% 100%, 0 100%); }
.cta-band::before { content: ""; position: absolute; right: 2%; top: 50%; transform: translateY(-50%); width: min(36vw, 440px); aspect-ratio: 878 / 960; background: url("/assets/img/ferum-mark-light-960.webp") center / contain no-repeat; opacity: .05; pointer-events: none; }
.cta-inner { position: relative; max-width: var(--wrap); margin-inline: auto; padding: clamp(72px, 9vw, 112px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 80px; align-items: stretch; }
.cta-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.cta-title { font-family: var(--font-head); font-size: clamp(32px, 3.6vw, 48px); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.cta-band .lead { color: var(--on-dark-muted); margin-top: 18px; }
.cta-band .nap { align-self: end; }
@media (max-width: 900px) { .cta-inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--on-dark-muted); font-size: 16px; }
.footer-grid { max-width: var(--wrap); margin-inline: auto; padding: 64px var(--gutter) 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { margin-top: 20px; max-width: 26em; }
.footer-grid h2 { font-family: var(--font); font-size: 16px; font-weight: 700; color: var(--on-dark); margin-bottom: 14px; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li + li { margin-top: 6px; }
.footer-grid a { color: var(--on-dark-muted); text-decoration: none; display: inline-block; padding: 3px 0; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-grid address { font-style: normal; }
.footer-grid address p + p { margin-top: 8px; }
.footer-base { max-width: var(--wrap); margin-inline: auto; padding: 20px var(--gutter) 32px; border-top: 1px solid var(--steel-700); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-base a { color: var(--on-dark-muted); }
.site-footer :focus-visible { outline-color: var(--on-dark); }

/* ---------- Forms + contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form-card { border: 1px solid var(--steel-300); padding: clamp(24px, 4vw, 44px); }
.contact-card { background: var(--ink); color: var(--on-dark); padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.contact-card p { color: var(--on-dark-muted); }
.contact-card .nap { margin-top: auto; }
.form { display: grid; gap: 20px; margin-top: 24px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.field .hint { display: block; font-size: 15px; color: var(--steel-600); font-weight: 400; margin-top: 2px; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--ink); background: var(--white); border: 1.5px solid var(--steel-400); border-radius: 0; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 0; border-color: var(--charcoal); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { display: block; margin-top: 6px; font-size: 15px; color: var(--error); }
.required { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 16px; padding: 14px 16px; }
.form-status:empty { display: none; }
.form-status.is-success { background: #DCEBE1; color: var(--success); }
.form-status.is-error { background: #F6DEDB; color: var(--error); }
.form-note { font-size: 15px; color: var(--steel-600); }
/* Drawing upload: native file input (keyboard and screen-reader friendly) inside a drop zone */
.dropzone { display: grid; gap: 10px; justify-items: start; padding: 22px; border: 1.5px dashed var(--steel-400); background: var(--steel-50); transition: border-color .18s ease, background-color .18s ease; }
.dropzone.is-drag { border-color: var(--charcoal); background: var(--steel-100); }
.dropzone input[type="file"] { font: inherit; font-size: 16px; max-width: 100%; color: var(--steel-600); }
.dropzone input[type="file"]::file-selector-button { font: inherit; font-weight: 600; font-size: 16px; min-height: 48px; padding: 10px 20px; margin-right: 14px; background: var(--charcoal); color: var(--white); border: 0; cursor: pointer; }
.dropzone input[type="file"]::file-selector-button:hover { background: var(--ink); }
.dropzone .hint { margin: 0; }
.file-list { list-style: none; padding: 0; display: grid; gap: 6px; width: 100%; }
.file-list:empty { display: none; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; font-size: 15px; background: var(--white); border: 1px solid var(--steel-300); overflow-wrap: anywhere; }
.file-list li span:last-child { color: var(--steel-600); white-space: nowrap; }
.progress { height: 6px; background: var(--steel-200); overflow: hidden; }
.progress[hidden] { display: none; }
.progress > span { display: block; height: 100%; width: 0; background: var(--charcoal); transition: width .2s linear; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Utilities ---------- */
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 56px; }
.center { text-align: center; }
.notfound { min-height: 40vh; }
