/* ============================================================
   /manufacturing — light premium industrial. Same brand system:
   white / silver / warm gold / brand yellow / black text.
   Data comes from CMS settings.manufacturing via /api/public/manufacturing.
   ============================================================ */

.mfg-sec[hidden] { display: none; }

/* ---------- buttons ---------- */
.mfg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.mfg-btn.solid { background: var(--yellow); color: #111111; border: 1px solid var(--yellow); }
.mfg-btn.solid:hover { background: #E6A900; border-color: #E6A900; }
.mfg-btn.ghost { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.6); }
.mfg-btn.ghost:hover { border-color: var(--yellow); color: var(--yellow); }

/* ---------- section head ---------- */
.mfg-sec-head { text-align: center; margin-bottom: 38px; }
.mfg-h2 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  color: #111111;
  line-height: 1.25;
}
.mfg-h2 em {
  display: block;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #999999;
  margin-top: 6px;
}
.mfg-h2.left { text-align: left; }
.mfg-sub { max-width: 760px; margin: 0 auto; font-size: 14.5px; line-height: 1.7; color: #666666; }
.mfg-rule { display: inline-block; width: 56px; height: 3px; background: var(--yellow); }
.mfg-kicker { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--yellow); text-transform: uppercase; margin: 0 0 8px; }
.mfg-desc { font-size: 14.5px; line-height: 1.75; color: #666666; }

/* ---------- 01 hero ---------- */
.mfg-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: var(--hero-img) center 40% / cover no-repeat;
}
.mfg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.66) 0%, rgba(17, 17, 17, 0.38) 55%, rgba(17, 17, 17, 0.16) 100%);
}
.mfg-hero-inner { position: relative; z-index: 2; padding: 70px 15px; }
.mfg-hero-text { max-width: 620px; color: #FFFFFF; }
.mfg-hero-kicker { font-size: 14px; font-weight: 700; letter-spacing: 3px; color: var(--yellow); margin: 0 0 10px; }
.mfg-hero-title { margin: 0 0 10px; font-size: 44px; font-weight: 700; line-height: 1.15; }
.mfg-hero-sub { margin: 0 0 14px; font-size: 19px; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.mfg-hero-desc { margin: 0 0 24px; font-size: 14.5px; line-height: 1.75; color: rgba(255, 255, 255, 0.85); max-width: 540px; }
.mfg-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 02 stats ---------- */
.mfg-stats { background: #FFFFFF; border-bottom: 1px solid #F0F0EE; }
.mfg-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.mfg-stat {
  text-align: center;
  padding: 34px 18px;
  border-left: 1px solid #EFEFED;
}
.mfg-stat:first-child { border-left: 0; }
.mfg-stat .num {
  display: block;
  font-size: 38px;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1.1;
  letter-spacing: 0.5px;
}
.mfg-stat .lab { display: block; margin-top: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; color: #111111; }
.mfg-stat .zh { display: block; margin-top: 3px; font-size: 12.5px; color: #888888; }

/* ---------- 03 capabilities ---------- */
.mfg-capabilities { padding: 72px 0; background: #FFFFFF; }
.mfg-cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.mfg-cap {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mfg-cap:hover { transform: translateY(-3px); border-color: #DCDCDC; box-shadow: 0 12px 30px rgba(20, 20, 20, 0.08); }
.mfg-cap-img { height: 230px; overflow: hidden; background: #F5F5F3; }
.mfg-cap-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.mfg-cap:hover .mfg-cap-img img { transform: scale(1.03); }
.mfg-cap-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.mfg-cap-no { font-size: 13px; font-weight: 800; color: #C9C9C6; letter-spacing: 1px; }
.mfg-cap:hover .mfg-cap-no { color: var(--yellow); }
.mfg-cap-title { font-size: 20px; font-weight: 700; color: #111111; }
.mfg-cap:hover .mfg-cap-title { color: var(--yellow); }
.mfg-cap-en { font-size: 12px; font-weight: 700; letter-spacing: 1.6px; color: #AAAAAA; }
.mfg-cap-desc { font-size: 13.5px; line-height: 1.7; color: #666666; }
.mfg-cap-items { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mfg-cap-items li {
  font-size: 12px;
  color: #444444;
  background: #F6F6F4;
  border: 1px solid #ECECEA;
  padding: 4px 10px;
  border-radius: 2px;
}
.mfg-cap-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  text-decoration: none;
  letter-spacing: 0.4px;
}
.mfg-cap-link:hover { text-decoration: underline; }

/* ---------- 04 process ---------- */
.mfg-process { padding: 72px 0; background: #F7F7F5; }
.mfg-proc-flow {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
}
.mfg-step {
  position: relative;
  text-align: center;
  padding: 10px 6px;
}
.mfg-step .no {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #D8D8D5;
  border-radius: 50%;
  font-size: 16px; font-weight: 800;
  color: #555555;
  background: #FFFFFF;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.mfg-step .arrow {
  position: absolute;
  top: 24px; right: -9px;
  width: 18px; height: 18px;
  color: #C9C9C6;
  z-index: 2;
}
.mfg-step:last-child .arrow { display: none; }
.mfg-step .zh { display: block; font-size: 14px; font-weight: 700; color: #222222; }
.mfg-step .en { display: block; font-size: 11px; color: #999999; margin-top: 3px; }
.mfg-step:hover .no { border-color: var(--yellow); background: var(--yellow); color: #111111; }
.mfg-step:hover .zh { color: var(--yellow); }

/* ---------- 05 facility ---------- */
.mfg-facility { padding: 72px 0; background: #FFFFFF; }
.mfg-fac-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 44px;
  align-items: center;
}
.mfg-fac-img img { width: 100%; height: 420px; object-fit: cover; border-radius: 5px; }
.mfg-fac-points { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.mfg-fac-points .pt {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: #222222;
  padding: 11px 14px;
  background: #F7F7F5;
  border-left: 3px solid var(--yellow);
}
.mfg-fac-points .pt em { font-style: normal; font-size: 11.5px; font-weight: 600; color: #999999; letter-spacing: 1px; margin-left: auto; }

/* ---------- 06 equipment ---------- */
.mfg-equipment { padding: 72px 0; background: #F7F7F5; }
.mfg-eq-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mfg-eq {
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mfg-eq:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 20, 20, 0.09); }
.mfg-eq-img { height: 170px; overflow: hidden; background: #F0F0EE; }
.mfg-eq-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.mfg-eq:hover .mfg-eq-img img { transform: scale(1.04); }
.mfg-eq-body { padding: 16px 18px 20px; position: relative; }
.mfg-eq-no { font-size: 12px; font-weight: 800; color: #C9C9C6; letter-spacing: 1px; }
.mfg-eq:hover .mfg-eq-no { color: var(--yellow); }
.mfg-eq-title { margin: 4px 0 6px; font-size: 16px; font-weight: 700; color: #111111; }
.mfg-eq:hover .mfg-eq-title { color: var(--yellow); }
.mfg-eq-en { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: #AAAAAA; }
.mfg-eq-desc { margin-top: 8px; font-size: 12.5px; line-height: 1.6; color: #666666; }
.mfg-eq-arrow {
  position: absolute;
  top: 16px; right: 18px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: var(--yellow);
  font-weight: 800;
}
.mfg-eq:hover .mfg-eq-arrow { opacity: 1; transform: translateX(0); }

/* ---------- 07 quality ---------- */
.mfg-quality { padding: 72px 0; background: #FFFFFF; }
.mfg-q-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 44px;
  align-items: center;
}
.mfg-q-sub { font-size: 15px; font-weight: 600; color: #333333; margin: 6px 0 10px; }
.mfg-q-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.mfg-q-list li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: #333333;
  padding: 9px 12px;
  background: #F7F7F5;
  border-left: 3px solid var(--yellow);
}
.mfg-q-list li .en { display: block; font-size: 11px; color: #999999; }
.mfg-q-img img { width: 100%; height: 430px; object-fit: cover; border-radius: 5px; }

/* ---------- 08 gallery ---------- */
.mfg-gallery { padding: 72px 0; background: #F7F7F5; }
.mfg-gal { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 14px; }
.mfg-gal-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
  background: #E8E8E6;
}
.mfg-gal-item.big { grid-column: span 2; grid-row: span 2; }
.mfg-gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.mfg-gal-item:hover img { transform: scale(1.05); }
.mfg-gal-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- 09 global ---------- */
.mfg-global { padding: 72px 0; background: #FFFFFF; }
.mfg-g-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 44px;
  align-items: center;
}
.mfg-g-img img { width: 100%; height: 400px; object-fit: cover; border-radius: 5px; }
.mfg-g-ready { font-size: 13px; font-weight: 800; letter-spacing: 2px; color: var(--yellow); margin: 6px 0 10px; }
.mfg-g-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mfg-g-list li {
  font-size: 13px; color: #333333; font-weight: 600;
  background: #F7F7F5; border: 1px solid #ECECEA;
  padding: 8px 14px; border-radius: 2px;
}
.mfg-g-badge { margin-top: 22px; display: inline-flex; align-items: baseline; gap: 10px; padding: 14px 22px; background: #111111; border-radius: 4px; }
.mfg-g-badge .num { font-size: 30px; font-weight: 800; color: var(--yellow); }
.mfg-g-badge .lab { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: #FFFFFF; }

/* ---------- 10 CTA ---------- */
.mfg-cta {
  position: relative;
  padding: 88px 0;
  background: var(--cta-img, linear-gradient(rgba(17,17,17,0.72), rgba(17,17,17,0.72))) center / cover no-repeat;
}
.mfg-cta-mask { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.68); }
.mfg-cta-inner { position: relative; z-index: 2; text-align: center; }
.mfg-cta-title { margin: 0 0 8px; font-size: 30px; font-weight: 700; color: #FFFFFF; }
.mfg-cta-en { margin: 0 0 26px; font-size: 14px; letter-spacing: 2px; color: rgba(255, 255, 255, 0.75); }
.mfg-cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- lightbox ---------- */
.mfg-lightbox {
  position: fixed;
  inset: 0;
  /* Must sit above the sticky header shell (z-index 9999). */
  z-index: 10050;
  display: none;
}
.mfg-lightbox.open { display: block; }
.mfg-lb-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.82); }
.mfg-lb-stage {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, calc(100vw - 130px));
  text-align: center;
}
.mfg-lb-stage img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 4px; }
.mfg-lb-cap { margin: 12px 0 0; color: rgba(255, 255, 255, 0.85); font-size: 14px; }
.mfg-lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.35);
  color: #FFFFFF;
  font-size: 26px;
  cursor: pointer;
  border-radius: 3px;
  z-index: 2;
}
.mfg-lb-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.mfg-lb-btn.prev { left: 24px; }
.mfg-lb-btn.next { right: 24px; }
.mfg-lb-x {
  position: absolute;
  top: 18px; right: 22px;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.35);
  color: #FFFFFF;
  font-size: 22px;
  cursor: pointer;
  border-radius: 3px;
  z-index: 2;
}
.mfg-lb-x:hover { border-color: var(--yellow); color: var(--yellow); }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .mfg-eq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mfg-proc-flow { grid-template-columns: repeat(4, 1fr); row-gap: 26px; }
  .mfg-step:nth-child(4) .arrow { display: none; }
  .mfg-step:nth-child(5) .arrow { display: block; }
}
@media (max-width: 900px) {
  .mfg-cap-grid { grid-template-columns: 1fr; }
  .mfg-fac-grid, .mfg-q-grid, .mfg-g-grid { grid-template-columns: 1fr; gap: 26px; }
  .mfg-fac-img img, .mfg-q-img img, .mfg-g-img img { height: 300px; }
  .mfg-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mfg-stat:nth-child(3) { border-left: 0; }
  .mfg-stat { border-top: 1px solid #EFEFED; }
  .mfg-stat:nth-child(-n+2) { border-top: 0; }
  .mfg-gal { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .mfg-hero-title { font-size: 32px; }
}
@media (max-width: 640px) {
  .mfg-eq-grid { grid-template-columns: 1fr; }
  .mfg-proc-flow { grid-template-columns: repeat(2, 1fr); }
  .mfg-step .arrow { display: none !important; }
  .mfg-q-list { grid-template-columns: 1fr; }
  .mfg-hero-title { font-size: 27px; }
  .mfg-h2 { font-size: 25px; }
  .mfg-lb-stage { width: calc(100vw - 90px); }
}

/* ============================================================
   V2 — wider container (1400px), bigger capability cards,
   connected process flow, 1+2 gallery layout, enabled filters.
   ============================================================ */
.mfg-container {
  max-width: 1400px;
  width: calc(100% - 80px);
  margin: 0 auto;
}
@media (max-width: 900px) {
  .mfg-container { width: calc(100% - 40px); }
}
@media (max-width: 640px) {
  .mfg-container { width: calc(100% - 28px); }
}

/* hero: 480-560px */
.mfg-hero { min-height: 520px; }

/* stats: 120-150px rows */
.mfg-stats-grid .mfg-stat { padding: 42px 18px; }

/* capabilities: full-width 2x2, image 280px, hover line + arrow */
.mfg-cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.mfg-cap-img { height: 280px; }
.mfg-cap-body {
  position: relative;
  padding-top: 18px;
}
.mfg-cap-body::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 3px;
  background: #E5E5E3;
  transition: width 0.3s ease, background 0.3s ease;
}
.mfg-cap:hover .mfg-cap-body::before { width: 100%; background: var(--yellow); }
.mfg-cap-link::after {
  content: "→";
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.3s ease;
}
.mfg-cap:hover .mfg-cap-link::after { transform: translateX(5px); }

/* process: connected line style (thin gray rail between nodes) */
.mfg-process { background: #FFFFFF; border-top: 1px solid #F0F0EE; border-bottom: 1px solid #F0F0EE; }
.mfg-proc-flow { position: relative; }
.mfg-proc-flow::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 6%; right: 6%;
  height: 1px;
  background: #DDDDDA;
}
.mfg-step .no {
  position: relative;
  z-index: 2;
  width: 56px; height: 56px;
  border: 1px solid var(--yellow);
  color: #555555;
  font-size: 15px;
}
.mfg-step .arrow { display: none; }
.mfg-step:hover .no { background: #FFFBEB; color: #B8860B; }

/* gallery: 1 big + right column 2 */
.mfg-gal {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-auto-rows: 200px;
}
.mfg-gal-item.big { grid-column: span 1; grid-row: span 2; }
@media (max-width: 900px) {
  .mfg-gal { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .mfg-gal-item.big { grid-column: span 2; grid-row: span 2; }
}

/* global: light band */
.mfg-global { background: #F7F7F5; }

/* ============================================================
   V3 — split hero (text left / image right), 1280px container,
   WHY OUR MANUFACTURING band, richer card hover, wide gallery row.
   ============================================================ */
.mfg-container { max-width: 1280px; }

/* hero: split layout — white text panel left, real photo right */
.mfg-hero { background: #FFFFFF !important; min-height: 0; }
.mfg-hero .mfg-hero-overlay { display: none; }
.mfg-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  align-items: stretch;
  min-height: 560px;
}
.mfg-hero .mfg-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 64px 72px 0;
}
.mfg-hero-kicker { color: #C8A24B; }
.mfg-hero-title { color: #111111; }
.mfg-hero-sub { color: #444444; }
.mfg-hero-desc { color: #666666; }
.mfg-hero .mfg-hero-img {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}
.mfg-hero .mfg-hero-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* capabilities hover: lift + slower zoom + yellow title */
.mfg-cap { transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.mfg-cap:hover { transform: translateY(-4px); }
.mfg-cap-img img { transition: transform 0.4s ease; }
.mfg-cap:hover .mfg-cap-img img { transform: scale(1.03); }
.mfg-cap:hover .mfg-cap-title { color: var(--yellow); }

/* gallery: 4th+ items become a wide full-width row */
.mfg-gal-item:nth-child(n+4) { grid-column: 1 / -1; grid-row: span 1; }

/* WHY OUR MANUFACTURING */
.mfg-why {
  background: #FFFFFF;
  border-top: 1px solid #F0F0EE;
  padding: 64px 0 68px;
}
.mfg-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.mfg-why-item {
  position: relative;
  padding: 26px 22px 24px;
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-top: 3px solid #E8E8E8;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.mfg-why-item:hover { border-top-color: var(--yellow); transform: translateY(-3px); }
.mfg-why-item .no {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #C8A24B;
}
.mfg-why-item h3 {
  margin: 10px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  letter-spacing: 0.5px;
}
.mfg-why-item p { margin: 0; font-size: 13.5px; line-height: 1.65; color: #666666; }

/* global delivery quote button */
.mfg-g-text .mfg-btn { margin-top: 22px; display: inline-block; }

/* responsive */
@media (max-width: 1000px) {
  .mfg-hero-split { grid-template-columns: 1fr; min-height: 0; }
  .mfg-hero .mfg-hero-text { padding: 48px 0 36px; }
  .mfg-hero .mfg-hero-img { min-height: 280px; order: -1; }
  .mfg-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mfg-why-grid { grid-template-columns: 1fr; }
  .mfg-hero .mfg-hero-img { min-height: 220px; }
}

/* v3 fix: neutralize v1 hero flex/background completely */
.mfg-hero {
  display: block;
  min-height: 0;
  background: #FFFFFF;
}
.mfg-hero-split {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}
.mfg-hero .mfg-hero-text {
  max-width: none;
  color: #222222;
  padding: 64px 56px 64px 48px;
}
.mfg-hero-desc { max-width: 520px; }
@media (max-width: 1000px) {
  .mfg-hero .mfg-hero-text { padding: 44px 24px 32px; }
}

/* ghost button on light hero panel: dark outline instead of white */
.mfg-hero .mfg-btn.ghost {
  color: #222222;
  border-color: #222222;
  background: transparent;
}
.mfg-hero .mfg-btn.ghost:hover { background: #222222; color: #FFFFFF; }

/* hero video — same box as the poster image, light hover controls */
.mfg-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111111;
}
.mfg-hero-vctl {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: rgba(17, 17, 17, 0.55);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mfg-hero-img:hover .mfg-hero-vctl,
.mfg-hero-img:focus-within .mfg-hero-vctl { opacity: 1; }
.mfg-hero-vctl .vbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  opacity: 0.9;
}
.mfg-hero-vctl .vbtn:hover { opacity: 1; color: var(--yellow); }
.mfg-hero-vctl .vbtn svg { width: 18px; height: 18px; }
.mfg-hero-vctl input[type="range"] {
  flex: 1;
  height: 3px;
  accent-color: #F9B900;
  cursor: pointer;
}

/* ============================================================
   V4 — premium hero video frame
   subtle cut corners + white frame + light shadow + brand line
   ============================================================ */
.video-frame {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.10);
  /* very slight industrial corner cut, top-right only */
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  overflow: hidden;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}
.mfg-hero-img:hover .video-frame {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.13);
}
.video-frame img,
.video-frame .mfg-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* single restrained brand line: 2px yellow on the left edge */
.video-frame::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--yellow);
  z-index: 6;
}
/* light readability shade */
.mfg-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.12) 100%);
  pointer-events: none;
}
/* central play button — yellow circle, white triangle */
.mfg-vbig {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(249, 185, 0, 0.35);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.mfg-vbig:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 8px 22px rgba(249, 185, 0, 0.45);
}
.mfg-vbig svg { width: 26px; height: 26px; margin-left: 3px; }

/* thin progress line: always visible, doubles as click-to-seek */
.mfg-vline {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  cursor: pointer;
}
.mfg-vline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
}
.mfg-vline span {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  max-width: 100%;
  background: var(--yellow);
}

/* hover control bar: minimal industrial, 44px */
.mfg-hero-vctl {
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 5;
  height: 44px;
  border-radius: 3px;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(2px);
}
.mfg-hero-vctl .vspacer { flex: 1; }

/* fix: explicit display beats the [hidden] UA rule — keep hidden working */
.mfg-vbig[hidden],
.mfg-hero-vctl[hidden] { display: none; }
