/* Metalcrafts: graphite / paper / oxide red, drawing-sheet details */

:root {
  --ink: #14191f;
  --ink-2: #1c232b;
  --ink-3: #27303a;
  --ink-line: #36414d;
  --paper: #f4f2ed;
  --paper-2: #ebe8e1;
  --surface: #ffffff;
  --line: #d8d4cb;
  --line-strong: #bdb7ab;
  --text: #1a1f25;
  --muted: #59616a;
  --on-dark: #eef0f2;
  --on-dark-muted: #a4adb7;
  --accent: #b42a1f;
  --accent-deep: #8e1f16;
  --draw: #1f5d8c;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 2px;
  --container: 1240px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 600px) { :root { --gutter: 16px; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  font: 600 15px/1 var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { border-color: var(--text); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--text); color: var(--paper); }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: var(--on-dark); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* Top bar */
.topbar { background: var(--ink); color: var(--on-dark-muted); font-size: 13px; border-bottom: 1px solid var(--ink-line); }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar-links { display: flex; gap: 24px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
@media (max-width: 860px) { .topbar-inner > span:first-child { display: none; } .topbar-inner { justify-content: flex-end; } }
@media (max-width: 480px) { .topbar-links a + a { display: none; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 25, 31, .96);
  backdrop-filter: blur(8px);
  color: var(--on-dark);
  border-bottom: 1px solid var(--ink-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 46px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .08em; }
.brand-sub { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  padding: 8px 12px; font-size: 15px; font-weight: 500; text-decoration: none;
  color: var(--on-dark-muted); border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: #fff; }
.site-nav a.is-active { color: #fff; border-bottom-color: var(--accent); }
.site-nav .btn { margin-left: 12px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--on-dark); margin: 5px 0; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--ink-line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--ink-line); }
  .site-nav a.is-active { border-bottom-color: var(--ink-line); color: var(--accent); }
  .site-nav .btn { margin: 16px 0 0; }
}

/* Hero */
.hero {
  position: relative;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  color: var(--on-dark);
  padding: 88px 0 200px;
  overflow: hidden;
}
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark-muted);
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--accent); }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 84px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 24px 0 36px;
}
@media (max-width: 760px) { .hero h1 br { display: none; } }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.lead { font-size: 19px; line-height: 1.6; color: var(--on-dark-muted); max-width: 58ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .hero { padding: 56px 0 140px; }
  .lead { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 auto; }
}

/* Showcase */
.showcase { margin-top: -140px; position: relative; padding-bottom: 24px; }
@media (max-width: 600px) { .showcase { margin-top: -96px; } }

.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .showcase-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; } }

.exhibit {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(20, 25, 31, .45);
  display: flex; flex-direction: column;
}
.exhibit-photo, .exhibit-drawing { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.exhibit-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.exhibit-drawing {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 16px;
}
.exhibit-drawing img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 4px 8px;
}
.tag-draw { background: #fff; color: var(--draw); border: 1px solid var(--draw); }

.exhibit figcaption {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px;
  padding: 18px 20px 22px;
  border-top: 2px solid var(--ink);
  margin-top: auto;
}
.exhibit .fig {
  grid-row: span 2;
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  border-right: 1px solid var(--line); padding-right: 14px; padding-top: 3px;
  white-space: nowrap;
}
.exhibit figcaption strong { font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.2; }
.exhibit figcaption span:last-child { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Sections */
.section { padding: 112px 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--on-dark); }
@media (max-width: 600px) { .section { padding: 72px 0; } }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-index {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.section-index span {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 24px; padding: 0 6px;
  background: var(--accent); color: #fff; font-weight: 500; letter-spacing: 0;
}
.section-head h2 { font-size: clamp(30px, 3.8vw, 48px); font-weight: 800; letter-spacing: -0.02em; }
.section-head h2.stacked { font-size: clamp(28px, 3.4vw, 44px); }
.stacked span { display: block; white-space: nowrap; }
@media (min-width: 720px) { .section-head h2.one-line { white-space: nowrap; } } /* runs past the 760px head width; phones still wrap */
.section-lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 62ch; }
.section-head-wide, .section-head-wide .section-lead { max-width: none; } /* lead text uses the full container width */
.section-dark .section-index, .section-dark .section-lead, .section-dark .label { color: var(--on-dark-muted); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.split > .section-head { margin-bottom: 0; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; gap: 48px; } }

.prose p { margin-top: 18px; color: var(--muted); font-size: 17px; }
.prose strong { color: var(--text); }

/* 01 Engineering phases */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); counter-reset: none; }
.phase { padding: 32px 32px 36px 0; position: relative; }
.phase + .phase { padding-left: 32px; border-left: 1px solid var(--line-strong); }
.phase::after {
  content: ""; position: absolute; top: -7px; left: 0;
  width: 12px; height: 12px; background: var(--accent);
}
.phase + .phase::after { left: -6px; }
.phase-num { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.phase h3 { font-size: 32px; font-weight: 800; margin: 8px 0 20px; }
.phase li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; }
.phase li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 860px) {
  .phases { grid-template-columns: 1fr; }
  .phase, .phase + .phase { padding: 28px 0 32px; border-left: 0; }
  .phase + .phase { border-top: 1px solid var(--line-strong); }
  .phase::after, .phase + .phase::after { left: 0; }
}

