/* ============================================================
   MICRO MATIC — Design tokens
   Color   : Signal Red #E2242E (primary), Red-Black #1c1214, Paper #F3F1EC, Steel #8c8288
   Type    : Archivo Expanded (display) / Archivo (body) / Space Mono (data, specs)
   Layout  : Wide section-frame, hairline rules, plate-style stat bar
   Signature: The Equipment Ledger — a searchable spec-plate table
   ============================================================ */

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

:root {
  --ink: #211316;
  --ink-soft: #2b171b;
  --ink-softer: #3a1e22;
  --paper: #f3f1ec;
  --paper-dim: #e8e4db;
  --steel: #948a8c;
  --steel-light: #c9bfc0;
  --red: #e2242e;
  --red-dark: #a1141c;
  --red-bright: #ff3b44;
  --red-soft: rgba(226, 36, 46, 0.1);
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(20, 22, 26, 0.12);
  --font-display: 'Archivo Expanded', sans-serif;
  --font-body: 'Archivo', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --ease: cubic-bezier(.16,.84,.44,1);
}

html { scroll-behavior: smooth; }

#about, #capabilities, #products, #equipment, #quality, #contact {
  scroll-margin-top: 90px;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ===== Grain overlay ===== */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--red); z-index: 1001; transition: width .1s linear;
}

/* ===== Section frame ===== */
.section-frame {
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
}
@media (max-width: 720px) {
  .section-frame { padding: 0 22px; }
}

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  color: var(--red); text-transform: uppercase; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.section-eyebrow-light { color: #ff5b5f; }
.section-title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12; letter-spacing: -.01em; color: var(--ink);
}
.section-title-light { color: var(--paper); }
.section-lede {
  font-size: 17px; color: var(--steel); max-width: 620px; margin-top: 18px;
}

/* ===== Top rail (brand strip) ===== */
.top-rail {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--red); z-index: 1002;
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 3px; left: 0; right: 0; z-index: 1000;
  background: rgba(28,18,20,0);
  transition: background .35s var(--ease), border-color .35s var(--ease), padding .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(20,13,14,0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 48px; height: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.brand-text {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  letter-spacing: .04em; color: var(--paper); line-height: 1;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 13px; font-weight: 600; color: var(--steel-light);
  letter-spacing: .02em; position: relative; padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav-links a::before {
  content: attr(data-label); font-family: var(--font-mono); font-size: 10px;
  color: var(--red); margin-right: 6px; opacity: .8;
}
.nav-links a:hover, .nav-links a.active { color: var(--red-bright); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 20px; right: 0; bottom: 0; height: 1px; background: var(--red);
}
.nav-cta {
  font-size: 13px; font-weight: 700; color: var(--ink); background: var(--paper);
  padding: 10px 20px; border-radius: 2px; letter-spacing: .02em;
  transition: background .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--red); color: #fff; transform: translateY(-1px); }
.nav-burger {
  display: none; flex-direction: column; gap: 5px; width: 26px;
}
.nav-burger span { display: block; height: 2px; background: var(--paper); width: 100%; transition: transform .3s var(--ease), opacity .3s var(--ease); }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 82px; left: 0; right: 0; background: rgba(20,13,14,0.98);
    backdrop-filter: blur(10px); flex-direction: column; gap: 0; padding: 10px 22px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .3s var(--ease);
    border-bottom: 1px solid var(--line-dark); max-height: calc(100vh - 82px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 560px) {
  .nav-inner { padding: 13px 18px; gap: 14px; }
  .brand-logo { width: 38px; }
  .brand-text { font-size: 16px; }
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; margin-top: 3px; display: flex; flex-direction: column;
  justify-content: center; overflow: hidden; background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: grayscale(35%) contrast(1.05); }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,26,.55) 0%, rgba(20,22,26,.7) 45%, var(--ink) 96%),
              linear-gradient(100deg, rgba(20,22,26,.9) 10%, rgba(20,22,26,.25) 55%);
}
.hero-content {
  position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 160px 40px 60px;
  width: 100%;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 13px; color: var(--steel-light); letter-spacing: .08em;
  display: flex; align-items: center; gap: 10px; margin-bottom: 26px; text-transform: uppercase;
  opacity: 0; animation: rise .8s var(--ease) .1s forwards;
}
.eyebrow-dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; display: inline-block; box-shadow: 0 0 0 4px rgba(216,30,39,.2); }
.hero-title {
  font-family: var(--font-display); font-weight: 800; color: var(--paper);
  font-size: clamp(42px, 7.2vw, 92px); line-height: .98; letter-spacing: -.02em;
  max-width: 900px;
  opacity: 0; animation: rise .9s var(--ease) .2s forwards;
}
.hero-title-outline {
  -webkit-text-stroke: 1.5px var(--paper); color: transparent;
}
.hero-sub {
  color: var(--steel-light); font-size: 18px; max-width: 560px; margin-top: 28px; line-height: 1.65;
  opacity: 0; animation: rise .9s var(--ease) .35s forwards;
}
.hero-actions {
  display: flex; gap: 18px; margin-top: 42px; flex-wrap: wrap;
  opacity: 0; animation: rise .9s var(--ease) .5s forwards;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px);} to { opacity: 1; transform: translateY(0);} }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; font-size: 14px; font-weight: 700; letter-spacing: .02em;
  border-radius: 2px; transition: all .3s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #b81920; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(216,30,39,.35); }
