/* ==========================================================================
   NEW INDIA METALS — Architectural Industrial Design System (v5)
   Wide-screen Desktop First | Swiss-Metallurgical Grid | Zero Generic Clutter
   ========================================================================== */

:root {
  --ink: #111317;
  --obsidian: #101215;
  --charcoal: #191c22;
  --graphite: #252a33;
  --alabaster: #f4f2ed;
  --paper: #ffffff;
  --slate: #525866;
  --muted: #767d8c;
  --copper: #c94a1e;
  --copper-dark: #a63a14;
  --copper-soft: rgba(201, 74, 30, 0.1);
  --line: #d9d5cc;
  --line-dark: rgba(255, 255, 255, 0.12);
  --wa: #1f9d55;
  --wa-dark: #178044;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --container: 1400px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--alabaster);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.12;
  font-weight: 700;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
}

.w {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 36px;
}

.mono {
  font-family: var(--font-mono);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--copper);
  display: inline-block;
}

/* ---------- Utility Top Strip ---------- */
.util-bar {
  background: var(--obsidian);
  color: #b7becb;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 9px 0;
}

.util-bar .w {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.util-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.util-bar a {
  text-decoration: none;
  color: #eef0f4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.util-bar a:hover {
  color: var(--copper);
}

.util-sep {
  color: rgba(255, 255, 255, 0.25);
}

/* ---------- Architectural Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 242, 237, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-name b {
  color: var(--copper);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 3px;
  position: relative;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover,
.main-nav a.on {
  color: var(--copper);
  background: rgba(201, 74, 30, 0.07);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--obsidian);
  color: #fff;
  border: 1px solid var(--obsidian);
  padding: 10px 18px;
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.nav-quote-btn:hover {
  background: var(--copper);
  border-color: var(--copper);
}

.nav-quote-btn .q-badge {
  font-family: var(--font-mono);
  background: var(--copper);
  color: #fff;
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 2px;
  font-weight: 700;
}

.nav-quote-btn:hover .q-badge {
  background: var(--obsidian);
}

#mb {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--copper);
  color: #fff;
  padding: 14px 26px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid var(--copper);
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s;
  letter-spacing: 0.01em;
}

.btn:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  transform: translateY(-2px);
}

.btn.dark {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #fff;
}

.btn.dark:hover {
  background: var(--graphite);
  border-color: var(--graphite);
}

.btn.outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn.outline:hover {
  background: var(--obsidian);
  color: #fff;
  border-color: var(--obsidian);
}

.btn.ghost-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn.ghost-light:hover {
  background: #fff;
  color: var(--obsidian);
  border-color: #fff;
}

.btn.wa-solid {
  background: var(--wa);
  border-color: var(--wa);
  color: #fff;
}

.btn.wa-solid:hover {
  background: var(--wa-dark);
  border-color: var(--wa-dark);
}

.btn.sm {
  padding: 10px 16px;
  font-size: 13.5px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- WIDE ARCHITECTURAL HERO ---------- */
.hero {
  background: var(--obsidian);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}

/* Subtle engineering blueprint background grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 64px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 54px;
  align-items: center;
  min-height: 520px;
}

.hero-slide-copy {
  display: none;
}

.hero-slide-copy.on {
  display: block;
  animation: fadeSlide 0.55s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero h1,
.hero .hero-h {
  font-size: clamp(36px, 4.3vw, 62px);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.06;
  margin-bottom: 22px;
}

.hero h1 em,
.hero .hero-h em {
  color: var(--copper);
  font-style: normal;
}

.hero-desc {
  color: #b8c0ce;
  font-size: 17px;
  max-width: 580px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-specs span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #dce1ea;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: 2px;
}

/* Right visual frame */
.hero-visual-wrap {
  position: relative;
}

.hero-frame {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--charcoal);
  padding: 12px;
  border-radius: 4px;
}

.hero-img-stage {
  position: relative;
  height: 430px;
  overflow: hidden;
  background: #0b0d10;
}

.hero-img-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 0.7s ease;
}

.hero-img-slide.on {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-img-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  margin-top: 12px;
  padding-top: 12px;
  gap: 12px;
}