.disciplines { margin-top: 56px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.disciplines .label { font-size: 16px; }
.disciplines ul { display: flex; flex-wrap: wrap; gap: 12px; }
.disciplines li { padding: 12px 24px; border: 1px solid var(--line-strong); font-size: 19px; font-weight: 500; background: var(--surface); }
@media (max-width: 600px) {
  .disciplines { gap: 16px; }
  .disciplines .label { font-size: 14px; }
  .disciplines ul { gap: 8px; }
  .disciplines li { padding: 10px 16px; font-size: 16px; }
}

/* 02 Fabrication */
.fab-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
@media (max-width: 980px) { .fab-detail { grid-template-columns: 1fr; gap: 48px; } }
.fab-block h3 { font-size: 22px; font-weight: 700; padding-bottom: 14px; border-bottom: 2px solid var(--accent); margin-bottom: 20px; }
.proc { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.proc li { padding: 8px 12px; border: 1px solid var(--ink-line); background: var(--ink-2); font-size: 14px; color: var(--on-dark); }
.note { margin-top: 16px; font-size: 13px; color: var(--on-dark-muted); }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 10px 0; border-bottom: 1px solid var(--ink-line); }
.spec th { width: 34%; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); padding-right: 16px; padding-top: 12px; }

.strip-label { margin: 72px 0 14px; }
.strip-label + .fab-strip + .strip-label { margin-top: 40px; }
.fab-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fab-strip-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) {
  .strip-label { margin-top: 48px; }
  .fab-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) { .fab-strip { grid-template-columns: 1fr; } }
.fab-strip li { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--ink-line); background: var(--ink-2); }
.fab-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.fab-strip img.crop-left, .shot img.crop-left { object-position: left center; } /* keeps the camera date stamp out of frame */

/* 03 Products */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); }
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } }
.product { background: var(--surface); display: flex; flex-direction: column; }
.plate { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.plate img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.plate-contain { background: #fff; }
.plate-contain img { object-fit: contain; padding: 12px; } /* wide cut-out photo: show the whole machine */.product-body { padding: 24px 24px 28px; }
.product-code { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.product h3 { font-size: 21px; font-weight: 700; margin: 6px 0 16px; }
.product li { position: relative; padding-left: 18px; font-size: 15px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.product li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--text); }

/* 04 Services */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--ink); margin-bottom: 72px; }
.steps li { position: relative; padding: 28px 24px 8px 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line-strong); }
.steps li::after { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--accent); }
.steps li + li::after { left: -6px; }
.steps h4 { font-size: 21px; font-weight: 800; margin: 8px 0 12px; }
.steps li > p:last-child { font-size: 15px; color: var(--muted); }
.recon-list { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, auto); grid-auto-flow: column; column-gap: 40px; border-top: 2px solid var(--ink); }
.recon-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } .steps { border-top: 0; } .steps li, .steps li + li { padding: 24px 16px 16px 0; border-left: 0; border-top: 1px solid var(--line-strong); } .steps li::after, .steps li + li::after { left: 0; } .recon-list { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); } }
@media (max-width: 600px) { .steps, .recon-list { grid-template-columns: 1fr; } .recon-list { grid-template-rows: none; grid-auto-flow: row; } }
.ticks { margin-top: 16px; }
.ticks li { position: relative; padding: 8px 0 8px 26px; border-top: 1px solid var(--line); font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 14px;
  width: 10px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* 05 Industries */
#industries .section-head { margin-bottom: 40px; }
.section-head h2.ind-title { font-size: clamp(28px, 3.1vw, 44px); }
.ind-wrap { display: grid; grid-template-columns: 560px 1fr; gap: 56px; align-items: start; }
.industries { border-top: 2px solid var(--ink); }
.ind-collage { position: relative; margin: 0; }
.ind-hero { position: absolute; left: 0; right: 0; top: 0; height: 59.6%; } /* top photo of the collage (298 of 500 px) */
.ind-tile { position: absolute; top: 60.6%; bottom: 0; } /* bottom-row photos (from 303 px down) */
.ind-tile.t1 { left: 0; width: 32.81%; }
.ind-tile.t2 { left: 33.33%; width: 33.16%; }
.ind-tile.t3 { left: 67.02%; right: 0; }
.ind-hero:hover .cap, .ind-tile:hover .cap { opacity: 1; transform: none; }
.ind-collage img { display: block; width: 100%; height: auto; }
@media (max-width: 980px) { .ind-wrap { grid-template-columns: 1fr; gap: 40px; } .ind-collage { max-width: 576px; } }
.industries li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line-strong);
  font-family: var(--display); font-size: clamp(16px, 1.3vw, 19px); font-weight: 700;
}
.industries span { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--accent); }
@media (max-width: 600px) { .industries li { font-size: 18px; } }