.btn-ghost { border: 1px solid rgba(243,241,236,.35); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(243,241,236,.06); }
.btn-block { width: 100%; }

.hero-plate {
  position: relative; z-index: 2; margin-top: auto;
  border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1280px; margin-left: auto; margin-right: auto; width: 100%;
}
.plate-item {
  padding: 26px 40px; display: flex; flex-direction: column; gap: 6px; position: relative;
}
.plate-num { font-family: var(--font-mono); font-size: clamp(22px,2.4vw,30px); color: var(--paper); font-weight: 700; }
.plate-num-static { color: var(--red); }
.plate-label { font-size: 12px; color: var(--steel-light); letter-spacing: .03em; }
.plate-div { display: none; }
@media (max-width: 900px) {
  .hero-plate { grid-template-columns: repeat(2, 1fr); }
  .plate-item { padding: 20px 22px; }
  .plate-item:nth-child(1), .plate-item:nth-child(3) { border-right: 1px solid var(--line-dark); }
  .plate-item:nth-child(1), .plate-item:nth-child(2) { border-bottom: 1px solid var(--line-dark); }
}
@media (min-width: 901px) {
  .plate-item:not(:last-child) { border-right: 1px solid var(--line-dark); }
}
@media (max-width: 640px) {
  .hero-content { padding: 112px 20px 36px; }
  .hero-sub { font-size: 15.5px; margin-top: 20px; }
  .eyebrow { font-size: 11.5px; margin-bottom: 18px; }
  .hero-actions { gap: 12px; margin-top: 30px; }
  .btn { padding: 14px 22px; font-size: 13px; flex: 1; min-width: 140px; }
}

