@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   CRL MANUFACTURING — Design system
   Industrial / technical drawing aesthetic
   ============================================================ */

:root {
  /* ---- light surface system ---- */
  --ink:        #ffffff;   /* page background */
  --steel-900:  #f5f7fa;   /* tinted section */
  --steel-850:  #eef2f7;
  --steel-800:  #e6edf4;
  --steel-750:  #dde5ee;
  --steel-700:  #d3dce7;
  --line:       rgba(17, 22, 29, 0.10);
  --line-2:     rgba(17, 22, 29, 0.20);
  --txt:        #11161d;
  --txt-soft:   #3a4550;
  --muted:      #66707c;
  --accent:     #1d4e89;
  --accent-dim: #17416f;
  --brand:      #1d4e89;
  --brand-btn:  #1d4e89;
  --brand-btn-h:#2662a8;
  --accent-soft:rgba(29, 78, 137, 0.08);
  --blue:       #4a6b8a;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-disp: 'Barlow Condensed', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1280px;
  --pad: 32px;
  --r: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--txt);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--steel-900); }

.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 22, 29, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 22, 29, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 85%);
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-disp);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .01em;
  margin: 0 0 18px;
  text-transform: uppercase;
}
h1 { font-size: clamp(44px, 6.4vw, 86px); }
h2 { font-size: clamp(32px, 3.9vw, 52px); }
h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: .03em; }
h4 { font-size: 17px; letter-spacing: .06em; }

h1 em, h2 em { font-style: normal; color: var(--accent); }

.lead {
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--txt-soft);
  max-width: 62ch;
  margin: 0 0 18px;
}
p { margin: 0 0 16px; color: var(--txt-soft); }
.muted { color: var(--muted); }
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  background: var(--brand-btn);
  color: #fff;
  border: 1px solid var(--brand-btn);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn:hover {
  background: var(--brand-btn-h);
  border-color: var(--brand-btn-h);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(23, 65, 111, .9);
}
.btn svg { width: 14px; height: 14px; }
.btn-sm { padding: 11px 18px; font-size: 10.5px; }

.btn--ghost {
  background: transparent;
  color: var(--txt);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  background: rgba(17, 22, 29, .05);
  border-color: var(--accent);
  color: var(--txt);
  box-shadow: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap .2s var(--ease);
}
.link-arrow:hover { gap: 15px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .96); border-bottom-color: var(--line-2); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.brand:hover .brand-logo { opacity: .78; transform: translateY(-1px); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav > a, .nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-soft);
  border-radius: var(--r);
  transition: color .2s var(--ease), background .2s var(--ease);
  position: relative;
}
.nav > a::after, .nav-item > a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav > a:hover, .nav-item > a:hover { color: var(--txt); }
.nav > a:hover::after, .nav-item > a:hover::after,
.nav > a.is-active::after, .nav-item > a.is-active::after { transform: scaleX(1); }
.nav > a.is-active, .nav-item > a.is-active { color: var(--accent); }

.nav-item { position: relative; }
.nav-item .caret { width: 9px; height: 9px; transition: transform .25s var(--ease); }
.nav-item.is-open .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 268px;
  background: var(--steel-850);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  box-shadow: 0 24px 44px -26px rgba(13, 20, 30, .28);
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 0;
  right: 0;
  height: 11px;
}
.nav-item:hover .dropdown,
.nav-item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--txt-soft);
  border-radius: var(--r);
  border-left: 2px solid transparent;
  transition: all .2s var(--ease);
}
.dropdown a span { font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); letter-spacing: .1em; }
.dropdown a:hover {
  background: rgba(17, 22, 29, .045);
  border-left-color: var(--accent);
  color: var(--txt);
  padding-left: 17px;
}
.dropdown a:hover span { color: var(--accent); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.mobile-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--txt);
  transition: transform .25s var(--ease), opacity .2s;
}
.mobile-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 168px 0 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 78% 12%, rgba(29, 78, 137, .16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 8% 70%, rgba(74, 107, 138, .09), transparent 70%),
    var(--steel-900);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 74px;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: clamp(16px, 1.4vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-logo-panel {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 100%,
    rgba(17, 22, 29, .012);
}
.hero-logo-panel::before,
.hero-logo-panel::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--accent);
}
.hero-logo-panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-logo-panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hero-logo-inner { width: 84%; text-align: center; }
.hero-logo-inner img { width: 100%; height: auto; }
.hero-logo-inner svg { width: 100%; height: auto; }
.hero-logo-cap {
  position: absolute;
  bottom: -1px;
  left: -1px;
  right: -1px;
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--steel-850);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}