.hero-readout div {
  padding: 4px 8px;
  border-right: 1px solid var(--line-dark);
}

.hero-readout div:last-child {
  border-right: 0;
}

.hero-readout small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8f98a8;
}

.hero-readout strong {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #fff;
  font-weight: 600;
}

/* Architectural Numbered Slide Switcher */
.hero-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

.rail-btn {
  background: transparent;
  border: 0;
  text-align: left;
  color: #8f98a8;
  cursor: pointer;
  padding: 10px 4px 12px;
  position: relative;
  transition: color 0.2s;
}

.rail-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
}

.rail-btn::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--copper);
  z-index: 2;
  transition: width 0.35s ease;
}

.rail-btn.on {
  color: #fff;
}

.rail-btn.on::before {
  width: 100%;
}

.rail-btn .r-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--copper);
  display: block;
  margin-bottom: 4px;
}

.rail-btn .r-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

/* Technical Grade Marquee */
.ticker {
  background: var(--copper);
  color: #fff;
  overflow: hidden;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 36px;
  animation: marquee 32s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 36px;
}

.ticker-track span::after {
  content: "//";
  opacity: 0.55;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Architectural Metrics Strip ---------- */
.metrics-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric-cell {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}

.metric-cell:last-child {
  border-right: 0;
}

.metric-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-num span {
  color: var(--copper);
}

.metric-label {
  font-size: 14px;
  color: var(--slate);
  font-weight: 500;
}

/* ---------- Section Rhythm ---------- */
.sec {
  padding: 96px 0;
}

.sec.paper {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec.dark {
  background: var(--obsidian);
  color: #fff;
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.sec-head h2 {
  font-size: clamp(30px, 3.3vw, 46px);
  color: var(--ink);
}

.sec.dark .sec-head h2 {
  color: #fff;
}

.sec-lead {
  color: var(--slate);
  font-size: 16.5px;
  max-width: 620px;
  margin-top: 10px;
}

.sec.dark .sec-lead {
  color: #aeb6c4;
}

/* ---------- HOME INTERACTIVE 4-COLUMN CATALOG GRID ---------- */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cat-tab:hover,
.cat-tab.on {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #fff;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.b-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--paper);
  transition: background 0.25s;
  position: relative;
}

.b-card.hide {
  display: none;
}

.b-card.span-2 {
  grid-column: span 2;
}

.b-card:hover {
  background: #faf9f6;
}

.b-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.b-card-top .b-tag {
  color: var(--copper);
  font-weight: 600;
  text-transform: uppercase;
}

.b-card-img {
  height: 205px;
  margin: 0 20px;
  overflow: hidden;
  background: var(--alabaster);
  border: 1px solid var(--line);
}

.b-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.b-card:hover .b-card-img img {
  transform: scale(1.06);
}

.b-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.b-card h3 {
  font-size: 20px;
  color: var(--ink);
}

.b-card p {
  font-size: 13.8px;
  color: var(--slate);
  flex: 1;
}

.b-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--copper);
}

/* ---------- DEDICATED INDUSTRIAL SCRAP TRADING DESK ---------- */
.scrap-desk {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.scrap-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 32px;
}

.scrap-box {
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  padding: 20px;
  border-radius: 3px;
  border-left: 3px solid var(--copper);
}

.scrap-box h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 6px;
}

.scrap-box p {
  font-size: 13.5px;
  color: #aeb6c4;
  line-height: 1.55;
}

.scrap-visual {
  border: 1px solid var(--line-dark);
  background: var(--charcoal);
  padding: 14px;
  border-radius: 4px;
}

.scrap-visual img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.scrap-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
}

.scrap-meta div {
  font-size: 13px;
  color: #c7cdd8;
}

.scrap-meta strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 4px;
}

/* ---------- INTERACTIVE STEEL WEIGHT CALCULATOR ---------- */
.calc-shell {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  border: 1px solid var(--line);
  background: var(--paper);
}

.calc-inputs {
  padding: 36px;
}

.calc-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.calc-tab {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--alabaster);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}

.calc-tab.on,
.calc-tab:hover {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #fff;
}

.calc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9c4ba;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px var(--copper-soft);
}