/* ===== ABOUT ===== */
.about { padding: 150px 0 110px; background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.about-media { position: relative; }
.about-media img { border-radius: 3px; width: 100%; aspect-ratio: 4/3.2; object-fit: cover; position: relative; z-index: 1; }
.about-media::after {
  content: ''; position: absolute; right: -14px; bottom: -14px; width: 46%; height: 46%;
  background: var(--red); clip-path: polygon(100% 0, 100% 100%, 0 100%); z-index: 0; border-radius: 0 0 3px 0;
}
.about-media-tag {
  position: absolute; bottom: -16px; left: -16px; background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 11px; padding: 10px 16px; letter-spacing: .04em; z-index: 2;
  border-left: 3px solid var(--red);
}
.about-copy p { color: #3a3d42; font-size: 16px; margin-bottom: 18px; max-width: 620px; }
.about-copy strong { color: var(--ink); font-weight: 700; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.about-tags span {
  font-family: var(--font-mono); font-size: 11.5px; padding: 8px 14px; border: 1px solid var(--line-light);
  border-radius: 20px; color: var(--ink); letter-spacing: .02em;
}

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.mv-card {
  background: var(--ink); border: 1px solid var(--ink); padding: 40px; border-radius: 4px;
  position: relative; border-left: 3px solid var(--red);
}
.mv-card p { color: var(--steel-light); font-size: 15.5px; line-height: 1.7; }
.mv-index {
  font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); display: block; margin-bottom: 18px;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .mv-grid { grid-template-columns: 1fr; }
  .about-media-tag { left: 0; }
}

/* ===== INDUSTRIES WE SERVE ===== */
.industries { margin-top: 90px; }
.industries-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 22px;
}
.industries-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px;
  background: var(--line-light); border: 1px solid var(--line-light);
}
.industry-card {
  background: var(--paper); padding: 30px 16px; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 14px; transition: all .3s var(--ease); cursor: default;
}
.industry-card:hover { background: var(--red); transform: translateY(-4px); }
.ind-icon { width: 34px; height: 34px; color: var(--ink); transition: color .3s var(--ease); }
.industry-card:hover .ind-icon { color: #fff; }
.industry-card span {
  font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: .01em; line-height: 1.3;
  transition: color .3s var(--ease);
}
.industry-card:hover span { color: #fff; }

@media (max-width: 900px) {
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-card { padding: 24px 10px; }
}

.about-banner {
  position: relative; margin-top: 70px; border-radius: 4px; overflow: hidden;
}
.about-banner img { width: 100%; max-height: 340px; object-fit: cover; filter: grayscale(20%); }
.about-banner figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 22px 28px;
  background: linear-gradient(0deg, rgba(20,22,26,.85), transparent);
  color: var(--paper); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
}

/* ===== CAPABILITIES (dark) ===== */
.capabilities { background: var(--ink); padding: 120px 0; color: var(--paper); position: relative; overflow: hidden; }
.capabilities::before {
  content: ''; position: absolute; bottom: -25%; left: -10%; width: 520px; height: 520px;
  border-radius: 50%; background: radial-gradient(circle, rgba(226,36,46,.18), transparent 70%);
  pointer-events: none;
}
.capabilities .section-frame { position: relative; z-index: 1; }
.cap-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark); margin-bottom: 70px;
}
.cap-stat {
  padding: 30px 10px; text-align: left; border-right: 1px solid var(--line-dark);
}
.cap-stat:last-child { border-right: none; }
.cap-stat span { font-family: var(--font-mono); font-size: clamp(24px,2.6vw,32px); color: var(--red); display: block; font-weight: 700;}
.cap-stat small { font-size: 12.5px; color: var(--steel-light); letter-spacing: .02em; }

.cap-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.cap-process-item h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 18px 0 10px; }
.cap-process-item p { color: var(--steel-light); font-size: 14.5px; line-height: 1.6; }
.cap-process-line { display: block; width: 36px; height: 3px; background: var(--red); }

