/* ============================================================
   Black Steel International — industrial redesign
   Light grain theme · rust accent · bold grotesk display
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #ECEAE6;
  --bg-2: #F3F1ED;
  --paper: #FBFAF8;
  --ink: #161510;
  --ink-2: #2C2A23;
  --muted: #6F6B61;
  --muted-2: #908B80;
  --line: rgba(22, 21, 16, 0.12);
  --line-2: rgba(22, 21, 16, 0.07);
  --rust: #C0492B;
  --rust-2: #A33A20;
  --rust-soft: #E8C8BC;
  --dark: #17160F;
  --dark-2: #201E16;
  --on-dark: #EDEAE3;
  --on-dark-muted: #9C988C;
  --max: 1240px;
  --r: 14px;
  --shadow: 0 24px 60px rgba(22, 21, 16, 0.14);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: Archivo, system-ui, sans-serif; font-weight: 800; margin: 0; letter-spacing: -0.02em; line-height: 1.02; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: clamp(20px, 5vw, 56px); }

/* column grid lines */
.gridlines { position: relative; }
.gridlines::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  max-width: var(--max); margin: 0 auto; left: 0; right: 0;
  background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(20% - 1px), var(--line-2) calc(20% - 1px), var(--line-2) 20%);
}
.gridlines > * { position: relative; z-index: 1; }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--rust); display: inline-block; }
.eyebrow.on-dark { color: var(--on-dark-muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; border-radius: 10px; overflow: hidden; font-family: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn span { padding: 13px 20px; }
.btn .ar { display: grid; place-items: center; width: 46px; align-self: stretch; }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--rust); color: #fff; }
.btn.primary .ar { background: var(--rust-2); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(192, 73, 43, 0.34); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost .ar { border-left: 1px solid var(--line); }
.btn.ghost:hover { background: rgba(22,21,16,0.04); }
.btn.light { background: var(--ink); color: #fff; }
.btn.light .ar { background: #000; }
.btn.light:hover { transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236, 234, 230, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.brand { font-family: Archivo, sans-serif; font-weight: 900; font-size: 21px; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 3px; }
.brand sup { color: var(--rust); font-size: 12px; }
.brand .bt { display: flex; flex-direction: column; }
.brand small { font-family: Inter; font-weight: 600; font-size: 9.5px; letter-spacing: 0.34em; color: var(--muted); margin-top: 1px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.nav a::before { content: ""; width: 6px; height: 6px; background: var(--rust); opacity: 0; transition: opacity .2s; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::before { opacity: 1; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 44px; height: 40px; border: 1px solid var(--line); background: transparent; border-radius: 9px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 96px); }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { font-size: clamp(44px, 8.2vw, 104px); font-weight: 800; line-height: 0.96; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--rust); }
.hero-sub { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: flex-end; justify-content: space-between; margin-top: 34px; }
.hero-sub p { margin: 0; max-width: 46ch; color: var(--ink-2); font-size: clamp(16px, 1.7vw, 19px); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-band { margin-top: clamp(40px, 6vw, 72px); height: clamp(280px, 44vw, 560px); border-radius: var(--r); overflow: hidden; position: relative; background: #0c0b07; }
.hero-band img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.hero-band .tag { position: absolute; left: 22px; bottom: 20px; color: var(--on-dark); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(0,0,0,0.4); padding: 8px 14px; border-radius: 8px; backdrop-filter: blur(4px); }

/* ---------- section scaffold ---------- */
.section { padding-block: clamp(70px, 9vw, 128px); }
.section.tight { padding-block: clamp(48px, 6vw, 84px); }
.sec-head { display: flex; flex-wrap: wrap; gap: 22px 50px; justify-content: space-between; align-items: flex-end; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 58px); max-width: 18ch; }
.sec-head h2 em { font-style: normal; color: var(--rust); }
.sec-head .lead { max-width: 44ch; color: var(--muted); margin: 14px 0 0; }
.kicker-col { max-width: 520px; }
.kicker-col .eyebrow { margin-bottom: 18px; }

/* ---------- intro / who-we-are ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.intro-grid h2 { font-size: clamp(26px, 3.4vw, 44px); }
.intro-grid h2 em { color: var(--rust); font-style: normal; }
.intro-grid .body { color: var(--ink-2); }
.intro-grid .body p { margin: 0 0 16px; }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.mini-stats div { background: var(--bg-2); padding: 26px 22px; }
.mini-stats strong { font-family: Archivo; font-size: 34px; font-weight: 800; display: block; letter-spacing: -0.02em; }
.mini-stats span { color: var(--muted); font-size: 13.5px; }

/* ---------- divisions (row services) ---------- */
.divisions { border-top: 1px solid var(--line); }
.division-row {
  display: grid; grid-template-columns: 46px 300px minmax(0,1fr) auto 48px; gap: clamp(20px, 3vw, 48px);
  align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line);
}
.division-row .ico { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; color: var(--rust); }
.division-row .ico svg { width: 24px; height: 24px; }
.division-row .thumb { height: 124px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.division-row .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.division-row .meta h3 { font-size: clamp(22px, 2.6vw, 32px); }
.division-row .meta p { color: var(--muted); margin: 8px 0 0; max-width: 52ch; font-size: 15px; }
.division-row .feat { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; min-width: 220px; }
.division-row .feat li { display: flex; gap: 9px; align-items: center; font-size: 14.5px; color: var(--ink-2); }
.division-row .feat li::before { content: ""; width: 14px; height: 14px; flex: 0 0 14px; background: var(--rust); -webkit-mask: var(--check) center/contain no-repeat; mask: var(--check) center/contain no-repeat; }
.division-row .go { width: 48px; height: 48px; border-radius: 10px; background: var(--rust); display: grid; place-items: center; color: #fff; transition: transform .18s; }
.division-row .go:hover { transform: translate(2px,-2px); }
.division-row .go svg { width: 18px; height: 18px; }

/* ---------- stats band (dark) ---------- */
.band-dark { background: var(--dark); color: var(--on-dark); position: relative; }
.band-dark::before {
  content: ""; position: absolute; inset: 0; max-width: var(--max); margin: 0 auto; left:0; right:0;
  background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(20% - 1px), rgba(255,255,255,0.05) calc(20% - 1px), rgba(255,255,255,0.05) 20%);
}
.band-dark .wrap { position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stats-grid .st strong { font-family: Archivo; font-weight: 800; font-size: clamp(38px, 5vw, 68px); display: block; letter-spacing: -0.03em; }
.stats-grid .st strong em { color: var(--rust); font-style: normal; }
.stats-grid .st span { color: var(--on-dark-muted); font-size: 14.5px; }

/* ---------- product grid / cards ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button {
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  transition: all .18s;
}
.filters button:hover { border-color: var(--ink); }
.filters button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pcard {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(22,21,16,0.22); }
.pcard .ph { aspect-ratio: 4/3; background: #fff; overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .35s ease; }
.pcard:hover .ph img { transform: scale(1.05); }
.pcard .pb { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .cat { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); font-weight: 600; }
.pcard h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.pcard p { margin: 0; font-size: 13.5px; color: var(--muted); flex: 1; }
.pcard .more { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.pcard .more svg { width: 14px; height: 14px; transition: transform .2s; }
.pcard:hover .more svg { transform: translateX(3px); }
.empty { color: var(--muted); padding: 40px 0; }

/* ---------- industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ind-card { position: relative; border-radius: var(--r); overflow: hidden; min-height: 320px; background: #0d0c08; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.ind-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.62; }
.ind-card .ic { position: relative; padding: 24px; }
.ind-card h3 { font-size: 23px; }
.ind-card p { margin: 8px 0 0; font-size: 14px; color: rgba(255,255,255,0.82); }

/* ---------- CTA ---------- */
.cta { background: var(--dark); color: var(--on-dark); border-radius: clamp(16px, 3vw, 28px); padding: clamp(40px, 6vw, 86px) clamp(28px, 5vw, 80px); text-align: center; }
.cta h2 { font-size: clamp(30px, 5vw, 64px); max-width: 20ch; margin: 16px auto 0; }
.cta h2 em { color: var(--rust); font-style: normal; }
.cta p { color: var(--on-dark-muted); max-width: 50ch; margin: 18px auto 28px; }
.cta .hero-actions { justify-content: center; }
.cta .btn.ghost { color: #fff; border-color: rgba(255,255,255,0.24); }
.cta .btn.ghost:hover { background: rgba(255,255,255,0.08); }

/* ---------- CEO message ---------- */
.ceo-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.ceo-portrait { position: relative; aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(150deg, #1c1a13, #050403); box-shadow: var(--shadow); }
.ceo-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.ceo-badge { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgba(23,22,15,0.72); backdrop-filter: blur(6px); color: #fff; padding: 14px 18px; border-radius: 10px; }
.ceo-badge strong { display: block; font-family: Archivo; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.ceo-badge span { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); }
.ceo-body blockquote { margin: 20px 0 0; font-family: Archivo; font-weight: 700; font-size: clamp(24px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.ceo-body blockquote em { font-style: normal; color: var(--rust); }
.ceo-body > p { color: var(--ink-2); margin: 18px 0 0; max-width: 56ch; }
.ceo-sign { margin-top: 24px; font-weight: 600; color: var(--ink); font-size: 14.5px; }
.ceo-sign::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--rust); vertical-align: middle; margin-right: 12px; }

/* ---------- product detail ---------- */
.crumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); padding-top: 30px; flex-wrap: wrap; }
.crumb a:hover { color: var(--ink); }
.crumb svg { width: 13px; height: 13px; flex: 0 0 13px; color: var(--muted-2); }
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); padding-top: 26px; align-items: start; }
.pd .stage { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.pd .stage img { width: 100%; height: 100%; object-fit: contain; padding: 36px; }
.pd .cat { color: var(--rust); }
.pd h1 { font-size: clamp(30px, 4.4vw, 52px); margin: 14px 0 16px; }
.pd .short { font-size: 18px; color: var(--ink-2); max-width: 50ch; }
.pd .feat { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.pd .feat li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; }
.pd .feat li::before { content: ""; width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; background: var(--rust); -webkit-mask: var(--check) center/contain no-repeat; mask: var(--check) center/contain no-repeat; }
.pd .pd-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.spec-line { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.spec-line .chip { font-size: 12.5px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: var(--bg-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); padding-block: clamp(48px, 6vw, 84px); margin-top: 10px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot-top .brand { color: #fff; }
.foot-top .brand small { color: var(--on-dark-muted); }
.foot-top p { color: var(--on-dark-muted); max-width: 38ch; margin: 16px 0 0; font-size: 14.5px; }
.foot-col h4 { font-family: Inter; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 600; margin-bottom: 16px; }
.foot-col a, .foot-col span { display: block; color: var(--on-dark); font-size: 14.5px; margin-bottom: 10px; opacity: 0.86; }
.foot-col a:hover { color: var(--rust); opacity: 1; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; color: var(--on-dark-muted); font-size: 13px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 4vw; background: rgba(10,9,6,0.9); backdrop-filter: blur(6px); }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(720px,100%); max-height: 90vh; background: #fff; border-radius: 12px; padding: 24px; }
.lightbox button { position: absolute; top: 24px; right: 24px; background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 9px 18px; font-weight: 600; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .division-row { grid-template-columns: 40px 220px minmax(0,1fr) 48px; }
  .division-row .feat { display: none; }
}
@media (max-width: 900px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 4px; padding: 18px clamp(20px,5vw,56px) 24px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .site-header.open .nav a { padding: 10px 0; font-size: 18px; }
  .intro-grid, .pd, .foot-top, .ceo-grid { grid-template-columns: 1fr; }
  .ceo-portrait { max-width: 420px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .ind-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .division-row { grid-template-columns: 40px minmax(0,1fr) 48px; }
  .division-row .thumb { display: none; }
  .gridlines::before, .band-dark::before { display: none; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pcard .pb { padding: 12px; }
  .pcard h3 { font-size: 15px; }
  .mini-stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(40px, 13vw, 60px); }
}

/* ---------- Transformer anatomy (light, embedded on home) ---------- */
.anatomy-section { background: #ffffff; padding: clamp(64px, 9vw, 120px) 0 0; position: relative; }
.anatomy-head { text-align: center; max-width: 760px; margin: 0 auto; padding-bottom: 8px; }
.anatomy-head .eyebrow { justify-content: center; display: inline-flex; margin-bottom: 16px; }
.anatomy-head h2 { font-size: clamp(30px, 4.4vw, 56px); }
.anatomy-head h2 em { font-style: normal; color: var(--rust); }
.anatomy-head .lead { max-width: 50ch; margin: 16px auto 0; color: var(--muted); font-size: clamp(15px, 1.7vw, 18px); }

.t-scrolly { position: relative; height: 540vh; }
.t-stage { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden;
  background: radial-gradient(125% 105% at 50% 32%, #ffffff 0%, #f5f3ee 64%, #e9e5dd 100%); }
#t-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.t-caption { position: absolute; left: clamp(20px, 5vw, 70px); bottom: clamp(60px, 11vh, 120px); max-width: 430px; color: var(--ink); will-change: opacity, transform; pointer-events: none; }
.t-step { font-size: 12px; letter-spacing: 0.2em; font-weight: 700; color: var(--rust); }
.t-caption h2 { font-family: Archivo, sans-serif; font-weight: 800; font-size: clamp(26px, 3.6vw, 46px); letter-spacing: -0.02em; margin: 10px 0 12px; color: var(--ink); }
.t-caption p { margin: 0; color: var(--muted); font-size: clamp(14px, 1.6vw, 17px); max-width: 40ch; }

.t-progress { position: absolute; left: clamp(20px, 5vw, 70px); right: clamp(20px, 5vw, 70px); bottom: 28px; height: 3px; background: rgba(22,21,16,0.12); border-radius: 3px; overflow: hidden; }
.t-progress span { display: block; height: 100%; width: 0%; background: var(--rust); }
.t-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; letter-spacing: 0.1em; }

@media (max-width: 760px) {
  .t-scrolly { height: 460vh; }
  .t-stage { background: radial-gradient(140% 90% at 50% 26%, #ffffff 0%, #f4f2ec 70%, #ebe7df 100%); }
  .t-caption { left: 20px; right: 20px; bottom: 64px; max-width: none; text-align: center; }
  .t-caption p { margin-inline: auto; }
  .t-progress { bottom: 22px; }
}