.calc-output {
  background: var(--obsidian);
  color: #fff;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.calc-readout-block {
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 20px;
}

.calc-readout-block small {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ba3b2;
  display: block;
  margin-bottom: 6px;
}

.calc-big {
  font-family: var(--font-mono);
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 700;
  color: var(--copper);
  line-height: 1.1;
}

.calc-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.calc-sub-grid strong {
  font-family: var(--font-mono);
  font-size: 18px;
  color: #fff;
  display: block;
}

.calc-formula {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #8f98a8;
  line-height: 1.6;
}

/* ---------- WE WORK WITH / PARTNERS ---------- */
.partners-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.partner-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 150px;
  transition: background 0.25s;
}

.partner-cell:hover {
  background: #faf9f6;
}

.partner-cell img {
  max-height: 64px;
  max-width: 165px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-cell span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--slate);
  text-align: center;
  font-weight: 600;
}

/* ---------- INNER PAGE BANNER ---------- */
.page-hero {
  background: var(--obsidian);
  color: #fff;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line-dark);
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.page-hero .w {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  color: #fff;
  margin-bottom: 12px;
}

.page-hero p {
  color: #b7becb;
  font-size: 17px;
  max-width: 680px;
}

/* ---------- WIDE DESKTOP PRODUCT WORKSPACE (product.html) ---------- */
.catalog-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: start;
  padding: 48px 0 88px;
}

.catalog-sidebar {
  position: sticky;
  top: 98px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
}

.sb-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sb-reset {
  background: none;
  border: 0;
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.sb-group {
  margin-bottom: 20px;
}

.sb-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 7px;
  font-weight: 600;
}

.sb-group input,
.sb-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c9c4ba;
  border-radius: 3px;
  font-size: 14px;
  background: #fff;
}

.sb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sb-pill {
  border: 1px solid var(--line);
  background: var(--alabaster);
  color: var(--ink);
  padding: 6px 11px;
  border-radius: 2px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sb-pill:hover,
.sb-pill.on {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #fff;
}

.sb-jump {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.sb-jump a {
  text-decoration: none;
  font-size: 13.5px;
  color: var(--slate);
  padding: 6px 8px;
  border-radius: 2px;
  display: flex;
  justify-content: space-between;
  transition: background 0.15s, color 0.15s;
}

.sb-jump a:hover {
  background: var(--alabaster);
  color: var(--copper);
}

.sb-jump span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
}

.view-btn {
  border: 0;
  background: var(--alabaster);
  color: var(--slate);
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.view-btn.on {
  background: var(--obsidian);
  color: #fff;
}

/* Datasheet Mode (Default Wide Technical Cards) */
.catalog-list {
  display: grid;
  gap: 24px;
}

.catalog-list.grid-mode {
  grid-template-columns: repeat(2, 1fr);
}

.pc {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 310px 1fr;
  transition: border-color 0.25s;
}

.pc:hover {
  border-color: var(--obsidian);
}

.pc.hide {
  display: none;
}

.catalog-list.grid-mode .pc {
  grid-template-columns: 1fr;
}

.pc-media {
  position: relative;
  background: var(--obsidian);
  border-right: 1px solid var(--line);
  min-height: 250px;
  overflow: hidden;
}

.catalog-list.grid-mode .pc-media {
  border-right: 0;
  border-bottom: 1px solid var(--line);
  height: 215px;
  min-height: 215px;
}

.pc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc-idx {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--obsidian);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-left: 3px solid var(--copper);
}

.pc-content {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
}

.pc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pc h3 {
  font-size: 24px;
  color: var(--ink);
}

.pc-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--copper-soft);
  color: var(--copper);
  padding: 5px 10px;
  border-radius: 2px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
  flex: 1;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table td:first-child {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--slate);
  width: 165px;
  min-width: 135px;
}

.spec-table tr:last-child td {
  border-bottom: 0;
}

#nr {
  display: none;
  padding: 48px 24px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--slate);
}

/* ---------- INDUSTRIES ARCHITECTURAL MATRIX ---------- */
.ind-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.ind-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.25s, color 0.25s;
}

.ind-card:hover {
  background: var(--obsidian);
  color: #fff;
}