@media (max-width: 860px) {
  .cap-stats { grid-template-columns: repeat(2, 1fr); margin-bottom: 44px; }
  .cap-stat:nth-child(odd) { border-right: 1px solid var(--line-dark); }
  .cap-stat:nth-child(1), .cap-stat:nth-child(2) { border-bottom: 1px solid var(--line-dark); }
  .cap-process { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}
@media (max-width: 760px) {
  .capabilities { padding: 80px 0; }
  .products { padding: 80px 0; }
  .quality { padding: 80px 0; }
  .about { padding: 100px 0 70px; }
  .equipment { padding: 80px 0; }
  .contact { padding: 80px 0 100px; }
  .faq { padding: 70px 0; }
}

/* ===== WHY CHOOSE US (bold red banner) ===== */
.why-us { background: var(--red); padding: 46px 0; }
.why-us-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-us-item { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.why-us-num {
  font-family: var(--font-display); font-weight: 800; color: #fff;
  font-size: clamp(26px, 3vw, 36px); letter-spacing: -.01em;
}
.why-us-label {
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.85);
  letter-spacing: .04em; text-transform: uppercase;
}
@media (max-width: 760px) {
  .why-us-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}

/* ===== PRODUCTS ===== */
.products { padding: 120px 0; background: var(--paper); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }
.filter-btn {
  font-family: var(--font-mono); font-size: 12.5px; padding: 10px 18px; border: 1px solid var(--line-light);
  border-radius: 20px; color: var(--ink); background: transparent; transition: all .25s var(--ease);
  letter-spacing: .02em; display: flex; align-items: center; gap: 8px;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.filter-btn small { font-family: var(--font-mono); color: var(--steel); font-size: 10.5px; }
.filter-btn:hover small { color: var(--red); }

/* Category carousels */
.cat-carousel { margin-bottom: 52px; }
.cat-carousel:last-child { margin-bottom: 0; }
.cat-carousel-head {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; gap: 16px;
}
.cat-carousel-head h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink);
  display: flex; align-items: baseline; gap: 10px;
}
.cat-carousel-head h3 span {
  font-family: var(--font-mono); font-size: 12px; color: var(--steel); font-weight: 400;
}
.cat-carousel-nav { display: flex; gap: 8px; }
.cc-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-light);
  color: var(--ink); font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: all .25s var(--ease); flex-shrink: 0;
}
.cc-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

.cat-carousel-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--red) transparent;
  -webkit-overflow-scrolling: touch;
}
.cat-carousel-track::-webkit-scrollbar { height: 6px; }
.cat-carousel-track::-webkit-scrollbar-thumb { background: var(--line-light); border-radius: 4px; }
.cat-carousel-track::-webkit-scrollbar-thumb:hover { background: var(--red); }

.g-item {
  position: relative; overflow: hidden; flex: 0 0 auto; width: 240px; aspect-ratio: 1/1;
  background: var(--paper-dim); border-radius: 6px; scroll-snap-align: start;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); cursor: pointer;
  border: 1px solid var(--line-light); box-shadow: 0 2px 10px rgba(20,22,26,.05);
}
.g-item:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(20,22,26,.14); }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-item::before {
  content: ''; position: absolute; inset: 0; border: 2px solid var(--red); opacity: 0; border-radius: 6px;
  transition: opacity .25s var(--ease); z-index: 2; pointer-events: none;
}
.g-item:hover::before { opacity: 1; }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  background: linear-gradient(0deg, rgba(20,22,26,.82), transparent);
  color: var(--paper); font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em;
  opacity: 0; transform: translateY(8px); transition: all .3s var(--ease);
}
.g-item:hover figcaption { opacity: 1; transform: translateY(0); }

