/* Homepage-only instrument: no framework, canvas or extra image download. */
.hub-motion {
  --hub-accent: #d0f178;
  --hub-line: rgba(208, 241, 120, .18);
  background: #090f13;
}
.hub-motion .home-hero-backdrop {
  opacity: .3;
  background-position: center;
  pointer-events: none;
}
.hub-motion::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #090f13 0%, rgba(9,15,19,.7) 45%, transparent 100%);
  pointer-events: none;
}
.hub-motion .home-hero-inner {
  z-index: 1;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: 42px 40px;
  padding-top: 140px;
  padding-bottom: 40px;
}
.hub-motion .home-hero-copy { position: relative; z-index: 2; }
.hub-motion .eyebrow { color: var(--hub-accent); letter-spacing: .13em; }
.hub-motion h1 { font-size: clamp(66px, 7.7vw, 112px); letter-spacing: -.055em; }
.hub-motion .hero-statement { font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -.04em; }
.hub-motion .hero-copy { max-width: 520px; color: #a7b0b8; }
.hub-motion .primary-action {
  background: var(--hub-accent);
  border-color: var(--hub-accent);
  color: #182315;
  box-shadow: none;
}
.hub-motion .primary-action:hover { background: #e0ff93; transform: translateY(-2px); }
.hub-motion .secondary-action { border-color: rgba(255,255,255,.24); background: transparent; }
.hub-motion .home-signal-strip span { border: 0; padding-left: 0; padding-right: 14px; background: transparent; color: #aab4ba; font-weight: 500; }
.hub-instrument { min-width: 0; position: relative; }
.hub-instrument-head, .hub-instrument-foot { display: flex; align-items: center; gap: 10px; }
.hub-instrument-head { justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.14); }
.hub-instrument-title { font: 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .2em; color: #ced6d8; }
.hub-motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
  color: #c3cbd1;
  font: inherit;
  font-size: 11px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 3px;
  cursor: pointer;
}
.hub-motion-toggle[hidden] { display: none; }
.hub-motion-toggle:hover { border-color: var(--hub-accent); color: var(--hub-accent); }
.hub-motion-toggle:focus-visible { outline: 2px solid var(--hub-accent); outline-offset: 4px; }
.hub-toggle-icon { width: 7px; height: 9px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.hub-motion-toggle[aria-pressed="true"] .hub-toggle-icon { width: 0; height: 0; border: 5px solid transparent; border-left: 7px solid currentColor; border-right: 0; }
.hub-wafer-stage { position: relative; aspect-ratio: 1.12; isolation: isolate; }
.hub-wafer-parallax { position: absolute; inset: 0; transform: translate3d(var(--hub-x, 0px), var(--hub-y, 0px), 0); transition: transform .3s ease-out; }
.hub-crosshair { position: absolute; opacity: .6; }
.hub-crosshair-x { height: 1px; left: 2%; right: 2%; top: 52%; background: linear-gradient(90deg, transparent, var(--hub-line), transparent); }
.hub-crosshair-y { width: 1px; top: 8%; bottom: 3%; left: 50%; background: linear-gradient(0deg, transparent, var(--hub-line), transparent); }
.hub-orbit { position: absolute; border-radius: 50%; animation: hub-orbit 34s linear infinite; animation-play-state: paused; }
.hub-orbit-outer { inset: 8% 7%; border: 1px dashed rgba(180,204,162,.25); }
.hub-orbit-outer::after { content: ""; position: absolute; top: 13%; left: 14%; width: 6px; height: 6px; background: var(--hub-accent); border-radius: 50%; box-shadow: 0 0 15px rgba(208,241,120,.6); }
.hub-orbit-inner { inset: 16% 14%; border: 1px solid rgba(208,241,120,.24); border-right-color: transparent; border-bottom-color: transparent; animation-direction: reverse; animation-duration: 22s; }
.hub-wafer-shadow { position: absolute; inset: 45% 14% 12%; border-radius: 50%; background: radial-gradient(ellipse, rgba(130,190,80,.19), transparent 67%); }
.hub-wafer-surface {
  position: absolute;
  inset: 14% 13%;
  overflow: hidden;
  border: 1px solid #8c9d78;
  border-radius: 50%;
  transform: perspective(800px) rotateX(42deg) rotateZ(-28deg);
  background: #1d2926;
  box-shadow: -1px 2px 0 #718369, -3px 6px 0 #3d5141, -4px 10px 0 #18271f, 0 24px 45px rgba(0,0,0,.5);
}
.hub-wafer-grid {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(208,241,120,.15) 48%, transparent 64%), repeating-linear-gradient(0deg, transparent 0 25px, rgba(177,200,159,.38) 25px 26px), repeating-linear-gradient(90deg, transparent 0 25px, rgba(177,200,159,.38) 25px 26px), linear-gradient(140deg, #162522, #3c4c3a 53%, #152522);
}
.hub-wafer-grid::after { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(208,241,120,.25); border-radius: 50%; }
.hub-wafer-scan {
  position: absolute;
  top: -55%;
  left: 0;
  width: 100%;
  height: 55%;
  border-bottom: 2px solid #e7ffb2;
  background: linear-gradient(0deg, rgba(208,241,120,.38), transparent 95%);
  box-shadow: 0 6px 18px rgba(208,241,120,.2);
  animation: hub-scan 5.8s cubic-bezier(.4,0,.2,1) infinite;
  animation-play-state: paused;
}
.hub-wafer-focus { position: absolute; inset: 38%; border: 1px solid rgba(220,255,150,.7); background: rgba(208,241,120,.06); }
.hub-process-node { position: absolute; display: flex; align-items: center; gap: 8px; font: 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: #b8c5b0; letter-spacing: .055em; }
.hub-process-node i { width: 6px; height: 6px; background: #d0f178; border-radius: 50%; animation: hub-node 5.8s ease-in-out infinite; animation-play-state: paused; }
.hub-node-one { top: 15%; left: 0; }
.hub-node-two { top: 33%; right: 0; }
.hub-node-three { bottom: 19%; right: 0; }
.hub-node-four { bottom: 29%; left: 0; }
.hub-node-two i { animation-delay: 1.45s; }
.hub-node-three i { animation-delay: 2.9s; }
.hub-node-four i { animation-delay: 4.35s; }
.hub-center-mark { position: absolute; left: 50%; top: 47%; transform: translate(-50%,-50%); color: #e6f4cc; font: italic 68px/1 Georgia, serif; text-shadow: 0 2px 20px #132011; }
.hub-stage-coordinate { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; color: #7e9184; }
.hub-coordinate-top { top: 3%; }
.hub-coordinate-bottom { bottom: 4%; }
.hub-instrument-foot { border-top: 1px solid rgba(255,255,255,.14); padding-top: 15px; color: #89978e; font-size: 10px; }
.hub-signal-dot { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--hub-accent); }
.hub-instrument-index { margin-left: auto; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hub-motion .home-review-board { grid-column: 1 / -1; display: block; border: 0; border-top: 1px solid rgba(255,255,255,.16); background: transparent; box-shadow: none; }
.hub-motion .review-board-head { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 16px; background: transparent; }
.hub-motion .review-board-head .review-status { margin: 0; font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--hub-accent); letter-spacing: .13em; }
.hub-motion .review-board-head strong { font-size: 13px; color: #aab8b2; }
.hub-motion .review-flow { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; background: transparent; }
.hub-motion .review-flow li { grid-template-columns: 28px minmax(0,1fr); gap: 10px; padding: 0; background: transparent; }
.hub-motion .review-flow li > span { width: auto; height: auto; justify-content: flex-start; align-items: flex-start; border: 0; border-radius: 0; padding-top: 1px; background: transparent; color: #809176; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.hub-motion .review-flow strong { font-size: 14px; }
.hub-motion .review-flow p { color: #82908a; font-size: 12px; }
.hub-motion[data-motion="running"] .hub-orbit,
.hub-motion[data-motion="running"] .hub-wafer-scan,
.hub-motion[data-motion="running"] .hub-process-node i { animation-play-state: running; }
.hub-motion[data-motion="reduced"] .hub-wafer-scan { display: none; }
@keyframes hub-orbit { to { transform: rotate(360deg); } }
@keyframes hub-scan { 0%, 10% { transform: translateY(0); opacity: 0; } 18% { opacity: 1; } 80% { opacity: 1; } 92%, 100% { transform: translateY(285%); opacity: 0; } }
@keyframes hub-node { 0%, 30%, 100% { opacity: .3; transform: scale(.8); } 12% { opacity: 1; transform: scale(1.5); } }
@media (max-width: 980px) {
  .hub-motion .home-hero-inner { grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: 36px 24px; padding-top: 116px; }
  .hub-motion h1 { font-size: clamp(56px,8vw,82px); }
  .hub-motion .hero-statement { font-size: 26px; }
  .hub-motion .hero-copy { font-size: 14px; }
  .hub-motion .home-signal-strip { gap: 2px; margin-top: 20px; }
  .hub-motion .review-flow { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
  .hub-process-node { font-size: 8px; gap: 5px; }
  .hub-instrument-index { display: none; }
}
@media (max-width: 700px) {
  .hub-motion .home-hero-inner { grid-template-columns: minmax(0,1fr); padding-top: 112px; gap: 32px; }
  .hub-motion .hero-statement { font-size: 27px; }
  .hub-motion h1 { font-size: clamp(66px,16vw,90px); }
  .hub-motion .hero-copy { font-size: 15px; }
  .hub-instrument { width: 100%; max-width: 470px; justify-self: center; }
  .hub-wafer-stage { aspect-ratio: 1.2; }
  .hub-wafer-surface { box-shadow: -1px 2px 0 #718369, -3px 6px 0 #3d5141, -4px 10px 0 #18271f; }
  .hub-process-node { font-size: 9px; }
  .hub-center-mark { font-size: 56px; }
  .hub-motion-toggle { min-height: 44px; padding-inline: 12px; }
  .hub-motion .review-board-head strong { font-size: 11px; }
  .hub-motion .review-flow { gap: 20px 16px; }
  .hub-motion .review-flow li { grid-template-columns: minmax(0,1fr); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-motion *, .hub-motion *::before, .hub-motion *::after { animation: none !important; transition: none !important; }
  .hub-wafer-parallax { transform: none; }
  .hub-wafer-scan { display: none; }
}