/* technical stat strip */
.stat-strip {
  border-top: 1px solid var(--line);
  background: var(--steel-850);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 26px 28px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--font-disp);
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  color: var(--txt);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-num i { font-style: normal; font-size: 17px; color: var(--accent); font-family: var(--font-mono); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 9px;
}

/* ============================================================
   Parts marquee (home showcase)
   ============================================================ */
.showcase {
  position: relative;
  padding: 74px 0 0;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.showcase-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}
.showcase-head h2 { margin-bottom: 0; }
.showcase-head .mono { padding-bottom: 8px; text-align: right; }

.marquee {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee + .marquee { margin-top: 30px; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: slide-left 46s linear infinite;
}
.marquee--reverse .marquee-track { animation-name: slide-right; animation-duration: 54s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide-left {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes slide-right {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
.marquee-group {
  display: flex;
  gap: 22px;
  padding-right: 22px;
  flex: 0 0 auto;
}

.part-tile {
  position: relative;
  width: 236px;
  flex: 0 0 auto;
  background: #fff;
  border: 0;
  padding: 26px 0 0;
  overflow: hidden;
  transition: transform .3s var(--ease);
}
.part-tile:hover { transform: translateY(-4px); }
.part-tile .part-tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(29, 78, 137, .28);
  padding: 3px 7px;
}
.part-tile .part-art {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}
.part-tile .part-art img { transition: transform .55s var(--ease); }
.part-tile:hover .part-art img { transform: scale(1.045); }
.part-tile .part-art svg { width: 108px; height: 108px; transition: transform .5s var(--ease); }
.part-tile:hover .part-art svg { transform: scale(1.07) rotate(-3deg); }

/* ============================================================
   Section header
   ============================================================ */
.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 52px;
  max-width: 760px;
}
.sec-head--split {
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  max-width: none;
  align-items: end;
}

/* ---------- Value cards ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.value-card {
  background: var(--steel-900);
  padding: 34px 28px 38px;
  position: relative;
  transition: background .3s var(--ease);
}
.value-card:hover { background: var(--steel-800); }
.value-card .idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--accent);
  display: block;
  margin-bottom: 26px;
}
.value-card h4 { margin-bottom: 12px; font-size: 18px; }
.value-card p { font-size: 13.5px; line-height: 1.6; margin-bottom: 0; color: var(--muted); }
.value-card .vc-icon {
  width: 34px; height: 34px;
  margin-bottom: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.4;
}
.value-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width .4s var(--ease);
}
.value-card:hover::after { width: 100%; }

/* ---------- Culture / manifesto ---------- */
.manifesto {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.manifesto-quote {
  position: relative;
  padding: 38px 40px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: linear-gradient(180deg, rgba(17, 22, 29, .028), transparent);
}
.manifesto-quote blockquote {
  margin: 0;
  font-family: var(--font-disp);
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--txt);
  letter-spacing: .01em;
}
.manifesto-quote blockquote span { color: var(--accent); }
.manifesto-quote .sig {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
}
.culture-list { list-style: none; margin: 0; padding: 0; }
.culture-list li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.culture-list li:first-child { padding-top: 0; }
.culture-list .num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  padding-top: 4px;
  letter-spacing: .1em;
  flex: 0 0 auto;
}
.culture-list strong { display: block; font-size: 14px; color: var(--txt); letter-spacing: .02em; margin-bottom: 3px; }
.culture-list p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- Process / capability flow ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.flow-step {
  background: var(--steel-900);
  padding: 26px 22px 30px;
  position: relative;
}
.flow-step .n {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.flow-step strong { display: block; font-size: 13.5px; color: var(--txt); margin-bottom: 6px; letter-spacing: .03em; }
.flow-step p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 72px 0;
  background:
    radial-gradient(ellipse 46% 120% at 88% 50%, rgba(29, 78, 137, .13), transparent 72%),
    var(--steel-850);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; color: var(--muted); font-size: 14px; }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 150px 0 58px;
  background: var(--steel-900);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(38px, 5vw, 62px); margin-bottom: 14px; }
