/* <picture> wraps <img> for WebP-with-fallback. display: contents makes the
   wrapper layout-neutral so existing parent grid/flex rules apply to the <img>
   directly (matters for .case-photo--logo, .logo-wrap, etc.). */
picture { display: contents; }

/* ============================================================
   EMS DASHBOARD PREVIEW — SCADA-style mock dashboard for the
   /projects/energy-monitoring/ page. SVG + CSS, no JS library.
   ============================================================ */

.ems-dash {
  background: #0a1929;
  color: #fff;
  border-radius: 8px;
  padding: clamp(20px, 2.5vw, 32px);
  font-family: var(--mono);
  position: relative;
  overflow: hidden;
  max-width: 1440px;
  margin-inline: auto;
}
.ems-dash::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 95%);
  pointer-events: none;
}
.ems-dash > * { position: relative; z-index: 1; }

.ems-dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
  gap: 10px;
}
.ems-dash-title {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.ems-dash-title span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-right: 10px;
  font-weight: 500;
  text-transform: uppercase;
}
.ems-dash-status {
  display: flex; gap: 18px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.ems-dash-status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2ec27e;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(46,194,126,0.5);
  animation: emsPulse 2.4s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes emsPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,194,126,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(46,194,126,0); }
}

.ems-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
@media (max-width: 900px) {
  .ems-grid { grid-template-columns: 1fr 1fr; }
  .ems-card.big { grid-column: 1 / -1; }
  .ems-card.wide { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ems-grid { grid-template-columns: 1fr; }
}

.ems-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ems-card.big { grid-row: span 2; }
.ems-card.wide { grid-column: span 3; }
@media (max-width: 900px) { .ems-card.wide { grid-column: 1 / -1; } }

.ems-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.ems-value {
  font-family: var(--sans);
  font-size: clamp(28px, 3vw + 0.4rem, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: #fff;
}
.ems-value .unit {
  font-size: 0.5em;
  color: var(--accent);
  font-weight: 600;
  margin-left: 4px;
}
.ems-delta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #2ec27e;
}
.ems-delta.warn { color: #f59e0b; }
.ems-delta.danger { color: #ef4444; }

.ems-card svg { width: 100%; height: auto; display: block; }

.ems-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.12);
}
.ems-mini-stat .v {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.ems-mini-stat .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.ems-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.ems-bar {
  display: grid;
  grid-template-columns: 70px 1fr 60px;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.ems-bar .nm { color: rgba(255,255,255,0.75); }
.ems-bar .v  { color: #fff; text-align: right; font-weight: 600; }
.ems-bar .tr {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.ems-bar .fl {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(to right, var(--accent), #ffb38a);
  border-radius: 4px;
  animation: emsBarGrow 1.4s ease-out backwards;
}
@keyframes emsBarGrow { from { transform: scaleX(0); transform-origin: left; } }

.ems-alarms {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ems-alarm {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-left: 2px solid #2ec27e;
  border-radius: 0 4px 4px 0;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.78);
}
.ems-alarm.warn { border-left-color: #f59e0b; }
.ems-alarm.danger { border-left-color: #ef4444; }
.ems-alarm .ico {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2ec27e;
  align-self: center;
}
.ems-alarm.warn .ico { background: #f59e0b; }
.ems-alarm.danger .ico { background: #ef4444; }
.ems-alarm .ts {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
}

.ems-dash-foot {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   ENGINEERING & DESIGN page — SLD motif, what-we-draw grid,
   MEP-coordination band, drawing-register stat band.
   ============================================================ */

/* SLD motif — recurring decorative schematic background.
   Renders as a faded SLD: 11kV incomer → transformer → LT busbar → MCBs → DBs. */
.sld-bg {
  position: relative;
  overflow: hidden;
}
.sld-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='xMidYMid slice'><g fill='none' stroke='%230a1929' stroke-width='1.6'><line x1='80' y1='40' x2='80' y2='110'/><line x1='80' y1='110' x2='110' y2='80'/><circle cx='80' cy='110' r='3' fill='%230a1929'/><circle cx='110' cy='80' r='3' fill='%230a1929'/><line x1='110' y1='80' x2='110' y2='140'/><rect x='95' y='140' width='30' height='38'/><line x1='110' y1='178' x2='110' y2='215'/><circle cx='110' cy='230' r='15'/><circle cx='110' cy='248' r='15'/><line x1='110' y1='263' x2='110' y2='300'/><line x1='110' y1='300' x2='1140' y2='300'/><line x1='80' y1='300' x2='80' y2='328'/><rect x='72' y='328' width='16' height='24'/><line x1='220' y1='300' x2='220' y2='340'/><rect x='210' y='340' width='20' height='14'/><line x1='220' y1='354' x2='220' y2='380'/><line x1='340' y1='300' x2='340' y2='340'/><rect x='330' y='340' width='20' height='14'/><line x1='340' y1='354' x2='340' y2='380'/><line x1='460' y1='300' x2='460' y2='340'/><rect x='450' y='340' width='20' height='14'/><line x1='460' y1='354' x2='460' y2='380'/><line x1='600' y1='300' x2='600' y2='340'/><rect x='590' y='340' width='20' height='14'/><line x1='600' y1='354' x2='600' y2='380'/><line x1='740' y1='300' x2='740' y2='340'/><rect x='730' y='340' width='20' height='14'/><line x1='740' y1='354' x2='740' y2='380'/><line x1='880' y1='300' x2='880' y2='340'/><rect x='870' y='340' width='20' height='14'/><line x1='880' y1='354' x2='880' y2='380'/><line x1='1020' y1='300' x2='1020' y2='340'/><rect x='1010' y='340' width='20' height='14'/><line x1='1020' y1='354' x2='1020' y2='380'/><line x1='1140' y1='300' x2='1140' y2='275'/><circle cx='1140' cy='260' r='15'/></g><g font-family='monospace' font-size='10' fill='%230a1929' letter-spacing='1.5'><text x='40' y='35'>11 kV</text><text x='130' y='160'>VCB</text><text x='130' y='240'>630 kVA</text><text x='40' y='295'>LT BUS</text><text x='208' y='399'>DB-A</text><text x='328' y='399'>DB-B</text><text x='448' y='399'>DB-C</text><text x='580' y='399'>HVAC</text><text x='725' y='399'>FIRE</text><text x='868' y='399'>LIFT</text><text x='1004' y='399'>EMS</text><text x='1118' y='255'>DG</text></g></svg>");
  background-size: 1200px auto;
  background-repeat: repeat-y;
  background-position: top center;
  opacity: 0.12;
  pointer-events: none;
}
.sld-bg--dark::before {
  filter: invert(1);
  opacity: 0.18;
}
.sld-bg--subtle::before { opacity: 0.06; }
.sld-bg > * { position: relative; z-index: 1; }

.eng-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 1024px) { .eng-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .eng-grid { grid-template-columns: 1fr; } }

.eng-tile {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.eng-tile:hover {
  border-color: var(--rule-d);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10,25,41,0.06);
}
.eng-tile .et-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eng-tile .et-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  margin-bottom: 4px;
}
.eng-tile .et-icon svg { width: 20px; height: 20px; }
.eng-tile h3 {
  font-size: 17px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.eng-tile .et-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1;
}

.instruments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
}
@media (max-width: 1024px) { .instruments-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .instruments-grid { grid-template-columns: 1fr; } }

.instrument-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.instrument-card:hover {
  border-color: var(--rule-d);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(10,25,41,0.05);
}
.instrument-card .ic-name {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.instrument-card .ic-make {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.instrument-card .ic-purpose {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
}

/* Awards page — /about/awards/ */
.award-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
@media (max-width: 780px) { .award-grid { grid-template-columns: 1fr; } }

.award-card {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.award-card:hover {
  border-color: var(--rule-d);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(10,25,41,0.06);
}
.award-card .award-photo {
  background: #f6f7f9;
  display: grid;
  place-items: center;
  padding: 28px;
  min-height: 360px;
}
.award-card .award-photo--doc {
  background: #ecf0f5;
  padding: 32px;
}
.award-card .award-photo img {
  max-width: 100%;
  max-height: 380px;
  height: auto;
  width: auto;
  display: block;
  box-shadow: 0 6px 28px rgba(10,25,41,0.12);
}
.award-card figcaption {
  padding: 22px 26px 26px;
}
.award-card figcaption .kicker {
  margin-bottom: 12px;
}
.award-card figcaption h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--ink);
}
.award-card figcaption p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.award-card figcaption p strong {
  color: var(--ink);
  font-weight: 600;
}

.award-feature {
  margin: 0 0 clamp(40px, 5vw, 64px) 0;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.award-feature:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .award-feature { grid-template-columns: 1fr; } }

.award-feature .award-photo {
  background: #ecf0f5;
  padding: 22px;
  border-radius: 4px;
}
.award-feature .award-photo img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 8px 32px rgba(10,25,41,0.14);
}
.award-feature--two-col .award-photo-pair {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  padding: 18px;
  background: #ecf0f5;
  border-radius: 4px;
}
.award-feature--two-col .award-photo-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  box-shadow: 0 6px 22px rgba(10,25,41,0.12);
}
.award-feature figcaption .kicker {
  margin-bottom: 14px;
}
.award-feature figcaption h3 {
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--ink);
}
.award-feature figcaption p {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 12px;
}
.award-feature figcaption p strong {
  color: var(--ink);
  font-weight: 600;
}
.award-feature figcaption .meta-line {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule-d);
}

.award-note {
  background: #fbfbfc;
  border: 1px dashed var(--rule-d);
  border-radius: 6px;
  padding: 24px 28px;
  max-width: 80ch;
}
.award-note p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.award-note p strong {
  color: var(--ink);
  font-weight: 600;
}

.section--quiet { padding: clamp(28px, 3vw, 44px) 0; }

.quiet-head {
  margin-bottom: 16px;
  max-width: 60ch;
}
.quiet-head .kicker { margin-bottom: 10px; }
.quiet-head p {
  font-size: 15.5px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.4;
  margin: 0;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, 160px);
  gap: 12px;
  max-width: 332px;
}
.thumb-grid figure {
  margin: 0;
  width: 160px;
  height: 120px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-alt);
}
.thumb-grid figure picture,
.thumb-grid figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sector chips band — sits between hero and numbers-band on homepage */
.sector-band {
  background: var(--bg-alt, #f7f8fa);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}
.sector-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.sector-band-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.sector-band-label::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--rule-d);
  display: inline-block;
}
.sector-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  flex: 1;
}
.sector-chips li {
  display: inline-flex;
}
.sector-chips a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.sector-chips a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 720px) {
  .sector-band-inner {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .sector-band-label::after { display: none; }
  .sector-chips {
    justify-content: center;
    gap: 8px 10px;
    flex: 0 1 auto;
  }
  .sector-chips a { font-size: 12px; padding: 6px 12px; }
}

/* Featured scope cards on /projects/past-projects/ */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
@media (max-width: 900px) { .scope-grid { grid-template-columns: 1fr; } }

.scope-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.scope-card:hover {
  border-color: var(--rule-d);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(10,25,41,0.05);
}
.scope-card .scope-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.scope-card .scope-name h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 6px;
}
.scope-card .scope-loc {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.scope-card .scope-cap {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-weight: 600;
  background: rgba(255, 108, 0, 0.08);
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  align-self: flex-start;
}
.scope-card .scope-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.scope-card .scope-tags li {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  background: #f6f7f9;
  border: 1px solid var(--rule);
  padding: 7px 14px;
  border-radius: 999px;
  line-height: 1.35;
  letter-spacing: -0.003em;
}

/* MIHAN cluster pair */
.mihan-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 36px);
}
@media (max-width: 820px) { .mihan-pair { grid-template-columns: 1fr; } }

.mihan-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mihan-card .mihan-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.mihan-card h3 {
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}
.mihan-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.mihan-card p strong {
  color: var(--ink);
  font-weight: 600;
}
.mihan-card .mihan-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule-d);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Google Maps embed on past-projects */
.map-embed {
  border-radius: 6px;
  overflow: hidden;
}
.map-embed iframe {
  display: block;
  filter: grayscale(0.15) contrast(1.02);
}
.map-embed .map-caption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.55;
  max-width: 80ch;
}

.coord-band {
  background: var(--bg-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.coord-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 75%);
  pointer-events: none;
}
.coord-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.coord-inner .kicker { color: rgba(255,255,255,0.6); }
.coord-inner .kicker::before { background: var(--accent); }
.coord-inner h2 {
  color: #fff;
  font-size: clamp(28px, 3vw + 0.5rem, 44px);
  letter-spacing: -0.02em;
  max-width: 18ch;
  line-height: 1.1;
  margin: 16px 0 18px;
}
.coord-inner .lede {
  color: rgba(255,255,255,0.78);
  font-size: 16px;
  line-height: 1.55;
  max-width: 50ch;
}
.coord-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.coord-row {
  display: grid;
  grid-template-columns: 0.6fr 2fr;
  gap: clamp(16px, 3vw, 36px);
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  align-items: baseline;
}
.coord-row .k {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
}
.coord-row .k .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
.coord-row .v {
  font-size: 14.5px;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
}
@media (max-width: 900px) {
  .coord-inner { grid-template-columns: 1fr; }
  .coord-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
}

.sld-showcase {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: clamp(28px, 4vw, 48px);
  margin-top: clamp(24px, 3vw, 36px);
  position: relative;
}
.sld-showcase .sld-caption {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--rule-d);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.55;
}
.sld-showcase .sld-caption strong { color: var(--ink); }
.sld-svg-wrap {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 20px;
  overflow-x: auto;
}
.sld-svg-wrap svg { width: 100%; min-width: 600px; height: auto; display: block; }

/* Trust band — distribution-side "why source through us" cards */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
  margin-top: clamp(16px, 2vw, 24px);
}
@media (max-width: 1024px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .trust-grid { grid-template-columns: 1fr; } }

.trust-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 24px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.trust-card:hover {
  border-color: var(--rule-d);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10,25,41,0.05);
}
.trust-card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}
.trust-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.trust-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}
.trust-card p strong { color: var(--ink); font-weight: 600; }