@media (max-width: 640px) {
  .g-item { width: 168px; }
  .cat-carousel-head h3 { font-size: 16px; }
  .cc-btn { width: 32px; height: 32px; font-size: 16px; }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,11,13,.96); z-index: 2000;
  display: none; align-items: center; justify-content: center; flex-direction: column;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lb-image {
  max-width: min(900px, 88vw); max-height: 74vh; object-fit: contain; border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); cursor: zoom-in; transition: transform .35s var(--ease);
  touch-action: pan-y;
}
.lb-image.zoomed { transform: scale(1.65); cursor: zoom-out; }
.lb-caption {
  font-family: var(--font-mono); color: var(--steel-light); font-size: 13px; margin-top: 20px; letter-spacing: .04em;
}
.lb-close {
  position: absolute; top: 26px; right: 30px; color: var(--paper); font-size: 22px;
  width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: all .25s var(--ease);
}
.lb-close:hover { border-color: var(--red); color: var(--red); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); color: var(--paper);
  font-size: 34px; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center; transition: all .25s var(--ease);
}
.lb-nav:hover { border-color: var(--red); color: var(--red); background: rgba(216,30,39,.08); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
@media (max-width: 640px) {
  .lb-nav { width: 42px; height: 42px; font-size: 26px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-close { top: 14px; right: 14px; }
}

/* ===== EQUIPMENT LEDGER (dark, signature) ===== */
.equipment { background: var(--ink); padding: 120px 0; color: var(--paper); position: relative; overflow: hidden; }
.equipment::before {
  content: ''; position: absolute; top: -20%; right: -8%; width: 480px; height: 480px;
  border-radius: 50%; background: radial-gradient(circle, rgba(226,36,46,.16), transparent 70%);
  pointer-events: none;
}
.equipment .section-frame { position: relative; z-index: 1; }
.ledger-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.ledger-controls input {
  flex: 1; min-width: 240px; background: transparent; border: none; border-bottom: 1px solid var(--line-dark);
  color: var(--paper); font-family: var(--font-mono); font-size: 15px; padding: 14px 4px;
  transition: border-color .25s var(--ease);
}
.ledger-controls input:focus { border-color: var(--red); outline: none; }
.ledger-controls input::placeholder { color: var(--steel); }
.ledger-count { font-family: var(--font-mono); font-size: 12px; color: var(--steel-light); white-space: nowrap; }

.ledger-table-wrap { overflow-x: auto; margin-top: 20px; }
.ledger-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.ledger-table thead th {
  text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--steel-light); padding: 14px 12px; border-bottom: 1px solid var(--line-dark);
}
.ledger-table tbody td {
  padding: 16px 12px; border-bottom: 1px solid var(--line-dark); font-size: 14.5px;
}
.ledger-table tbody tr { transition: background .2s var(--ease); position: relative; }
.ledger-table tbody tr:hover { background: rgba(216,30,39,.08); }
.ledger-table tbody tr:hover .lc-no { color: #ff5b5f; }
.lc-no { font-family: var(--font-mono); color: var(--red); width: 60px; border-left: 2px solid transparent; transition: border-color .2s var(--ease); }
.ledger-table tbody tr:hover .lc-no { border-left-color: var(--red); }
.lc-name { font-weight: 600; }
.lc-spec { font-family: var(--font-mono); color: var(--steel-light); font-size: 13px; }
.lc-qty { font-family: var(--font-mono); color: var(--paper); text-align: right; padding-right: 20px !important; }
.ledger-table tbody tr.hide { display: none; }
.ledger-empty { text-align: center; padding: 40px; color: var(--steel); font-family: var(--font-mono); font-size: 13px; }

/* ===== QUALITY ===== */
.quality { padding: 120px 0; background: var(--paper); }
.quality-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; }
.cert-card {
  background: var(--ink); color: var(--paper); border-radius: 4px; padding: 40px;
  position: relative; overflow: hidden;
}
.cert-card::before {
  content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px;
  border: 1px solid rgba(216,30,39,.25); border-radius: 50%;
}
.cert-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 10px; }
.cert-badge {
  font-family: var(--font-mono); font-size: 12.5px; background: var(--red); color: #fff;
  padding: 8px 14px; border-radius: 3px; letter-spacing: .03em; font-weight: 700;
}
.cert-issuer { font-size: 12.5px; color: var(--steel-light); }
.cert-card h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 24px; }
.cert-card dl div { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line-dark); gap: 16px; }
.cert-card dt { color: var(--steel-light); font-size: 13px; }
.cert-card dd { font-family: var(--font-mono); font-size: 13px; text-align: right; }

