/* No.0 Machinery · EN02 — red industrial / light layout */
:root {
  --red: #d7261e;
  --red-dark: #a01a14;
  --ink: #141414;
  --grey: #5c5c5c;
  --line: #e6e2de;
  --paper: #ffffff;
  --mist: #f6f3f0;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.7 "Inter", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 10px 0 14px; letter-spacing: -.015em; }
h2 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.22; margin: 0 0 8px; letter-spacing: -.01em; }
p { color: #3b3b3b; }
.sub { color: var(--grey); max-width: 720px; margin: 0 0 26px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.nav {
  position: sticky; top: 0; z-index: 40; background: #fff;
  border-bottom: 3px solid var(--red);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand .logo { height: 34px; width: auto; display: block; }
.brand .cname { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
#menu { display: flex; gap: 4px; margin-left: auto; }
#menu a {
  padding: 8px 12px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #4a4a4a; border-bottom: 2px solid transparent;
}
#menu a:hover { color: var(--red); }
#menu a.on { color: var(--red); border-bottom-color: var(--red); }
.tel {
  font-family: var(--mono); font-size: 12.5px; background: var(--red); color: #fff;
  padding: 9px 14px; white-space: nowrap;
}
.tel:hover { background: var(--red-dark); color: #fff; }
.burger { display: none; }

/* ---------- hero banner ---------- */
.promo { background: var(--paper); border-bottom: 1px solid var(--line); }
.promo img { width: 100%; display: block; }

/* ---------- metrics ---------- */
.metrics { border-bottom: 1px solid var(--line); }
.mrow { display: grid; grid-template-columns: repeat(4, 1fr); }
.mrow > div { padding: 26px 10px; border-right: 1px solid var(--line); }
.mrow > div:last-child { border-right: 0; }
.mrow b { display: block; font-family: var(--mono); font-size: 24px; color: var(--red); line-height: 1.2; }
.mrow span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }

/* ---------- section head ---------- */
.sec { padding: 72px 0; }
.sec.mist { background: var(--mist); }
.sechead { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 34px; flex-wrap: wrap; }
.sechead .num {
  font-family: var(--mono); font-size: 13px; color: var(--red); letter-spacing: .06em;
  border: 1px solid var(--red); padding: 3px 8px; margin-top: 6px;
}
.sechead h2 { margin: 0; }
.sechead p { margin: 4px 0 0; color: var(--grey); font-size: 14.5px; max-width: 620px; }
.sechead .link { margin-left: auto; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- product rows ---------- */
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 26px;
  align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); position: relative;
}
.row::before {
  content: ""; position: absolute; left: -18px; top: 18px; bottom: 18px; width: 3px;
  background: var(--red); opacity: 0; transition: opacity .2s;
}
.row:hover { color: var(--ink); }
.row:hover::before { opacity: 1; }
.row-img { aspect-ratio: 16/10; overflow: hidden; background: var(--mist); }
.row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.row:hover .row-img img { transform: scale(1.03); }
.row-txt h3 { margin: 4px 0 6px; font-size: 19px; line-height: 1.3; }
.row-txt p { margin: 0 0 10px; color: var(--grey); font-size: 13.5px; }
.no { font-family: var(--mono); font-size: 11.5px; color: var(--red); letter-spacing: .14em; }
.more {
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--red);
  border-bottom: 1px solid var(--red); padding-bottom: 2px;
}

/* ---------- applications ---------- */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.appc { background: #fff; padding: 26px 24px; }
.appc h3 { margin: 6px 0 6px; font-size: 16px; }
.appc p { margin: 0; color: var(--grey); font-size: 13.5px; }
.appc::before { content: ""; display: block; width: 34px; height: 3px; background: var(--red); margin-bottom: 14px; }
.apps.wide { grid-template-columns: repeat(3, 1fr); }

/* ---------- split / cta ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border: 1px solid var(--line); }

.btn {
  display: inline-block; background: var(--red); color: #fff; font-weight: 600;
  font-size: 14px; letter-spacing: .04em; padding: 12px 22px; border: 1px solid var(--red);
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn.light { background: #fff; color: var(--red); border-color: #fff; font-weight: 700; }
.btn.light:hover { background: #ffe9e7; color: var(--red-dark); border-color: #ffe9e7; }

.cta { background: var(--red); color: #fff; padding: 44px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { color: #ffd9d6; margin: 0; }

/* ---------- layout with sidebar ---------- */
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; padding: 40px 0 76px; align-items: start; }
.side { position: sticky; top: 100px; border: 1px solid var(--line); }
.side h2 {
  margin: 0; padding: 12px 16px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; background: var(--ink);
}
.side nav { display: flex; flex-direction: column; }
.side a {
  padding: 11px 14px; font-size: 13px; line-height: 1.4; color: #3b3b3b;
  border-left: 3px solid transparent; border-bottom: 1px solid var(--line);
}
.side a:hover { background: var(--mist); color: var(--ink); }
.side a.on { border-left-color: var(--red); background: #fff6f5; color: var(--red-dark); font-weight: 600; }
.crumbs { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--grey); margin: 0 0 6px; }
.altnames { color: var(--grey); font-size: 13.5px; margin: -4px 0 18px; }

/* ---------- galleries / spec ---------- */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 22px; }
.gal a { aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--line); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gal a:hover img { transform: scale(1.05); }
.gal3 { grid-template-columns: repeat(3, 1fr); }