/* Trust-callout — inline prose block on individual brand pages */
.trust-callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 22px 26px;
  margin: 28px 0;
  border-radius: 0 6px 6px 0;
}
.trust-callout .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.trust-callout p {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.trust-callout p strong { color: var(--ink); font-weight: 600; }

/* Careers — active opening card */
.opening-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.opening-head {
  background: var(--bg-deep);
  color: #fff;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.opening-head::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 85% 50%, black 0%, transparent 80%);
  pointer-events: none;
}
.opening-head > * { position: relative; z-index: 1; }
.opening-head .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.opening-head .badge .dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.6);
  animation: emsPulse 2.4s ease-in-out infinite;
}
.opening-head h3 {
  color: #fff;
  font-size: clamp(24px, 1.8vw + 0.6rem, 36px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.opening-head .sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.opening-head .positions {
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.opening-head .positions strong {
  display: block;
  font-family: var(--sans);
  font-size: clamp(36px, 3vw + 0.5rem, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--accent);
  margin-bottom: 2px;
}
@media (max-width: 640px) {
  .opening-head { grid-template-columns: 1fr; }
  .opening-head .positions { text-align: left; }
}

.opening-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.opening-grid .col {
  padding: 22px 24px;
  border-right: 1px solid var(--rule);
}
.opening-grid .col:last-child { border-right: none; }
.opening-grid .col .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.opening-grid .col .v {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .opening-grid { grid-template-columns: repeat(2, 1fr); }
  .opening-grid .col:nth-child(2) { border-right: none; }
  .opening-grid .col:nth-child(1),
  .opening-grid .col:nth-child(2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .opening-grid { grid-template-columns: 1fr; }
  .opening-grid .col { border-right: none; border-bottom: 1px solid var(--rule); }
  .opening-grid .col:last-child { border-bottom: none; }
}

.opening-body {
  padding: 26px 32px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.opening-body .skills {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.opening-body .skills strong { color: var(--ink); font-weight: 600; }

/* Inline qualifier inside a label or spec value: "(optional)", "(preferred)".
   Drops the uppercase/tracking of mono labels so it reads as an aside. */
.field-note {
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
}
.opening-grid .col .v .field-note { font-size: 12px; }
.opening-body .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .opening-body { grid-template-columns: 1fr; }
}

.opening-foot {
  padding: 16px 32px;
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Careers · apply form embedded inside the opening card */
.opening-apply {
  padding: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--rule);
  background: var(--bg-alt);
}
.opening-apply-intro { margin-bottom: clamp(20px, 3vw, 28px); max-width: 62ch; }
.opening-apply-intro h3 {
  font-size: clamp(20px, 1.2vw + 0.6rem, 26px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 8px;
}
.opening-apply-intro p { color: var(--ink-soft); line-height: 1.6; }
.opening-apply-sub { font-size: 18px; margin: 26px 0 10px; }
.opening-apply-list {
  list-style: none;
  padding: 0;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 48ch;
}
/* Keep paired inputs on the same row aligned even when one label wraps to two
   lines (e.g. "LinkedIn profile (optional)" next to "Email"). The shorter
   cell stretches; pushing its field to the bottom realigns the input edges. */
.opening-apply .form-grid .f > input,
.opening-apply .form-grid .f > select,
.opening-apply .form-grid .f > textarea { margin-top: auto; }
/* Styled file input for the CV upload */
.form-grid input[type="file"] { padding: 10px 12px; font-size: 14px; cursor: pointer; }
.form-grid input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 1px solid var(--rule-d);
  border-radius: 4px;
  background: var(--bg-alt);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
}
.form-grid input[type="file"]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }

/* Careers · live applicant counter + LinkedIn card (left column of #apply) */
.apply-stat {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 22px 24px;
  background: var(--bg);
}
.apply-stat-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.apply-stat-num {
  display: block;
  font-size: clamp(40px, 4vw + 0.5rem, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.apply-stat-num--first { font-size: clamp(26px, 2.2vw + 0.5rem, 36px); }
.apply-stat-note {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  max-width: 44ch;
}

.linkedin-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.linkedin-card:hover {
  border-color: #0a66c2;
  box-shadow: 0 10px 28px rgba(10,25,41,0.07);
  transform: translateY(-2px);
}
.linkedin-card-ico {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: #0a66c2;
  color: #fff;
}
.linkedin-card-ico svg { width: 22px; height: 22px; }
.linkedin-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.linkedin-card-k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.linkedin-card-t { color: var(--ink); font-size: 14.5px; line-height: 1.55; }
.linkedin-card-cta { margin-top: 6px; color: #0a66c2; font-weight: 600; font-size: 14px; }

/* Insights — article grid + article-card */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 28px);
}
@media (max-width: 720px) { .article-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .article-grid { gap: 16px; } }

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px 30px 26px;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.article-card:hover {
  border-color: var(--rule-d);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10,25,41,0.06);
}
.article-card .tags {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-card h3 {
  font-size: clamp(20px, 1.2vw + 0.6rem, 24px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: 4px;
}
.article-card .dek {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}
.article-card .meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-card .meta .read { color: var(--accent); font-weight: 600; }

.article-hero {
  padding: clamp(48px, 6vw, 80px) 0 clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--rule);
}
.article-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.article-hero .tags {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.article-hero h1 {
  font-size: clamp(32px, 3.6vw + 0.3rem, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.article-hero .dek {
  font-size: clamp(16px, 0.4vw + 0.9rem, 19px);
  color: var(--ink-soft);
  line-height: 1.55;
}
.article-hero .byline {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--pad-x);
}
.article-body h2 {
  font-size: clamp(22px, 1.8vw + 0.4rem, 30px);
  margin: 40px 0 12px;
  letter-spacing: -0.015em;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 18px;
  margin: 28px 0 8px;
  letter-spacing: -0.01em;
}
.article-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.article-body p strong { color: var(--ink); font-weight: 600; }
.article-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
}
.article-body ul li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 12px; height: 1px;
  background: var(--accent);
}
.article-body ul li strong { color: var(--ink); font-weight: 600; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
}
.article-body table th {
  text-align: left;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  border-top: 1px solid var(--rule-d);
  border-bottom: 1px solid var(--rule-d);
  background: var(--bg-alt);
}
.article-body table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}
.article-body table td strong { color: var(--ink); font-weight: 600; }

/* Generic table-overflow wrapper — keeps wide spec/comparison tables
   scrollable on phones without pushing the whole page horizontally. */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
}
.table-wrap > table { min-width: 560px; margin: 0; }
@media (max-width: 600px) {
  .table-wrap { margin-inline: calc(-1 * var(--pad-x)); padding-inline: var(--pad-x); }
}

/* Drawing-register card — sample project register table */
.dr-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.dr-card-header {
  background: #0a1929;
  color: #fff;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.dr-card-header::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 90% 50%, black 0%, transparent 75%);
  pointer-events: none;
}
.dr-card-header > * { position: relative; z-index: 1; }
.dr-logo { display: flex; align-items: center; gap: 14px; }
.dr-logo img { height: 38px; width: auto; display: block; }
.dr-logo-text {
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 14px;
  line-height: 1.25;
}
.dr-logo-text .nm {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.005em;
}
.dr-logo-text .sb {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}
.dr-card-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.dr-card-meta .col .k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 5px;
}
.dr-card-meta .col .v {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.005em;
}
@media (max-width: 900px) {
  .dr-card-header { grid-template-columns: 1fr; }
  .dr-card-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .dr-card-meta { grid-template-columns: 1fr; }
}

.dr-table-wrap { overflow-x: auto; }
.dr-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}
.dr-table thead { background: var(--bg-alt); }
.dr-table th {
  padding: 14px 16px;
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.dr-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}
.dr-table tr:last-child td { border-bottom: none; }
.dr-table tbody tr:hover td { background: var(--bg-alt); }
.dr-table .dwg-no {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.dr-table .rev,
.dr-table .date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
}
.dr-table .title { color: var(--ink); font-weight: 500; }

.dr-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}
.dr-status--afc     { background: var(--accent); color: #fff; }
.dr-status--gfc     { background: #1f3a5f; color: #fff; }
.dr-status--draft   { background: transparent; color: var(--muted); border: 1px solid var(--rule-d); }
.dr-status--pending { background: var(--bg-alt); color: var(--muted); }

.dr-card-caption {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}
.dr-card-caption strong { color: var(--ink); }

/* Legacy class kept harmless (no usages after swap) */
.drawing-register {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(40px, 5vw, 68px) 0;
}
.dr-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.dr-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.dr-head::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.dr-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
@media (max-width: 900px) { .dr-row { grid-template-columns: repeat(2, 1fr); } }
.dr-stat {
  padding: 14px 0 6px;
  border-top: 1px solid var(--rule-d);
}
.dr-stat .v {
  font-size: clamp(36px, 4vw + 0.3rem, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.dr-stat .v .plus { color: var(--accent); font-size: 0.6em; font-weight: 600; }
.dr-stat .l {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
  max-width: 18ch;
}

.standards-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}
@media (max-width: 720px) { .standards-bar { grid-template-columns: 1fr; } }
.std-row {
  display: grid;
  grid-template-columns: 0.5fr 2fr;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-radius: 4px;
  align-items: baseline;
}
.std-row .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.std-row .v {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

/* ============================================================
   HOMEPAGE — flagship scale (body.home only).
   Sub-pages are unaffected by anything in this block.
   ============================================================ */

body.home {
  --max: 1480px;
  --pad-section: clamp(96px, 12vw, 180px);
}

body.home .hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(56px, 8vw, 100px);
}
body.home .hero-inner { width: 100%; }
body.home .hero h1 {
  font-size: clamp(46px, 7vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
body.home .hero-lead {
  font-size: clamp(18px, 0.7vw + 1rem, 22px);
  max-width: 56ch;
  margin-bottom: 44px;
}
body.home .hero-identity {
  margin-bottom: 32px;
  padding-bottom: 26px;
}
body.home .hero-identity .company-name {
  font-size: clamp(30px, 1.8vw + 1rem, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
body.home .hero-identity .company-descriptor {
  font-size: clamp(15px, 0.5vw + 0.8rem, 19px);
}
body.home .door {
  min-height: 180px;
  padding: 28px 28px 24px;
}
body.home .door .door-text {
  font-size: clamp(20px, 1.2vw + 0.6rem, 24px);
  line-height: 1.2;
}
body.home .door .door-num {
  font-size: 12px;
}
body.home .hero-photo { min-height: 560px; }
body.home .hero-photo img { min-height: 560px; }

@media (max-width: 1024px) {
  body.home .hero { min-height: 0; }
  body.home .hero-photo,
  body.home .hero-photo img { min-height: 380px; }
}

body.home .section h2 {
  font-size: clamp(38px, 5vw, 72px);
  letter-spacing: -0.025em;
  line-height: 1.04;
  max-width: 22ch;
}

.numbers-band {
  background: var(--bg-deep);
  color: #fff;
  padding: clamp(56px, 7vw, 96px) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.numbers-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 20% 80%, black 0%, transparent 70%);
  pointer-events: none;
}
.numbers-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.numbers-head {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.numbers-head::before {
  content: ""; width: 32px; height: 1px; background: var(--accent);
}
.numbers-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 3vw, 48px);
}
.num {
  position: relative;
  padding: 18px 0 8px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.num .v {
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.num .v .plus,
.num .v .x {
  color: var(--accent);
  font-size: 0.6em;
  font-weight: 600;
}
.num .l {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  line-height: 1.45;
  max-width: 18ch;
}

@media (max-width: 900px) {
  .numbers-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 70%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    margin: 0 calc(-1 * var(--pad-x));
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
  }
  .num { scroll-snap-align: start; }
}

body.home .practice {
  padding: clamp(96px, 12vw, 160px) 0;
}
.practice-headline {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad-x);
  max-width: var(--max);
  margin: 0 auto clamp(48px, 6vw, 80px);
}
.practice-headline .hugenum {
  font-size: clamp(96px, 16vw, 220px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--accent);
  display: inline-block;
}
.practice-headline .hugenum .plus { color: rgba(255,255,255,0.5); font-weight: 600; font-size: 0.55em; vertical-align: top; margin-left: 4px; }
.practice-headline h2 {
  color: #fff;
  font-size: clamp(28px, 3vw + 0.5rem, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 22ch;
  margin-top: 16px;
}
.practice-headline h2 strong { color: var(--accent); font-weight: 600; }

body.home .partner-cell {
  min-height: 210px;
  padding: 32px 18px 28px;
  gap: 18px;
}
body.home .partner-cell .logo-wrap {
  height: 80px;
}
body.home .partner-cell .logo-wrap img {
  max-height: 80px;
  max-width: 92%;
}
body.home .partner-cell .role {
  font-size: 10.5px;
  letter-spacing: 0.16em;
}
body.home .partner-head h3 {
  font-size: clamp(28px, 2.8vw + 0.4rem, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cta-strip.cta-strip--dark {
  background: var(--bg-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-strip.cta-strip--dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 0%, transparent 80%);
  pointer-events: none;
}
.cta-strip.cta-strip--dark .cta-strip-inner { position: relative; padding-top: clamp(72px, 8vw, 108px); padding-bottom: clamp(72px, 8vw, 108px); }
.cta-strip.cta-strip--dark h2 {
  color: #fff;
  font-size: clamp(36px, 4.5vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 22ch;
}
.cta-strip.cta-strip--dark p {
  color: rgba(255,255,255,0.78);
  font-size: clamp(15.5px, 0.4vw + 0.85rem, 17.5px);
  max-width: 50ch;
}
.cta-strip.cta-strip--dark .btn-secondary {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  background: transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cta-strip.cta-strip--dark .btn-secondary:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.cta-strip.cta-strip--dark .btn-secondary:focus-visible {
  background: rgba(255,255,255,0.08);
}

body.home .section.alt { background: var(--bg-alt); }
body.home .sector-bar { padding: clamp(40px, 5vw, 64px) var(--pad-x); font-size: 15px; }
body.home .sector-bar .item span { font-size: 13px; }

/* ============================================================
   Brand-page (L1) — billboard hero, product map, certificate.
   Append-only block; safe to extract to a partial later.
   ============================================================ */

.brand-billboard {
  background: var(--bg-deep);
  color: #fff;
  padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.brand-billboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 80% 20%, black 0%, transparent 70%);
  pointer-events: none;
}
.brand-billboard-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
}
.brand-billboard-meta {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.brand-billboard-meta::before {
  content: ""; width: 28px; height: 1px; background: var(--accent);
}
.brand-billboard-logo {
  background: #fff;
  display: inline-grid;
  place-items: center;
  padding: 20px 32px;
  border-radius: 6px;
  height: 96px;
  margin-bottom: 24px;
}
.brand-billboard-logo img { max-height: 56px; width: auto; }
.brand-billboard h1 {
  color: #fff;
  font-size: clamp(34px, 4vw + 0.3rem, 56px);
  max-width: 18ch;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.brand-billboard h1 .accent { color: var(--accent); }
.brand-billboard-right p {
  font-size: clamp(16px, 0.5vw + 0.85rem, 18.5px);
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  max-width: 52ch;
}
.brand-billboard-right p strong { color: #fff; font-weight: 600; }
/* auto-fit, not repeat(3, 1fr): the billboard's left column changes width at
   several breakpoints, and any fixed column count ends up with tracks too
   narrow for the longest stat value ("Maintenance-free" needs ~162px at 26px).
   auto-fit drops to 2 or 1 column instead of breaking the word. */
.brand-billboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(164px, 1fr));
  gap: 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.16);
}
/* min-width:0 lets the grid items shrink below their min-content width, so the
   billboard never gets pushed past the viewport on phones. */
.brand-billboard-inner > *,
.brand-billboard-stats .s { min-width: 0; }
.brand-billboard-stats .s .v {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand-billboard-stats .s .l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}
@media (max-width: 1024px) {
  .brand-billboard-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 700px) {
  .brand-billboard-stats { gap: 20px 18px; }
}

.product-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  background: var(--bg);
}
@media (max-width: 900px) { .product-map { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-map { grid-template-columns: 1fr; } }

.product-cell {
  padding: 36px 32px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  position: relative;
  color: inherit;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
a.product-cell { text-decoration: none; }
.product-cell:hover {
  background: var(--bg-alt);
  border-color: var(--accent);
}
a.product-cell:hover {
  box-shadow: inset 0 -2px 0 0 var(--accent);
}
.product-cell .pc-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.product-cell .pc-icon {
  align-self: flex-start;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
}
.product-cell .pc-icon svg { width: 22px; height: 22px; }
.product-cell h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.product-cell .pc-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
}
.product-cell .pc-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-cell .pc-spec strong { color: var(--ink); font-weight: 600; }
.product-cell .pc-foot {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.certificate-section {
  padding: var(--pad-section) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.certificate-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .certificate-inner { grid-template-columns: 1fr; } }
.certificate-img {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 14px;
  box-shadow: 0 16px 40px rgba(10,25,41,0.08);
  max-width: 480px;
  justify-self: center;
}
.certificate-img img { width: 100%; height: auto; display: block; }
.certificate-text h2 { margin-bottom: 18px; }
.certificate-text p { color: var(--ink-soft); line-height: 1.6; margin-bottom: 14px; font-size: 16px; }
.certificate-text .stamp {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--rule-d);
  display: inline-block;
  border-radius: 4px;
  margin-top: 8px;
}

:root {
  --bg:        #ffffff;
  --bg-alt:    #f4f5f7;
  --bg-deep:   #0a1929;
  --bg-deep-2: #0e1f33;
  --ink:       #0a1929;
  --ink-soft:  #2c3e54;
  --muted:     #5a6678;
  --rule:      #e3e7ed;
  --rule-d:    #c8cfd9;
  --accent:    #bf4900;   /* AA-legible (~5:1 on white) — default for text, links, active states, button fills on light. Restored to the vivid #e85f00 inside dark bands below. */
  --accent-h:  #9c3a00;
  --highlight:     #d4af37;   /* highlight / "new launch" callouts — distinct from the CTA accent */
  --highlight-h:   #b8941f;
  --highlight-rgb: 212, 175, 55;

  --sans:  "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --pad-x:        clamp(20px, 5vw, 72px);
  --pad-section:  clamp(64px, 8vw, 112px);
  --col-gap:      clamp(20px, 3vw, 40px);
  --max:          1320px;

  --t-mono:  11px;
  --t-body:  16px;
  --t-h4:    clamp(15px, 0.3vw + 0.85rem, 17px);
  --t-h3:    clamp(20px, 1vw + 0.8rem, 24px);
  --t-h2:    clamp(28px, 2.4vw + 0.5rem, 44px);
  --t-h1:    clamp(36px, 4.5vw + 0.3rem, 68px);

  --header-h: 67px;   /* fallback; refined at runtime by setHeaderHeight() */
}

/* Dark (navy) content bands: restore the original vivid orange for accent text
   and marks so they keep BOTH their contrast on navy (the darkened default
   drops to ~3.5:1 there) and their brand punch. Descendants inherit this via
   the custom-property cascade — no per-element edits needed. These bands carry
   no primary buttons, so re-brightening can't reduce a white-on-accent fill
   below AA. (UX audit 2026-07 — accent-contrast fix.) */
.ems-dash,
.coord-band,
.numbers-band,
.brand-billboard,
.hero-photo,
.practice,
.practice-headline,
.creds {
  --accent:   #e85f00;
  --accent-h: #d35400;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  /* break-word, NOT anywhere: `anywhere` counts break opportunities in the
     min-content size, which lets table columns and grid tracks collapse below
     their longest word and shatter text mid-word. `break-word` still breaks
     long unbreakable strings (SKUs, URLs) at layout time. */
  overflow-wrap: break-word;
  padding-top: var(--header-h);
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.mono {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

h1 { font-size: var(--t-h1); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 600; }
h4 { font-size: var(--t-h4); font-weight: 600; }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.6) blur(8px);
  -webkit-backdrop-filter: saturate(1.6) blur(8px);
}

.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.brand-logo-lg { height: 38px; }

.brand .brand-wordmark {
  display: inline-flex;
  flex-direction: column;
  border-left: 1px solid var(--rule);
  padding-left: 14px;
  line-height: 1.18;
}
.brand .brand-wordmark-main {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.brand .brand-wordmark-sub {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.003em;
  color: var(--ink-soft);
  margin-top: 2px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .brand .brand-wordmark-sub { font-size: 12px; }
  .brand .brand-wordmark-main { font-size: 13.5px; }
  .brand-logo { height: 28px; }
  .brand { gap: 10px; }
  .brand .brand-wordmark { padding-left: 10px; }
}
@media (max-width: 420px) {
  .brand .brand-wordmark-sub { font-size: 13px; }
  .brand .brand-wordmark-main { font-size: 14.5px; }
  .brand-logo { height: 26px; }
  .brand .brand-wordmark {
    padding-left: 0;
    border-left: none;
    margin-left: 4px;
  }
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 2vw, 36px);
  font-size: 14.5px;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

/* Active page — persistent underline + darker label */
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (hover: none) {
  .nav a:not([aria-current="page"])::after { display: none; }
}

/* ── Dropdown nav groups (Projects · Distribution) ─────────────────────── */
.nav-group { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.nav-group > .nav-group-link { padding-right: 0; }

.nav-caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-caret svg { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-group:hover .nav-caret,
.nav-group:focus-within .nav-caret { color: var(--ink); }
.nav-group:hover .nav-caret svg,
.nav-group:focus-within .nav-caret svg { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 12px;
  transform: translateX(-50%) translateY(6px);
  min-width: 250px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 18px 40px -22px rgba(10, 25, 41, 0.30);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  z-index: 60;
}
/* transparent hover-bridge across the 12px gap so the menu survives the reach */
.nav-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}
.nav-menu a {
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-menu a::after { display: none; }
.nav-menu a:hover { background: var(--bg-alt); color: var(--ink); }
.nav-menu a[aria-current="page"] { color: var(--accent); }
.nav-menu-sep { height: 1px; margin: 6px 8px; background: var(--rule); }

/* Second level — brand product families fly out to the side (Hager · Legrand) */
.nav-subgroup { position: relative; display: flex; align-items: center; }
.nav-subgroup > .nav-sub-link { flex: 1 1 auto; }
.nav-subcaret {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: stretch; width: 24px; color: var(--muted);
  border-radius: 5px;
}
.nav-subcaret svg { width: 13px; height: 13px; transition: transform 0.2s; }
.nav-subgroup:hover > .nav-sub-link,
.nav-subgroup:focus-within > .nav-sub-link { background: var(--bg-alt); color: var(--ink); }

.nav-submenu {
  position: absolute;
  top: -8px;
  left: calc(100% + 6px);
  min-width: 216px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 18px 40px -22px rgba(10, 25, 41, 0.30);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
  z-index: 61;
}
.nav-submenu::before { content: ""; position: absolute; top: 0; bottom: 0; left: -12px; width: 12px; }
.nav-subgroup:hover > .nav-submenu,
.nav-subgroup:focus-within > .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s;
}
.nav-submenu a { white-space: nowrap; }

.nav-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border-radius: 10px;
  vertical-align: middle;
}

.cta-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.2s;
}
.cta-quote:hover { background: var(--accent-h); }
.cta-quote svg { width: 14px; height: 14px; }

/* 44×44 hit area (one-handed target) with the icon bars kept at 28px, centered. */
.hamburger { display: none; width: 44px; height: 44px; position: relative; justify-self: end; }
.hamburger span {
  position: absolute; left: 8px; right: 8px; height: 2px;
  background: var(--ink); border-radius: 1px;
}
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 26px; }

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 96px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero-identity {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  max-width: 56ch;
}
.hero-identity .company-name {
  font-family: var(--sans);
  font-size: clamp(20px, 1vw + 0.7rem, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.25;
}
.hero-identity .company-descriptor {
  font-family: var(--sans);
  font-size: clamp(14px, 0.4vw + 0.75rem, 17px);
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.4;
}

.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--accent); }

.hero-lead {
  font-size: clamp(16px, 0.5vw + 0.9rem, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 36px;
}

.hero-lead strong { color: var(--ink); font-weight: 600; }

.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.door {
  position: relative;
  padding: 22px 22px 20px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 148px;
}

.door:hover {
  border-color: var(--ink);
  background: #fbfbfc;
  transform: translateY(-1px);
}

.door .door-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.door .door-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.door .door-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.door .arrow {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  transition: background 0.2s;
}
.door:hover .arrow { background: var(--accent); }
.door .arrow svg { width: 12px; height: 12px; }

.hero-photo {
  position: relative;
  align-self: stretch;
  min-height: 460px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-deep);
  isolation: isolate;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  display: block;
  filter: contrast(1.02) saturate(0.85);
}

.hero-photo .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,25,41,0.0) 50%, rgba(10,25,41,0.62));
  pointer-events: none;
}

.hero-photo .photo-tag {
  position: absolute;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(10,25,41,0.55);
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
  backdrop-filter: blur(4px);
}
.hero-photo .photo-tag.tl { top: 18px; left: 18px; }

.hero-photo .photo-caption {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #fff;
  font-size: 14px;
  letter-spacing: -0.005em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.hero-photo .photo-caption .who {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.section { padding: var(--pad-section) 0; }
.section.alt { background: var(--bg-alt); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head .head-eyebrow {
  margin-bottom: 14px;
}

.section-head h2 {
  max-width: 22ch;
}

.section-head .lede {
  font-size: clamp(15px, 0.3vw + 0.85rem, 17px);
  color: var(--ink-soft);
  max-width: 50ch;
}

.section-head .lede strong { color: var(--ink); font-weight: 600; }

.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 26px);
}

.badge {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.badge-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.page-hero {
  padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
}

.page-hero h1 { font-size: clamp(34px, 4vw + 0.3rem, 60px); max-width: 18ch; }
.page-hero .lede { font-size: clamp(16px, 0.6vw + 0.8rem, 19px); color: var(--ink-soft); max-width: 52ch; }

@media (max-width: 1024px) {
  .page-hero-inner { grid-template-columns: 1fr; gap: 18px; }
}

.breadcrumbs {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 24px var(--pad-x) 0;
  max-width: var(--max);
  margin: 0 auto;
}

.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span.sep { margin: 0 8px; color: var(--rule-d); }
.breadcrumbs span.here { color: var(--ink); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 28px);
}

@media (max-width: 720px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  color: inherit;
}
.service-card:hover {
  border-color: var(--rule-d);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10,25,41,0.06);
}
.service-card .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--bg-alt);
  border-radius: 8px;
  color: var(--ink);
  margin-bottom: 6px;
}
.service-card .ico svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; }
.service-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.service-card .meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.service-card .meta .read { color: var(--accent); font-weight: 600; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 26px);
}
@media (max-width: 900px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .brand-grid { grid-template-columns: 1fr; } }

