.hardware-section {
  --hw-sticky-top: 70px;
  padding: 112px 0 0;
  color: var(--ink, #0f172a);
  background: var(--page, #fff);
  border-top: 1px solid var(--line, #e2e8f0);
  scroll-margin-top: var(--hw-sticky-top);
}

.hw-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 70px; margin-bottom: 54px; }
.hw-intro .eyebrow { margin: 0 0 25px; font-size: 13px; }
.hw-intro .section-title { max-width: 760px; }
.hw-intro .section-lead { margin: 0; max-width: 480px; font-size: 18px; line-height: 1.65; }
.hw-scroll-track { position: relative; height: 380svh; border-top: 1px solid var(--line, #e2e8f0); }
.hardware-section[data-hw-state='pending'] .hw-scroll-track,
.hardware-section[data-hw-state='invalid'] .hw-scroll-track,
.hardware-section[data-hw-state='unavailable'] .hw-scroll-track { height: 130svh; }

.hw-sticky {
  position: sticky;
  top: var(--hw-sticky-top);
  height: calc(100svh - var(--hw-sticky-top));
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 20px 0 18px;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-soft, #f8fafc);
}

.hw-sticky:focus-visible { outline: 1px solid var(--muted, #64748b); outline-offset: -8px; }
.hw-stage-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 24px; color: var(--muted, #64748b); font-size: 13px; letter-spacing: .08em; }
.hw-stage-kicker::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--sky, #0ea5e9); }
.hw-load-status { max-width: 50%; text-align: right; letter-spacing: 0; }

.hw-media {
  position: relative;
  align-self: stretch;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  min-height: 0;
  margin: auto;
  overflow: clip;
  background: var(--surface, #fff);
  border: 0;
  border-radius: 24px;
  box-shadow: none;
}

.hw-media > video,
.hw-media > [data-hw-terminal] { position: absolute; max-width: none; object-fit: fill; background: #f8fafc; }
.hw-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg,
    var(--surface, #fff) 0%,
    color-mix(in srgb, var(--surface, #fff) 92%, transparent) 10%,
    color-mix(in srgb, var(--surface, #fff) 58%, transparent) 22%,
    transparent 34%,
    transparent 66%,
    color-mix(in srgb, var(--surface, #fff) 58%, transparent) 78%,
    color-mix(in srgb, var(--surface, #fff) 92%, transparent) 90%,
    var(--surface, #fff) 100%);
}
.hw-media > [hidden], .hw-pending[hidden], .hw-hotspots[hidden] { display: none !important; }
.hw-pending { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--surface-soft, #f8fafc); }
.hw-pending-art { position: relative; height: 108%; aspect-ratio: 1152 / 1376; opacity: .48; filter: saturate(.25) contrast(.9); transform: translateY(8%); }
.hw-pending-art img { width: 100%; height: 100%; object-fit: contain; }
.hw-neutral-screen { position: absolute; left: 31.5%; top: 43.2%; width: 55.5%; height: 27.8%; border-radius: 5%; background: #17202b; }
.hw-neutral-screen::after { content: 'ARVIOS'; position: absolute; inset: 45% 0 auto; color: rgba(255,255,255,.5); font-size: 13px; font-weight: 650; letter-spacing: .18em; text-align: center; }
.hw-pending-copy { position: absolute; left: 24px; bottom: 22px; display: flex; flex-direction: column; gap: 6px; max-width: min(430px, calc(100% - 48px)); padding: 14px 17px; background: var(--surface, #fff); border: 1px solid var(--line, #e2e8f0); }
.hw-pending-copy strong { font-size: 15px; font-weight: 650; }
.hw-pending-copy span { color: var(--muted, #64748b); font-size: 13px; line-height: 1.55; }

.hw-hotspots { position: absolute; inset: 0; z-index: 3; }
.hw-callout-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hw-callout-lines path { fill: none; stroke: var(--sky, #0ea5e9); stroke-width: .85; vector-effect: non-scaling-stroke; opacity: .44; }
.hw-callout-lines path.is-active { stroke: var(--rose, #f43f5e); stroke-width: 1.15; opacity: .78; }
.hw-callout-marker { position: absolute; width: 44px; height: 44px; padding: 0; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.hw-callout-marker::before { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%); border: 1.5px solid var(--surface, #fff); border-radius: 50%; background: var(--sky, #0ea5e9); }
.hw-callout-marker:focus-visible { outline: none; }
.hw-callout-marker:focus-visible::before,
.hw-callout.is-active .hw-callout-marker::before { width: 11px; height: 11px; background: var(--rose, #f43f5e); }
.hw-callout-label { position: absolute; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; min-height: 34px; padding: 5px 10px 5px 22px; color: var(--ink, #0f172a); background: transparent; border: 0; cursor: pointer; }
.hw-callout-label::before { content: ''; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; transform: translateY(-50%); border-radius: 50%; background: var(--sky, #0ea5e9); }
.hw-callout-label strong { display: -webkit-box; overflow: hidden; font-size: 16px; font-weight: 550; line-height: 1.2; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hw-callout-label small { color: var(--muted, #64748b); font-size: 14px; line-height: 1.2; }
.hw-callout.is-active .hw-callout-label::before { background: var(--rose, #f43f5e); }
.hw-callout { opacity: 0; animation: hw-callout-enter .32s ease-out forwards; animation-delay: calc(var(--callout-order) * 28ms); }
@keyframes hw-callout-enter { from { opacity: 0; } to { opacity: 1; } }

.hw-progress { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto minmax(220px, auto); align-items: center; gap: 13px; min-height: 30px; color: var(--muted, #64748b); font-size: 13px; letter-spacing: .08em; }
.hw-progress i { position: relative; height: 1px; overflow: hidden; background: var(--line, #cbd5e1); }
.hw-progress b { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: var(--sky, #0ea5e9); }
.hw-progress p { margin: 0; color: var(--muted, #64748b); font-size: 13px; letter-spacing: 0; text-align: right; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1050px) {
  .hw-intro { gap: 45px; }
  .hw-intro .section-lead { max-width: 400px; font-size: 17px; }
  .hw-media { width: calc(100% - 20px); }
}

@media (max-width: 760px) {
  .hardware-section { --hw-sticky-top: 62px; padding-top: 76px; }
  .hw-intro { display: block; margin-bottom: 38px; }
  .hw-intro .section-lead { margin-top: 24px; max-width: 100%; font-size: 17px; }
  .hw-scroll-track { height: 360svh; }
  .hw-sticky { gap: 10px; padding: 14px 0 12px; }
  .hw-stage-head { width: calc(100% - 32px); font-size: 13px; }
  .hw-load-status { max-width: 56%; line-height: 1.35; }
  .hw-media { width: calc(100% - 12px); }
  .hw-pending-copy { left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 11px 13px; }
  .hw-progress { width: calc(100% - 32px); grid-template-columns: auto 1fr auto; }
  .hw-progress p { grid-column: 1 / -1; text-align: center; }
  .hw-callout-label { padding: 5px 8px 5px 20px; }
  .hw-callout-label::before { left: 7px; width: 5px; height: 5px; }
  .hw-callout-label strong { font-size: 14px; }
  .hw-callout-label small { font-size: 13px; }
}

@media (max-width: 699px) {
  .hw-media::after { inset: 0 0 auto; height: 48%; }
}

@media (max-height: 520px) and (min-width: 700px) {
  .hw-sticky { gap: 5px; padding: 7px 0 6px; }
  .hw-stage-head { min-height: 18px; font-size: 13px; }
  .hw-progress { min-height: 22px; }
  .hw-callout-label { padding: 0 7px 0 20px; }
  .hw-callout-label strong { font-size: 14px; }
  .hw-callout-label small { display: none; }
}

@media (max-width: 619px) {
  .hardware-section { --hw-sticky-top: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .hw-scroll-track { height: auto; }
  .hw-sticky { position: relative; top: 0; min-height: calc(100svh - var(--hw-sticky-top)); }
  .hw-callout { opacity: 1; animation: none; }
}

:root[data-theme='dark'] .hw-media > video,
:root[data-theme='dark'] .hw-media > [data-hw-terminal] { filter: brightness(.78); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .hw-media > video,
  :root:not([data-theme]) .hw-media > [data-hw-terminal] { filter: brightness(.78); }
}
