/* ============================================================
   PRIMENESS: Field Survey page, "living sheet" (#sample, T-204)
   Each stop of the featured sheet plays its own scene on the drawing
   (assets/js/fs-live.js). Two layers:
     .fs-lv      SVG inside the camera, in sheet units (1632 x 1056),
                 so it zooms with the drawing
     .fs-lv-pop  HTML over the stage (above the dim), for the pieces
                 that lift off the paper: flip card, spreadsheet, fan,
                 gauge, floor plan
   Colors (DARK PAPER, 10/7): the sheet is the dark render (make_dark.py): paper #0F1013, ink #E8E8EC,
   lime stays lime. Highlights use 'screen' so the light text stays readable.
   ============================================================ */
.fs-lv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fs-lv text { font-family: var(--font-mono); font-weight: 700; }
.fs-lv .lv-d, .fs-lv .lv-odo-big, .fs-lv .lv-ylogo__mono, .fs-lv .lv-ylogo__word { font-family: var(--font-display); }
.fs-lv-pop { position: absolute; z-index: 4; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.fs-lv-pop > div { position: absolute; }        /* one layer per scene; it follows the camera (fs-live.js frame()) */
.fs-lv-pop > div > * { position: absolute; }
.fs-kx.is-lv-off .fs-lv *, .fs-kx.is-lv-off .fs-lv-pop * { animation-play-state: paused !important; }

/* shared bits */
.lv-mark { fill: var(--volt); fill-opacity: .55; mix-blend-mode: screen; }   /* highlighter on the dark paper */
.lv-chip rect { fill: #0A0A0B; stroke: var(--volt); stroke-width: 1.2; }
.lv-chip text { fill: #fff; font-size: 10.5px; letter-spacing: .06em; }
.lv-chip .lv-chip__k { fill: var(--volt); }
.lv-case { fill: none; stroke: #0A0A0B; stroke-linecap: round; stroke-linejoin: round; }
.lv-hot { fill: none; stroke: var(--volt); stroke-linecap: round; stroke-linejoin: round; }

/* 0. intro: the sheet draws itself */
.lv-bp__bg { fill: #0A0A0B; }
.lv-bp__grid { stroke: rgba(191,255,0,.07); stroke-width: .6; }
.lv-bp line, .lv-bp rect.lv-bp__s { fill: none; stroke: var(--volt); stroke-width: 1.5; }
.lv-bp .lv-bp__dim { stroke: rgba(191,255,0,.45); }
.lv-bp text { fill: var(--volt); font-size: 22px; letter-spacing: .12em; }

/* 1. every U */
.lv-u { fill: var(--volt); fill-opacity: 0; stroke: var(--volt); stroke-opacity: 0; stroke-width: 1; }
.lv-u.is-lit { fill-opacity: .16; stroke-opacity: .55; }
.lv-u--blank { fill: url(#lvHatch); fill-opacity: 1; stroke: none; }
.lv-beam__glow { fill: url(#lvBeamGlow); }
.lv-beam__line { stroke: var(--volt); stroke-width: 1.6; }
.lv-beam__hot { stroke: #0A0A0B; stroke-width: 4.5; stroke-linecap: round; }
.lv-beam__hot2 { stroke: var(--volt); stroke-width: 2.4; stroke-linecap: round; }
.lv-utag rect { fill: #0A0A0B; }
.lv-utag text { fill: var(--volt); font-size: 12px; }
.lv-blank-t { fill: #E8E8EC; font-size: 13px; letter-spacing: .12em; paint-order: stroke; stroke: #0F1013; stroke-width: 4px; stroke-linejoin: round; }
.lv-stamp rect { fill: #0A0A0B; stroke: var(--volt); stroke-width: 2; }
.lv-stamp .lv-stamp__big { fill: var(--volt); font-size: 26px; font-family: var(--font-display); }
.lv-stamp .lv-stamp__small { fill: #fff; font-size: 9.5px; letter-spacing: .1em; }

/* 2. real faces: the flip card */
.lv-flip { perspective: 1500px; pointer-events: none; }
.lv-flip.is-real { pointer-events: auto; cursor: crosshair; }
.lv-flip__in { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-style: preserve-3d; }
.lv-flip__face { position: absolute; left: 0; top: 0; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; border-radius: 4px; }
.lv-flip__paper { background-repeat: no-repeat; background-color: #0F1013; }
.lv-flip__real { transform: rotateY(180deg); background: #141418; box-shadow: 0 30px 70px -10px rgba(0,0,0,.65), 0 0 0 1px rgba(191,255,0,.35); }
.lv-flip__real > svg { display: block; width: 100%; height: 100%; }
.lv-flip__sheen { position: absolute; left: 0; top: 0; width: 60%; height: 100%; background: linear-gradient(100deg, transparent 0, rgba(191,255,0,.0) 30%, rgba(191,255,0,.28) 50%, rgba(255,255,255,0) 70%); transform: translateX(-120%); pointer-events: none; }
.lv-flip__hl { position: absolute; left: 0; top: 0; border: 2px solid var(--volt); border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 18px rgba(191,255,0,.75), inset 0 0 14px rgba(191,255,0,.35); opacity: 0;
  transition: transform .42s var(--ease-out), height .42s var(--ease-out), opacity .25s; pointer-events: none; }
.lv-flip__hl.is-on { opacity: 1; }
.lv-flip__tag { position: absolute; right: 8px; bottom: 8px; padding: 5px 8px; border-radius: 6px; background: rgba(10,10,11,.86); border: 1px solid rgba(191,255,0,.5);
  font: 700 10px/1 var(--font-mono); letter-spacing: .08em; color: var(--volt); white-space: nowrap; }

/* 3. power */
.lv-strip { fill: none; stroke-width: 2.4; }
.lv-strip--a { stroke: var(--volt); filter: drop-shadow(0 0 3px rgba(191,255,0,.9)); }
.lv-strip--b { stroke: #3D7BFF; filter: drop-shadow(0 0 3px rgba(61,123,255,.9)); }
.lv-flow { stroke-width: 2.2; stroke-dasharray: 3 9; stroke-linecap: round; animation: lvFlow .9s linear infinite; }
.lv-flow--a { stroke: var(--volt); }
.lv-flow--b { stroke: #8FB3FF; }
@keyframes lvFlow { to { stroke-dashoffset: -12; } }
.lv-br { fill: none; stroke-linecap: round; }
.lv-br--case { stroke: #0A0A0B; stroke-width: 3.6; }
.lv-br--a { stroke: var(--volt); stroke-width: 1.8; }
.lv-br--b { stroke: #3D7BFF; stroke-width: 1.8; }
.lv-node { stroke: #0A0A0B; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; }
.lv-node--a { fill: var(--volt); }
.lv-node--b { fill: #3D7BFF; }
.lv-pulse { fill: #fff; stroke: #0A0A0B; stroke-width: 1; }
.lv-tick { fill: none; stroke: #0A0A0B; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lv-tickbg { fill: var(--volt); stroke: #0A0A0B; stroke-width: .8; }

/* 4. schedule lifts off and turns into the spreadsheet */
.lv-ghost { background: #16181c; border: 1.5px dashed rgba(191,255,0,.45); border-radius: 3px; box-shadow: inset 0 6px 18px rgba(0,0,0,.6); opacity: 0; }
.lv-xl { transform-origin: 50% 60%; background: #0F1013; border-radius: 3px; box-shadow: 0 0 0 0 rgba(0,0,0,0); color: #E8E8EC; font-family: Inter, Arial, sans-serif; }
.lv-xl__bar { position: absolute; left: 0; top: 0; width: 100%; display: flex; align-items: center; background: #0A0A0B; border-left: solid var(--volt); overflow: hidden; }
.lv-xl__bar b, .lv-xl__bar span { position: absolute; left: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; transition: opacity .35s, transform .45s var(--ease-out); }
.lv-xl__bar b { font-family: var(--font-display); font-weight: 700; color: #F4F4F5; letter-spacing: .06em; }
.lv-xl__bar span { font-family: var(--font-mono); font-weight: 700; color: var(--volt); opacity: 0; transform: translateY(20%); }
.lv-xl.is-xl .lv-xl__bar b { opacity: 0; transform: translateY(-140%); }
.lv-xl.is-xl .lv-xl__bar span { opacity: 1; transform: translateY(-50%); }
.lv-xl__c { position: absolute; overflow: hidden; white-space: pre; border: .5px solid #484a4b; padding: 0 .35em; display: flex; align-items: center; line-height: 1.15; transition: border-color .4s, background-color .4s; }
.lv-xl__c.is-h { background: #192024; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border-color: #5c5f63; }
.lv-xl__c.is-m { font-family: var(--font-mono); }
.lv-xl.is-xl .lv-xl__c { border-color: #2c3036; }
.lv-xl.is-xl .lv-xl__c.is-h { background: #1c2210; color: var(--volt); }
.lv-xl__strip { position: absolute; display: flex; background: #16181c; color: #9a9aa2; font-family: var(--font-mono); font-weight: 700; opacity: 0; transition: opacity .35s, transform .5s var(--ease-out); }
.lv-xl__strip i { position: absolute; display: grid; place-items: center; font-style: normal; border: .5px solid #2c3036; }
.lv-xl__cols { transform: translateY(40%); }
.lv-xl__rows { transform: translateX(40%); }
.lv-xl__fx { position: absolute; display: flex; align-items: center; gap: .8em; background: #16181c; border: 1px solid #2c3036; border-radius: 3px; padding: 0 .6em; font-family: var(--font-mono); font-weight: 700; color: #E8E8EC;
  opacity: 0; transform: translateY(30%); transition: opacity .35s .1s, transform .5s .1s var(--ease-out); white-space: nowrap; }
.lv-xl__fx em { font-style: italic; color: #9a9aa2; }
.lv-xl__fx b { color: #0A0A0B; background: var(--volt); padding: .1em .4em; border-radius: 2px; }
.lv-xl.is-xl .lv-xl__strip, .lv-xl.is-xl .lv-xl__fx { opacity: 1; transform: none; }
.lv-xl__tab { position: absolute; padding: .25em .9em; background: #16181c; border: 1px solid #2c3036; border-top: 0; border-bottom: 2px solid var(--volt); font-family: var(--font-mono); font-weight: 700; white-space: nowrap; color: #E8E8EC;
  opacity: 0; transition: opacity .35s .2s; }
.lv-xl.is-xl .lv-xl__tab { opacity: 1; }
.lv-xl__cur { position: absolute; left: 0; top: 0; border: 2px solid #0A0A0B; outline: 2px solid var(--volt); outline-offset: 0; background: rgba(191,255,0,.22); opacity: 0;
  transition: transform .12s ease-out, opacity .2s; pointer-events: none; }
.lv-xl__cur.is-on { opacity: 1; }

/* 5. cord map */
.lv-arc { fill: none; stroke-linecap: round; }
.lv-arc--case { stroke: #0A0A0B; stroke-width: 3.4; }
.lv-arc--hot { stroke: var(--volt); stroke-width: 1.7; }

/* 6. your logo */
.lv-wipe { fill: #0F1013; }
.lv-scan { stroke: var(--volt); stroke-width: 2.4; filter: drop-shadow(0 0 4px rgba(191,255,0,.9)); }
.lv-drop { fill: rgba(191,255,0,.08); stroke: var(--volt); stroke-width: 1.2; stroke-dasharray: 5 4; animation: lvMarch 1s linear infinite; }
@keyframes lvMarch { to { stroke-dashoffset: -9; } }
.lv-drop-t { fill: var(--volt); font-size: 9px; letter-spacing: .16em; }
.lv-ylogo__mark { fill: #16181c; stroke: var(--volt); stroke-width: 1.4; }
.lv-ylogo__mono { fill: var(--volt); font-size: 19px; font-family: var(--font-display); }
.lv-ylogo__word { fill: #F4F4F5; font-size: 21px; font-family: var(--font-display); letter-spacing: .02em; }
.lv-ylogo__sub { fill: #9a9aa2; font-size: 7px; letter-spacing: .32em; }
.lv-co { fill: #E8E8EC; font-family: Inter, Arial, sans-serif !important; font-weight: 600 !important; letter-spacing: .02em; }
.lv-co--b { font-weight: 700 !important; }
.lv-caret { fill: var(--volt); animation: lvBlink .8s steps(2) infinite; }
@keyframes lvBlink { 50% { opacity: 0; } }

/* 7. sign-off */
.lv-pen { fill: none; stroke: #9DBBFF; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lv-nib { fill: #9DBBFF; }
.lv-ink { fill: #9DBBFF; font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive !important; font-weight: 400 !important; font-size: 9px; }
.lv-ink--d { font-family: var(--font-mono) !important; font-weight: 700 !important; font-size: 7px; fill: #E8E8EC; }
.lv-ok rect { fill: rgba(191,255,0,.14); stroke: var(--volt); stroke-width: 2.4; }
.lv-ok .lv-ok__in { fill: none; stroke: var(--volt); stroke-width: .9; }
.lv-ok text { fill: var(--volt); }
.lv-ok .lv-ok__big { font-size: 25px; font-family: var(--font-display); letter-spacing: .08em; }
.lv-ok .lv-ok__small { font-size: 8px; letter-spacing: .2em; }

/* 8. sheet number: the set fans out */
.lv-odo { fill: #0A0A0B; }
.lv-odo-t { fill: var(--volt); font-size: 7.5px; letter-spacing: .04em; }
.lv-odo-big { fill: #fff; font-size: 40px; font-family: var(--font-display); }
.lv-fan { pointer-events: none; }
.lv-fan.is-over { background: rgba(10,10,11,.78); }
.lv-fan.is-over .lv-fan__count b { font-size: 40px; }
.lv-fan.is-over .lv-fan__count span { font-size: 9.5px; margin-top: 3px; }
.lv-fan.is-over .lv-fan__card b { left: 3px; bottom: 3px; padding: 2px 3px; font-size: 7.5px; }
.lv-fan.is-over .lv-fan__card span { font-size: 7px; }
.lv-fan__card { position: absolute; left: 0; top: 0; border-radius: 4px; overflow: hidden; background: #0F1013; box-shadow: 0 14px 30px -8px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.25); transform-origin: 50% 100%; }
.lv-fan__card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lv-fan__card b { position: absolute; left: 5px; bottom: 5px; padding: 3px 5px; border-radius: 3px; background: #0A0A0B; color: #fff; font: 700 10px/1 var(--font-mono); letter-spacing: .04em; white-space: nowrap; }
.lv-fan__card span { display: block; margin-top: 2px; font: 600 9px/1.1 var(--font-display); color: #c4c4cb; letter-spacing: 0; }
.lv-fan__card.is-here { box-shadow: 0 0 0 2.5px var(--volt), 0 0 30px rgba(191,255,0,.55), 0 18px 34px -8px rgba(0,0,0,.75); }
.lv-fan__card.is-here b { background: var(--volt); color: #0A0A0B; }
.lv-fan__card.is-here span { color: #0A0A0B; }
.lv-fan__count { position: absolute; left: 0; top: 0; text-align: center; white-space: nowrap; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.9); }
.lv-fan__count.is-side { text-align: left; }
.lv-fan__count b { display: block; font: 700 64px/1 var(--font-display); color: var(--volt); letter-spacing: -.03em; }
.lv-fan__count span { display: block; margin-top: 6px; font: 700 11px/1.2 var(--font-mono); letter-spacing: .12em; }

/* 9. RU use */
.lv-blk { stroke: #0F1013; stroke-width: .6; }
.lv-blk--o { fill: #C3C6CE; }
.lv-blk--b { fill: url(#lvHatchG); }
.lv-blk-top { fill: var(--volt); }
.lv-ru-flash { fill: var(--volt); mix-blend-mode: screen; }
.lv-gauge { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 14px; background: rgba(10,10,11,.92); border: 1px solid rgba(191,255,0,.45);
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.8), 0 0 30px -8px rgba(191,255,0,.45); color: #fff; white-space: nowrap; }
.lv-gauge.is-small { transform-origin: 0 0; scale: .62; }
.lv-gauge svg { flex: none; display: block; }
.lv-gauge__track { fill: none; stroke: rgba(255,255,255,.12); }
.lv-gauge__arc { fill: none; stroke: var(--volt); stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(191,255,0,.7)); }
.lv-gauge__pct { fill: #fff; font: 700 21px var(--font-display); }
.lv-gauge ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font: 600 12.5px/1.2 var(--font-display); }
.lv-gauge li { display: flex; align-items: center; gap: 8px; }
.lv-gauge li i { flex: none; width: 12px; height: 12px; border-radius: 3px; }
.lv-gauge li b { font-family: var(--font-mono); color: var(--volt); }

/* 10. where the rack sits */
.lv-plan { pointer-events: none; }
.lv-plan svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lv-plan__floor { fill: rgba(16,17,20,.94); stroke: rgba(255,255,255,.12); stroke-width: 1; }
.lv-plan__tile { stroke: rgba(255,255,255,.05); stroke-width: 1; fill: none; }
.lv-plan__cold { fill: rgba(61,123,255,.16); stroke: rgba(61,123,255,.5); stroke-width: 1; stroke-dasharray: 4 4; }
.lv-plan__rear { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.14); stroke-width: 1; stroke-dasharray: 4 4; }
.lv-plan__top { fill: #3a3e46; stroke: #0A0A0B; stroke-width: .8; }
.lv-plan__left { fill: #24272d; stroke: #0A0A0B; stroke-width: .8; }
.lv-plan__right { fill: #2d3138; stroke: #0A0A0B; stroke-width: .8; }
.lv-plan__front { fill: #1b1d22; stroke: #0A0A0B; stroke-width: .8; }
.lv-plan__led { fill: var(--volt); opacity: .55; }
.lv-plan__rack.is-here .lv-plan__top { fill: var(--volt); }
.lv-plan__rack.is-here .lv-plan__left { fill: #6f9600; }
.lv-plan__rack.is-here .lv-plan__right, .lv-plan__rack.is-here .lv-plan__front { fill: #8bb800; }
.lv-plan__rack.is-here { filter: drop-shadow(0 0 14px rgba(191,255,0,.65)); }
.lv-plan__id { fill: rgba(255,255,255,.75); font: 700 10px var(--font-mono); }
.lv-plan__rack.is-here .lv-plan__id { fill: #0A0A0B; }
.lv-plan__lab { fill: #fff; font: 700 11px var(--font-mono); letter-spacing: .1em; }
.lv-plan__lab--cold { fill: #8FB3FF; }
.lv-plan__lab--dim { fill: rgba(255,255,255,.5); }
.lv-plan__call rect { fill: #0A0A0B; stroke: var(--volt); stroke-width: 1.2; }
.lv-plan__call text { fill: #fff; font: 700 11px var(--font-mono); letter-spacing: .06em; }
.lv-plan__call .lv-plan__k { fill: var(--volt); }
.lv-plan__lead { stroke: var(--volt); stroke-width: 1.4; fill: none; }
.lv-air { fill: #8FB3FF; }
@keyframes lvAir { 0% { transform: translate(0, 0); opacity: 0; } 18% { opacity: .95; } 82% { opacity: .95; } 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
.lv-air--hot { fill: #FF8A3D; }

@media (prefers-reduced-motion: reduce) {
  .lv-flow, .lv-drop, .lv-caret { animation: none; }
  .lv-flip__hl, .lv-xl__bar b, .lv-xl__bar span, .lv-xl__c, .lv-xl__strip, .lv-xl__fx, .lv-xl__tab, .lv-xl__cur { transition: none !important; }
}