.brand-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  min-height: 240px;
}
.brand-card:hover {
  border-color: var(--rule-d);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10,25,41,0.06);
}
.brand-card .b-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 56px;
}
.brand-card .b-logo {
  height: 56px;
  display: grid;
  place-items: center;
}
.brand-card .b-logo img {
  max-height: 56px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}
.brand-card .b-role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  line-height: 1.4;
  max-width: 14ch;
}
.brand-card .b-cats {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
}
.brand-card .b-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-card .b-foot .read { color: var(--accent); font-weight: 600; }
/* Non-interactive catalogue cards (asset not published yet): no hover-lift,
   default cursor, muted "Coming soon" tag — nothing invites a dead click. */
.brand-card--soon { cursor: default; }
.brand-card--soon:hover { border-color: var(--rule); transform: none; box-shadow: none; }
.brand-card .b-foot .soon { color: var(--muted); font-weight: 600; }

.cred-callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 22px 26px;
  margin: 28px 0;
}
.cred-callout p {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.cred-callout strong { color: var(--ink); font-weight: 600; }

.prose-shell {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.prose-shell p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.prose-shell p strong { color: var(--ink); font-weight: 600; }
.prose-shell h2 {
  font-size: clamp(24px, 1.6vw + 0.5rem, 32px);
  margin: 40px 0 16px;
  scroll-margin-top: 90px;
}
.prose-shell h3 {
  font-size: 19px;
  margin: 28px 0 10px;
}
.prose-shell ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}
.prose-shell ul li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.prose-shell ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 12px; height: 1px;
  background: var(--accent);
}

.form-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}
@media (max-width: 900px) { .form-shell { grid-template-columns: 1fr; } }