.ind-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ind-icon {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--alabaster);
  color: var(--copper);
  display: grid;
  place-items: center;
  transition: all 0.25s;
}

.ind-card:hover .ind-icon {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}

.ind-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.ind-card h2 {
  font-size: 22px;
  color: var(--ink);
  margin-top: 6px;
  transition: color 0.25s;
}

.ind-card:hover h2 {
  color: #ffffff;
}

.ind-card p {
  font-size: 14.5px;
  color: var(--slate);
  flex: 1;
  transition: color 0.25s;
}

.ind-card:hover p {
  color: #c2c8d4;
}

.ind-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ind-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--alabaster);
  transition: all 0.2s;
}

.ind-card:hover .ind-tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.ind-card:hover .ind-tag:hover {
  background: var(--copper);
  border-color: var(--copper);
}

/* ---------- ABOUT & EDITORIAL TWO-COLUMN ---------- */
.split-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.editorial-frame {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 14px;
}

.editorial-frame img {
  width: 100%;
  height: 410px;
  object-fit: cover;
}

.pillars-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.pillar {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 32px;
}

.pillar .p-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--copper);
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}

.pillar h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--ink);
}

.pillar p {
  color: var(--slate);
  font-size: 15px;
}

/* ---------- CONTACT STUDIO ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.info-stack {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.info-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  padding: 20px 22px;
}

.info-tile small {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  display: block;
  margin-bottom: 6px;
}

.contact-form-box {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px;
}

.contact-form-box form {
  display: grid;
  gap: 16px;
}

.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.msg {
  padding: 14px 16px;
  border-radius: 3px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 14.5px;
}

.msg.ok {
  background: #e6f6ec;
  color: #155d33;
  border: 1px solid #b8e4c9;
}

.msg.er {
  background: #fdecec;
  color: #991b1b;
  border: 1px solid #f7c4c4;
}

/* ---------- FULL-WIDTH CTA BAND ---------- */
.cta-band {
  background: var(--copper);
  color: #fff;
  padding: 72px 0;
}

.cta-band .w {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(28px, 3vw, 42px);
  color: #fff;
  margin-bottom: 8px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 16.5px;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--obsidian);
  color: #aeb6c4;
  padding: 72px 0 28px;
  font-size: 14.5px;
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 16px;
}

footer h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 16px;
}

footer a {
  display: block;
  text-decoration: none;
  padding: 4px 0;
  color: #aeb6c4;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--copper);
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  margin-top: 48px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7d8594;
}

/* ---------- QUOTE DRAWER, DUAL CONTACT HUB & TOAST ---------- */
#q-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 18, 21, 0.62);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}

#q-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

#qd {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(430px, 100%);
  background: var(--paper);
  z-index: 90;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.35);
  transform: translateX(105%);
  transition: transform 0.32s ease;
  display: flex;
  flex-direction: column;
}

#qd.open {
  transform: none;
}

.qd-head {
  background: var(--obsidian);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qd-head h3 {
  font-size: 18px;
}

.qd-head button {
  background: none;
  border: 0;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

#ql {
  flex: 1;
  overflow: auto;
  padding: 16px 24px;
}

.q-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.q-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  flex: 1;
}

.q-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.q-ctrl button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: var(--alabaster);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
}

.q-ctrl button.q-del {
  background: none;
  border: 0;
  color: #b91c1c;
  font-size: 20px;
}

.q-qty {
  font-family: var(--font-mono);
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: 13.5px;
}

.qd-foot {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  background: var(--alabaster);
  display: grid;
  gap: 10px;
}

.q-wa-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.q-clear {
  background: none;
  border: 0;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

/* Floating Contact Hub (SVG icon, zero emoji) */
.wa-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  z-index: 70;
  transition: transform 0.2s, background 0.2s;
}

.wa-fab:hover {
  background: var(--wa-dark);
  transform: translateY(-3px);
}

.wa-menu {
  position: fixed;
  right: 24px;
  bottom: 94px;
  width: min(320px, calc(100vw - 32px));
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 22px 48px rgba(16, 18, 21, 0.28);
  z-index: 85;
  display: none;
}

