/* onprem: line-art cross-section, streams into the DeepView server inside a blue boundary. */
.op-head { max-width: 860px; margin: 0 auto; display: grid; justify-items: center; gap: 22px; }
.op-head__sub { max-width: 560px; }

.op-card { position: relative; margin: clamp(52px, 6vw, 84px) 0 0; border-radius: 10px; background: radial-gradient(70% 90% at 80% 70%, rgba(61, 111, 245, 0.07), rgba(61, 111, 245, 0) 70%), linear-gradient(180deg, #111111, #0d0d0d); border: 1px solid var(--line); overflow: hidden; }
.op-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(80% 80% at 50% 45%, #000 40%, transparent 100%); -webkit-mask-image: radial-gradient(80% 80% at 50% 45%, #000 40%, transparent 100%); }
.op-scroll { position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.op-scroll::-webkit-scrollbar { display: none; }
.op-stage { padding: clamp(16px, 2.4vw, 34px) clamp(12px, 2vw, 30px) 6px; }
.op-svg { width: 100%; height: auto; display: block; overflow: visible; }
.op-hint { display: none; }

/* text */
.op-t { font: 500 11px/1 var(--f-mono); letter-spacing: 0.12em; fill: rgba(255, 255, 255, 0.55); }
.op-t--dim { fill: rgba(255, 255, 255, 0.32); font-size: 10.5px; }
.op-t--blue { fill: #8fb2ff; font-size: 10.5px; }
.op-t--title { font: 500 15px/1 var(--f-body); letter-spacing: -0.01em; fill: #fff; }
.op-t--room { fill: rgba(255, 255, 255, 0.4); letter-spacing: 0.16em; }
.op-t--cap { fill: rgba(255, 255, 255, 0.6); font-size: 10px; letter-spacing: 0.1em; }

/* draw-on: visible at rest as faint lines, drawn in full when the card is in view */
.op-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .op-card:not(.is-drawn) .op-draw { stroke-dashoffset: 0.82; }
.op-card .op-draw { transition: stroke-dashoffset 1.8s var(--ease-out); }
.op-card .op-boundary .op-draw { transition-duration: 2.4s; }
.op-thumbs, .op-cams, .op-srv, .op-t, .op-out { transition: opacity 1s var(--ease-out) .6s; }
.js .op-card:not(.is-drawn) .op-thumbs, .js .op-card:not(.is-drawn) .op-cams, .js .op-card:not(.is-drawn) .op-out { opacity: .25; }

/* streams */
.op-stream { stroke: rgba(110, 147, 247, 0.16); stroke-width: 1.2; transition: stroke .3s var(--ease), stroke-width .3s var(--ease); }
.op-stream.is-on { stroke: rgba(110, 147, 247, 0.85); stroke-width: 1.8; }
.op-svg.has-focus .op-stream:not(.is-on) { stroke: rgba(110, 147, 247, 0.07); }
.op-cam { cursor: pointer; outline: none; }
.op-cam rect, .op-cam path { transition: stroke .2s var(--ease); }
.op-cam.is-on rect:nth-of-type(2) { stroke: #8fb2ff; }
.op-cam:focus-visible rect:first-child { stroke: #8fb2ff; stroke-width: 1; }
.op-thumb { cursor: pointer; transition: opacity .3s var(--ease); }
.op-svg.has-focus .op-thumb:not(.is-on) { opacity: .35; }
.op-thumb.is-on > rect:nth-of-type(1) { stroke: #8fb2ff; }
.op-rec { animation: op-rec 1.6s steps(1) infinite; }
@keyframes op-rec { 50% { opacity: .2; } }
.op-scanline { animation: op-scan 3.6s linear infinite; }
@keyframes op-scan { from { transform: translateY(0); } to { transform: translateY(var(--h, 74px)); } }
.op-led { transition: opacity .2s; }
.op-led--hit { animation: op-led .5s var(--ease-out); }
@keyframes op-led { 0% { opacity: 1; filter: drop-shadow(0 0 4px #8fb2ff); } 50% { opacity: .35; } 100% { opacity: 1; } }
.op-srvglow { animation: op-breathe 4s var(--ease) infinite; transform-origin: 1035px 440px; }
@keyframes op-breathe { 50% { opacity: .65; } }

/* boundary bump */
.op-boundary rect:first-child { transition: stroke .4s var(--ease), stroke-width .4s var(--ease); }
.op-boundary.is-hit rect:first-child { stroke: rgba(110, 147, 247, 0.4); stroke-width: 12; }
.op-stay { opacity: 0; transition: opacity .4s var(--ease); }
.op-stay.on { opacity: 1; }

/* facts */
.op-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.op-fact { padding: 24px 26px 28px; display: grid; gap: 8px; align-content: start; }
.op-fact + .op-fact { border-left: 1px solid var(--line); }
.op-fact__n { color: var(--blue-2); font-size: 11.5px; letter-spacing: 0.1em; }
.op-fact__t { color: var(--fg); font-size: 17px; font-weight: 400; letter-spacing: -0.01em; }
.op-fact__b { color: var(--mist); font-size: 14px; line-height: 1.55; max-width: 34ch; }

@media (max-width: 860px) {
  .op-stage { width: 900px; padding: 18px 12px 4px; }
  .op-hint { display: flex; justify-content: flex-end; gap: 6px; padding: 4px 16px 12px; color: var(--mist); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; transition: opacity .4s var(--ease); }
  .op-hint span { display: inline-block; animation: op-nudge 1.6s var(--ease) infinite; }
  .op-card.is-swiped .op-hint { opacity: 0; }
  .op-facts { grid-template-columns: minmax(0, 1fr); }
  .op-fact + .op-fact { border-left: 0; border-top: 1px solid var(--line); }
  .op-fact { padding: 20px 18px 22px; }
}
@keyframes op-nudge { 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) {
  .op-card .op-draw { stroke-dashoffset: 0 !important; }
  .op-rec, .op-scanline, .op-srvglow { animation: none; }
}