.enquiry-form {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(24px, 3vw, 36px);
}
.enquiry-form .form-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
  padding: 4px;
  background: var(--bg-alt);
  border-radius: 999px;
  width: fit-content;
}
.enquiry-form .form-tabs .t {
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: none;
  background: transparent;
}
.enquiry-form .form-tabs .t.active { background: var(--accent); color: #fff; }

/* Language toggle (used on /empanelment/ for मराठी / English) */
.lang-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-alt);
  border-radius: 999px;
}
.lang-toggle a {
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle a.active { background: var(--accent); color: #fff; }
.lang-toggle a:hover:not(.active) { color: var(--ink); }

/* Article share row (Insights) */
.share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  max-width: 760px;
  margin: 4px auto 0;
  padding: 20px 0 8px;
}
.share-row .share-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 10px 16px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--rule-d);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-wa { border-color: #1faa54; color: #128c4b; }
.share-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.share-copy.is-copied { border-color: var(--accent); color: var(--accent); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-grid .f.full { grid-column: 1 / -1; }
.form-grid label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 14px 16px;
  min-height: 44px;
  background: var(--bg);
  border: 1px solid var(--rule-d);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
}
.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: none;
  border-color: var(--accent);
}
/* Field holds a valid value (set by script.js). Green edge as a progress cue —
   it survives focus, so tabbing through a filled form keeps showing what's done.
   Colour is supplementary only; nothing here is the sole carrier of meaning. */
.form-grid input.is-ok,
.form-grid textarea.is-ok,
.form-grid select.is-ok,
.form-grid input.is-ok:focus,
.form-grid textarea.is-ok:focus,
.form-grid select.is-ok:focus {
  border-color: #2e7d4f;
  box-shadow: inset 0 0 0 1px rgba(46, 125, 79, 0.25);
}
.form-grid textarea { min-height: 110px; resize: vertical; }
.form-grid .submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
/* Keep the submit button on one line; let the meta text shrink/wrap instead. */
.form-grid .submit-row .btn-primary { white-space: nowrap; flex-shrink: 0; }
.form-grid .submit-row .submit-meta { min-width: 0; }
@media (max-width: 480px) {
  .form-grid .submit-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .form-grid .submit-row .btn-primary { width: 100%; }
}

@media (max-width: 720px) {
  .enquiry-form,
  .wbm-form { padding-bottom: 96px; }
}
.form-grid .submit-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.badge:hover {
  border-color: var(--rule-d);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10,25,41,0.06);
}

.case-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-deep);
}

.case-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.badge:hover .case-photo img { transform: scale(1.04); }

.case-photo--logo {
  background: linear-gradient(135deg, #f7f6f0 0%, #ece8d8 100%);
  display: grid;
  place-items: center;
  padding: 36px;
}
.case-photo--logo img {
  width: auto;
  height: auto;
  max-width: 70%;
  max-height: 65%;
  object-fit: contain;
  filter: none;
  transition: transform 0.4s ease;
}
.badge:hover .case-photo--logo img { transform: scale(1.02); }

.case-photo .sector-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bg-deep);
  padding: 6px 10px;
  border-radius: 2px;
}

.badge-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.badge-body h3 {
  font-size: 18.5px;
  letter-spacing: -0.015em;
  line-height: 1.22;
}

.badge-body .specs {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.badge-body .meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.badge-body .read {
  color: var(--accent);
  font-weight: 600;
}

.sector-bar {
  margin-top: 40px;
  padding: 24px 28px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  font-size: 14px;
}

.sector-bar .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}

.sector-bar .item {
  font-weight: 500;
  color: var(--ink);
}

.sector-bar .item span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-left: 4px;
}

.practice {
  background: var(--bg-deep);
  color: #fff;
}

.practice .practice-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.practice .kicker { color: rgba(255,255,255,0.7); }
.practice .kicker::before { background: var(--accent); }

.practice h2 { color: #fff; max-width: 18ch; }
.practice .body { color: rgba(255,255,255,0.78); font-size: 16px; line-height: 1.6; margin: 24px 0; max-width: 50ch; }
.practice .body strong { color: #fff; font-weight: 600; }

.creds {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--bg-deep-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 6px 28px;
}

.cred-row {
  display: grid;
  grid-template-columns: 0.7fr 2fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: baseline;
}

.cred-row:last-child { border-bottom: none; }

.cred-row .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.cred-row .v {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

.cred-row .v em { font-style: italic; color: rgba(255,255,255,0.7); font-weight: 400; }

.partner {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
}

.partner-head {
  text-align: center;
  margin-bottom: 36px;
}

.partner-head .mono { display: block; margin-bottom: 10px; }

.partner-head h3 {
  font-size: clamp(18px, 0.8vw + 0.8rem, 22px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.partner-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.partner-cell {
  padding: 24px 16px 22px;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  transition: background 0.2s;
  cursor: pointer;
  position: relative;
}

.partner-cell:hover { background: var(--bg-alt); }

.partner-cell .logo-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 56px;
}

.partner-cell .logo-wrap img {
  max-height: 56px;
  max-width: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.88;
  transition: filter 0.25s, opacity 0.25s;
}

.partner-cell:hover .logo-wrap img {
  filter: grayscale(0) contrast(1);
  opacity: 1;
}

.partner-cell .role {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

/* Clients band — 8 client logos from shreetuvis.in, sits between sector-band
   and numbers-band on homepage. Greyscale by default, full colour on hover,
   client name reveals on hover. */
.clients {
  padding: 72px 0 80px;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}

.clients-head {
  text-align: center;
  margin-bottom: 28px;
}

.clients-head .mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.client-cell {
  position: relative;
  padding: 24px 14px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  transition: background 0.2s;
  overflow: hidden;
}

.client-cell:hover { background: var(--bg-alt); }

.client-cell .c-logo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 60px;
  transition: transform 0.25s;
}

.client-cell .c-logo img,
.client-cell .c-logo picture {
  max-height: 60px;
  max-width: 84%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.02);
  opacity: 0.8;
  transition: filter 0.25s, opacity 0.25s, transform 0.25s;
}

.client-cell:hover .c-logo img,
.client-cell:hover .c-logo picture {
  filter: grayscale(0) contrast(1);
  opacity: 1;
  transform: translateY(-6px);
}

.client-cell .c-name {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.client-cell:hover .c-name {
  opacity: 1;
  transform: translateY(0);
}

/* Pawanputra wordmark fallback — no logo available yet, use type as the mark. */
.client-cell .c-logo--wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.05;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.25s, opacity 0.25s, transform 0.25s;
}
.client-cell:hover .c-logo--wordmark {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-6px);
}
.c-logo--wordmark .wm-line-1 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.c-logo--wordmark .wm-line-2 {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 3px;
}

@media (max-width: 1180px) {
  .clients-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .client-cell { min-height: 112px; padding: 20px 12px; }
  .client-cell .c-logo { height: 52px; }
  .client-cell .c-logo img,
  .client-cell .c-logo picture { max-height: 52px; }
  .c-logo--wordmark .wm-line-1 { font-size: 13px; }
}
@media (max-width: 420px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}

.cta-strip {
  background: var(--bg);
  border-top: 1px solid var(--rule);
}

.cta-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) var(--pad-x);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.cta-strip h2 {
  font-size: clamp(24px, 2vw + 0.5rem, 36px);
  max-width: 24ch;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-strip p {
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 48ch;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-h); }
.btn-primary svg { width: 14px; height: 14px; }
.btn-primary:disabled, .btn-primary[aria-busy="true"] { opacity: 0.65; cursor: default; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid var(--ink);
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--ink); color: #fff; }

/* Compact variant, for buttons sitting inside a card rather than a CTA strip. */
.btn-primary.btn-sm,
.btn-secondary.btn-sm { font-size: 13px; padding: 11px 18px; }

.footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: 64px var(--pad-x) 28px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: clamp(20px, 3.5vw, 48px);
  margin-bottom: 44px;
}

.footer .brand { font-size: 22px; margin-bottom: 14px; }

.footer .tagline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer .blurb {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 36ch;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom .legal {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.footer-bottom .legal a { color: var(--ink-soft); text-decoration: none; }
.footer-bottom .legal a:hover { color: var(--accent); }

.fab {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 40;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.32);
  transition: transform 0.2s;
}
.fab:hover { transform: translateY(-2px) scale(1.04); }
.fab svg { width: 26px; height: 26px; }

.fade-up { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.06s; }
.fade-up.d2 { transition-delay: 0.12s; }
.fade-up.d3 { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-up { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .hamburger { display: block; }
  .topbar-inner { grid-template-columns: 1fr auto auto; gap: 12px; }
  .cta-quote { padding: 9px 14px; font-size: 13px; }

  /* Mobile nav panel — revealed when hamburger toggles .nav-open on .topbar */
  .topbar.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 14px var(--pad-x) 18px;
    gap: 0;
    box-shadow: 0 12px 24px -16px rgba(10, 25, 41, 0.18);
    animation: navSlide 0.18s ease-out;
  }
  .topbar.nav-open .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
  }
  .topbar.nav-open .nav a:last-child { border-bottom: none; }
  .topbar.nav-open .nav a[aria-current="page"] { color: var(--accent); }

  /* Dropdown groups collapse into inline accordions inside the drawer */
  .topbar.nav-open .nav-group {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid var(--rule);
  }
  .topbar.nav-open .nav-group .nav-group-link { flex: 1 1 auto; border-bottom: none; }
  .topbar.nav-open .nav-caret {
    flex: 0 0 auto; width: 48px; height: 52px; color: var(--ink-soft);
  }
  .topbar.nav-open .nav-caret svg { width: 16px; height: 16px; transform: none; }
  .topbar.nav-open .nav-caret[aria-expanded="true"] svg { transform: rotate(180deg); }

  .topbar.nav-open .nav-menu {
    position: static;
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 8px 14px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .topbar.nav-open .nav-menu::before { display: none; }
  .topbar.nav-open .nav-menu a {
    padding: 11px 4px;
    border-radius: 0;
    border-bottom: 1px dashed var(--rule);
    font-size: 15px;
    color: var(--ink-soft);
    white-space: normal;
  }
  .topbar.nav-open .nav-menu a:last-child { border-bottom: none; }
  .topbar.nav-open .nav-menu-sep { display: none; }
  /* With JS active, groups start collapsed and open on caret tap;
     without JS the menus stay expanded so every link is still reachable. */
  .topbar.js-nav.nav-open .nav-group:not(.is-open) .nav-menu { display: none; }

  /* Second-level flyouts become deeper nested accordions in the drawer */
  .topbar.nav-open .nav-subgroup { width: 100%; display: flex; flex-wrap: wrap; align-items: center; }
  .topbar.nav-open .nav-subgroup > .nav-sub-link { flex: 1 1 auto; }
  .topbar.nav-open .nav-subcaret {
    flex: 0 0 auto; width: 48px; align-self: stretch; color: var(--muted);
    border-bottom: 1px dashed var(--rule);
  }
  .topbar.nav-open .nav-subcaret svg { width: 15px; height: 15px; }
  .topbar.nav-open .nav-subcaret[aria-expanded="true"] svg { transform: rotate(90deg); }
  .topbar.nav-open .nav-submenu {
    position: static; flex-basis: 100%; width: 100%; min-width: 0;
    opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: none;
    background: transparent; border: none; border-radius: 0; box-shadow: none;
    margin: 0; padding: 0 0 4px 18px; flex-direction: column;
  }
  .topbar.nav-open .nav-submenu::before { display: none; }
  .topbar.js-nav.nav-open .nav-subgroup:not(.is-open) .nav-submenu { display: none; }

  /* Hamburger morph to X when open */
  .hamburger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hamburger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
  .hamburger span { transition: top 0.18s, transform 0.18s, opacity 0.12s; }

  @keyframes navSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { min-height: 360px; }
  .hero-photo img { min-height: 360px; }

  .section-head { grid-template-columns: 1fr; gap: 16px; }

  .badge-grid { grid-template-columns: repeat(2, 1fr); }

  .practice .practice-inner { grid-template-columns: 1fr; }

  .partner-row { grid-template-columns: repeat(4, 1fr); }

  .cta-strip-inner { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .doors { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: 1fr; }
  .partner-row { grid-template-columns: repeat(2, 1fr); }
  .cred-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-quote { display: none; }
}

/* ============================================================
   /tools/ — hub page + Wires BoQ Maker
   ============================================================ */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  margin-top: 24px;
}
@media (max-width: 800px) { .tools-grid { grid-template-columns: 1fr; } }

.tool-card {
  display: block;
  padding: clamp(24px, 2.4vw, 32px);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.tool-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -20px rgba(10, 25, 41, 0.18);
}
.tool-card-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.tool-card h3 {
  font-size: clamp(20px, 1.6vw + 0.5rem, 26px);
  font-weight: 600;
  letter-spacing: -0.018em;
  margin-bottom: 12px;
}
.tool-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.tool-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px dashed var(--rule-d);
  gap: 16px;
  flex-wrap: wrap;
}
.tool-card-meta .mono {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tool-arrow {
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}

.tools-footnote {
  margin-top: 36px;
  font-size: 13.5px;
  color: var(--muted);
}
.tools-footnote a { color: var(--accent); }

/* ── Wires BoQ Maker (.wbm-*) ──────────────────────────────── */

/* ── Profile panel (manual fallback when not signed in) ─────── */
.wbm-profile {
  display: block;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(20px, 2.2vw, 28px);
  margin-bottom: 20px;
}
.wbm-profile.is-saved { background: var(--bg-alt); }
.wbm-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.wbm-profile-header .kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.wbm-profile-title {
  font-size: clamp(20px, 1.4vw + 0.6rem, 24px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.18;
  color: var(--ink);
}
.wbm-profile.is-collapsed .wbm-profile-title { font-size: 16px; }
.wbm-profile-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px dashed var(--rule-d);
  border-radius: 4px;
  align-self: center;
}
.wbm-profile-status.is-saved {
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.05);
  border-style: solid;
}
.wbm-profile-note {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.6;
}
.wbm-profile-note strong { color: var(--ink); }
.wbm-profile-body { display: block; }
.wbm-profile-body[hidden] { display: none; }
.wbm-profile-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.wbm-profile-edit {
  display: block;
  margin: 0;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--rule-d);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.wbm-profile-edit:hover { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.wbm-profile-edit[hidden] { display: none; }

@media (max-width: 640px) {
  .wbm-profile-header { flex-direction: column; }
  .wbm-profile-status { align-self: flex-start; }
  .wbm-profile-actions { flex-direction: column-reverse; align-items: stretch; }
  .wbm-profile-actions .btn-primary,
  .wbm-profile-actions .btn-ghost { width: 100%; justify-content: center; }
  .wbm-profile .form-grid { grid-template-columns: 1fr; }
}

/* ── Signed-in bar ──────────────────────────────────────────── */
.wbm-signed-in-bar {
  max-width: var(--max);
  margin: 14px auto 0;
  padding: 10px var(--pad-x);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px dashed var(--rule);
}
.wbm-signed-in-bar[hidden] { display: none; }
.wbm-signed-in-bar strong {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  margin: 0 4px;
}
.wbm-signout-link {
  background: transparent;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0 2px;
}
.wbm-signout-link:hover { color: var(--accent-h); }

/* ── Sign-in popup (shown on first visit) ──────────────────── */
.wbm-signin-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 24px);
  animation: wbmModalIn 0.2s ease-out;
}
.wbm-signin-modal[hidden] { display: none; }