.quality-instruments h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 22px; }
.instrument-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.instrument-list li {
  display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line-light);
  font-size: 14px; gap: 10px;
}
.instrument-list li span { color: var(--ink); font-weight: 500; }
.instrument-list li small { font-family: var(--font-mono); color: var(--steel); font-size: 11.5px; white-space: nowrap; }

@media (max-width: 860px) {
  .quality-grid { grid-template-columns: 1fr; gap: 44px; }
  .instrument-list { grid-template-columns: 1fr; }
}

/* ===== LIVE ENQUIRY CONFIGURATOR ===== */
.configurator { background: var(--ink); padding: 120px 0; color: var(--paper); position: relative; overflow: hidden; }
.configurator::before {
  content: ''; position: absolute; top: -25%; left: -8%; width: 520px; height: 520px;
  border-radius: 50%; background: radial-gradient(circle, rgba(226,36,46,.15), transparent 70%);
  pointer-events: none;
}
.configurator .section-frame { position: relative; z-index: 1; }
.cfg-card {
  max-width: 720px; margin: 0 auto; background: var(--ink-soft); border: 1px solid var(--line-dark);
  border-radius: 10px; padding: 44px; box-shadow: 0 30px 60px rgba(0,0,0,.25);
}
.cfg-progress { display: flex; justify-content: space-between; margin-bottom: 40px; position: relative; }
.cfg-progress::before {
  content: ''; position: absolute; top: 15px; left: 30px; right: 30px; height: 1px; background: var(--line-dark); z-index: 0;
}
.cfg-dot {
  position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: var(--ink);
  border: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--steel); transition: all .3s var(--ease);
}
.cfg-dot small {
  position: absolute; top: 40px; font-size: 10px; letter-spacing: .03em; white-space: nowrap;
  color: var(--steel); text-transform: uppercase;
}
.cfg-dot.active, .cfg-dot.done { border-color: var(--red); color: #fff; background: var(--red); }
.cfg-dot.active small, .cfg-dot.done small { color: var(--steel-light); }

.cfg-step { display: none; animation: cfgFade .4s var(--ease); }
.cfg-step.active { display: block; }
@keyframes cfgFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.cfg-step h3 { font-family: var(--font-display); font-size: 21px; margin-bottom: 24px; text-align: center; }
.cfg-optional { color: var(--steel); font-size: 14px; font-weight: 400; font-family: var(--font-body); }

.cfg-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cfg-opt {
  padding: 18px 16px; border-radius: 8px; border: 1px solid var(--line-dark); background: var(--ink);
  color: var(--paper); font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  transition: all .25s var(--ease); text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.cfg-opt small { font-family: var(--font-mono); color: var(--steel-light); font-size: 11.5px; font-weight: 400; }
.cfg-opt:hover { border-color: var(--red); background: var(--red-soft); }
.cfg-opt.selected { border-color: var(--red); background: var(--red); color: #fff; }
.cfg-opt.selected small { color: rgba(255,255,255,.85); }

.cfg-notes {
  width: 100%; background: var(--ink); border: 1px solid var(--line-dark); border-radius: 8px;
  padding: 14px 16px; color: var(--paper); font-family: var(--font-body); font-size: 14.5px; resize: vertical;
  margin-bottom: 20px;
}
.cfg-notes:focus { border-color: var(--red); outline: none; }
.cfg-summary {
  background: var(--ink); border: 1px solid var(--line-dark); border-radius: 8px; padding: 20px;
  font-family: var(--font-mono); font-size: 13px; color: var(--steel-light); line-height: 1.9;
}
.cfg-summary strong { color: var(--red-bright); }

.cfg-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 16px; }
.cfg-back { font-family: var(--font-mono); font-size: 13px; color: var(--steel-light); transition: color .2s var(--ease); }
.cfg-back:hover { color: var(--red-bright); }
.cfg-send { margin-left: auto; }

@media (max-width: 640px) {
  .cfg-card { padding: 28px 20px; }
  .cfg-options { grid-template-columns: 1fr; }
  .cfg-dot small { display: none; }
}

/* ===== CONTACT ===== */
.contact { background: var(--ink); color: var(--paper); padding: 120px 0 100px; position: relative; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; z-index: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .1; filter: grayscale(60%); }
.contact::before {
  content: ''; position: absolute; top: -20%; right: -8%; width: 480px; height: 480px;
  border-radius: 50%; background: radial-gradient(circle, rgba(216,30,39,.16), transparent 70%);
  pointer-events: none; z-index: 0;
}
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; position: relative; z-index: 1; }
.contact-address { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line-dark); display: flex; gap: 24px; }
.contact-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--red); text-transform: uppercase;
  letter-spacing: .08em; width: 70px; flex-shrink: 0; padding-top: 2px;
}
.contact-value { font-size: 15.5px; color: var(--paper); line-height: 1.6; }
.map-link {
  display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: 12.5px;
  color: #ff5b5f; letter-spacing: .02em; transition: color .25s var(--ease);
}
.map-link:hover { color: var(--paper); }
.map-embed {
  margin-top: 26px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-dark);
  filter: grayscale(35%) contrast(1.05);
}
.map-embed iframe { width: 100%; height: 240px; border: 0; display: block; }