.page-hero .lead { margin-bottom: 0; }

/* optional hero photo: blurred + faded where it meets the copy on its left */
.page-hero--media .bp-corner { display: none; }
/* the photo needs room on the right, so this page runs a slightly smaller headline */
.page-hero--media h1 { font-size: clamp(34px, 4.1vw, 54px); }
/* about keeps its original headline size — two fixed lines still clear the photo */
.page-hero--about h1 { font-size: clamp(38px, 5vw, 62px); }
.page-hero--media .wrap { padding-right: 44%; }
/* keep the copy above the photo so a long line never sits under its white fade */
.page-hero--media .wrap { position: relative; z-index: 2; }
.page-hero--shop h1 { font-size: clamp(32px, 3.9vw, 48px); }
.page-hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
  max-width: 740px;
  overflow: hidden;
  pointer-events: none;
}
.page-hero-media .phm-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
/* per-photo crops (must sit after the base rule above) */
.page-hero--shop .phm-img { object-position: 52% 52%; }
[data-photo="forging-parts"] .phm-img { object-position: 64% 52%; }
[data-photo="steel-casting-parts"] .phm-img { object-position: 18% 48%; }
[data-photo="iron-casting-parts"] .phm-img { object-position: 60% 50%; }
.page-hero-media .phm-blur {
  filter: blur(18px) saturate(.88) brightness(1.03);
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, .75) 12%, transparent 38%);
  mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, .75) 12%, transparent 38%);
}
.page-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      #f5f7fa 0%,
      rgba(245, 247, 250, .9) 9%,
      rgba(245, 247, 250, .45) 24%,
      rgba(245, 247, 250, .1) 42%,
      rgba(245, 247, 250, 0) 58%);
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--line-2); }
.crumbs .here { color: var(--txt); }

.bp-corner {
  position: absolute;
  top: 96px;
  right: var(--pad);
  width: 74px;
  height: 74px;
  border: 1px solid var(--line-2);
  opacity: .55;
}
.bp-corner::before, .bp-corner::after {
  content: '';
  position: absolute;
  background: var(--accent);
}
.bp-corner::before { width: 1px; height: 14px; left: 50%; top: -7px; }
.bp-corner::after { height: 1px; width: 14px; top: 50%; left: -7px; }

