/*
 * ENERGY WORKS / eight-trade homepage component
 * Load after the host styles. Every selector stays inside .ewx-work-eight.
 * The eight native buttons remain in ordinary document flow at every size.
 */
.ewx .ewx-work-eight {
  --ewx-trade-ink: #1c292b;
  --ewx-trade-muted: #56615d;
  --ewx-trade-paper: #f3f0e7;
  --ewx-trade-line: #a5aaa0;
  --ewx-trade-orange: #a95128;
  color: var(--ewx-trade-ink);
  margin-top: 48px;
  min-width: 0;
  isolation: isolate;
}
.ewx .ewx-work-eight,
.ewx .ewx-work-eight *,
.ewx .ewx-work-eight *::before,
.ewx .ewx-work-eight *::after { box-sizing: border-box; }
.ewx .ewx-work-eight .ewx-trade-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--ewx-trade-ink);
}
.ewx .ewx-work-eight .ewx-trade-intro > p {
  margin: 0;
  min-width: 0;
  font-size: 20px;
  line-height: 1.65;
  letter-spacing: .02em;
}
.ewx .ewx-work-eight .ewx-trade-intro strong {
  font-size: 30px;
  font-weight: 800;
}
.ewx .ewx-work-eight .ewx-trade-intro > span {
  display: flex;
  flex-shrink: 0;
  align-items: flex-end;
  gap: 15px;
  color: var(--ewx-trade-orange);
  font-size: 88px;
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.065em;
  font-variant-numeric: lining-nums tabular-nums;
}
.ewx .ewx-work-eight .ewx-trade-intro > span > span {
  margin-bottom: 4px;
  max-width: 70px;
  color: var(--ewx-trade-muted);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .08em;
}
.ewx .ewx-work-eight .ewx-trade-group { margin: 38px 0 0; }
.ewx .ewx-work-eight .ewx-trade-group-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  margin: 0 0 16px;
}
.ewx .ewx-work-eight .ewx-trade-group-heading p {
  margin: 0;
  min-width: 132px;
  color: #8e492d;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .09em;
}
.ewx .ewx-work-eight .ewx-trade-group-heading h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.02em;
}
.ewx .ewx-work-eight .ewx-trade-group-heading > span {
  margin-left: auto;
  color: var(--ewx-trade-muted);
  font-size: 12px;
  line-height: 1.7;
}
.ewx .ewx-work-eight .ewx-trade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ewx .ewx-work-eight .ewx-trade-group-structure .ewx-trade-grid {
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
}
.ewx .ewx-work-eight .ewx-trade-group-finish .ewx-trade-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ewx .ewx-work-eight .ewx-trade-card {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 250px;
  margin: 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--ewx-trade-line);
  border-radius: 0;
  background: var(--ewx-trade-paper);
  color: var(--ewx-trade-ink);
  font-family: inherit;
  line-height: 1.6;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
  isolation: isolate;
  transition: border-color .2s, box-shadow .2s;
}
/* The button itself receives every hit, including the decorative SVG paths. */
.ewx .ewx-work-eight .ewx-trade-card * { pointer-events: none; }
.ewx .ewx-work-eight .ewx-trade-card > * { position: relative; z-index: 1; }
.ewx .ewx-work-eight .ewx-trade-card:focus-visible {
  outline: 3px solid #994320;
  outline-offset: 4px;
  z-index: 2;
}
.ewx .ewx-work-eight .ewx-trade-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.ewx .ewx-work-eight .ewx-trade-number {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
  font-variant-numeric: lining-nums tabular-nums;
}
.ewx .ewx-work-eight .ewx-trade-plus {
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}
.ewx .ewx-work-eight .ewx-trade-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 22px;
}
.ewx .ewx-work-eight .ewx-trade-copy > strong {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.035em;
}
.ewx .ewx-work-eight .ewx-trade-short {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}
.ewx .ewx-work-eight .ewx-trade-lead {
  margin-top: 5px;
  max-width: 18em;
  color: var(--ewx-trade-muted);
  font-size: 12px;
  line-height: 1.8;
}
.ewx .ewx-work-eight .ewx-trade-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--ewx-trade-line);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}
.ewx .ewx-work-eight .ewx-trade-action > span {
  flex: 0 0 auto;
  font-size: 19px;
}
.ewx .ewx-work-eight .ewx-trade-card .ewx-trade-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ewx .ewx-work-eight .ewx-trade-art > svg {
  position: absolute;
  right: -10px;
  bottom: 28px;
  width: 155px;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .13;
  transform: rotate(-7deg);
}
/* The broad, grounded first card anchors the structure row. */
.ewx .ewx-work-eight .ewx-trade-feature {
  min-height: 310px;
  border-color: #34423f;
  background: #1b2729;
  color: #fff4df;
}
.ewx .ewx-work-eight .ewx-trade-feature .ewx-trade-art > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 63% center;
  opacity: .82;
}
.ewx .ewx-work-eight .ewx-trade-feature .ewx-trade-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b1b20ed, #0b1b20b8 60%, #0b1b2047),
    linear-gradient(0deg, #102023eb, transparent 75%);
  pointer-events: none;
}
.ewx .ewx-work-eight .ewx-trade-feature .ewx-trade-copy > strong { font-size: 50px; }
.ewx .ewx-work-eight .ewx-trade-feature .ewx-trade-lead { color: #e4e7dc; }
.ewx .ewx-work-eight .ewx-trade-feature .ewx-trade-action { border-color: #b8b9a977; }
.ewx .ewx-work-eight .ewx-trade-steel {
  border-top: 4px solid #50605a;
  background: #eeeee5;
}
.ewx .ewx-work-eight .ewx-trade-forge {
  border-top: 4px solid #a95128;
  background: #f0e1d3;
}
/* A single dark electrical card gives the connected-systems row a center. */
.ewx .ewx-work-eight .ewx-trade-pipe {
  border-top: 4px solid #77857b;
  background: #ecefe7;
}
.ewx .ewx-work-eight .ewx-trade-electric {
  border-color: #263638;
  border-top: 4px solid #db8b53;
  background: #203032;
  color: #fff1d7;
}
.ewx .ewx-work-eight .ewx-trade-electric .ewx-trade-lead { color: #d8dfd7; }
.ewx .ewx-work-eight .ewx-trade-electric .ewx-trade-action { border-color: #8e9c927d; }
.ewx .ewx-work-eight .ewx-trade-electric .ewx-trade-art { color: #efae75; }
.ewx .ewx-work-eight .ewx-trade-electric .ewx-trade-art > svg { opacity: .23; }
.ewx .ewx-work-eight .ewx-trade-water {
  border-top: 4px solid #77857b;
  background: #e7ede6;
}
/* Finishing is a quieter, paired material study. */
.ewx .ewx-work-eight .ewx-trade-finish {
  min-height: 230px;
  background: #eedcca;
}
.ewx .ewx-work-eight .ewx-trade-interior {
  min-height: 230px;
  background: #efeee4;
}
.ewx .ewx-work-eight .ewx-trade-group-finish .ewx-trade-art > svg {
  right: 25px;
  bottom: 15px;
  width: 205px;
  opacity: .16;
  transform: none;
}
.ewx .ewx-work-eight .ewx-trade-note {
  margin: 25px 0 0;
  color: var(--ewx-trade-muted);
  font-size: 11px;
  line-height: 1.8;
}
@media (hover: hover) {
  .ewx .ewx-work-eight .ewx-trade-card:hover {
    border-color: #a95128;
    box-shadow: 0 4px 0 #a9512833;
  }
}
@media (max-width: 900px) {
  .ewx .ewx-work-eight .ewx-trade-group-heading { gap: 8px 18px; }
  .ewx .ewx-work-eight .ewx-trade-group-heading > span { width: 100%; margin-left: 0; }
  .ewx .ewx-work-eight .ewx-trade-card { padding: 18px; }
  .ewx .ewx-work-eight .ewx-trade-copy > strong { font-size: 30px; }
  .ewx .ewx-work-eight .ewx-trade-group-structure .ewx-trade-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .ewx .ewx-work-eight { margin-top: 28px; }
  .ewx .ewx-work-eight .ewx-trade-intro { gap: 10px; padding-bottom: 23px; }
  .ewx .ewx-work-eight .ewx-trade-intro > p { font-size: 15px; line-height: 1.7; }
  .ewx .ewx-work-eight .ewx-trade-intro strong { font-size: 20px; letter-spacing: -.025em; }
  .ewx .ewx-work-eight .ewx-trade-intro > span { display: block; font-size: 64px; }
  .ewx .ewx-work-eight .ewx-trade-intro > span > span {
    display: block;
    margin: 8px 0 0;
    max-width: 64px;
    font-size: 9px;
    line-height: 1.3;
    letter-spacing: .04em;
  }
  .ewx .ewx-work-eight .ewx-trade-group { margin-top: 30px; }
  .ewx .ewx-work-eight .ewx-trade-group-heading { display: block; margin-bottom: 13px; }
  .ewx .ewx-work-eight .ewx-trade-group-heading p { margin-bottom: 6px; font-size: 9px; }
  .ewx .ewx-work-eight .ewx-trade-group-heading h3 { font-size: 21px; }
  .ewx .ewx-work-eight .ewx-trade-group-heading > span {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.6;
  }
  .ewx .ewx-work-eight .ewx-trade-grid,
  .ewx .ewx-work-eight .ewx-trade-group-structure .ewx-trade-grid,
  .ewx .ewx-work-eight .ewx-trade-group-finish .ewx-trade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .ewx .ewx-work-eight .ewx-trade-card { min-height: 230px; padding: 16px 13px; }
  .ewx .ewx-work-eight .ewx-trade-feature { grid-column: 1 / -1; min-height: 260px; }
  .ewx .ewx-work-eight .ewx-trade-water { grid-column: 1 / -1; min-height: 205px; }
  .ewx .ewx-work-eight .ewx-trade-top { margin-bottom: 18px; }
  .ewx .ewx-work-eight .ewx-trade-copy { gap: 6px; margin-bottom: 18px; }
  .ewx .ewx-work-eight .ewx-trade-copy > strong { font-size: 29px; letter-spacing: -.055em; }
  .ewx .ewx-work-eight .ewx-trade-feature .ewx-trade-copy > strong { font-size: 42px; }
  .ewx .ewx-work-eight .ewx-trade-short { font-size: 12px; line-height: 1.65; }
  .ewx .ewx-work-eight .ewx-trade-lead { margin-top: 3px; font-size: 12px; line-height: 1.75; }
  .ewx .ewx-work-eight .ewx-trade-action { padding-top: 11px; font-size: 11px; }
  .ewx .ewx-work-eight .ewx-trade-art > svg { right: -10px; bottom: 35px; width: 130px; }
  .ewx .ewx-work-eight .ewx-trade-group-finish .ewx-trade-art > svg {
    right: -5px;
    bottom: 35px;
    width: 140px;
  }
  .ewx .ewx-work-eight .ewx-trade-water .ewx-trade-art > svg {
    right: 15px;
    bottom: 18px;
    width: 175px;
  }
  .ewx .ewx-work-eight .ewx-trade-water .ewx-trade-copy { max-width: 70%; }
  .ewx .ewx-work-eight .ewx-trade-feature .ewx-trade-art > img { object-position: 63% 45%; }
}
@media (max-width: 360px) {
  .ewx .ewx-work-eight .ewx-trade-intro strong { font-size: 18px; }
  .ewx .ewx-work-eight .ewx-trade-intro > span { font-size: 58px; }
  .ewx .ewx-work-eight .ewx-trade-card { padding-right: 11px; padding-left: 11px; }
  .ewx .ewx-work-eight .ewx-trade-copy > strong { font-size: 27px; }
  .ewx .ewx-work-eight .ewx-trade-feature .ewx-trade-copy > strong { font-size: 40px; }
  .ewx .ewx-work-eight .ewx-trade-action { gap: 4px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ewx .ewx-work-eight .ewx-trade-card { transition: none; }
}
@media (forced-colors: active) {
  .ewx .ewx-work-eight .ewx-trade-card { border: 1px solid ButtonText; }
  .ewx .ewx-work-eight .ewx-trade-card:focus-visible { outline-color: Highlight; }
  .ewx .ewx-work-eight .ewx-trade-art { display: none; }
}