.contact-actions { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.contact-card {
  display: flex; align-items: center; gap: 20px; background: var(--ink-soft);
  border: 1px solid var(--line-dark); border-radius: 6px; padding: 24px 26px;
  transition: all .3s var(--ease);
}
.contact-card:hover { border-color: var(--red); background: var(--ink-softer); transform: translateX(4px); }
.contact-card-whatsapp { border-color: rgba(37,211,102,.35); }
.contact-card-whatsapp:hover { border-color: #25d366; background: rgba(37,211,102,.08); }
.contact-card-whatsapp .cc-icon { background: #25d366; color: #fff; }
.cc-icon {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.cc-text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cc-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--paper); }
.cc-sub { font-size: 13.5px; color: var(--steel-light); font-family: var(--font-mono); }
.cc-arrow { font-size: 20px; color: var(--steel); transition: transform .3s var(--ease), color .3s var(--ease); }
.contact-card:hover .cc-arrow { transform: translateX(4px); color: var(--red); }
.contact-card-whatsapp:hover .cc-arrow { color: #25d366; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 480px) {
  .contact-card { padding: 18px; gap: 14px; }
  .cc-title { font-size: 15px; }
}

/* ===== SPEED-DIAL FLOATING ACTIONS ===== */
.speed-dial { position: fixed; bottom: 26px; right: 26px; z-index: 950; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.speed-dial-toggle {
  width: 60px; height: 60px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(226,36,46,.45);
  transition: all .35s var(--ease); position: relative;
}
.speed-dial-toggle::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--red);
  opacity: .5; animation: pulse-ring 2.4s ease-out infinite;
}
.sd-icon-chat, .sd-icon-close {
  position: absolute; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.sd-icon-close { opacity: 0; transform: scale(.6) rotate(-45deg); }
.sd-icon-chat { opacity: 1; transform: scale(1) rotate(0); }
.speed-dial.open .speed-dial-toggle { background: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.speed-dial.open .speed-dial-toggle::after { display: none; }
.speed-dial.open .sd-icon-chat { opacity: 0; transform: scale(.6) rotate(45deg); }
.speed-dial.open .sd-icon-close { opacity: 1; transform: scale(1) rotate(0); }
@keyframes pulse-ring {
  0% { transform: scale(.9); opacity: .5; }
  80% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .speed-dial-toggle::after { animation: none; }
}
.speed-dial-menu { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.sd-item {
  display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff;
  padding: 11px 18px 11px 14px; border-radius: 30px; box-shadow: 0 8px 24px rgba(0,0,0,.3);
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  opacity: 0; transform: translateY(10px) scale(.9); pointer-events: none;
  transition: all .3s var(--ease);
}
.speed-dial.open .sd-item { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.speed-dial.open .sd-item:nth-child(1) { transition-delay: .05s; }
.speed-dial.open .sd-item:nth-child(2) { transition-delay: .1s; }
.speed-dial.open .sd-item:nth-child(3) { transition-delay: .15s; }
.sd-item svg { flex-shrink: 0; }
.sd-call { background: var(--red); }
.sd-whatsapp { background: #25d366; }
.sd-item:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.08); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 26px; left: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--paper); border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center; z-index: 900;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: all .3s var(--ease);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--red); border-color: var(--red); }

/* ===== DESKTOP SIDE DOT NAV ===== */
.dot-nav {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 850;
  display: flex; flex-direction: column; gap: 16px;
}
.dot-nav a {
  width: 10px; height: 10px; border-radius: 50%; position: relative; display: block;
}
.dot-nav a span {
  position: absolute; inset: 0; border-radius: 50%; background: var(--steel);
  opacity: .5; transition: all .3s var(--ease);
}
.dot-nav a:hover span { opacity: 1; background: var(--red); transform: scale(1.3); }
.dot-nav a.active span { opacity: 1; background: var(--red); transform: scale(1.5); box-shadow: 0 0 0 4px rgba(226,36,46,.2); }
@media (max-width: 1100px) { .dot-nav { display: none; } }

/* ===== MOBILE BOTTOM TAB BAR ===== */
.mobile-tabbar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 940;
  background: rgba(20,13,14,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line-dark);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  justify-content: space-around; align-items: center;
}
.mt-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--steel-light);
  font-size: 10px; font-family: var(--font-mono); padding: 4px 8px; transition: color .2s var(--ease); flex: 1;
}
.mt-item svg { transition: transform .2s var(--ease); }
.mt-item.active { color: var(--red); }
.mt-item.active svg { transform: translateY(-2px); }
@media (max-width: 760px) {
  .mobile-tabbar { display: flex; }
  .speed-dial { bottom: 78px; right: 16px; }
  .back-to-top { display: none; }
  .speed-dial-toggle { width: 54px; height: 54px; }
}

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--paper); padding: 13px 24px; border-radius: 30px;
  font-family: var(--font-mono); font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  z-index: 2100; opacity: 0; pointer-events: none; transition: all .3s var(--ease);
  border: 1px solid var(--red);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 760px) { .toast { bottom: 90px; } }