.wbm-signin-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 41, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.wbm-signin-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--bg);
  border-radius: 8px;
  box-shadow: 0 24px 64px -16px rgba(10, 25, 41, 0.4);
  padding: clamp(28px, 4.5vw, 40px) clamp(24px, 4vw, 40px);
  animation: wbmCardIn 0.22s ease-out;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

.wbm-signin-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.wbm-signin-close:hover,
.wbm-signin-close:focus-visible {
  background: var(--bg-alt);
  color: var(--ink);
  border-color: var(--rule);
  outline: none;
}

.wbm-signin-content { padding-top: 4px; }
.wbm-signin-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.wbm-signin-card h2 {
  font-size: clamp(19px, 1.4vw + 0.55rem, 24px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.018em;
  margin: 0 0 12px;
  color: var(--ink);
  /* Stop hyphenation/orphan break right margin from forcing "synced." alone */
  text-wrap: balance;
}
.wbm-signin-sub {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.wbm-signin-sub strong { color: var(--ink); font-weight: 600; }

.wbm-signin-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 18px;
}
#wbm-signin-google-mount {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  /* GIS button measures ~40 px tall at size=large; reserve space to avoid jump */
  min-height: 40px;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  background: #fff;
  color: #1f1f1f;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid #dadce0;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.btn-google:focus { outline: none; border-color: #4285F4; box-shadow: 0 0 0 3px rgba(66,133,244,0.2); }
.btn-google svg { flex-shrink: 0; }

.wbm-signin-skip {
  align-self: center;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  border-radius: 4px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.wbm-signin-skip:hover,
.wbm-signin-skip:focus-visible {
  color: var(--ink);
  text-decoration-color: currentColor;
  outline: none;
}

.wbm-signin-pending {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.wbm-signin-fine {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

@keyframes wbmModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes wbmCardIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .wbm-signin-modal { padding: 10px; }
  .wbm-signin-card  { padding: 28px 20px 22px; border-radius: 10px; }
  .wbm-signin-close { top: 6px; right: 6px; }
  .wbm-signin-content { padding-top: 2px; }
  .wbm-signin-sub    { font-size: 14px; margin-bottom: 18px; }
  .wbm-signin-fine   { padding-top: 12px; }
}

@media (max-width: 360px) {
  .wbm-signin-card { padding: 24px 16px 20px; }
  .wbm-signin-card h2 { font-size: 18px; }
}

/* ── BoQ metadata strip — sits above the matrix ─────────────── */
.wbm-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(14px, 1.6vw, 22px);
  align-items: end;
  padding: clamp(16px, 1.8vw, 22px);
  background: #f4ede0;
  border: 1px solid #e6dcc8;
  border-radius: 6px;
  margin-bottom: 12px;
}
@media (max-width: 800px) { .wbm-meta { grid-template-columns: 1fr; } }

.wbm-meta-id {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: end;
  padding-bottom: 7px;
}
.wbm-meta-id-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.wbm-meta-id code {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.wbm-meta-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) { .wbm-meta-fields { grid-template-columns: 1fr; } }

.wbm-meta-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wbm-meta-field > span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.wbm-meta-field input {
  padding: 9px 12px;
  background: var(--bg);
  border: 1px solid var(--rule-d);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
}
.wbm-meta-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 108, 0, 0.12);
}

.wbm-meta-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.wbm-meta-btn {
  white-space: nowrap;
  padding: 10px 14px;
  font-size: 13px;
  gap: 6px;
}
.wbm-meta-btn svg { width: 13px; height: 13px; }
.wbm-meta-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Recent BoQs modal */
.wbm-recent-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 32px);
  animation: wbmModalIn 0.18s ease-out;
}
.wbm-recent-modal[hidden] { display: none; }
.wbm-recent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 41, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.wbm-recent-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: min(86vh, 720px);
  background: var(--bg);
  border-radius: 10px;
  box-shadow: 0 28px 64px -18px rgba(10, 25, 41, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: wbmCardIn 0.2s ease-out;
}
.wbm-recent-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 2.6vw, 28px) 14px;
  border-bottom: 1px solid var(--rule);
}
.wbm-recent-head .kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.wbm-recent-head h2 {
  font-size: clamp(20px, 1.4vw + 0.7rem, 24px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--ink);
}
.wbm-recent-subtitle {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}
.wbm-recent-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.wbm-recent-close:hover {
  background: var(--bg-alt);
  color: var(--ink);
  border-color: var(--rule);
}
.wbm-recent-list-wrap {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.wbm-recent-list {
  padding: 8px 0 16px;
}
.wbm-recent-empty {
  padding: 40px 24px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}
.wbm-recent-day {
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 14px clamp(20px, 2.6vw, 28px) 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  z-index: 1;
}
.wbm-recent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px clamp(20px, 2.6vw, 28px);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.wbm-recent-row:hover  { background: var(--bg-alt); }
.wbm-recent-row:active { background: var(--rule); }
.wbm-recent-row-main { flex: 1 1 auto; min-width: 0; }
.wbm-recent-row-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wbm-recent-row-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wbm-recent-row-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.wbm-recent-row-meta code { font-family: inherit; }
.wbm-recent-row-side { flex-shrink: 0; }
.wbm-recent-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wbm-recent-badge.is-submitted {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.25);
}
.wbm-recent-badge.is-draft {
  background: rgba(255, 108, 0, 0.08);
  color: var(--accent);
  border: 1px solid rgba(255, 108, 0, 0.22);
}

@media (max-width: 800px) {
  .wbm-meta-actions { justify-content: stretch; }
  .wbm-meta-btn { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
  .wbm-recent-modal { padding: 0; }
  .wbm-recent-card {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    height: 100%;
  }
  .wbm-recent-row-title { font-size: 14.5px; }
  .wbm-recent-row-sub { font-size: 12.5px; }
}

/* ── Quick-start templates row ────────────────────────────── */
.wbm-templates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px clamp(14px, 1.8vw, 20px);
  margin-bottom: 12px;
  background: rgba(255, 108, 0, 0.06);
  border: 1px dashed rgba(255, 108, 0, 0.32);
  border-radius: 6px;
}
.wbm-templates-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 6px;
  white-space: nowrap;
}
.wbm-template-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--rule-d);
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.wbm-template-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.wbm-template-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 4px;
  color: #15803d;
  font-size: 13.5px;
  line-height: 1.4;
  animation: wbmModalIn 0.18s ease-out;
}
.wbm-template-notice[hidden] { display: none; }
.wbm-template-notice-text { flex: 1; }
.wbm-template-notice strong { color: var(--ink); font-weight: 600; }
.wbm-template-dismiss {
  background: transparent;
  border: none;
  color: #15803d;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
}
.wbm-template-dismiss:hover { background: rgba(34, 197, 94, 0.15); }

@media (max-width: 480px) {
  .wbm-templates { padding: 10px 12px; }
  .wbm-templates-label { width: 100%; margin-bottom: 4px; }
  .wbm-template-btn { font-size: 13.5px; padding: 8px 14px; flex: 1; }
}

.wbm {
  background: #f4ede0;
  border: 1px solid #e6dcc8;
  border-radius: 6px;
  padding: clamp(20px, 2.4vw, 28px);
  margin-bottom: 20px;
  box-shadow: 0 1px 0 rgba(10, 25, 41, 0.03);
}

.wbm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 14px;
}

.wbm-grades {
  display: inline-flex;
  gap: 6px;
  background: var(--bg-alt);
  padding: 5px;
  border-radius: 6px;
}
.wbm-grade {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.wbm-grade:hover { color: var(--ink); }
.wbm-grade.is-active {
  background: var(--accent);
  color: #fff;
}
.wbm-grade.is-active:hover { background: var(--accent-h); }

.wbm-counter {
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.wbm-counter-label {
  letter-spacing: 0.1em;
}
.wbm-counter-value {
  color: var(--ink);
  font-weight: 600;
}

.wbm-matrix-wrap {
  overflow-x: auto;
  margin: 0 calc(-1 * clamp(20px, 2.4vw, 28px));
  padding: 0 clamp(20px, 2.4vw, 28px);
}

.wbm-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  min-width: 580px;
}

/* Per-cell colour label — hidden by default, only shown on the mobile
   responsive-table transform below. */
.wbm-cell-label { display: none; }
.wbm-matrix thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 10px 8px;
  text-align: right;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.wbm-matrix thead .wbm-sz-head { text-align: left; }
.wbm-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(10, 25, 41, 0.08) inset;
}

.wbm-matrix tbody tr { transition: background 0.1s; }
.wbm-matrix tbody tr:hover { background: var(--bg-alt); }
.wbm-matrix tbody th.wbm-sz {
  text-align: left;
  padding: 6px 12px 6px 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 14.5px;
  white-space: nowrap;
}
.wbm-matrix tbody th .wbm-sz-num {
  display: inline-block;
  margin-right: 6px;
  color: var(--ink);
}
.wbm-matrix tbody th .wbm-sz-num strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.wbm-matrix tbody th .wbm-coil-chip {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 108, 0, 0.1);
  color: var(--accent);
  border: 1px solid rgba(255, 108, 0, 0.25);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  vertical-align: 2px;
}
.wbm-matrix tbody td {
  padding: 5px 4px;
}
.wbm-stepper {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}
.wbm-step {
  display: none;   /* hidden on desktop — only shown at mobile breakpoint */
}
.wbm-matrix input[type=number] {
  width: 100%;
  min-width: 64px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wbm-matrix input[type=number]:hover { border-color: var(--rule-d); }
.wbm-matrix input[type=number]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 108, 0, 0.12);
}
.wbm-matrix input[type=number]::-webkit-inner-spin-button,
.wbm-matrix input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none; margin: 0;
}
.wbm-matrix input[type=number] { -moz-appearance: textfield; }

.wbm-summary {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
  padding: 14px 0 0;
  margin-top: 12px;
  border-top: 1px dashed var(--rule-d);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.wbm-summary strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: 6px;
}
.wbm-sum-item span { color: var(--ink); font-weight: 600; }
.wbm-sum-total span { color: var(--accent); font-weight: 700; font-size: 14px; }
.wbm-sum-total small { color: var(--muted); margin-left: 4px; text-transform: none; }

.wbm-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 6px 0 36px;
}
.wbm-actions-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Tablet portrait & narrow desktops: stack Clear all on its own row;
   WhatsApp + Download stay side-by-side beneath. Prevents the row from
   overflowing once the three buttons + their icons exceed ~500 px of
   content. */
@media (max-width: 800px) {
  .wbm-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .wbm-actions-right {
    width: 100%;
    justify-content: stretch;
  }
  .wbm-actions-right > * { flex: 1 1 0; min-width: 0; }
  .wbm-actions > .btn-ghost { width: 100%; justify-content: center; }
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  background: #25d366;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid #1ebe57;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-whatsapp:hover  { background: #1ebe57; color: #ffffff; }
.btn-whatsapp:focus  { outline: none; box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25); }
.btn-whatsapp svg    { width: 16px; height: 16px; flex-shrink: 0; }

/* WhatsApp desktop fallback panel */
.wbm-wa-fallback {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 32px);
  background: rgba(10, 25, 41, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: wbmModalIn 0.18s ease-out;
}
.wbm-wa-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 24px 64px -18px rgba(10, 25, 41, 0.4);
  animation: wbmCardIn 0.2s ease-out;
}
.wbm-wa-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.wbm-wa-close:hover { background: var(--bg-alt); color: var(--ink); border-color: var(--rule); }
.wbm-wa-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #16a34a;
  margin-bottom: 10px;
}
.wbm-wa-title {
  font-size: clamp(20px, 1.4vw + 0.6rem, 24px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--ink);
}
.wbm-wa-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.wbm-wa-body strong { color: var(--ink); font-weight: 600; }
.wbm-wa-link {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  text-decoration: none;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid var(--rule);
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

.wbm-form-section {
  margin: 24px 0 28px;
  padding: clamp(24px, 2.8vw, 36px) clamp(22px, 2.4vw, 32px);
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.wbm-form-head { margin-bottom: 22px; }
.wbm-form-head .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.wbm-form-head h2 {
  font-size: clamp(22px, 1.4vw + 0.7rem, 28px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--ink);
}
.wbm-form-head p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
}
.wbm-form-head p strong { color: var(--ink); font-weight: 600; }

.wbm-form .form-grid input,
.wbm-form .form-grid textarea {
  background: var(--bg);
}

.wbm-fineprint {
  padding-top: 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  border-top: 1px dashed var(--rule-d);
}
.wbm-fineprint p { margin-bottom: 10px; }
.wbm-fineprint strong { color: var(--ink); }
.wbm-fineprint a { color: var(--accent); }

.thanks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 800px) { .thanks-grid { grid-template-columns: 1fr; } }