.wa-menu.open {
  display: block;
  animation: fadeSlide 0.2s ease;
}

.wa-menu-hd {
  background: var(--obsidian);
  color: #fff;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wa-menu-hd button {
  background: none;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.wa-menu-body {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.wa-card {
  border: 1px solid var(--line);
  background: var(--alabaster);
  padding: 12px;
}

.wa-card strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
}

.wa-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wa-acts a {
  text-align: center;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 2px;
  color: #fff;
  background: var(--obsidian);
}

.wa-acts a.g {
  background: var(--wa);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  background: var(--obsidian);
  color: #fff;
  border-left: 3px solid var(--copper);
  padding: 12px 22px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  z-index: 98;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Scroll Reveal */
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rv.in {
  opacity: 1;
  transform: none;
}

.mbar {
  display: none;
}

/* ---------- Metals & Alloys Matrix Strip (product.html) ---------- */
.metals-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
  margin-bottom: 32px;
}

.metal-pill-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  text-align: left;
  background: var(--paper);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.metal-pill-card:hover,
.metal-pill-card.on {
  background: var(--obsidian);
  color: #fff;
}

.metal-pill-card small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
  font-weight: 700;
}

.metal-pill-card strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  transition: color 0.2s;
}

.metal-pill-card:hover strong,
.metal-pill-card.on strong {
  color: #fff;
}

.metal-pill-card span {
  font-size: 12.5px;
  color: var(--slate);
  line-height: 1.45;
  transition: color 0.2s;
}

.metal-pill-card:hover span,
.metal-pill-card.on span {
  color: #b7becb;
}

/* ---------- Enhanced Corporate About Us Sections ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.why-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.25s;
}

.why-card:hover {
  background: #faf9f6;
}

.why-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--copper);
}

.why-card h3 {
  font-size: 20px;
  color: var(--ink);
}

.why-card p {
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.6;
}

.qa-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.qa-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.qa-item {
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--copper);
  padding: 16px 18px;
}

.qa-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  color: #fff;
  margin-bottom: 4px;
}

.qa-item span {
  font-size: 13.5px;
  color: #b5bcc9;
  line-height: 1.5;
}

/* ---------- 21-Sector Visual Application Industries Grid ---------- */
.ind-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px 22px;
  margin-bottom: 26px;
}

.ind-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ind-tab {
  background: var(--alabaster);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 9px 15px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ind-tab:hover,
.ind-tab.on {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #fff;
}

.ind-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 380px;
  min-width: 240px;
}

.ind-search-wrap input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #c9c4ba;
  border-radius: 3px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}

.ind-search-wrap input:focus {
  outline: 0;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px var(--copper-soft);
}

.ind-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 18px;
  display: block;
}

.ind-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ind-pcard {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.ind-pcard.hide {
  display: none;
}

.ind-pcard:hover {
  border-color: var(--obsidian);
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(16, 18, 21, 0.11);
}

.ind-pmedia {
  position: relative;
  height: 220px;
  background: var(--obsidian);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.ind-pmedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.ind-pcard:hover .ind-pmedia img {
  transform: scale(1.06);
}

.ind-pmedia::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 18, 21, 0.52) 0%, rgba(16, 18, 21, 0.04) 55%);
  pointer-events: none;
}

.ind-pnum {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(16, 18, 21, 0.9);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-left: 3px solid var(--copper);
}

.ind-pcat {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4f2ed;
  background: rgba(16, 18, 21, 0.72);
  padding: 3px 8px;
  border-radius: 2px;
}

.ind-pbody {
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.ind-pbody h2 {
  font-size: 21px;
  color: var(--ink);
  line-height: 1.2;
}

.ind-pbody p {
  font-size: 14.2px;
  color: var(--slate);
  line-height: 1.6;
  flex: 1;
}

.ind-ptags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.ind-ptag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: var(--alabaster);
  color: var(--ink);
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ind-ptag:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}

.ind-empty {
  display: none;
  text-align: center;
  padding: 48px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--slate);
}

/* ==========================================================================
   FLUID 4-TIER RESPONSIVE SYSTEM (Wide Desktop -> Laptop -> Tablet -> Mobile)
   ========================================================================== */