/* ===== COPY BUTTONS ===== */
.copy-btn {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--red); border: 1px solid rgba(226,36,46,.4);
  padding: 3px 10px; border-radius: 12px; margin-left: 8px; letter-spacing: .03em;
  transition: all .2s var(--ease); vertical-align: middle;
}
.copy-btn:hover { background: var(--red); color: #fff; }
.contact-quick-copy { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.qc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qc-row .contact-label { width: auto; }
.qc-row .contact-value { font-size: 14px; }

/* ===== FAQ ACCORDION ===== */
.faq { padding: 100px 0; background: var(--paper); }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-light); }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; text-align: left; font-family: var(--font-display); font-weight: 700;
  font-size: 16px; color: var(--ink); transition: color .2s var(--ease);
}
.faq-q:hover { color: var(--red); }
.faq-icon {
  font-family: var(--font-mono); font-size: 20px; color: var(--red); flex-shrink: 0;
  transition: transform .3s var(--ease); width: 24px; text-align: center;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 4px 22px; color: var(--steel); font-size: 15px; line-height: 1.65; max-width: 640px; }
.faq-item.open .faq-a { max-height: 200px; }

/* ===== FOOTER ===== */
.footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-tag, .footer-copy { font-size: 12.5px; color: var(--steel); }

@media (max-width: 760px) {
  .footer { padding-bottom: 90px; }
}

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