@media (max-width: 768px) {
  /* Header band stays the same shape but counter moves below toggle */
  .wbm-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .wbm-grades { width: 100%; justify-content: space-between; }
  .wbm-grade { flex: 1; text-align: center; padding: 8px 6px; }
  .wbm-counter {
    width: 100%;
    justify-content: flex-end;
    padding: 4px 0 0;
    border-top: 1px dashed var(--rule);
  }

  /* ── Matrix → vertical card stack ──────────────────────────────
     Each <tr> becomes a card. Each <td> becomes a stacked row inside
     the card with its colour-label visible (so we can hide <thead>).  */
  .wbm-matrix-wrap {
    overflow-x: visible;   /* no horizontal scroll on mobile */
    margin: 0;
    padding: 0;
  }
  .wbm-matrix {
    display: block;
    width: 100%;
    min-width: 0;          /* override desktop 580px */
    font-size: 14px;
  }
  .wbm-matrix thead { display: none; }
  .wbm-matrix tbody { display: block; }

  .wbm-matrix tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    row-gap: 4px;
    padding: 14px;
    margin-bottom: 12px;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: 6px;
  }
  .wbm-matrix tr:hover { background: var(--bg); }    /* disable hover row tint */

  .wbm-matrix tbody th.wbm-sz {
    grid-column: 1 / -1;
    padding: 0 0 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--rule);
    font-size: 17px;
    font-weight: 600;
  }
  .wbm-matrix tbody th.wbm-sz strong { font-size: 18px; }
  .wbm-matrix tbody th.wbm-sz strong::after { content: " sqmm"; font-weight: 400; color: var(--ink-soft); font-size: 14px; }
  .wbm-matrix tbody th.wbm-sz .wbm-coil { font-size: 12px; margin-left: 6px; }

  .wbm-matrix tbody td {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
  }
  .wbm-cell-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
  }
  /* On mobile, drop the 2-col grid so the stepper has room */
  .wbm-matrix tr {
    grid-template-columns: 1fr;
  }
  /* Stepper cluster: [-] [input] [+] */
  .wbm-stepper {
    flex: 0 0 auto;
    width: 120px;
    display: flex;
    align-items: stretch;
    gap: 0;
  }
  .wbm-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    flex: 0 0 38px;
    background: var(--bg-alt);
    border: 1px solid var(--rule-d);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    padding: 0;
    transition: background 0.12s, border-color 0.12s;
  }
  .wbm-step-dec { border-radius: 4px 0 0 4px; border-right: none; }
  .wbm-step-inc { border-radius: 0 4px 4px 0; border-left: none; }
  .wbm-step:hover  { background: var(--rule); }
  .wbm-step:active { background: var(--rule-d); }
  .wbm-stepper input[type=number] {
    min-width: 0;
    width: auto;
    flex: 1 1 auto;
    padding: 9px 6px;
    font-size: 16px;
    text-align: center;
    border-radius: 0;
    border-left: 1px solid var(--rule-d);
    border-right: 1px solid var(--rule-d);
  }
  .wbm-stepper input[type=number]:focus { border-color: var(--accent); }

  /* Summary + actions stack on mobile */
  .wbm-summary { justify-content: flex-start; gap: 14px; }
  .wbm-actions { flex-direction: column; align-items: stretch; }
  .wbm-actions-right { flex-direction: column; }
  .wbm-actions .btn-ghost,
  .wbm-actions .btn-secondary,
  .wbm-actions .btn-primary,
  .wbm-actions .btn-whatsapp { width: 100%; justify-content: center; }

  /* Form grid → single column on mobile */
  .wbm-form-section { padding: 22px 18px; }
  .wbm-form .form-grid { grid-template-columns: 1fr; }
  .wbm-form .submit-row { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .wbm-form .submit-row .btn-primary { width: 100%; justify-content: center; }
  .wbm-form .submit-meta { text-align: center; }

  /* Hero + breadcrumbs trim */
  .page-hero h1 { font-size: clamp(28px, 7vw, 38px); }
  .wbm-fineprint { font-size: 13px; }
}

/* Slightly larger phones (375–540) — two-column input grid still */
@media (max-width: 380px) {
  /* On very narrow phones, tighten stepper further */
  .wbm-stepper { width: 126px; }
  .wbm-step { width: 34px; flex: 0 0 34px; font-size: 18px; }
}

/* ============================================================
   v2 hero (full-bleed) — used by site/index-v2.php only.
   Remove this block if v2 is rejected.
   ============================================================ */
.hero-bleed {
  position: relative;
  min-height: clamp(560px, 88vh, 820px);
  overflow: hidden;
  background: var(--bg-deep);
  isolation: isolate;
}

.hero-bleed-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bleed-photo picture,
.hero-bleed-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bleed-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,25,41,0.30) 0%, rgba(10,25,41,0.55) 45%, rgba(10,25,41,0.88) 100%),
    linear-gradient(90deg, rgba(10,25,41,0.55) 0%, rgba(10,25,41,0.0) 55%);
  pointer-events: none;
}

.hero-bleed-tag {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  right: var(--pad-x);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(10,25,41,0.55);
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
  backdrop-filter: blur(4px);
}

/* Shreetuvis wordmark centered in the hero's right half — recolored white over
   the photo, with a soft radial glow behind it for legibility. Decorative. */
.hero-bleed-logo {
  position: absolute;
  z-index: 1;
  top: clamp(72px, 11vh, 128px);
  bottom: clamp(72px, 11vh, 128px);
  right: clamp(18px, 2.5vw, 48px);
  width: 46%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 24px;
}
/* Frosted panel behind the wordmark: inset with rounded corners, its left edge
   feathered over a wide gradient so it never cuts a hard seam through the
   company-name text (the "…LIMITED" D used to sit on the old hard edge). Kept on
   a pseudo-element so the feather fades ONLY the blurred glass — never the
   wordmark, which renders full-strength on top. */
.hero-bleed-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 66% 56% at 50% 50%,
              rgba(10, 25, 41, 0.42) 0%, rgba(10, 25, 41, 0) 76%);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}
.hero-bleed-logo-mark {
  position: relative;
  z-index: 1;
  width: clamp(260px, 34vw, 560px);
  height: auto;
  opacity: 0.94;
  filter: brightness(0) invert(1) drop-shadow(0 8px 26px rgba(0, 0, 0, 0.55));
}
@media (max-width: 820px) {
  .hero-bleed-logo { display: none; }
}

.hero-bleed-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--pad-x) clamp(48px, 8vh, 96px);
}

.hero-bleed-inner {
  max-width: 760px;
  color: #fff;
  position: relative;
  padding-left: clamp(58px, 6.5vw, 92px);
}