/* ============================================================
   Product category cards (products.html)
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--steel-900);
  border: 1px solid var(--line);
  padding: 28px;
  min-height: 268px;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
  overflow: hidden;
}
.cat-card:hover {
  border-color: rgba(29, 78, 137, .5);
  transform: translateY(-4px);
  background: var(--steel-850);
}
.cat-card .cat-no {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: auto;
}
.cat-card .cat-icon {
  width: 62px; height: 62px;
  margin: 22px 0 18px;
  stroke: rgba(17, 22, 29, .62);
  fill: none;
  stroke-width: 1.3;
  transition: stroke .3s;
}
.cat-card:hover .cat-icon { stroke: var(--accent); }
.cat-card h3 { font-size: 22px; margin-bottom: 8px; }
.cat-card p { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.cat-card .cat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}
.cat-card:hover .cat-foot { color: var(--accent); }

/* ============================================================
   Image slots (20 per category)
   ============================================================ */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.slot {
  position: relative;
  background: transparent;
  border: 0;
  overflow: hidden;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.slot-img {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

/* ============================================================
   About page
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.ph-block {
  border: 1px dashed var(--line-2);
  background:
    repeating-linear-gradient(135deg, rgba(17, 22, 29, .02) 0 1px, transparent 1px 14px);
  padding: 32px;
  position: relative;
}
.ph-block .ph-tag {
  position: absolute;
  top: -9px;
  left: 18px;
  background: var(--ink);
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  color: var(--accent);
  text-transform: uppercase;
}
.ph-block h3 { font-size: 20px; margin-bottom: 14px; }
.ph-block p { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.ph-block p:last-child { margin-bottom: 0; }

.timeline { border-left: 1px solid var(--line-2); padding-left: 0; list-style: none; margin: 0; }
.timeline li {
  position: relative;
  padding: 0 0 34px 32px;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 7px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(29, 78, 137, .12);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline .yr { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--accent); display: block; margin-bottom: 6px; }
.timeline strong { display: block; color: var(--txt); font-size: 14px; margin-bottom: 4px; }
.timeline p { font-size: 13px; color: var(--muted); margin: 0; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.fact {
  background: var(--steel-900);
  padding: 22px 24px;
}
.fact .k { font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.fact .v { font-family: var(--font-disp); font-size: 22px; color: var(--txt); letter-spacing: .03em; }

.cert-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-soft);
}
.cert svg { width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 1.6; }

/* ============================================================
   Machining shop
   ============================================================ */
.eq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  margin-bottom: 40px;
}
.eq-tab {
  flex: 1 1 auto;
  padding: 13px 22px;
  background: var(--steel-900);
  border: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.eq-tab:hover { color: var(--txt); }
.eq-tab.is-active { background: var(--brand-btn); color: #fff; }

.eq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.eq-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--steel-900);
  border: 1px solid var(--line);
  overflow: hidden;
}
.eq-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(rgba(17, 22, 29, .045) 1px, transparent 1px) 0 0 / 100% 30px,
    linear-gradient(90deg, rgba(17, 22, 29, .045) 1px, transparent 1px) 0 0 / 30px 100%,
    var(--steel-850);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.eq-photo .ph-note {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(17, 22, 29, .3);
  text-align: center;
  line-height: 2;
}
.eq-card-body { padding: 24px 26px 26px; }
.eq-card-body h4 { margin-bottom: 6px; font-size: 19px; }
.eq-card-body .model { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--accent); margin-bottom: 14px; display: block; }
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 12px;
  color: var(--muted);
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list li b { color: var(--txt-soft); font-weight: 500; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; }

