.trade-page {
  --trade-ink: #17221b;
  --trade-paper: #f4f1e8;
  --trade-accent: #d9f478;
  --trade-line: #c8ccba;
  --trade-heading: var(--display, sans-serif);
  color: var(--trade-ink);
  background: var(--trade-paper);
}
.trade-page :is(h1, h2, h3) { margin: 0; font-family: var(--trade-heading); }
.trade-page p { margin: 0; }
.trade-hero, .trade-band, .trade-section, .trade-close { padding-block: clamp(3.4rem, 7.3vw, 7rem); }
.trade-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr);
  grid-template-areas: "copy visual";
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5.2rem);
}
.trade-hero-copy { grid-area: copy; min-width: 0; }
.trade-visual { grid-area: visual; min-width: 0; }
.trade-kicker {
  display: flex;
  gap: .7rem;
  align-items: center;
  font: 600 .72rem/1.3 var(--mono, monospace);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.trade-kicker > span { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border: 1px solid currentColor; }
.trade-hero h1 {
  margin-top: .8rem;
  max-width: 11ch;
  font-size: clamp(2.8rem, 6.25vw, 6.25rem);
  font-weight: 700;
  line-height: .93;
  letter-spacing: -.046em;
  text-wrap: balance;
}
.trade-hero .trade-lead { margin-top: 1.35rem; max-width: 47ch; font-size: clamp(1rem, 1.48vw, 1.2rem); line-height: 1.6; }
.trade-heading-term { white-space: nowrap; }
.trade-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.4rem; margin-top: 1.7rem; }
.trade-text-link { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .45rem; text-underline-offset: .26em; font-weight: 600; }
.trade-text-link:hover { text-decoration-thickness: .14rem; }
.trade-shk .trade-hero { background: #e5e9d9; }
.trade-elektro .trade-hero { color: #efeeff; background: #232745; }
.trade-elektro .trade-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .93fr); grid-template-areas: "visual copy"; }
.trade-elektro .trade-hero .trade-kicker { color: #d2d6ff; }
.trade-elektro .trade-hero .button-primary { color: #17221b; background: #d9f478; border-color: #d9f478; }

.trade-visual {
  margin: 0;
  padding: clamp(.85rem, 1.8vw, 1.45rem);
  color: #edf7e8;
  background: #19382e;
  border: 1px solid #466757;
}
.trade-service-sheet { box-shadow: .62rem .62rem 0 #5979563d; }
.trade-visual-top, .trade-art-label, .trade-visual figcaption, .trade-circuit-label span, .trade-circuit-foot span {
  font: 550 clamp(.59rem, 1.05vw, .72rem)/1.3 var(--mono, monospace);
  letter-spacing: .055em;
  text-transform: uppercase;
}
.trade-visual-top, .trade-visual figcaption { padding: .24rem 0 .65rem; color: #cae0ce; }
.trade-visual-top { display: flex; justify-content: space-between; gap: .5rem; border-bottom: 1px solid #78937f7d; }
.trade-visual-top i { display: inline-block; width: .4rem; height: .4rem; margin-right: .28rem; background: #d9f478; }
.trade-visual figcaption { border-top: 1px solid #78937f7d; padding: .65rem 0 .16rem; text-transform: none; }
.trade-service-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); align-items: center; gap: .66rem; min-height: 17rem; }
.trade-appliance { position: relative; background-image: linear-gradient(90deg, #c4e7c313 1px, transparent 1px), linear-gradient(#c4e7c313 1px, transparent 1px); background-size: 18px 18px; }
.trade-appliance svg { display: block; width: 100%; height: auto; }
.trade-appliance > span { position: absolute; top: 6%; left: 10%; color: #dce9d9; font: 600 .63rem/1 var(--mono, monospace); }
.trade-service-ticket {
  padding: clamp(.56rem, 1.35vw, 1rem);
  color: #1d392b;
  background: #edf1df;
  border: 1px solid #c2dab5;
  box-shadow: .28rem .32rem 0 #131e1870;
}
.trade-art-label { color: #4b664d; }
.trade-service-ticket > strong, .trade-circuit-label strong {
  display: block;
  margin-top: .38rem;
  font: 700 clamp(1.2rem, 2.45vw, 1.85rem)/.95 var(--trade-heading);
}
.trade-service-ticket dl { display: grid; gap: .4rem; margin: .64rem 0; }
.trade-service-ticket dl div { border-top: 1px solid #c4d1bf; padding-top: .3rem; }
.trade-service-ticket dt { font: 500 .59rem/1.24 var(--mono, monospace); }
.trade-service-ticket dd { margin: .12rem 0 0; font-size: .72rem; font-weight: 650; line-height: 1.3; }
.trade-art-action { display: flex; align-items: center; gap: .35rem; border-top: 1px solid #c4d1bf; padding-top: .48rem; font-size: .68rem; font-weight: 650; }
.trade-art-action span { flex: 0 0 .38rem; aspect-ratio: 1; background: #417357; }

.trade-circuit-board { color: #ecedff; background: #181c36; border-color: #6c75b2; box-shadow: -.64rem .65rem 0 #8e9bf345; }
.trade-circuit-board :is(.trade-visual-top, figcaption) { color: #d1d4ff; border-color: #555d8c; }
.trade-circuit-board .trade-visual-top i { background: #c1caff; }
.trade-circuit {
  position: relative;
  margin-block: .8rem;
  padding: .8rem;
  border: 1px solid #5c6495;
  background-color: #202449;
  background-image: radial-gradient(#a0aef251 .6px, transparent .8px);
  background-size: 16px 16px;
}
.trade-circuit-label { position: relative; z-index: 1; width: fit-content; padding: .44rem .62rem .56rem; background: #d8dcff; color: #25294e; }
.trade-circuit svg { display: block; width: 100%; aspect-ratio: 2.1; margin-top: -1.1rem; }
.trade-circuit-nodes { display: flex; justify-content: space-around; gap: .35rem; color: #e8eaff; font: 550 clamp(.57rem, 1.05vw, .71rem)/1.3 var(--mono, monospace); }
.trade-circuit-foot { display: flex; justify-content: space-between; gap: .35rem .55rem; flex-wrap: wrap; align-items: center; padding-bottom: .7rem; }
.trade-circuit-foot span { color: #c9ceff; }
.trade-circuit-foot strong { font-size: .86rem; }

.trade-section-head { max-width: 51rem; margin-bottom: clamp(1.6rem, 4.2vw, 3rem); }
.trade-section-head h2, .trade-close h2 { margin-top: .65rem; font-size: clamp(2.2rem, 4.65vw, 4.4rem); line-height: .99; letter-spacing: -.032em; text-wrap: pretty; }
.trade-section-head > p:last-child:not(.eyebrow), .trade-close p:not(.eyebrow) { margin-top: .95rem; max-width: 60ch; line-height: 1.55; font-size: 1.06rem; }
.trade-band { color: #eef2e7; background: #1e3429; }
.trade-band .trade-kicker { color: #d9f478; }
.trade-elektro .trade-band { background: #e4e5f8; color: #242742; }
.trade-elektro .trade-band .trade-kicker { color: #3b437a; }

.trade-example { border: 1px solid #73937b; }
.trade-elektro .trade-example { border-color: #999fc4; }
.trade-example details + details { border-top: 1px solid #73937b; }
.trade-elektro .trade-example details + details { border-top-color: #999fc4; }
.trade-page summary { list-style: none; cursor: pointer; }
.trade-page summary::-webkit-details-marker { display: none; }
.trade-page summary::after { content: "+"; font-size: 1.25rem; line-height: 1; }
.trade-page details[open] > summary::after { content: "−"; }
.trade-example summary {
  min-height: 3.35rem;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto 1.1rem;
  gap: clamp(.52rem, 1.65vw, 1.35rem);
  align-items: center;
  padding: .68rem clamp(.75rem, 2.1vw, 1.55rem);
}
.trade-example details[open] > summary { background: #344a3a; }
.trade-elektro .trade-example details[open] > summary { background: #d0d2ee; }
.trade-example summary strong { font: 650 clamp(1.1rem, 2.15vw, 1.6rem)/1.08 var(--trade-heading); }
.trade-step, .trade-step-tag, .trade-output span, .trade-cards article > span { font: 550 .68rem/1.25 var(--mono, monospace); letter-spacing: .04em; }
.trade-step { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; color: #17221b; background: #d9f478; }
.trade-elektro .trade-step { background: #343b79; color: #fff; }
.trade-example-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
  align-items: center;
  gap: .9rem 2rem;
  padding: clamp(1rem, 2.7vw, 2rem) clamp(.75rem, 2.1vw, 1.55rem);
}
.trade-example-body p { max-width: 65ch; line-height: 1.6; }
.trade-output { display: grid; gap: .27rem; padding: .72rem .85rem; color: #203528; background: #e4edcc; border-left: 3px solid #d9f478; }
.trade-output strong { line-height: 1.2; }
.trade-elektro .trade-output { color: #272a4b; background: #f5f3ff; border-left-color: #636ab0; }

.trade-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--trade-line); }
.trade-cards article { display: grid; align-content: start; gap: .65rem; padding: clamp(1rem, 2.25vw, 2rem); }
.trade-cards article + article { border-left: 1px solid var(--trade-line); }
.trade-cards article > span { color: #405447; }
.trade-cards h3, .trade-method h3 { font-size: clamp(1.42rem, 2.68vw, 2.2rem); line-height: 1.02; letter-spacing: -.02em; }
.trade-cards p, .trade-method p:not(.eyebrow) { line-height: 1.55; }
.trade-method { margin-top: clamp(1.1rem, 3.1vw, 2.75rem); padding: clamp(1.15rem, 3vw, 2.45rem); background: #e4e9d9; border-left: 3px solid #6a8f72; }
.trade-method h3 { margin-top: .55rem; }
.trade-method p:not(.eyebrow) { max-width: 76ch; margin-top: .55rem; }
.trade-elektro .trade-method { background: #e9e8f6; border-left-color: #767dba; }

.trade-faq { padding-top: clamp(.25rem, 2vw, 1.5rem); }
.trade-faq-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); gap: 1rem clamp(1rem, 5vw, 5rem); }
.trade-faq-list details { border: 0; border-top: 1px solid var(--trade-line); }
.trade-faq-list details:last-child { border-bottom: 1px solid var(--trade-line); }
.trade-faq-list summary { display: flex; justify-content: space-between; gap: .7rem; min-height: 3.35rem; align-items: center; padding: .73rem 0; font-weight: 650; }
.trade-faq-list details p { margin: 0 1.5rem 1rem 0; line-height: 1.58; }
.trade-close { color: #eff4e7; background: #1d3227; }
.trade-close .trade-kicker { color: #d9f478; }
.trade-close .button { margin-top: 1.2rem; color: #17221b; background: #d9f478; border-color: #d9f478; }
.trade-elektro .trade-close { background: #242846; }
.trade-page :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

@media (max-width: 820px) {
  .trade-hero { padding-block: clamp(2.65rem, 6vw, 4rem); }
  .trade-hero h1 { max-width: 13ch; font-size: clamp(2.55rem, 7.9vw, 4.5rem); }
  .trade-grid { gap: clamp(1.5rem, 4vw, 2.5rem); }
  .trade-service-grid { min-height: 13rem; }
}
@media (max-width: 690px) {
  .trade-grid, .trade-elektro .trade-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "visual"; }
  .trade-hero h1 { max-width: 12ch; font-size: clamp(2.75rem, 10vw, 4.35rem); }
  .trade-hero .trade-lead { margin-top: .9rem; }
  .trade-actions { margin-top: 1.2rem; }
  .trade-visual { margin-inline-end: .45rem; }
  .trade-elektro .trade-visual { margin-inline: .45rem 0; }
  .trade-example-body, .trade-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .trade-example summary { grid-template-columns: 1.7rem minmax(0, 1fr) 1.05rem; }
  .trade-step-tag { display: none; }
  .trade-cards { grid-template-columns: minmax(0, 1fr); }
  .trade-cards article + article { border-left: 0; border-top: 1px solid var(--trade-line); }
}

.trade-run {
  --trade-signal: #cfe973;
  --trade-signal-edge: #425738;
  position: relative;
  isolation: isolate;
}
.trade-elektro .trade-run {
  --trade-signal: #aebdff;
  --trade-signal-edge: #4d568f;
}
.trade-run-wire {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  pointer-events: none;
}
.trade-run-wire path { stroke-linecap: round; stroke-linejoin: round; }
.trade-wire-halo { stroke: var(--trade-signal-edge); stroke-width: 5; opacity: .28; }
.trade-wire-base { stroke: var(--trade-signal-edge); stroke-width: 1.25; stroke-dasharray: 3 6; }
.trade-wire-active {
  stroke: var(--trade-signal);
  stroke-width: 2.5;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--trade-progress, 0));
}
.trade-carrier, .trade-terminal {
  display: grid;
  justify-items: start;
  padding: .33rem .52rem;
  background: #e5efb9;
  color: #203023;
  border: 1px solid #adc37d;
  white-space: nowrap;
  line-height: 1;
}
.trade-elektro :is(.trade-carrier, .trade-terminal) {
  background: #e2e6ff;
  color: #282e58;
  border-color: #a4b3f0;
}
.trade-carrier span, .trade-terminal span {
  font: 650 .58rem/1.35 var(--mono);
  letter-spacing: .055em;
}
.trade-carrier strong, .trade-terminal strong { font: 700 1.03rem/1.05 var(--trade-heading); }
.trade-carrier {
  z-index: 4;
  position: absolute;
  top: 0;
  left: 0;
  translate: -50% -50%;
  box-shadow: .22rem .24rem 0 #141a1880;
  pointer-events: none;
  will-change: transform;
}
.trade-visual figcaption { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.trade-terminal { position: relative; z-index: 3; width: fit-content; }
[data-trade-origin] {
  flex: 0 0 auto;
  opacity: calc(1 - var(--trade-departure, 0) * .52);
}
.trade-art-trace {
  stroke: var(--trade-signal);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--trade-art-progress, 1));
}
.trade-band-top {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.76fr);
  grid-template-areas: "intro receiver";
  align-items: end;
  gap: clamp(1.2rem,4vw,4rem);
  margin-bottom: clamp(1.45rem,3vw,2.8rem);
}
.trade-band-top .trade-section-head { grid-area: intro; margin-bottom: 0; }
.trade-elektro .trade-band-top {
  grid-template-columns: minmax(0,.76fr) minmax(0,1fr);
  grid-template-areas: "receiver intro";
}
.trade-receiver {
  grid-area: receiver;
  min-width: 0;
  border: 1px solid #76947c;
  color: #e8efda;
  background: #263f31;
}
.trade-elektro .trade-receiver {
  color: #f0f0ff;
  background: #242947;
  border-color: #666f9f;
}
.trade-receiver-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 1rem;
  padding: .6rem .7rem;
  border-bottom: 1px solid #bcd3bf45;
  font: 600 .62rem/1.2 var(--mono);
  letter-spacing: .055em;
}
.trade-receiver-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(.9rem,2.25vw,1.55rem);
  background-image: linear-gradient(90deg,#c6e9bd13 1px,transparent 1px),linear-gradient(#c6e9bd13 1px,transparent 1px);
  background-size: 14px 14px;
}
.trade-elektro .trade-receiver-field {
  flex-direction: row-reverse;
  background-image: radial-gradient(#a0aef251 .6px, transparent .8px);
  background-size: 10px 10px;
}
.trade-receiver-field > svg {
  width: 3.3rem;
  height: 3.3rem;
  color: var(--trade-signal);
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: calc(.52 + .48 * var(--trade-arrival, 1));
}
.trade-receiver-terminal { gap: .13rem; }
.trade-receiver-output {
  min-height: 2.8rem;
  padding: .6rem .7rem;
  border-top: 1px solid #bcd3bf45;
  color: #dfe8d6;
  font-size: .79rem;
  line-height: 1.3;
}
.trade-elektro .trade-receiver-output { color: #e6e7ff; }
.trade-receiver-output:empty { display: none; }

@media (max-width: 690px) {
  .trade-band-top, .trade-elektro .trade-band-top {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "receiver" "intro";
  }
  .trade-band { padding-top: 2rem; }
  .trade-receiver-field { min-height: 4.9rem; }
}
.trade-elektro .trade-visual figcaption { flex-direction: row-reverse; justify-content: start; }

@media (prefers-reduced-motion: reduce) {
  .trade-run-wire, .trade-carrier { display: none; }
  .trade-art-trace { stroke-dashoffset: 0; }
  [data-trade-origin], .trade-receiver-field > svg { opacity: 1; }
}

.trade-carrier :is(.trade-carrier-from, .trade-carrier-to) {
  display: grid;
  grid-area: 1 / 1;
}
.trade-carrier-from { opacity: calc(1 - var(--trade-transform, 0)); }
.trade-carrier-to { opacity: var(--trade-transform, 0); }