.hero-bleed-company {
  font-family: var(--mono);
  font-size: clamp(15px, 1vw + 0.5rem, 22px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
  line-height: 1.3;
}
.hero-bleed-company .hbc-line { display: inline; }
@media (max-width: 640px) {
  .hero-bleed-company .hbc-line { display: block; }
}

.hero-bleed-kicker {
  color: rgba(255,255,255,0.75);
  margin-bottom: 22px;
}
.hero-bleed-kicker::before {
  background: var(--accent);
}

.hero-bleed h1 {
  color: #fff;
  margin: 0;
  font-size: clamp(28px, 3vw + 0.3rem, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.hero-bleed h1 .accent { color: var(--accent); }

.hero-bleed h1.role-h1 {
  display: block;
  position: static;
  gap: 0;
}

.hero-bleed h1 .role-label-vertical {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: clamp(44px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: clamp(28px, 2vw + 0.7rem, 44px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
  border-right: 2px solid rgba(255, 108, 0, 0.55);
  padding-right: 0;
}

.hero-bleed h1 .role-list { display: block; }

.hero-bleed-tagline {
  color: rgba(255,255,255,0.92);
  max-width: 60ch;
  margin-top: 22px;
  font-size: clamp(16px, 0.4vw + 0.85rem, 18px);
  line-height: 1.5;
  font-style: italic;
}

.hero-bleed-lead {
  color: rgba(255,255,255,0.78);
  max-width: 66ch;
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.6;
}

.hero-bleed-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-bleed-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: transparent;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-bleed-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}
.btn-bleed-secondary svg { width: 14px; height: 14px; }

@media (max-width: 720px) {
  .hero-bleed { min-height: clamp(560px, 86vh, 720px); }
  .hero-bleed-overlay { padding-bottom: clamp(36px, 6vh, 60px); }
  .hero-bleed-inner { padding-left: 0; }
  .hero-bleed h1 { font-size: clamp(26px, 7vw, 38px); line-height: 1.18; }
  .hero-bleed h1.role-h1 { display: block; }
  .hero-bleed h1 .role-label-vertical {
    position: static;
    width: auto;
    display: inline-block;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    border-right: none;
    border-bottom: 2px solid rgba(255, 108, 0, 0.55);
    padding-right: 0;
    padding-bottom: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
  }
  .hero-bleed-tagline { font-size: 15px; margin-top: 18px; }
  .hero-bleed-lead { font-size: 14.5px; margin-top: 12px; line-height: 1.55; }
  .hero-bleed-actions { gap: 10px; margin-top: 24px; }
  .hero-bleed-actions .btn-primary,
  .hero-bleed-actions .btn-bleed-secondary {
    flex: 1 1 100%;
    justify-content: center;
  }
  .hero-bleed-tag { bottom: 14px; font-size: 10px; padding: 6px 9px; }
}
/* ============================================================
   end v2 hero
   ============================================================ */

/* ============================================================
   Case studies page — site photography galleries
   Used by site/projects/case-studies/index.php
   ============================================================ */

.case-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.case-nav-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.case-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-d);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.case-nav a:hover { color: var(--accent); border-color: var(--accent); }

.case-study-head {
  margin-bottom: clamp(28px, 3vw, 44px);
  max-width: 56rem;
}
.case-study-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.case-study-head h2 {
  font-size: clamp(28px, 2.4vw + 0.5rem, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.case-study-client {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.78em;
  letter-spacing: -0.005em;
}
.case-study-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.case-study-meta li {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.case-study-meta li strong {
  display: inline-block;
  min-width: 110px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding-right: 12px;
  vertical-align: 2px;
}

.case-study-gallery {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(24px, 2.5vw, 36px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.case-study-gallery--1 { grid-template-columns: 1fr; }
.case-study-gallery--2 { grid-template-columns: repeat(2, 1fr); }
.case-study-gallery--3 { grid-template-columns: repeat(3, 1fr); }
.case-study-gallery--4 { grid-template-columns: repeat(2, 1fr); }

.case-study-gallery .case-photo {
  margin: 0;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-deep);
  border-radius: 4px;
}
.case-study-gallery .case-photo img,
.case-study-gallery .case-photo picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-study-gallery .case-photo--lead {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}
.case-study-gallery .case-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 16px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(10,25,41,0.78) 100%);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.case-study-desc {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .case-study-gallery--3,
  .case-study-gallery--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .case-study-gallery,
  .case-study-gallery--2,
  .case-study-gallery--3,
  .case-study-gallery--4 { grid-template-columns: 1fr; }
  .case-study-gallery .case-photo--lead { aspect-ratio: 4/3; }
  .case-study-meta li strong { display: block; min-width: 0; margin-bottom: 1px; }
  .case-nav { padding: 14px 16px; gap: 8px 12px; }
  .case-nav a { font-size: 13px; }
}
/* ============================================================
   end case studies
   ============================================================ */

/* ============================================================
   Editorial feature blocks — used on landing page (index.php)
   inside the "By sector. By scale." past-projects section.
   Alternating photo/text layout per row, big mono numerals.
   ============================================================ */
.feature-blocks {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 6vw, 96px);
  margin: clamp(40px, 5vw, 72px) 0;
}

.feature-block {
  display: grid;
  grid-template-columns: clamp(48px, 6vw, 88px) 1.2fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}

/* Even rows: photo right, text left, numeral on the right */
.feature-block:nth-child(even) {
  grid-template-columns: 1fr 1.2fr clamp(48px, 6vw, 88px);
}
.feature-block:nth-child(even) .feature-text { order: 1; text-align: left; }
.feature-block:nth-child(even) .feature-photo { order: 2; }
.feature-block:nth-child(even) .feature-num { order: 3; text-align: right; }

.feature-num {
  font-family: var(--mono);
  font-size: clamp(40px, 5vw + 0.3rem, 72px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  align-self: start;
  padding-top: clamp(8px, 1vw, 16px);
}

.feature-photo {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-deep);
  border-radius: 4px;
}
.feature-photo img,
.feature-photo picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.feature-photo:hover img { transform: scale(1.03); }

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.feature-name {
  font-size: clamp(22px, 2vw + 0.3rem, 32px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
.feature-scope {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0;
}
.feature-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: color 0.2s, border-color 0.2s;
}
.feature-link:hover { color: var(--accent); }

@media (max-width: 880px) {
  .feature-block,
  .feature-block:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-block .feature-num,
  .feature-block:nth-child(even) .feature-num {
    order: 0;
    text-align: left;
    font-size: 36px;
    padding-top: 0;
  }
  .feature-block .feature-photo,
  .feature-block:nth-child(even) .feature-photo { order: 1; }
  .feature-block .feature-text,
  .feature-block:nth-child(even) .feature-text { order: 2; text-align: left; }
}
/* ============================================================
   end editorial feature blocks
   ============================================================ */

/* Compact "more projects" row below the editorial feature blocks (homepage) */
.mini-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 30px);
  margin-top: clamp(48px, 6vw, 88px);
}
.mini-card { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.mini-media {
  position: relative; display: block; aspect-ratio: 4/3; overflow: hidden;
  border-radius: 4px; background: var(--bg-deep);
}
.mini-media img, .mini-media picture {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.mini-card:hover .mini-media img { transform: scale(1.03); }
.mini-media--logo {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--rule); padding: 18px;
}
.mini-media--logo picture { display: contents; }
.mini-media--logo img {
  width: auto; height: auto; max-width: 62%; max-height: 64%;
  object-fit: contain; transition: none;
}
.mini-num {
  position: absolute; top: 10px; left: 12px;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: #fff; text-shadow: 0 1px 6px rgba(10,25,41,0.65);
}
.mini-media--logo .mini-num { color: var(--muted); text-shadow: none; }
.mini-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
}
.mini-name {
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2;
  color: var(--ink); transition: color 0.2s;
}
.mini-card:hover .mini-name { color: var(--accent); }
@media (max-width: 880px) {
  .mini-projects { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   FNX-FEATURE — three-beat revamp of the "Why the grade matters"
   section on /distribution/finolex/. Editorial spread rhythm:
     · Beat 1 — layered grade-comparison opener (.fnx-hero)
     · Beat 2 — five-cell features grid (.fnx-feat)
     · Trust callout — channel-partner standing (.fnx-trust)
     · Beat 3 — full-bleed ISI anchor (.fnx-isi)
   Brand-scoped class names so they can't clash with the
   homepage's existing .feature-block vocabulary.
   ============================================================ */

.fnx-feature { position: relative; }

.fnx-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---- Beat 1: layered grade-comparison hero ---- */
.fnx-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
  margin-bottom: clamp(56px, 7vw, 96px);
}

.fnx-hero-prose { padding-top: clamp(6px, 1vw, 14px); }
.fnx-hero-prose h2 {
  font-size: clamp(32px, 2.4vw + 0.6rem, 48px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 14ch;
  margin-bottom: 24px;
}
.fnx-hero-prose p {
  font-size: clamp(15.5px, 0.25vw + 0.85rem, 17.5px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 56ch;
}
.fnx-hero-prose p strong { color: var(--ink); font-weight: 600; }

.fnx-hero-photo {
  position: relative;
  margin: 0;
  align-self: stretch;
  min-height: clamp(360px, 38vw, 540px);
  background: var(--bg);
  border: 1px solid var(--rule);
  overflow: hidden;
  /* bleed past the section's right padding on desktop */
  margin-right: calc(var(--pad-x) * -1);
}
.fnx-hero-photo img,
.fnx-hero-photo picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Inline SVG variant — fills the figure, no border (the SVG draws its own) */
.fnx-hero-photo--svg {
  background: #fbfcfd;
  border: none;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.fnx-hero-photo--svg .fnx-grade-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fnx-hero-caption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: rgba(10, 25, 41, 0.86);
  color: #fff;
  letter-spacing: 0.14em;
  font-size: 10.5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.fnx-hero-caption .sep { color: var(--accent); }

/* ---- Beat 2: features grid ---- */
.fnx-feat { margin-bottom: clamp(48px, 6vw, 76px); }

.fnx-feat-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding-bottom: clamp(20px, 2vw, 28px);
  margin-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--rule);
}
.fnx-feat-head h3 {
  font-size: clamp(22px, 1.2vw + 0.7rem, 30px);
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.fnx-feat-head .kicker { margin-bottom: 0; }

.fnx-feat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.fnx-feat-cell {
  padding: 28px 24px 26px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  position: relative;
  transition: background 0.2s ease;
}
.fnx-feat-cell:hover { background: var(--bg-alt); }
.fnx-feat-cell:hover .fc-icon { border-color: var(--accent); color: var(--accent); }

.fnx-feat-cell .fc-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.fnx-feat-cell .fc-icon {
  align-self: flex-start;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.fnx-feat-cell .fc-icon svg { width: 20px; height: 20px; }
.fnx-feat-cell h4 {
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.fnx-feat-cell p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
}
.fnx-feat-cell p strong { color: var(--ink); font-weight: 600; }

/* ---- Stock breather: real Finolex bundles at the Nagpur warehouse ---- */
.fnx-stock {
  margin: 0 0 clamp(36px, 4.5vw, 56px);
  padding: 0;
}
.fnx-stock-photo {
  position: relative;
  height: clamp(260px, 28vw, 380px);
  background: var(--bg-deep);
  overflow: hidden;
  border: 1px solid var(--rule-d);
}
.fnx-stock-photo img,
.fnx-stock-photo picture,
.fnx-stock-photo picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}
.fnx-stock-cap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 4px 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.fnx-stock-cap .sep { color: var(--accent); }

/* ---- Trust callout placed inside the alt section ---- */
.fnx-trust { margin: 0; }

/* ---- Beat 3: ISI anchor, full-bleed ---- */
.fnx-isi {
  position: relative;
  margin: clamp(60px, 7vw, 96px) 0 0;
  padding: 0;
  width: 100%;
  display: block;
}
.fnx-isi-photo {
  position: relative;
  width: 100%;
  height: clamp(300px, 36vw, 480px);
  background: var(--bg-deep);
  overflow: hidden;
  border-top: 1px solid var(--rule-d);
  border-bottom: 1px solid var(--rule-d);
}
.fnx-isi-photo img,
.fnx-isi-photo picture,
.fnx-isi-photo picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fnx-isi-band {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 640px;
  margin: 0;
  padding: clamp(22px, 3vw, 32px) clamp(24px, 4vw, 44px) clamp(24px, 3.5vw, 36px);
  background: rgba(10, 25, 41, 0.92);
  color: #fff;
  border-right: 3px solid var(--accent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.fnx-isi-band .fnx-isi-stamp {
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.fnx-isi-band p {
  font-size: clamp(14.5px, 0.2vw + 0.85rem, 16.5px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.fnx-isi-band p strong { color: #fff; font-weight: 600; }

/* ---- Photo-pending placeholder (graceful before product photos land) ---- */
.fnx-photo-pending {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    repeating-linear-gradient(
      45deg,
      var(--bg-alt) 0 14px,
      #eef0f4 14px 28px
    );
  color: var(--muted);
  padding: 24px;
  text-align: center;
}
.fnx-photo-pending .mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.fnx-photo-pending-name {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  letter-spacing: 0.05em;
}
.fnx-photo-pending-spec {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.fnx-isi-photo .fnx-photo-pending {
  background:
    repeating-linear-gradient(
      45deg,
      #0e1f33 0 14px,
      #14283f 14px 28px
    );
}
.fnx-isi-photo .fnx-photo-pending-name,
.fnx-isi-photo .fnx-photo-pending-spec { color: rgba(255,255,255,0.78); }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .fnx-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .fnx-hero-prose h2 { max-width: 18ch; }
  .fnx-hero-photo {
    min-height: clamp(280px, 50vw, 420px);
    margin-right: calc(var(--pad-x) * -1);
    margin-left: calc(var(--pad-x) * -1);
  }
  .fnx-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .fnx-feat-cell:last-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .fnx-feat-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .fnx-feat-grid { grid-template-columns: 1fr; }
  .fnx-feat-cell { min-height: 0; }

  .fnx-isi-band {
    position: relative;
    max-width: none;
    margin: -1px var(--pad-x) 0;
    border-right: none;
    border-top: 3px solid var(--accent);
  }
  .fnx-isi-photo { height: clamp(240px, 50vw, 320px); }
}
/* ============================================================
   end fnx-feature
   ============================================================ */

/* ============================================================
   Products catalog (/products/) — detail, grid, cards
   ============================================================ */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: var(--pad-section);
}
.product-media {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg-alt);
  padding: clamp(16px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-media img { max-width: 100%; height: auto; }
.product-info h1 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12;
  margin: 6px 0 10px;
}
.product-sku {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .02em;
  margin-bottom: 18px;
}
.product-sku strong { color: var(--ink); }
.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.product-price .price { font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: var(--ink); }
.product-price .mrp { color: var(--muted); text-decoration: line-through; font-size: 16px; }
.product-price .avail {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.product-price .avail.is-in  { background: #e7f4ec; color: #1d7a45; }
.product-price .avail.is-out { background: #fbeaea; color: #b23434; }
.product-price .punit { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pnote { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: -8px 0 18px; }
.color-variants { margin: 4px 0 22px; }
.color-variants .cv-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.color-variants .cv-label strong { color: var(--ink); font-weight: 600; }
.cv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 8px; border: 1px solid var(--rule-d); border-radius: 999px;
  font-size: 13px; color: var(--ink); text-decoration: none; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.cv-chip:hover { border-color: var(--ink); }
.cv-chip.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.cv-chip .cv-dot {
  width: 15px; height: 15px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
}
.product-card .pc-price small { font-weight: 400; color: var(--muted); font-size: 10px; }
.product-desc { color: var(--ink-soft); line-height: 1.6; margin-bottom: 24px; max-width: 56ch; }
.product-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.product-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.product-cta .btn-primary { background: var(--accent); color: #fff; }
.product-cta .btn-primary:hover { background: var(--accent-h); }
.product-cta .btn-ghost { border-color: var(--rule-d); color: var(--ink); }
.product-cta .btn-ghost:hover { border-color: var(--ink); }
.product-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; max-width: 56ch; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.product-card:hover {
  border-color: var(--rule-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 25, 41, .08);
}
.product-card .pc-media {
  background: var(--bg-alt);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.product-card .pc-media img { max-width: 100%; max-height: 100%; height: auto; width: auto; }
.product-card .pc-name {
  padding: 14px 16px 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
}
.product-card .pc-foot {
  margin-top: auto;
  padding: 0 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.product-card .pc-price { font-weight: 700; }
.product-card .pc-cat { font-family: var(--mono); font-size: 11px; color: var(--muted); }

@media (max-width: 820px) {
  .product-detail { grid-template-columns: 1fr; }
}

/* category browse cards (dynamic catalog) */
.cat-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; }
.cat-card {
  display:flex; flex-direction:column; justify-content:space-between; gap:10px;
  min-height:96px; padding:18px 18px 16px; text-decoration:none;
  border:1px solid var(--rule); border-radius:10px; background:var(--bg); color:var(--ink);
  transition:border-color .15s, transform .15s, box-shadow .15s;
}
.cat-card:hover { border-color:var(--accent); transform:translateY(-2px); box-shadow:0 8px 24px rgba(10,25,41,.08); }
.cat-card .cc-label { font-weight:600; font-size:16px; line-height:1.25; }
.cat-card .cc-count { font-family:var(--mono); font-size:12px; color:var(--muted); }
.product-card .pc-media .noimg, .product-media .noimg {
  font-family:var(--mono); font-size:12px; color:var(--muted);
  display:flex; align-items:center; justify-content:center; text-align:center; padding:20px;
}
.product-media .noimg { min-height:220px; width:100%; }

/* Catalog search + pagination — large category listings (server-rendered) */
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 18px; }
.catalog-search { display: flex; flex: 1 1 320px; max-width: 460px; }
.catalog-search-input {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--rule-d); border-right: none; border-radius: 8px 0 0 8px;
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
}
.catalog-search-input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(191,73,0,.2); }
.catalog-search-btn {
  flex: 0 0 auto; width: 48px; min-height: 44px; display: grid; place-items: center;
  border: 1px solid var(--accent); border-radius: 0 8px 8px 0;
  background: var(--accent); color: #fff; cursor: pointer;
}
.catalog-search-btn:hover { background: var(--accent-h); border-color: var(--accent-h); }
.catalog-search-btn svg { width: 18px; height: 18px; }
.catalog-count { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.catalog-count a { color: var(--accent); font-weight: 600; }
.catalog-empty { font-size: 15px; color: var(--ink-soft); padding: 32px 0; }
.catalog-empty a { color: var(--accent); font-weight: 600; }
.catalog-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.catalog-page-btn {
  min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center;
  border: 1px solid var(--rule-d); border-radius: 8px; background: var(--bg); color: var(--ink);
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.catalog-page-btn:hover { border-color: var(--accent); color: var(--accent); }
.catalog-page-btn.is-disabled { opacity: .4; pointer-events: none; }
.catalog-page-info { font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-align: center; }

/* ============================================================
   Request a Quote — requirement builder (mobile-first)
   ============================================================ */

/* Leave room for the fixed cart bar on small screens. */
.quote-page { padding-bottom: 88px; }
@media (min-width: 760px) { .quote-page { padding-bottom: 0; } }
body.quote-noscroll { overflow: hidden; }

/* ---- Sign-in wall ---- */
.quote-wall { padding-top: clamp(28px, 6vw, 64px); }
.quote-wall-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  border: 1px solid var(--rule); border-radius: 14px; background: var(--bg);
  padding: clamp(28px, 6vw, 48px) clamp(20px, 5vw, 44px);
  box-shadow: 0 12px 40px rgba(10,25,41,.06);
}
.quote-wall-card h1 { font-size: clamp(26px, 6vw, 38px); margin: 8px 0 14px; }
.quote-wall-card .lede { margin: 0 auto 22px; max-width: 46ch; }
.quote-wall-note { font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; }
.quote-signin-mount { display: flex; justify-content: center; min-height: 44px; margin-bottom: 18px; }
.quote-wall-fineprint { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---- App shell ---- */
.quote-app { padding: clamp(14px, 3vw, 26px) 0 40px; }
.quote-topline { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.quote-h1 { font-size: clamp(22px, 5vw, 32px); margin: 4px 0 0; }
.quote-signedin { font-size: 12.5px; color: var(--muted); }
.quote-linkbtn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--accent); font: inherit; font-size: 12.5px; text-decoration: underline;
}
.quote-linkbtn:hover { color: var(--accent-h); }

/* ---- Sticky toolbar ---- */
.quote-toolbar {
  position: sticky; top: var(--header-h); z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  padding: 12px 0 10px; margin: 0 0 6px;
  border-bottom: 1px solid var(--rule);
}
.quote-brandchips {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 8px; scrollbar-width: thin;
}
.quote-brandchips::-webkit-scrollbar { height: 4px; }
.quote-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rule-d); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.quote-chip:hover { border-color: var(--ink); }
.quote-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.quote-chip-n { font-family: var(--mono); font-size: 11px; font-weight: 500; opacity: .7; }
.quote-toolbar-row { display: flex; gap: 8px; align-items: stretch; }
.quote-search {
  flex: 1 1 auto; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--rule-d); border-radius: 10px; background: var(--bg);
  padding: 0 12px; min-height: 44px;
}
.quote-search svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.quote-search input { flex: 1 1 auto; border: none; outline: none; background: none; font: inherit; font-size: 15px; min-width: 0; }
.quote-filterbtn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 16px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--rule-d); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600;
}
.quote-filterbtn svg { width: 18px; height: 18px; }
.quote-filterbtn.is-disabled { opacity: .45; cursor: not-allowed; }
.quote-filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
}
.quote-resultmeta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 4px 0 14px; }

/* ---- Product grid ---- */
.quote-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 560px) { .quote-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 900px) { .quote-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
@media (min-width: 1180px){ .quote-grid { grid-template-columns: repeat(5, 1fr); } }

.quote-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--bg);
}
.quote-card-media {
  background: var(--bg-alt); aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
.quote-card-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.quote-noimg { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: center; }
.quote-card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 10px 12px 12px; }
.quote-card-brand { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.quote-card-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; margin: 0 0 4px; }
.quote-card-sku { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 10px; word-break: break-word; }
.quote-card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.quote-card-price { font-weight: 700; font-size: 14px; }
.quote-card-unit { font-family: var(--mono); font-size: 10.5px; font-weight: 400; color: var(--muted); }
.quote-card-ctrl { display: flex; }

/* Add button + qty stepper (≥44px tap targets) */
.quote-add {
  width: 100%; min-height: 42px; cursor: pointer;
  border: 1px solid var(--accent); border-radius: 8px;
  background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600;
  transition: background .15s;
}
.quote-add:hover { background: var(--accent-h); }
.quote-stepper {
  display: flex; align-items: stretch; width: 100%;
  border: 1px solid var(--rule-d); border-radius: 8px; overflow: hidden;
}
.quote-step {
  flex: 0 0 auto; width: 42px; min-height: 42px; cursor: pointer;
  border: none; background: var(--bg-alt); color: var(--ink); font: inherit; font-size: 20px; font-weight: 600;
}
.quote-step:hover { background: var(--rule); }
.quote-qty {
  flex: 1 1 auto; width: 100%; min-width: 0; text-align: center;
  border: none; border-left: 1px solid var(--rule-d); border-right: 1px solid var(--rule-d);
  font: inherit; font-size: 15px; font-weight: 600; background: var(--bg);
  -moz-appearance: textfield;
}
.quote-qty::-webkit-outer-spin-button, .quote-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- Pager / states ---- */
.quote-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 26px 0 0; }
.quote-page-btn {
  min-height: 42px; padding: 0 16px; cursor: pointer;
  border: 1px solid var(--rule-d); border-radius: 8px; background: var(--bg); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600;
}
.quote-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.quote-page-info { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.quote-empty, .quote-loading, .quote-muted {
  font-size: 14.5px; color: var(--muted); text-align: center; padding: 40px 16px;
}

/* ---- Sticky cart bar ---- */
.quote-cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px clamp(14px, 4vw, 24px) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-top: 1px solid var(--rule);
}
.quote-cartbar-btn {
  width: 100%; max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  min-height: 52px; padding: 0 18px; border: none; border-radius: 12px;
  background: var(--accent); color: #fff; font: inherit; font-size: 16px; font-weight: 600;
}
.quote-cartbar-btn:hover { background: var(--accent-h); }
.quote-cartbar-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
  background: rgba(255,255,255,.22); font-size: 14px; font-weight: 700;
}
.quote-cartbar-label { flex: 1 1 auto; text-align: left; }
.quote-cartbar-btn svg { width: 20px; height: 20px; }
@media (min-width: 760px) {
  .quote-cartbar { left: auto; right: 24px; bottom: 24px; padding: 0; background: none; border: none; backdrop-filter: none; }
  .quote-cartbar-btn { width: auto; box-shadow: 0 10px 30px rgba(232,95,0,.35); }
}

/* ---- Sheets (cart / filter / review) ---- */
.quote-sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(10,25,41,.45); }
.quote-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; flex-direction: column;
  max-height: 90vh; background: var(--bg);
  border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(10,25,41,.18);
  transform: translateY(100%); transition: transform .22s ease;
}
.quote-sheet.is-open { transform: translateY(0); }
.quote-sheet-left {
  right: auto; top: 0; bottom: 0; width: min(420px, 88vw); max-height: 100vh;
  border-radius: 0 18px 18px 0; transform: translateX(-100%); box-shadow: 10px 0 40px rgba(10,25,41,.18);
}
.quote-sheet-left.is-open { transform: translateX(0); }
@media (min-width: 760px) {
  .quote-sheet:not(.quote-sheet-left) {
    left: auto; right: 0; top: 0; bottom: 0; width: min(460px, 92vw); max-height: 100vh;
    border-radius: 18px 0 0 18px; transform: translateX(100%);
  }
  .quote-sheet:not(.quote-sheet-left).is-open { transform: translateX(0); }
}
.quote-sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 18px; border-bottom: 1px solid var(--rule); flex: 0 0 auto;
}
.quote-sheet-head h2 { font-size: 18px; margin: 0; }
.quote-sheet-close {
  width: 40px; height: 40px; flex: 0 0 auto; cursor: pointer;
  border: none; background: none; color: var(--muted); font-size: 28px; line-height: 1;
}
.quote-back { font-size: 13.5px; }
.quote-sheet-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 18px; }
.quote-sheet-foot { flex: 0 0 auto; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
.quote-sheet-foot .btn-primary, .quote-sheet-foot .btn-ghost { width: 100%; justify-content: center; }
.quote-sheet-foot .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 14.5px;
  border: 1px solid var(--rule-d); color: var(--ink); margin-bottom: 10px; cursor: pointer; background: var(--bg);
}
.quote-sheet-foot .btn-ghost:hover { border-color: var(--ink); }

/* ---- Cart lines ---- */
.quote-cart-group { margin-bottom: 18px; }
.quote-cart-grouphd { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.quote-cart-line { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); align-items: flex-start; }
.quote-cl-main { flex: 1 1 auto; min-width: 0; }
.quote-cl-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.quote-cl-sku { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 3px; word-break: break-word; }
.quote-cl-unit { color: var(--muted); }
.quote-cl-ctrl { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.quote-cl-ctrl .quote-stepper { width: 116px; }
.quote-cl-remove { background: none; border: none; cursor: pointer; color: var(--muted); font: inherit; font-size: 12px; text-decoration: underline; padding: 0; }
.quote-cl-remove:hover { color: #b23434; }
.quote-cart-summary { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin-bottom: 4px; }
.quote-cart-subtotal { font-weight: 700; font-size: 18px; }
.quote-indicative { font-size: 12px; color: var(--muted); margin: 4px 0 12px; line-height: 1.5; }

/* ---- Filter tree ---- */
.quote-tree { list-style: none; margin: 0; padding: 0; }
.quote-tree .quote-tree { margin-left: 14px; border-left: 1px solid var(--rule); padding-left: 6px; }
.quote-tree-row { display: flex; }
.quote-tree-btn {
  flex: 1 1 auto; display: flex; justify-content: space-between; gap: 8px; align-items: center;
  width: 100%; text-align: left; cursor: pointer; min-height: 40px;
  background: none; border: none; font: inherit; font-size: 14px; color: var(--ink); padding: 6px 4px;
  border-radius: 6px;
}
.quote-tree-btn:hover { background: var(--bg-alt); }
.quote-tree-row.is-active > .quote-tree-btn { color: var(--accent); font-weight: 700; }
.quote-tree-n { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ---- Form fields ---- */
.quote-field { margin-bottom: 14px; }
.quote-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.quote-field .req { color: var(--accent); }
.quote-field input, .quote-field textarea {
  width: 100%; min-height: 46px; padding: 11px 13px;
  border: 1px solid var(--rule-d); border-radius: 9px; background: var(--bg);
  font: inherit; font-size: 16px; color: var(--ink);
}
.quote-field textarea { min-height: 80px; resize: vertical; }
.quote-field input:focus, .quote-field textarea:focus { outline: none; border-color: var(--accent); }
.quote-review-summary { margin: 16px 0 6px; padding: 12px 14px; background: var(--bg-alt); border-radius: 10px; }
.quote-rs-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; }
.quote-submit { width: 100%; justify-content: center; margin-top: 6px; }

/* Honeypot — visually hidden, off-screen. */
.quote-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* CTA banner on /products/ pages pointing to the quote builder. */
.quote-cta-banner {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  padding: clamp(22px, 4vw, 34px); border: 1px solid var(--rule); border-radius: 14px;
  background: var(--bg-alt);
}
.quote-cta-banner h2 { font-size: clamp(19px, 3vw, 24px); margin: 4px 0 6px; }
.quote-cta-banner p { color: var(--ink-soft); margin: 0; max-width: 52ch; }
.quote-cta-banner .btn-primary { flex: 0 0 auto; }

/* ============================================================
   Shop Online — dashboard (carts + orders), editor header, quote view
   ============================================================ */
.quote-signedin-name { font-weight: 600; color: var(--ink); }
.quote-topline-brand .kicker { margin: 0; }
.quote-danger { color: #b23434 !important; }
.quote-iconbtn {
  border: none; background: none; cursor: pointer; color: var(--muted);
  font-size: 15px; padding: 2px 6px; border-radius: 6px; line-height: 1;
}
.quote-iconbtn:hover { background: var(--bg-alt); color: var(--ink); }

/* ---- Dashboard ---- */
#quote-dashboard { padding-bottom: 30px; }
.quote-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 4px; }
.quote-dash-head .quote-h1 { margin: 0; }
.quote-newcart { flex: 0 0 auto; }
.quote-dash-hint { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; max-width: 60ch; }

.quote-dash-carts {
  display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 8px;
}
@media (min-width: 560px) { .quote-dash-carts { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 900px) { .quote-dash-carts { grid-template-columns: repeat(3, 1fr); } }

.quote-dash-card {
  border: 1px solid var(--rule); border-radius: 14px; background: var(--bg);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.quote-dash-card:hover { border-color: var(--rule-d); box-shadow: 0 8px 24px rgba(10,25,41,.07); }
.quote-dash-card-open {
  flex: 1 1 auto; text-align: left; cursor: pointer; background: none; border: none;
  font: inherit; color: var(--ink); padding: 18px 18px 14px; display: block;
}
.quote-dash-card-name { font-size: 17px; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.quote-dash-card-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.quote-dash-card-total { font-size: 18px; font-weight: 700; }
.quote-dash-card-total span { font-family: var(--mono); font-size: 10.5px; font-weight: 400; color: var(--muted); }
.quote-dash-card-actions { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--rule); }
.quote-dash-empty { color: var(--muted); font-size: 14px; padding: 26px 4px; }

.quote-dash-orders-head { margin: 28px 0 12px; }
.quote-dash-orders-head h2 { font-size: 18px; margin: 0; }
.quote-dash-orders { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--bg); }
.quote-dash-orders:empty { border: none; }
.quote-order-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.quote-order-row:last-child { border-bottom: none; }
.quote-order-main { flex: 1 1 auto; min-width: 0; }
.quote-order-id { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.quote-order-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.quote-order-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.quote-order-total { font-weight: 700; font-size: 14px; }
.quote-order-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 2px 9px; border-radius: 999px; }
.quote-order-badge.is-received { background: #fff4d6; color: #9a6700; }
.quote-order-badge.is-quoted   { background: #e7f4ec; color: #1d7a45; }
.quote-order-badge.is-confirmed{ background: #dff3e6; color: #147a3a; }
.quote-order-badge.is-closed   { background: #eceff3; color: var(--muted); }
.quote-order-view { font-size: 12px; }

/* ---- Editor header ---- */
.quote-editor-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 6px 0 12px; margin-bottom: 4px;
}
.quote-editor-back { flex: 0 0 auto; font-size: 13.5px; }
.quote-editor-title { flex: 1 1 auto; display: flex; align-items: center; gap: 6px; min-width: 0; }
.quote-editor-title #quote-editor-name { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote-editor-place { flex: 0 0 auto; }

/* ---- Place-order sheet identity line ---- */
.quote-orderas { font-size: 13px; color: var(--muted); margin: -4px 0 16px; }
.quote-orderas strong { color: var(--ink); }

/* ---- In-app quote view ---- */
.quote-q-doc { font-size: 13.5px; }
.quote-q-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 14px; }
.quote-q-co { font-size: 16px; font-weight: 700; }
.quote-q-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.quote-q-ref { text-align: right; font-family: var(--mono); font-size: 13px; font-weight: 700; }
.quote-q-ref span { font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--accent); }
.quote-q-site { font-size: 13px; margin-bottom: 12px; }
.quote-q-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.quote-q-table th, .quote-q-table td { padding: 8px 8px; border-bottom: 1px solid var(--rule); text-align: left; }
.quote-q-table th { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.quote-q-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote-q-table tfoot td { font-weight: 700; border-top: 2px solid var(--rule-d); border-bottom: none; }
.quote-q-sku { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.quote-q-disc { color: #1d7a45; font-weight: 600; font-size: 11.5px; }
.quote-q-valid { font-size: 12.5px; margin-top: 12px; }
.quote-q-note { font-size: 12.5px; color: var(--ink-soft); white-space: pre-wrap; border-top: 1px solid var(--rule); margin-top: 12px; padding-top: 12px; }
.quote-q-foot { font-size: 11px; color: var(--muted); margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 10px; }

/* Print: when the quote sheet is open, print only the quotation. */
@media print {
  body.quote-noscroll > *:not(.quote-sheet) { display: none !important; }
  .quote-sheet { position: static !important; transform: none !important; max-height: none !important; box-shadow: none !important; }
  .quote-sheet:not(#quote-quote-sheet) { display: none !important; }
  .quote-sheet-head, .quote-sheet-foot { display: none !important; }
  .quote-sheet-backdrop { display: none !important; }
}

/* ── Homepage launch band — Hager Aptis+ MCB range (featured highlight) ────── */
.launch-band {
  padding: clamp(28px, 4vw, 48px) var(--pad-x);
  background: var(--bg);
}
.launch-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 3vw, 36px) clamp(26px, 3.5vw, 46px);
  background: linear-gradient(135deg, var(--bg-deep-2), var(--bg-deep) 72%);
  border: 1px solid rgba(var(--highlight-rgb), 0.35);
  border-top: 3px solid var(--highlight);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(10, 25, 41, 0.30), 0 0 44px rgba(var(--highlight-rgb), 0.14);
  text-decoration: none;
  color: #fff;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.launch-band-inner:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--highlight-rgb), 0.65);
  box-shadow: 0 26px 64px rgba(10, 25, 41, 0.38), 0 0 60px rgba(var(--highlight-rgb), 0.26);
}
.launch-seal {
  position: relative;
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--highlight);
  color: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  font-family: var(--mono);
  box-shadow: 0 8px 22px rgba(var(--highlight-rgb), 0.5), 0 0 0 0 rgba(var(--highlight-rgb), 0.55);
  animation: launchPulse 2.4s ease-in-out infinite;
}
.launch-seal::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}
.launch-seal-top,
.launch-seal-bot {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.95;
}
.launch-seal-big {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 4px 0;
}
.launch-copy { flex: 1 1 auto; min-width: 0; }
.launch-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--highlight);
  font-weight: 600;
  margin-bottom: 10px;
}
.launch-title {
  display: block;
  font-size: clamp(18px, 1.2vw + 0.7rem, 25px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: #fff;
}
.launch-title strong { color: var(--highlight); font-weight: 700; }
.launch-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  background: var(--highlight);
  color: var(--bg-deep);
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.launch-band-inner:hover .launch-cta { background: #fff; color: var(--bg-deep); }
.launch-cta svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.launch-band-inner:hover .launch-cta svg { transform: translateX(4px); }
@keyframes launchPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(var(--highlight-rgb), 0.5), 0 0 0 0 rgba(var(--highlight-rgb), 0.5); }
  50%      { box-shadow: 0 8px 22px rgba(var(--highlight-rgb), 0.5), 0 0 0 16px rgba(var(--highlight-rgb), 0); }
}
@media (max-width: 820px) {
  .launch-band-inner { flex-wrap: wrap; gap: 18px; }
  .launch-seal { width: 84px; height: 84px; }
  .launch-seal-big { font-size: 21px; }
  .launch-copy { flex: 1 1 240px; }
  .launch-cta { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .launch-seal { animation: none; }
  .launch-band-inner:hover { transform: none; }
}

/* ── Button labels stay on one line ─────────────────────────────
   Every .btn-* class sets white-space: nowrap. On the narrowest
   phones, trim padding/font so the longest labels still fit the
   viewport on a single line. Kept last so it wins the cascade. */
@media (max-width: 380px) {
  .btn-primary,
  .btn-secondary,
  .btn-bleed-secondary,
  .btn-whatsapp,
  .btn-google,
  .product-cta .btn {
    padding: 13px 16px;
    font-size: 13.5px;
  }
}