.table-wrap { border: 1px solid var(--line); overflow-x: auto; }
table.spec-table { width: 100%; border-collapse: collapse; min-width: 640px; }
table.spec-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding: 14px 18px;
  background: var(--steel-850);
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
table.spec-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--txt-soft);
}
table.spec-table tr:last-child td { border-bottom: 0; }
table.spec-table tr:hover td { background: rgba(17, 22, 29, .022); }
table.spec-table td:first-child { color: var(--txt); font-weight: 500; }
table.spec-table .tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--accent);
  border: 1px solid rgba(29, 78, 137, .3);
  background: var(--accent-soft);
  padding: 3px 7px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: start;
}
.form-panel {
  border: 1px solid var(--line);
  background: var(--steel-900);
  padding: 38px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field label i { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 13px 14px;
  color: var(--txt);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2366707c' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--steel-850);
  box-shadow: 0 0 0 3px rgba(29, 78, 137, .1);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(107, 116, 128, .75); }
.form-note { font-size: 11.5px; color: var(--muted); margin-top: 14px; line-height: 1.6; }
.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(29, 78, 137, .4);
  background: var(--accent-soft);
  font-size: 12.5px;
  color: var(--txt-soft);
  line-height: 1.6;
}
.form-status.is-visible { display: block; }
.form-status.is-error { border-color: #d9534f; background: rgba(217, 83, 79, .1); }

.info-block { border: 1px solid var(--line); background: var(--steel-900); }
.info-row {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: 0; }
.info-row .ico {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.info-row .ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.info-row .k { font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.info-row .v { font-size: 14px; color: var(--txt); line-height: 1.6; }
.info-row .v a:hover { color: var(--accent); }

.map-box {
  position: relative;
  margin-top: 22px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(17, 22, 29, .05) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, rgba(17, 22, 29, .05) 1px, transparent 1px) 0 0 / 34px 100%,
    linear-gradient(135deg, #eef2f7, #dfe7f1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.map-box::after {
  content: '';
  position: absolute;
  width: 74px; height: 74px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(29, 78, 137, .08), 0 0 40px rgba(29, 78, 137, .3);
}
.map-box .map-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
}
.map-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.map-note {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Contact signature card ---------- */
.signature {
  position: relative;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(29, 78, 137, .07), transparent 70%),
    var(--steel-900);
  padding: 30px 30px 26px;
}
.signature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 46px;
  background: var(--accent);
}
.signature .sig-tag {
  font-family: var(--font-disp);
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--txt);
  margin: 0 0 4px;
}
.signature .sig-tag span { color: var(--accent); }
.signature .sig-rule {
  width: 44px;
  height: 2px;
  background: var(--accent);
  margin: 14px 0 6px;
}
.sig-lines { margin: 0; }
.sig-line {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.sig-line:last-child { border-bottom: 0; padding-bottom: 0; }
.sig-k {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 3px;
}
.sig-v { font-size: 13.5px; line-height: 1.65; color: var(--txt-soft); }
.sig-v a { color: var(--txt-soft); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.sig-v a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.sig-v .sep { color: var(--line-2); margin: 0 6px; }
.sig-v small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; letter-spacing: .02em; }

/* WeChat QR sits to the right of the phone numbers */
.sig-line--qr { grid-template-columns: 74px 1fr 92px; align-items: start; }
.sig-qr {
  width: 92px;
  height: 92px;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px;
  justify-self: end;
}
.sig-v--tel { display: flex; flex-direction: column; gap: 4px; }
.sig-v .tel-row { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.sig-v .tel-row span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 560px) {
  .signature { padding: 24px 20px 22px; }
  .sig-line { grid-template-columns: 66px 1fr; gap: 10px; }
  .sig-line--qr { grid-template-columns: 66px 1fr; }
  .sig-qr { grid-column: 2; width: 96px; height: 96px; margin-top: 12px; justify-self: start; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--steel-900);
  border-top: 1px solid var(--line);
  padding: 64px 0 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr .85fr .95fr 1.5fr;
  gap: 44px;
  padding-bottom: 48px;
}
.foot-brand .brand { margin-bottom: 20px; }
.foot-brand .brand-logo { height: 52px; }
.foot-brand p { font-size: 13px; color: var(--muted); max-width: 34ch; }
.foot-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 10px; }
.foot-links a { font-size: 13px; color: var(--txt-soft); transition: color .2s, padding-left .2s; }
.foot-links a:hover { color: var(--accent); padding-left: 4px; }
.foot-contact {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.foot-contact strong { color: var(--txt-soft); font-weight: 500; }
.foot-contact-text { min-width: 0; }
.foot-contact-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}
.foot-qr {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px;
}
.foot-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* printing / PDF export must never show half-faded sections */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .page-hero--media .wrap { padding-right: 42%; }
  .page-hero-media { width: 34%; }
  .page-hero-media .phm-img { object-position: 52% 45%; }
  /* narrow screens lose the wide crop, so the subject needs re-centring per photo */
  [data-photo="forging-parts"] .phm-img { object-position: 64% 52%; }
  [data-photo="steel-casting-parts"] .phm-img { object-position: 8% 50%; }
  [data-photo="iron-casting-parts"] .phm-img { object-position: 62% 50%; }
}
@media (max-width: 560px) {
  .page-hero--media .wrap { padding-right: var(--pad); }
  .page-hero-media { display: none; }
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-logo-panel { max-width: 420px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .manifesto { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .eq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --pad: 22px; }
  .section { padding: 68px 0; }
  .header-inner { height: 68px; }
  .brand-logo { height: 37px; }
  .foot-brand .brand-logo { height: 44px; }
  .mobile-toggle { display: flex; }
  .header-cta .btn { display: none; }

  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, .99);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-2);
    padding: 10px 0 22px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav > a, .nav-item > a {
    padding: 15px 22px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    justify-content: space-between;
    width: 100%;
  }
  .nav > a::after, .nav-item > a::after { display: none; }
  .nav-item { position: static; }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    background: rgba(17, 22, 29, .04);
    border: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    padding: 4px 0 10px;
    display: none;
  }
  .nav-item.is-open .dropdown { display: block; }
  .dropdown a { padding: 12px 30px; border-left: 0; }
  .dropdown a:hover { padding-left: 34px; }

  .hero { padding-top: 132px; }
  .hero-logo-panel { max-width: 100%; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .showcase-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .showcase-head .mono { text-align: left; }
  .part-tile { width: 196px; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .form-panel { padding: 24px; }
  .bp-corner { display: none; }
  .sec-head--split { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 560px) {
  .value-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-contact { gap: 14px; }
  .foot-qr { width: 88px; height: 88px; }
  .hero-actions .btn { width: 100%; }
  .hero-logo-panel { max-width: 330px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta-band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}


/* ============================================================
   Photo slots / equipment photos / marquee photos
   ============================================================ */
.slot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s var(--ease);
}
.slot:hover .slot-img img { transform: scale(1.045); }
.slot:hover .slot-img img { transform: scale(1.04); }
.slot:hover .slot-no { background: #fff; }

.part-tile .part-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eq-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.92) contrast(1.02);
  transition: transform .7s var(--ease);
}
.eq-card:hover .eq-photo img { transform: scale(1.035); }
.eq-photo { background: var(--steel-800); }

/* category cover strip on product category pages */
.cat-cover {
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}
.cat-cover img { width: 100%; height: auto; display: block; }
.cat-cover .cat-cover-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .92);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* slightly warmer surface for alternating sections on white */
.section--alt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* legal line in the contact signature card */
.sig-legal {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 4px;
  line-height: 1.7;
}