/* Tier 1: Compact Laptop & Large Tablet (<= 1220px) */
@media (max-width: 1220px) {
  .w { padding: 0 26px; }
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
  .b-card.span-2 { grid-column: span 1; }
  .metals-strip { grid-template-columns: repeat(2, 1fr); }
  .partners-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 28px; }
  .catalog-layout { grid-template-columns: 270px 1fr; gap: 26px; }
  .pc { grid-template-columns: 260px 1fr; }
  .main-nav a { padding: 9px 12px; font-size: 14px; }
}

/* Tier 2: Tablet Landscape & Portrait (641px – 960px) — Proper 2-Col Tablet Layouts! */
@media (max-width: 960px) {
  #mb { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 20px;
    box-shadow: 0 18px 36px rgba(16, 18, 21, 0.14);
  }
  .main-nav.open { display: flex; }

  .hero-grid,
  .scrap-desk,
  .calc-shell,
  .split-2,
  .qa-grid,
  .contact-grid,
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-inner { padding: 48px 0 40px; }
  .hero-grid { min-height: auto; }
  .hero-img-stage { height: 340px; }
  .hero-rail { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }

  /* Keep balanced 2-column grids on Tablet instead of cramped 1-column! */
  .bento-grid,
  .ind-photo-grid,
  .why-grid,
  .pillars-3,
  .metrics-grid,
  .footer-grid,
  .scrap-list,
  .qa-checks,
  .calc-form-grid,
  .form-2col {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-cell { border-bottom: 1px solid var(--line); padding: 28px 22px; }
  .catalog-sidebar { position: static; }
  .pc { grid-template-columns: 240px 1fr; }
  .catalog-list.grid-mode { grid-template-columns: repeat(2, 1fr); }
  .editorial-frame img { height: 340px; }
  .sec { padding: 68px 0; }
  .util-hide-sm { display: none; }
}

/* Tier 3: Small Tablet & Large Mobile (<= 740px) */
@media (max-width: 740px) {
  .pc,
  .catalog-list.grid-mode {
    grid-template-columns: 1fr;
  }
  .pc-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    height: 230px;
    min-height: 230px;
  }
  .ind-search-wrap { max-width: 100%; }
}

/* Tier 4: Mobile Phones (<= 640px) */
@media (max-width: 640px) {
  .w { padding: 0 18px; }
  .bento-grid,
  .ind-photo-grid,
  .why-grid,
  .pillars-3,
  .metals-strip,
  .partners-strip,
  .footer-grid,
  .metrics-grid,
  .scrap-list,
  .qa-checks,
  .calc-form-grid,
  .form-2col {
    grid-template-columns: 1fr;
  }

  .hero-img-stage { height: 240px; }
  .hero-readout { grid-template-columns: 1fr; gap: 6px; }
  .hero-readout div { border-right: 0; border-bottom: 1px solid var(--line-dark); padding: 6px 4px; }
  .hero-readout div:last-child { border-bottom: 0; }
  .metric-cell { border-right: 0; padding: 24px 18px; }
  .sec { padding: 52px 0; }
  .page-hero { padding: 46px 0 40px; }
  .calc-inputs, .calc-output, .contact-form-box { padding: 24px 20px; }
  .calc-tabs { grid-template-columns: 1fr; }
  .editorial-frame img { height: 240px; }
  .scrap-visual img { height: 240px; }
  .scrap-meta { grid-template-columns: 1fr; }

  .brand img { height: 36px; }
  .brand-name { font-size: 16px; }
  .brand-sub { display: none; }
  .nav-quote-btn .btn-lbl { display: none; }
  .wa-fab { display: none; }
  .wa-menu { right: 12px; left: 12px; width: auto; bottom: 64px; }
  .mbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 75;
    background: var(--obsidian);
    border-top: 1px solid var(--line-dark);
  }
  .mbar a {
    color: #fff;
    text-align: center;
    padding: 14px 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
  }
  .mbar a:nth-child(2) { background: var(--wa); }
  .mbar a:nth-child(3) { background: var(--copper); }
  body { padding-bottom: 52px; }
  .toast { bottom: 68px; }
}
