/* p-m13: /erp-sheet-metal-fabrication-bangalore/ (ETC-251, sheet metal enclosure story). Own prefix m13-.
   Split hero with tilted nesting card, thick-left-rule frames with index numbers, hopper fill motion, folding blank,
   mask-reveal art, tag-chip kickers, stacked deck that fans out, title-block job sheet, expandable cabinet BOM, quote helper. */
.m13 { --m13-acc: #B45309; --m13-acc-d: #8A3F06; --m13-acc-bg: #FDF3E7; --m13-navy: #1F2A44; --m13-grey: #8C96A3; --m13-sheet: #F4F5F7; }

/* tag chips used as section kickers */
.m13-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.m13-tags li { padding: 6px 11px; border-radius: 4px; background: var(--m13-navy); color: #fff; font: 700 11.5px/1.1 var(--font-ui); letter-spacing: .05em; text-transform: uppercase; }
.m13-tags li:first-child { background: var(--m13-acc); }
.m13-tags li + li { background: #E5E8EE; color: var(--m13-navy); }

/* hero */
.m13-hero { background: linear-gradient(90deg, rgba(31, 42, 68, .05) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(180deg, #F7F4EF, #fff 85%); }
.m13-hero .kicker { color: var(--m13-acc-d); background: var(--m13-acc-bg); }
.m13-hero h1 .hl { color: var(--m13-acc-d); background: none; -webkit-text-fill-color: currentColor; }
.m13-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; margin-top: 18px; }
.m13-hero__art { position: relative; }
.m13-frame { position: relative; padding: 0 0 0 26px; border-left: 12px solid var(--m13-acc); }
.m13-frame__i { position: absolute; left: -12px; top: -34px; padding: 6px 10px; background: var(--m13-navy); color: #fff; font: 800 13px/1 var(--font-ui); letter-spacing: .08em; }
.m13-frame .st-art { border-radius: 0; --st-sky: linear-gradient(180deg, #EEF0F4 0%, #F9F6F1 100%); box-shadow: 0 26px 50px -30px rgba(31, 42, 68, .55); }
.m13-nest { position: absolute; z-index: 6; left: -88px; bottom: -40px; width: 230px; padding: 12px 14px; background: #fff; border: 1px solid #D6DAE1; border-top: 6px solid var(--m13-navy);
  transform: rotate(4deg); box-shadow: 0 20px 40px -20px rgba(31, 42, 68, .5); font: 500 12.5px/1.4 var(--font-ui); color: var(--m13-navy); }
.m13-nest b { display: block; font-size: 13px; margin-bottom: 6px; }
.m13-nest__bar { height: 10px; background: #E5E8EE; margin: 6px 0 4px; }
.m13-nest__bar i { display: block; height: 100%; width: 78%; background: var(--m13-acc); }
.m13-nest small { color: var(--muted); }
.m13-pause { position: absolute; z-index: 7; right: 12px; top: 12px; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid #D6DAE1; background: #fff; color: var(--m13-navy);
  font: 600 12.5px/1 var(--font-ui); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.m13-pause svg { width: 14px; height: 14px; }
/* motion: hopper fills with powder, the blank folds up, laser line sweeps */
.m13-powder { transform-box: fill-box; transform-origin: 50% 100%; animation: m13-fill 4.8s ease-in-out infinite alternate; }
.m13-flap-l { transform-box: fill-box; transform-origin: 100% 50%; animation: m13-fold 4.8s ease-in-out infinite alternate; }
.m13-flap-r { transform-box: fill-box; transform-origin: 0 50%; animation: m13-fold 4.8s ease-in-out infinite alternate; }
.m13-laser { animation: m13-sweep 2.4s linear infinite; }
@keyframes m13-fill { from { transform: scaleY(.12); } to { transform: scaleY(1); } }
@keyframes m13-fold { from { transform: scaleX(1); } to { transform: scaleX(.18); } }
@keyframes m13-sweep { from { transform: translateX(0); } to { transform: translateX(150px); } }
.m13.is-paused .m13-powder, .m13.is-paused .m13-flap-l, .m13.is-paused .m13-flap-r, .m13.is-paused .m13-laser { animation-play-state: paused; }

/* mask reveal: a solid cover slides off the art as it enters */
.m13-reveal { position: relative; overflow: hidden; }
.m13-reveal > .m13-cover { position: absolute; inset: 0; z-index: 3; background: var(--m13-navy); transform: translateX(0); transition: transform .9s cubic-bezier(.7, 0, .2, 1); }
.m13-reveal.is-in > .m13-cover { transform: translateX(101%); }
.no-js .m13-cover, .m13-reveal--static > .m13-cover { display: none; }

/* stacked deck that fans out on click */
.m13-deck { position: relative; min-height: 390px; }
.m13-deck + .m13-deck__bar { justify-content: center; }
.m13-deck__card { position: absolute; left: 50%; top: 0; width: min(330px, 86%); margin-left: calc(min(330px, 86%) / -2); padding: 22px 22px 20px; background: #fff; border: 1px solid #D6DAE1;
  border-left: 8px solid var(--m13-navy); box-shadow: 0 18px 36px -24px rgba(31, 42, 68, .55); transition: transform .5s cubic-bezier(.3, .7, .2, 1); }
.m13-deck__card:nth-child(1) { transform: translate(0, 0) rotate(-3deg); z-index: 4; }
.m13-deck__card:nth-child(2) { transform: translate(8px, 8px) rotate(1deg); z-index: 3; }
.m13-deck__card:nth-child(3) { transform: translate(16px, 16px) rotate(4deg); z-index: 2; }
.m13-deck__card:nth-child(4) { transform: translate(24px, 24px) rotate(7deg); z-index: 1; }
.m13-deck.is-fanned .m13-deck__card:nth-child(1) { transform: translate(-108%, 0) rotate(-6deg); }
.m13-deck.is-fanned .m13-deck__card:nth-child(2) { transform: translate(-36%, 18px) rotate(-2deg); }
.m13-deck.is-fanned .m13-deck__card:nth-child(3) { transform: translate(36%, 18px) rotate(2deg); }
.m13-deck.is-fanned .m13-deck__card:nth-child(4) { transform: translate(108%, 0) rotate(6deg); }
.m13-deck__card.is-top { z-index: 6; border-left-color: var(--m13-acc); }
.m13-deck__card h3 { font-size: 19px; margin-bottom: 6px; }
.m13-deck__card p { font-size: 14.5px; margin: 0 0 10px; }
.m13-deck__card ul { margin: 0; padding-left: 18px; font-size: 14px; }
.m13-deck__card .m13-deck__k { font: 800 12px/1 var(--font-ui); letter-spacing: .08em; color: var(--m13-acc-d); margin-bottom: 8px; }
.m13-deck__bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.m13-deck__bar button { min-height: 44px; }
.m13-deck__card button.m13-deck__pick { margin-top: 12px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--m13-navy); background: #fff; color: var(--m13-navy); font: 600 13.5px/1 var(--font-ui); cursor: pointer; }
.m13-deck__card button.m13-deck__pick:hover { background: var(--m13-navy); color: #fff; }

/* thick-left-rule panels with index numbers (used for optional sections) */
.m13-ix { position: relative; padding: 22px 22px 20px 72px; background: #fff; border: 1px solid #E2E6EC; border-left: 10px solid var(--m13-navy); }
.m13-ix::before { content: attr(data-ix); position: absolute; left: 14px; top: 20px; font: 800 26px/1 var(--font-ui); color: var(--m13-acc-d); }
.m13-ix h3 { font-size: 19px; }
.m13-ix p:last-child { margin-bottom: 0; }
.m13-ixgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }

/* utilisation section */
.m13-util { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.m13-util__art svg { width: 100%; height: auto; display: block; }
.m13-util__art { border: 1px solid #D6DAE1; background: var(--m13-sheet); }

/* colour batches */
.m13-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.m13-sw { border: 1px solid #D6DAE1; background: #fff; }
.m13-sw i { display: block; height: 64px; }
.m13-sw div { padding: 12px 14px; font: 500 13.5px/1.4 var(--font-ui); color: var(--text); }
.m13-sw b { display: block; color: var(--ink); font-size: 14px; }

/* title-block job sheet */
.m13-job { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: start; margin-top: 26px; }
.m13-job > * { min-width: 0; }
.m13-tb { width: 100%; table-layout: fixed; overflow-wrap: anywhere; border-collapse: collapse; border: 3px solid var(--m13-navy); background: #fff; font: 500 13.5px/1.35 var(--font-ui); color: var(--m13-navy); }
.m13-tb caption { caption-side: bottom; text-align: right; padding-top: 8px; font: 500 12px/1.3 var(--font-ui); color: var(--muted); }
.m13-tb th, .m13-tb td { border: 1px solid var(--m13-navy); padding: 8px 10px; text-align: left; vertical-align: top; }
.m13-tb thead th { background: var(--m13-navy); color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.m13-tb tbody th { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: #4B5563; width: 30%; background: var(--m13-sheet); }
.m13-tb td span { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border: 1px solid #334155; }

/* cabinet BOM: rule-indented tree */
.m13-bom { list-style: none; margin: 0; padding: 0; }
.m13-bom ul { list-style: none; margin: 6px 0 0 14px; padding: 0 0 0 14px; border-left: 4px solid #E5E8EE; }
.m13-bom li { margin: 6px 0; }
.m13-bom summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; background: var(--m13-navy); color: #fff; font: 600 14px/1.3 var(--font-ui); }
.m13-bom ul summary { background: #fff; color: var(--m13-navy); border: 1px solid #D6DAE1; }
.m13-bom summary::-webkit-details-marker { display: none; }
.m13-bom summary::after { content: "Open"; margin-left: auto; font: 700 11px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: inherit; opacity: 1; }
.m13-bom details[open] > summary::after { content: "Close"; }
.m13-bom .m13-leaf { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 8px 12px; background: var(--m13-sheet); font: 500 14px/1.35 var(--font-ui); }
.m13-bom small { font: 600 11.5px/1.2 var(--font-ui); color: var(--m13-acc-d); }

/* quote helper */
.m13-qh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; margin-top: 26px; padding: 26px; background: #fff; border: 1px solid #D6DAE1; border-left: 10px solid var(--m13-acc); }
.m13-qh label { display: block; font: 600 13.5px/1.3 var(--font-ui); color: var(--ink); margin: 0 0 12px; }
.m13-qh input { display: block; width: 100%; margin-top: 6px; min-height: 44px; padding: 8px 10px; border: 1px solid #CBD5E1; font: 500 15px/1.2 var(--font-ui); color: var(--ink); background: #fff; }
.m13-qh__out { background: var(--m13-sheet); padding: 18px; }
.m13-qh__out dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin: 0 0 12px; font: 500 14px/1.35 var(--font-ui); }
.m13-qh__out dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.m13-qh__out p { font-size: 13.5px; }

.m13 .m13-note { font: 500 13.5px/1.5 var(--font-ui); color: var(--muted); margin-top: 14px; }
.m13-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 44px; align-items: start; }

@media (max-width: 1180px) {
  .m13-nest { left: -40px; }
  .m13-deck.is-fanned .m13-deck__card:nth-child(1) { transform: translate(-84%, 0) rotate(-6deg); }
  .m13-deck.is-fanned .m13-deck__card:nth-child(2) { transform: translate(-28%, 18px) rotate(-2deg); }
  .m13-deck.is-fanned .m13-deck__card:nth-child(3) { transform: translate(28%, 18px) rotate(2deg); }
  .m13-deck.is-fanned .m13-deck__card:nth-child(4) { transform: translate(84%, 0) rotate(6deg); }
}
@media (max-width: 960px) {
  .m13-hero__grid, .m13-util, .m13-job, .m13-split, .m13-qh { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .m13-nest { position: relative; left: auto; bottom: auto; margin: 16px 0 0 14px; transform: rotate(2deg); }
  .m13-ixgrid { grid-template-columns: 1fr; }
  .m13-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m13-deck { min-height: 0; display: grid; gap: 14px; }
  .m13-deck__card, .m13-deck.is-fanned .m13-deck__card { position: relative; left: auto; width: auto; margin: 0; transform: none !important; }
  .m13-deck__bar [data-m13-fan] { display: none; }
}
@media (max-width: 480px) {
  .m13-frame { padding-left: 12px; border-left-width: 8px; }
  .m13-ix { padding-left: 56px; }
  .m13-qh { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .m13-powder, .m13-flap-l, .m13-flap-r, .m13-laser { animation: none; }
  .m13-reveal > .m13-cover { display: none; }
  .m13-deck__card { transition: none; }
}