/* ---------- product category thumbnails (products.html) ---------- */
.cat-card { padding: 0; }
.cat-thumb {
  position: relative;
  order: -1;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
}
.cat-card:hover .cat-thumb img { transform: scale(1.04); }
.cat-card .cat-no { margin: 18px 26px 0; }
.cat-card h3 { margin: 0 26px 8px; }
.cat-card p { margin: 0 26px 18px; }
.cat-card .cat-foot { margin: auto 26px 0; padding: 15px 0 22px; }
.cat-card .cat-icon { margin: 0 26px 18px; }

/* ---------- about page story block ---------- */
.story { margin-top: 8px; }
.story p { font-size: 14.5px; line-height: 1.75; color: var(--txt-soft); margin-bottom: 16px; max-width: 60ch; }
.story-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 28px;
}
.story-facts > div { background: var(--steel-900); padding: 16px 18px; }
.story-facts span {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.story-facts strong {
  font-family: var(--font-disp);
  font-size: 19px;
  letter-spacing: .03em;
  color: var(--txt);
  font-weight: 600;
}
@media (max-width: 560px) {
  .story-facts { grid-template-columns: 1fr; }
}

/* ============================================================
   Product lightbox
   ============================================================ */
html.lb-open, html.lb-open body { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(9, 15, 24, .94);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox:focus { outline: none; }

.lb-stage {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 100%;
}
.lb-stage img {
  display: block;
  max-width: min(92vw, 1300px);
  max-height: 82vh;
  width: auto;
  height: auto;
  background: #fff;
  opacity: 0;
  transition: opacity .18s linear;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}
.lb-stage img.is-ready { opacity: 1; }
.lb-count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .62);
  text-transform: uppercase;
}

.lb-close,
.lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.lb-close:hover,
.lb-nav:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); }
.lb-close:focus-visible,
.lb-nav:focus-visible { outline: 2px solid #6aa3e0; outline-offset: 3px; }

.lb-close { top: 22px; right: 22px; font-size: 24px; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 26px; line-height: 1; }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }

@media (max-width: 700px) {
  .lb-close { width: 40px; height: 40px; top: 12px; right: 12px; }
  .lb-nav { width: 40px; height: 40px; font-size: 22px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-stage img { max-height: 74vh; }
}