.content h2 { margin-top: 30px; font-size: 19px; }
.content h2::before { content: ""; display: inline-block; width: 18px; height: 3px; background: var(--red); vertical-align: middle; margin-right: 10px; }
.feat { margin: 0 0 20px; padding-left: 18px; columns: 2; column-gap: 32px; }
.feat li { margin-bottom: 8px; color: #3b3b3b; break-inside: avoid; }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid var(--line); margin: 8px 0 20px; }
.spec th, .spec td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.spec th { width: 40%; background: var(--mist); font-weight: 600; }
.spec td { font-family: var(--mono); font-size: 13px; color: #333; }
video { width: 100%; background: #000; border: 1px solid var(--line); margin: 16px 0; }
.enquire { margin-top: 26px; border-left: 3px solid var(--red); background: var(--mist); padding: 20px 22px; }
.enquire p { margin: 0 0 12px; color: #3b3b3b; }

/* ---------- misc pages ---------- */
.pagehead { padding: 40px 0 6px; }
.about { max-width: 860px; padding-bottom: 60px; }
.about h2 { font-size: 20px; margin-top: 28px; }
.note { color: var(--grey); font-size: 14px; }
.contact { display: grid; gap: 12px; padding-bottom: 70px; max-width: 880px; }
.ccard { border: 1px solid var(--line); border-left: 3px solid var(--red); padding: 18px 22px; }
.ccard .mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--grey); }
.ccard a, .ccard b { display: block; font-size: 19px; font-weight: 700; color: var(--ink); margin: 6px 0 4px; }
.ccard p { margin: 0; font-size: 13px; color: var(--grey); }

/* ---------- footer ---------- */
footer { background: #161616; color: #b3b3b3; padding: 54px 0 24px; font-size: 13.5px; border-top: 3px solid var(--red); }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
footer h4 { color: #fff; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 12px; }
footer p { margin: 0 0 7px; color: #b3b3b3; }
footer a { color: #e6e6e6; display: block; margin-bottom: 6px; }
footer a:hover { color: #ff6b60; }
footer .brand { margin-bottom: 14px; }
footer .brand .logo { height: 28px; }
footer .bottom { margin-top: 32px; padding-top: 16px; border-top: 1px solid #2c2c2c; color: #7a7a7a; font-family: var(--mono); font-size: 11.5px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,10,10,.94); display: none; align-items: center; justify-content: center; }
.lightbox.on { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lb-btn { position: absolute; width: 44px; height: 44px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 19px; cursor: pointer; }
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-close { top: 18px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #bbb; font-family: var(--mono); font-size: 12px; }

@media (max-width: 1080px) {
  .mrow { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .side nav { flex-direction: row; flex-wrap: wrap; }
  .side a { border: 1px solid var(--line); margin: 0 4px 4px 0; }
  .row { grid-template-columns: 220px minmax(0, 1fr); }
  .apps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .feat { columns: 1; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  #menu { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 3px solid var(--red); padding: 10px 16px 16px; }
  #menu.open { display: flex; }
  .burger { display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px 4px; margin-left: auto; }
  .burger span { width: 20px; height: 2px; background: var(--ink); display: block; }
  .tel { display: none; }
  .brand .cname { display: none; }
  .row { grid-template-columns: 1fr; gap: 14px; }
  .gal, .gal3 { grid-template-columns: repeat(2, 1fr); }
  .apps { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 32px); }
  .sec { padding: 48px 0; }
}
/* ---------- EN02: anchors, rich content, advantages, pain, FAQ, aliases ---------- */
.anchor-nav {
  position: sticky; top: 79px; z-index: 30;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 14px 0 22px; padding: 10px 12px;
  background: #faf8f7; border: 1px solid var(--line); border-left: 4px solid var(--red);
  box-shadow: 0 6px 16px rgba(20, 20, 20, .06);
}
.anchor-nav a {
  padding: 7px 15px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: #3b3b3b; background: #fff; border: 1px solid var(--line);
}
.anchor-nav a:hover { color: var(--red); border-color: var(--red); background: #fff5f4; }

.catlink { font-size: 13px; color: var(--grey); margin: -2px 0 4px; }
.catlink a { color: var(--red); }
.aliasline { font-size: 13px; color: var(--grey); margin: 0 0 12px; }
.aliasline a { color: var(--red); border-bottom: 1px dashed var(--red); }

#overview, #advantages, #faq, #specs, #enquire, #pain { scroll-margin-top: 96px; }

.matgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 22px; }
.matgrid > div { background: var(--mist); border-left: 3px solid var(--red); padding: 14px 16px; }
.matgrid b { display: block; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--red-dark); margin-bottom: 4px; }
.matgrid p { margin: 0; font-size: 13.5px; color: #3b3b3b; }

.grp { margin-bottom: 16px; }
.grp h3 { font-size: 15px; margin: 14px 0 6px; color: #1a1a1a; }
.grp .feat { columns: 1; margin-bottom: 0; }
blockquote.brand {
  margin: 20px 0 6px; padding: 16px 20px; background: #141414; color: #f0e8e7;
  border-left: 4px solid var(--red); font-size: 14px; line-height: 1.8;
}

.pain { margin: 26px 0; }
.pain h2 { margin-top: 0; }
.pain-intro { color: var(--grey); font-size: 14px; margin: 0 0 16px; max-width: 820px; }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.pain-grid.four { grid-template-columns: repeat(2, 1fr); }
.pain .pc { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 16px 18px; }
.pain .pno { font-family: var(--mono); font-size: 11.5px; color: var(--red); letter-spacing: .12em; }
.pain .pc h3 { margin: 6px 0 2px; font-size: 16px; }
.pain .pc b { display: block; color: var(--red-dark); font-size: 13px; margin-bottom: 8px; }
.pain .pc p { margin: 0; font-size: 13px; color: #3b3b3b; line-height: 1.7; }
.pain-quote { margin: 16px 0 0; padding-left: 12px; border-left: 3px solid var(--red); color: #1a1a1a; font-weight: 600; font-size: 14px; }

.faq { margin: 6px 0 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: #1a1a1a; }
.faq summary::marker { color: var(--red); }
.faq p { margin: 8px 0 0; font-size: 13.5px; color: #4a4a4a; }

.aliasback { margin: 0 0 8px; font-size: 13px; }
.alias-wrap { padding: 10px 0 30px; }
.alias-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.alias-chips a {
  display: inline-block; padding: 10px 18px; font-size: 14px; color: #1a1a1a;
  background: #fff; border: 1px solid #ddd6d2; box-shadow: 0 1px 0 rgba(20, 20, 20, .04);
}
.alias-chips a:hover { border-color: var(--red); color: var(--red); background: #fff5f4; }

@media (max-width: 900px) {
  .matgrid, .pain-grid.four { grid-template-columns: 1fr; }
  .anchor-nav { top: 0; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
  #overview, #advantages, #faq, #specs, #enquire, #pain { scroll-margin-top: 120px; }
}


/* At a glance box */
.glance { background: #faf8f7; border-left: 4px solid var(--red); padding: 18px 22px; margin: 0 0 22px; }
.glance-lead { margin: 0 0 12px; font-size: 15px; color: #262626; }
.glance-facts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.glance-facts li { background: #fff; border: 1px solid var(--line); padding: 10px 12px; }
.glance-facts b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--red-dark); margin-bottom: 3px; }
.glance-facts span { font-size: 14px; color: #1a1a1a; }
.glance-note { margin: 0; font-size: 12.5px; color: var(--grey); }
@media (max-width: 900px) { .glance-facts { grid-template-columns: 1fr; } }
