.wig20-stage {
  position: relative;
  padding-block: clamp(96px, 10vw, 156px);
  border-block: 1px solid var(--border);
  background: var(--surface-1);
  overflow: hidden;
}

.wig20-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 28%, color-mix(in oklch, var(--accent) 11%, transparent), transparent 34%),
    linear-gradient(118deg, transparent 0 61%, color-mix(in oklch, var(--accent) 10%, transparent) 61.05% 61.16%, transparent 61.22%);
}

.wig20-stage__layout {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(38px, 5.8vw, 94px);
  align-items: center;
}

.wig20-stage__copy { grid-column: 1 / 5; }
.wig20-stage__eyebrow {
  margin: 0;
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.wig20-stage__copy h2 {
  max-width: 10ch;
  margin: 26px 0 0;
  font: 600 clamp(48px, 4.7vw, 74px) / .94 var(--font-sans);
  letter-spacing: -.058em;
}
.wig20-stage__summary {
  max-width: 40ch;
  min-height: 6.3em;
  margin: 28px 0 0;
  color: var(--text-muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
}
.wig20-stage__summary strong { color: var(--text); font-weight: 680; }
.wig20-stage__context {
  max-width: 42ch;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.6;
}

.wig20-live { grid-column: 5 / 13; min-width: 0; }
.wig20-live__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-strong);
}
.wig20-live__identity { display: flex; align-items: center; gap: 13px; }
.wig20-live__identity strong { font-size: 19px; letter-spacing: -.025em; }
.wig20-live__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.wig20-live__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
}
.wig20-live__status.is-open::before { background: oklch(.72 .12 150); }
.wig20-live__quote { display: flex; align-items: baseline; justify-content: flex-end; gap: 14px; }
.wig20-live__quote strong { font-size: clamp(36px, 3.4vw, 55px); line-height: .9; letter-spacing: -.052em; }
.wig20-live__quote span { color: var(--text-muted); font-size: 14px; font-weight: 760; }
.wig20-live__quote span.is-up { color: oklch(.74 .11 150); }
.wig20-live__quote span.is-down { color: oklch(.7 .13 24); }

.wig20-live__meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 19px;
}
.wig20-live__ranges { display: flex; gap: 22px; }
.wig20-live__ranges button {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--text-faint);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 740;
}
.wig20-live__ranges button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--accent-hover);
  transform: scaleX(0);
  transition: transform var(--motion-fast);
}
.wig20-live__ranges button[aria-pressed="true"] { color: var(--text); }
.wig20-live__ranges button[aria-pressed="true"]::after { transform: scaleX(1); }
.wig20-live__updated { margin: 13px 0 0; color: var(--text-faint); font-size: 12px; text-align: right; }
.wig20-live__plot { position: relative; margin-top: 8px; min-height: 320px; }
.wig20-live svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.wig20-live svg:focus-visible,
.wig20-live__ranges button:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.wig20-live [data-wig-grid] line { stroke: color-mix(in oklch, var(--text) 10%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wig20-live .wig-candle__wick { stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.wig20-live .wig-candle__body { stroke-width: 1; vector-effect: non-scaling-stroke; }
.wig20-live .wig-candle--up .wig-candle__wick,
.wig20-live .wig-candle--up .wig-candle__body { stroke: oklch(.74 .09 150); fill: oklch(.63 .075 150); }
.wig20-live .wig-candle--down .wig-candle__wick,
.wig20-live .wig-candle--down .wig-candle__body { stroke: oklch(.7 .12 24); fill: oklch(.52 .105 24); }
.wig20-live [data-wig-crosshair] line { stroke: color-mix(in oklch, var(--text) 48%, transparent); stroke-width: 1; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.wig20-live [data-wig-crosshair-dot] { fill: var(--text); stroke: var(--surface-1); stroke-width: 3; vector-effect: non-scaling-stroke; }
.wig20-live__tooltip {
  position: absolute;
  z-index: 3;
  min-width: 176px;
  padding: 10px 12px;
  border-left: 2px solid var(--accent-hover);
  color: var(--text);
  background: color-mix(in oklch, var(--surface-0) 95%, transparent);
  box-shadow: 0 15px 34px oklch(0 0 0 / .32);
  pointer-events: none;
  font-size: 12px;
  line-height: 1.52;
}
.wig20-live__tooltip strong { display: block; margin-bottom: 3px; font-size: 13px; }
.wig20-live__error {
  min-height: 320px;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--text-muted);
  border-block: 1px solid var(--border);
  text-align: center;
}
.wig20-live__error[hidden],
.wig20-live__tooltip[hidden] { display: none; }
.wig20-live__footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.5;
}
.wig20-live__footer a { color: var(--text-muted); border-bottom: 1px solid var(--border-strong); }

@media (max-width: 900px) {
  .wig20-stage__layout { grid-template-columns: 1fr; }
  .wig20-stage__copy,
  .wig20-live { grid-column: 1; }
  .wig20-stage__copy h2 { max-width: 12ch; }
  .wig20-stage__summary { min-height: 0; }
}

@media (max-width: 600px) {
  .wig20-stage { padding-block: 78px; }
  .wig20-stage__copy h2 { font-size: clamp(45px, 13vw, 62px); }
  .wig20-live__head { display: block; }
  .wig20-live__quote { justify-content: flex-start; margin-top: 19px; }
  .wig20-live__meta { display: block; }
  .wig20-live__updated { margin-top: 4px; text-align: left; }
  .wig20-live__plot { min-height: 235px; margin-inline: -10px; }
  .wig20-live__footer { display: block; }
  .wig20-live__footer span { display: block; margin-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .wig20-live__ranges button::after { transition: none; }
}
