.gpu-efficiency {
  position: relative;
  z-index: 3;
  height: 330vh;
  min-height: 2200px;
  background: var(--paper);
}

.gpu-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

.gpu-stage {
  --gpu-scale-x: .947;
  --gpu-scale-y: .917;
  --gpu-radius: 26px;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(47,206,150,.28);
  border-radius: var(--gpu-radius);
  background:
    radial-gradient(circle at 77% 62%,rgba(47,206,150,.13),transparent 27%),
    radial-gradient(circle at 42% 28%,rgba(247,245,240,.035),transparent 24%),
    #070a08;
  color: var(--paper);
  box-shadow: 0 28px 90px rgba(20,20,20,.22),0 2px 0 rgba(247,245,240,.05) inset;
  transform: translateZ(0) scale(var(--gpu-scale-x),var(--gpu-scale-y));
  transform-origin: center;
  will-change: transform,border-radius;
}

.gpu-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg,transparent 0 47%,rgba(47,206,150,.045) 50%,transparent 53% 100%);
  transform: translateX(calc(var(--gpu-scan,0) * 120% - 110%));
}

.gpu-stage::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 150px rgba(0,0,0,.46);
}

.gpu-grid {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .62;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(223,245,236,.042) 1px,transparent 1px),
    linear-gradient(90deg,rgba(223,245,236,.042) 1px,transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 72% 64%,#000 0 28%,rgba(0,0,0,.72) 55%,transparent 88%);
}

.gpu-copy {
  position: absolute;
  z-index: 3;
  top: clamp(88px,10.5vh,122px);
  left: clamp(28px,5vw,76px);
  right: clamp(28px,5vw,76px);
  pointer-events: none;
}

.gpu-copy .mono-label {
  display: block;
  margin-bottom: 19px;
  color: var(--mint);
}

.gpu-copy h2 {
  max-width: 1080px;
  font: 500 clamp(52px,6.15vw,92px)/.91 "IBM Plex Serif",serif;
  letter-spacing: -.055em;
}

.gpu-copy h2 em { color: var(--mint); font-weight: 400; }

.gpu-copy p {
  max-width: 650px;
  margin-top: 21px;
  color: #9ea9a3;
  font: 400 clamp(13px,1.1vw,16px)/1.62 "IBM Plex Sans",sans-serif;
}

.gpu-payoff {
  display: block;
  margin-top: 12px;
  color: var(--mint);
  font: 500 9px/1.5 "IBM Plex Mono",monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.gpu-instrument {
  position: absolute;
  z-index: 3;
  left: clamp(28px,5vw,76px);
  right: clamp(28px,5vw,76px);
  top: clamp(350px,42vh,430px);
  bottom: clamp(30px,5vh,54px);
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(247,245,240,.17);
  border-radius: 13px;
  background: rgba(4,7,5,.78);
  box-shadow: 0 24px 80px rgba(0,0,0,.32),0 0 0 1px rgba(47,206,150,.045) inset;
  backdrop-filter: blur(12px);
}

.gpu-instrument::after {
  content: "";
  position: absolute;
  inset: 44px 0 39px;
  pointer-events: none;
  background: linear-gradient(100deg,transparent 58%,rgba(47,206,150,.028),transparent 72%);
}

.gpu-instrument-head,
.gpu-instrument-foot {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  color: #7d8c85;
  font: 500 8px/1 "IBM Plex Mono",monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gpu-instrument-head {
  top: 0;
  height: 44px;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(247,245,240,.12);
}

.gpu-instrument-head b {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--mint);
  font-weight: 500;
}

.gpu-instrument-head i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(47,206,150,.1),0 0 17px rgba(47,206,150,.52);
  animation: gpu-status-pulse 1.8s ease-in-out infinite;
}

@keyframes gpu-status-pulse {
  50% { box-shadow: 0 0 0 8px rgba(47,206,150,.025),0 0 26px rgba(47,206,150,.78); }
}

.gpu-instrument-foot {
  bottom: 0;
  min-height: 39px;
  gap: 18px;
  padding: 0 16px;
  border-top: 1px solid rgba(247,245,240,.12);
  background: rgba(4,7,5,.74);
}

.gpu-instrument-foot b {
  margin-left: auto;
  color: var(--mint);
  font-weight: 500;
}

#gpu-canvas {
  position: absolute;
  z-index: 1;
  inset: 44px 0 39px;
  width: 100%;
  height: calc(100% - 83px);
}

@media (max-width: 900px) {
  .gpu-efficiency { height: 300vh; min-height: 2100px; }
  .gpu-stage { --gpu-scale-x: .95; --gpu-scale-y: .975; --gpu-radius: 19px; display: flex; flex-direction: column; }
  .gpu-copy { position: static; flex: 0 0 auto; margin: 82px 18px 0; }
  .gpu-copy .mono-label { margin-bottom: 15px; }
  .gpu-copy h2 { max-width: 520px; font-size: clamp(48px,13.5vw,66px); }
  .gpu-copy p { max-width: 520px; margin-top: 17px; font-size: 13px; }
  .gpu-instrument { position: relative; inset: auto; flex: 1 1 auto; min-height: 230px; margin: 20px 14px 24px; }
  .gpu-instrument-foot { gap: 12px; }
  .gpu-instrument-foot span:nth-of-type(n+2) { display: none; }
}

@media (max-width: 540px) {
  .gpu-copy { margin-top: 76px; }
  .gpu-copy h2 { font-size: clamp(46px,13vw,54px); }
  .gpu-copy p { max-width: 345px; line-height: 1.52; }
  .gpu-instrument { margin: 16px 14px 22px; }
  .gpu-instrument-head { padding: 0 12px; }
  .gpu-instrument-head > span:first-child { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gpu-instrument-foot { padding: 0 12px; font-size: 7px; }
}

@media (max-width: 900px) and (max-height: 520px) {
  .gpu-stage { flex-direction: row; align-items: stretch; }
  .gpu-copy { flex: 0 0 44%; align-self: center; margin: 70px 10px 20px 18px; }
  .gpu-copy h2 { font-size: 34px; }
  .gpu-copy p { margin-top: 12px; font-size: 12px; }
  .gpu-instrument { margin: 64px 14px 16px 0; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .gpu-stage::before { transform: translateX(0); }
  .gpu-instrument-head i { animation: none; }
}