.punchline {
  margin-top: 56px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15; letter-spacing: -0.02em;
}
.punchline::before {
  content: ""; display: block; width: 56px; height: 4px; margin-bottom: 20px; background: var(--accent);
}
@media (max-width: 600px) { .punchline { margin-top: 40px; } }

/* 06 Quality */
.policy-title { font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.policy { counter-reset: p; border-top: 2px solid var(--ink); }
.policy li {
  counter-increment: p;
  display: grid; grid-template-columns: 48px 1fr; gap: 8px;
  padding: 18px 0; border-bottom: 1px solid var(--line-strong);
  font-size: 17px;
}
.policy li::before { content: "Q" counter(p); font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 3px; }

/* 07 Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
@media (max-width: 480px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.shot {
  position: relative; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 1; overflow: hidden; background: #fff;
}
/* white-background cut-outs: show the whole machine, never crop */
.shot img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform .4s ease; }
/* Hover name + zoom: gallery shots, and any frame marked .has-cap with a .cap label */
.shot span, .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 12px 10px; text-align: left;
  background: linear-gradient(transparent, rgba(20,25,31,.85));
  color: #fff; font: 500 13px/1.3 var(--font);
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.shot:hover img, .shot:focus-visible img, .has-cap:hover img { transform: scale(1.06); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.04); } /* stays inside the 6px padding, so hover never clips the machine */
.shot:hover span, .shot:focus-visible span, .has-cap:hover .cap { opacity: 1; transform: none; }
@media (hover: none) { .shot span, .cap { opacity: 1; transform: none; } }

.lightbox { border: 0; padding: 0; background: var(--ink); max-width: min(1100px, 94vw); max-height: 92vh; color: var(--on-dark); }
.lightbox::backdrop { background: rgba(10, 13, 16, .88); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox p { padding: 12px 16px; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
.lightbox-close {
  position: absolute; top: 8px; right: 8px;
  width: 40px; height: 40px; border: 0; cursor: pointer;
  background: rgba(20,25,31,.8); color: #fff; font-size: 26px; line-height: 1;
}

/* 08 Contact */
.contact-info { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--ink-line); }
.contact-info > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--ink-line); }
.contact-info dt { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); padding-top: 3px; }
.contact-info dd { margin: 0; }
.contact-info a { text-decoration: none; border-bottom: 1px solid var(--ink-line); }
.contact-info a:hover { border-color: var(--accent); }
@media (max-width: 480px) { .contact-info > div { grid-template-columns: 1fr; gap: 4px; } }

.contact-side { display: grid; gap: 20px; }
.enquiry { background: var(--surface); color: var(--text); padding: 32px; display: grid; gap: 18px; border-top: 3px solid var(--accent); }
@media (max-width: 480px) { .enquiry { padding: 24px 20px; } }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  font: 16px/1.4 var(--font); color: var(--text);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(180, 42, 31, .15); }
.field textarea { resize: vertical; }
.enquiry .btn { justify-self: start; }

.map { aspect-ratio: 16 / 7; background: var(--ink-2); border: 1px solid var(--ink-line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.9) contrast(1.05); }

/* Footer */
.site-footer { background: #0e1216; color: var(--on-dark-muted); padding-top: 64px; font-size: 15px; }
.footer-inner { padding-bottom: 48px; }
.footer-brand .brand { color: var(--on-dark); margin-bottom: 18px; }
.footer-brand p { max-width: 40ch; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--ink-line); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* 06: full-width heading, then diagram | salient points */
#quality .section-head { margin-bottom: 40px; }
#quality .section-head h2 { font-size: clamp(26px, 2.9vw, 38px); }
.qa-split { grid-template-columns: 1.2fr 1fr; gap: 56px; }
#quality .policy li { font-size: 15px; padding: 14px 0; grid-template-columns: 40px 1fr; }
.flow-frame {
  position: relative; display: block; width: 100%; margin: 0; font: inherit; text-align: left; cursor: zoom-in;
  background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--ink); padding: 18px 14px; overflow-x: auto;
  transition: box-shadow .25s ease;
}
.flow-frame:hover, .flow-frame:focus-visible { box-shadow: 0 6px 22px rgba(20, 25, 31, .12); }
.flow-frame .flow-svg { transition: transform .4s ease; }
.flow-frame:hover .flow-svg { transform: scale(1.02); }
.lightbox [hidden] { display: none !important; }
.lightbox-svg { background: #fff; padding: 28px 24px; }
.lightbox-svg svg { display: block; height: min(80vh, 860px); width: auto; max-width: calc(94vw - 48px); margin: 0 auto; }
.lightbox-svg text { font-family: var(--font); }
.flow-svg { display: block; width: 100%; height: auto; }
.flow-svg text { font-family: var(--font); }
@media (max-width: 980px) { .qa-split { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 600px) { .flow-svg { min-width: 520px; } }

.qa-download { display: flex; justify-content: center; margin-top: 56px; }
