/* ==========================================================
   CELL Lighting — 서브페이지(제품 / 시스템) 스타일
   style.css 의 변수·헤더·버튼·섹션 공통 스타일 위에 얹어 씁니다.
   ========================================================== */

svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.subpage main { min-height: 70vh; }
.subpage .section { padding: 100px 0; }
.sub, .mhead + .mgrid .sub {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 16px;
}
.more { color: var(--muted); font-size: 0.92rem; transition: color 0.3s; }
.more:hover { color: var(--accent); }
.empty { color: var(--muted); }
.empty a { color: #fff; border-bottom: 1px solid var(--accent); }

/* ---------- Page hero ---------- */
.phero { position: relative; padding: 170px 0 80px; overflow: hidden; border-bottom: 1px solid var(--line); }
.phero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 88% 0%, rgba(255, 90, 31, 0.22), transparent 55%);
}
.phero__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1.6px, transparent 2.2px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse at 82% 25%, #000 0, transparent 62%);
  mask-image: radial-gradient(ellipse at 82% 25%, #000 0, transparent 62%);
  animation: drift 24s linear infinite;
}
@keyframes drift { to { background-position: 34px 34px; } }
.phero__inner { position: relative; z-index: 1; }
.phero__title { font-size: clamp(3rem, 8vw, 6.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 24px; }
.phero__sub { color: #b8b8c0; font-size: clamp(1rem, 1.5vw, 1.2rem); margin-bottom: 40px; max-width: 640px; }

/* ---------- Segmented toggle ---------- */
.seg { display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.seg__btn {
  padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: #c4c4cc;
  display: inline-flex; align-items: baseline; gap: 8px; transition: background 0.3s var(--ease), color 0.3s;
}
.seg__btn small { font-weight: 400; font-size: 0.74rem; opacity: 0.7; }
.seg__btn:hover { color: #fff; }
.seg__btn.is-active { background: var(--accent); color: #fff; box-shadow: 0 8px 30px -8px var(--accent-glow); }

.view[hidden], .sysview[hidden], .npanel[hidden], .mpanel[hidden] { display: none; }
.view.is-active, .sysview.is-active { animation: fadeUp 0.6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Product hub: categories ---------- */
.pview { padding-top: 70px !important; }
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cat {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line); transition: border-color 0.4s, transform 0.5s var(--ease);
}
.cat:hover { border-color: rgba(255, 90, 31, 0.45); transform: translateY(-4px); }
.cat__media { position: relative; aspect-ratio: 16 / 7.5; background: #e4e4e7; overflow: hidden; }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cat:hover .cat__media img { transform: scale(1.05); }
.cat__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18, 18, 22, 0.9)); }
.cat__body { padding: 8px 28px 26px; margin-top: -30px; position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; }
.cat__icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem;
  background: rgba(255, 90, 31, 0.14); color: var(--accent); border: 1px solid rgba(255, 90, 31, 0.3); margin-bottom: 16px;
}
.cat h3 { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; }
.cat h3 small { font-size: 0.82rem; font-weight: 400; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.cat__body > p { color: #a8a8b0; font-size: 0.93rem; margin: 10px 0 20px; }
.cat__series { margin-top: auto; border-top: 1px solid var(--line); }
.cat__series a {
  display: grid; grid-template-columns: 90px 1fr 24px; align-items: center; gap: 12px;
  padding: 15px 4px; border-bottom: 1px solid var(--line); transition: color 0.3s, padding 0.3s var(--ease);
}
.cat__series li:last-child a { border-bottom: 0; padding-bottom: 0; }
.cat__series strong { font-size: 1.05rem; letter-spacing: 0.04em; }
.cat__series span { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.cat__series i { color: var(--muted); transition: transform 0.3s var(--ease), color 0.3s; }
.cat__series a:hover { color: var(--accent); padding-left: 10px; }
.cat__series a:hover i { color: var(--accent); transform: translateX(4px); }

.ctlbanner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin-top: 20px; padding: 44px 48px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(ellipse at 100% 50%, rgba(255, 90, 31, 0.18), transparent 60%), var(--bg-2);
  transition: border-color 0.4s;
}
.ctlbanner:hover { border-color: rgba(255, 90, 31, 0.5); }
.ctlbanner h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; margin: 6px 0 10px; }
.ctlbanner p:not(.section__label) { color: #a8a8b0; margin-bottom: 24px; }
.ctlbanner__diagram { display: flex; align-items: center; justify-content: center; gap: 0; }
.ctlbanner__diagram span {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem;
  background: var(--bg); border: 1px solid rgba(255, 255, 255, 0.14); color: #e4e4e7;
}
.ctlbanner__diagram span:last-child { color: var(--accent); border-color: rgba(255, 90, 31, 0.5); }
.ctlbanner__diagram i { width: 34px; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,.12), var(--accent), rgba(255,255,255,.12)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Product hub: system view ---------- */
.srows { display: grid; gap: 20px; }
.srow { padding: 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.srow__title { font-size: 0.8rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.srow__flow { display: flex; align-items: stretch; gap: 10px; }
.srow__arrow { align-self: center; color: var(--muted); font-size: 1.3rem; }
.scard {
  flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 14px; border-radius: 16px;
  background: var(--bg); border: 1px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.3s;
}
a.scard:hover { transform: translateY(-5px); border-color: rgba(255, 90, 31, 0.5); }
.scard__img { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #ececef; margin-bottom: 14px; }
.scard__img img { width: 100%; height: 100%; object-fit: cover; }
.scard__step { font-size: 0.68rem; letter-spacing: 0.18em; color: var(--accent); font-weight: 600; text-transform: uppercase; margin-bottom: 4px; }
.scard strong { font-size: 1.1rem; }
.scard p { color: var(--muted); font-size: 0.82rem; line-height: 1.5; margin-top: 4px; }
.scard--end { justify-content: center; text-align: center; max-width: 170px; border-style: dashed; }
.pview__more { margin-top: 28px; text-align: right; }
.pview__more a { color: #fff; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* ---------- Model finder ---------- */
.finder { background: linear-gradient(180deg, var(--bg), var(--bg-2) 25%, var(--bg-2) 80%, var(--bg)); }
.fbar { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; margin-bottom: 24px; }
.fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fgroup > span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.82rem; color: #c4c4cc;
  transition: all 0.25s;
}
.chip:hover { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.chip.is-on { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.freset { margin-left: auto; font-size: 0.82rem; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.freset:hover { color: #fff; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.ftable { width: 100%; border-collapse: collapse; min-width: 820px; font-size: 0.92rem; }
.ftable th {
  text-align: left; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600;
  padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg);
}
.ftable td { padding: 15px 18px; border-bottom: 1px solid var(--line); color: #c4c4cc; font-variant-numeric: tabular-nums; }
.ftable tbody tr { transition: background 0.2s; }
.ftable tbody tr:hover { background: rgba(255, 90, 31, 0.06); }
.ftable tbody tr:last-child td { border-bottom: 0; }
.ftable td:first-child a { color: #fff; }
.ftable td:first-child a:hover { color: var(--accent); }
.ftable tr[hidden] { display: none; }
.ftable__go a { color: var(--muted); font-size: 1.1rem; display: inline-block; transition: transform 0.3s var(--ease), color 0.3s; }
.ftable tbody tr:hover .ftable__go a { color: var(--accent); transform: translateX(4px); }
.finder__empty { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- Product detail ---------- */
.pd { padding: 120px 0 20px; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--muted); margin-bottom: 36px; }
.crumb a:hover { color: var(--accent); }
.crumb strong { color: #fff; font-weight: 600; }
.pd__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: start; }
.pd__title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 22px; }
.pd__title small { font-size: 0.32em; font-weight: 400; letter-spacing: 0.04em; color: var(--muted); }
.pd__desc { color: #b8b8c0; font-size: 1.02rem; line-height: 1.8; margin-bottom: 28px; }
.pd__info { position: sticky; top: 110px; }
.pd__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.mtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.mtab {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.86rem; letter-spacing: 0.04em; color: #c4c4cc;
  transition: all 0.25s;
}
.mtab:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.mtab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 8px 26px -8px var(--accent-glow); }

.devcard { aspect-ratio: 4 / 3; border-radius: 24px; background: #efeff2; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.devcard img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }

/* ---------- Day / Night slider ---------- */
.dn {
  --pos: 50%;
  position: relative; aspect-ratio: 3 / 2; border-radius: 24px; overflow: hidden; background: #000;
  border: 1px solid var(--line); cursor: ew-resize; user-select: none; -webkit-user-select: none; touch-action: pan-y;
  box-shadow: 0 30px 80px -30px rgba(255, 90, 31, 0.25);
}
.dn__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity 0.4s; }
.dn__clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); pointer-events: none; }
.dn__clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(185, 212, 240, 0.4), rgba(238, 238, 232, 0.28)); mix-blend-mode: screen; }
/* 임시 주간 연출: 점등 사진을 소등·주간 느낌으로 가공 */
.dn__day { filter: grayscale(0.88) brightness(1.65) contrast(0.6) saturate(0.45) hue-rotate(185deg); }
.dn__label {
  position: absolute; top: 16px; padding: 6px 13px; border-radius: 999px; font-size: 0.68rem; letter-spacing: 0.16em; font-weight: 700;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none;
}
.dn__label--day { left: 16px; background: rgba(255, 255, 255, 0.82); color: #111; }
.dn__label--night { right: 16px; background: rgba(0, 0, 0, 0.55); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }
.dn__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 48px; margin-left: -24px; cursor: ew-resize; outline: none;
  display: grid; place-items: center;
}
.dn__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--accent); box-shadow: 0 0 18px var(--accent-glow); }
.dn__handle i {
  position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(255, 90, 31, 0.25);
  transition: transform 0.25s var(--ease);
}
.dn__handle i::before, .dn__handle i::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -5px; border: 5px solid transparent;
}
.dn__handle i::before { left: 8px; border-right-color: #fff; border-left-width: 0; }
.dn__handle i::after { right: 8px; border-left-color: #fff; border-right-width: 0; }
.dn__handle:hover i, .dn.is-drag .dn__handle i { transform: scale(1.12); }
.dn__handle:focus-visible i { box-shadow: 0 0 0 4px #fff; }
.dn__hint {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-size: 0.68rem; letter-spacing: 0.24em; color: #fff;
  padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.5); pointer-events: none; animation: hint 2.2s ease-in-out infinite;
}
.dn.is-touched .dn__hint { opacity: 0; animation: none; transition: opacity 0.4s; }
@keyframes hint { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.dn__note { margin-top: 10px; font-size: 0.74rem; color: #6f6f78; }

/* ---------- Spec / download panels ---------- */
.mpanels { margin-top: 36px; padding: 40px; border-radius: 28px; background: var(--bg-2); border: 1px solid var(--line); }
.mpanel { animation: fadeUp 0.5s var(--ease); }
.mhead { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.mhead h3 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; background: rgba(255, 90, 31, 0.12); color: #ff9066; border: 1px solid rgba(255, 90, 31, 0.25); font-variant-numeric: tabular-nums; }
.mgrid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.92rem; }
.spec th { width: 38%; padding-right: 16px; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-top: 16px; }
.spec td { color: #e4e4e7; font-variant-numeric: tabular-nums; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec__empty { color: var(--muted); line-height: 1.8; padding: 20px 0; }
.spec__empty a { color: #fff; border-bottom: 1px solid var(--accent); }

.dl__list { display: grid; gap: 10px; }
.dl__item {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
a.dl__item:hover { border-color: var(--accent); transform: translateX(4px); background: #16100d; }
.dl__ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; background: rgba(255, 90, 31, 0.14); color: var(--accent); border: 1px solid rgba(255, 90, 31, 0.3);
}
.dl__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dl__txt strong { font-size: 0.95rem; font-weight: 600; }
.dl__txt em { font-style: normal; font-size: 0.74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl__act { color: var(--accent); font-size: 1.3rem; display: grid; }
.dl__act--soon { font-size: 0.7rem; letter-spacing: 0.08em; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.dl__item.is-disabled { opacity: 0.55; cursor: not-allowed; }
.dl__item.is-disabled .dl__ico { background: transparent; color: var(--muted); border-color: var(--line); }

.gal { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.gal__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gal__grid--wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 28px; }
.gthumb { position: relative; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; cursor: zoom-in; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.4s; filter: brightness(0.9); }
.gthumb:hover img { transform: scale(1.08); filter: brightness(1.05); }
.gthumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Lightbox ---------- */
.lb { border: 0; background: transparent; padding: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; overflow: hidden; }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(6px); }
.lb img { max-width: min(92vw, 1100px); max-height: 82vh; border-radius: 14px; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7); }
.lb__close, .lb__nav { position: fixed; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; transition: background 0.3s; }
.lb__close:hover, .lb__nav:hover { background: var(--accent); }
.lb__close { top: 24px; right: 24px; }
.lb__nav { top: 50%; margin-top: -24px; }
.lb__nav--prev { left: 24px; }
.lb__nav--next { right: 24px; }
.lb__nav[hidden] { display: none; }

/* ---------- Related ---------- */
.related--compact { padding: 70px 0 !important; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.pcard { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #1a1a1f; isolation: isolate; transition: border-color 0.4s; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); transition: transform 1s var(--ease), filter 0.5s; }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.88)); }
.pcard:hover { border-color: var(--accent); }
.pcard:hover img { transform: scale(1.06); filter: brightness(1); }
.pcard__info { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 18px 20px; }
.pcard h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.pcard p { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.pcard .card__tag { margin-bottom: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chiplink { padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.9rem; font-weight: 500; transition: all 0.3s; }
.chiplink:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.chiplink--ghost { border-style: dashed; color: var(--muted); }

/* 시스템 내 위치 (제어 장비 상세) */
.chain { display: flex; align-items: stretch; margin: 28px 0 24px; }
.chain__node { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); transition: border-color 0.3s, transform 0.3s var(--ease); }
a.chain__node:hover { border-color: rgba(255, 90, 31, 0.5); transform: translateY(-4px); }
.chain__node.is-current { border-color: var(--accent); background: linear-gradient(160deg, rgba(255, 90, 31, 0.2), var(--bg-2)); box-shadow: 0 0 40px -12px var(--accent-glow); }
.chain__ico { font-size: 1.5rem; color: var(--accent); margin-bottom: 6px; display: grid; }
.chain__node strong { font-size: 0.95rem; }
.chain__node em { font-style: normal; font-size: 0.8rem; color: var(--muted); }
.chain__link { flex: 0 0 34px; align-self: center; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,.1), var(--accent), rgba(255,255,255,.1)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }

/* ---------- Pager / CTA ---------- */
.pager { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pager__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; }
.pager__item { display: flex; flex-direction: column; gap: 4px; max-width: 34%; transition: color 0.3s; }
.pager__item small { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--muted); }
.pager__item strong { font-size: 1.15rem; }
.pager__item--next { text-align: right; align-items: flex-end; }
.pager__item:hover strong { color: var(--accent); }
.pager__all { font-size: 0.82rem; letter-spacing: 0.1em; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); transition: all 0.3s; }
.pager__all:hover { color: #fff; border-color: #fff; }

.ctaband { padding: 90px 0 40px !important; }
.ctaband__box {
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: 52px 56px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 0% 100%, rgba(255, 90, 31, 0.25), transparent 60%), var(--bg-2);
}
.ctaband__box h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.02em; max-width: 560px; line-height: 1.4; }

/* ---------- System page ---------- */
.phero--system .phero__title { font-size: clamp(2.8rem, 7vw, 5.6rem); }
.flow { display: flex; align-items: center; }
.fnode {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 22px 20px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2); transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s, background 0.3s;
}
.fnode:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.28); }
.fnode.is-active { border-color: var(--accent); background: linear-gradient(160deg, rgba(255, 90, 31, 0.22), var(--bg-2)); box-shadow: 0 0 50px -14px var(--accent-glow); }
.fnode__ico { font-size: 1.9rem; color: var(--accent); margin-bottom: 10px; display: grid; }
.fnode strong { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fnode em { font-style: normal; font-size: 1.02rem; font-weight: 700; word-break: break-word; }
.fnode--link { flex: 0.62 1 0; border-style: dashed; padding: 18px 14px; }
.fnode--link .fnode__ico { font-size: 1.5rem; }
.fnode:last-child .fnode__ico circle { animation: blink 2.4s ease-in-out infinite; }
.fnode:last-child .fnode__ico circle:nth-child(2n) { animation-delay: -0.8s; }
.fnode:last-child .fnode__ico circle:nth-child(3n) { animation-delay: -1.6s; }
@keyframes blink { 0%, 100% { fill: transparent; } 50% { fill: var(--accent); } }

.flink { position: relative; flex: 0 0 44px; height: 2px; background: rgba(255, 255, 255, 0.12); overflow: visible; }
.flink::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 8px solid var(--accent); border-right: 0; }
.flink i { position: absolute; inset: 0; display: block; overflow: hidden; }
.flink i::before { content: ""; position: absolute; top: -1px; left: -40%; width: 40%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--accent), #fff); box-shadow: 0 0 14px var(--accent); animation: signal 1.6s linear infinite; }
@keyframes signal { to { left: 110%; } }

.npanels { margin-top: 32px; }
.npanel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; padding: 40px; border-radius: 28px; background: var(--bg-2); border: 1px solid var(--line); animation: fadeUp 0.5s var(--ease); }
.npanel__head h3 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 14px; }
.npanel__head p:not(.section__label) { color: #b8b8c0; margin-bottom: 22px; }
.npanel__links { display: flex; flex-wrap: wrap; gap: 8px; }
.nlink { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.88rem; font-weight: 600; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.nlink:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px var(--accent-glow); }

.calc__box { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px; border-radius: 32px; border: 1px solid var(--line); background: radial-gradient(ellipse at 100% 0%, rgba(255, 90, 31, 0.2), transparent 55%), var(--bg-2); }
.calc__text p:not(.section__label) { color: #b8b8c0; margin-bottom: 14px; }
.calc__note { font-size: 0.82rem !important; color: var(--muted) !important; }
.calc__panel label { display: block; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.calc__input { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.calc__input input[type="range"] { flex: 1; accent-color: var(--accent); height: 28px; }
.calc__input input[type="number"] { width: 130px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: #fff; font: inherit; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.calc__input input[type="number"]:focus { outline: 2px solid var(--accent); }
.calc__result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; }
.calc__result div { background: var(--bg); padding: 24px 18px; display: flex; flex-direction: column; gap: 6px; }
.calc__result strong { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc__result div:first-child strong, .calc__result div:nth-child(2) strong { color: var(--accent); font-weight: 600; }
.calc__result span { font-size: 0.7rem; letter-spacing: 0.14em; color: var(--muted); }

.fcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 12px; }
.fcard { padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); transition: transform 0.4s var(--ease), border-color 0.3s; }
.fcard:hover { transform: translateY(-5px); border-color: rgba(255, 90, 31, 0.45); }
.fcard span { font-size: 2.6rem; font-weight: 200; color: var(--accent); line-height: 1; display: block; margin-bottom: 20px; }
.fcard h3 { font-size: 1.2rem; margin-bottom: 8px; }
.fcard p { color: #a8a8b0; font-size: 0.93rem; }

.manual { padding: 20px 0 20px !important; }
.manual__box { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 32px 40px; border-radius: 24px; border: 1px solid var(--line); background: var(--bg-2); }
.manual__box h2 { font-size: 1.5rem; }
.manual__box p { color: var(--muted); }
.manual__box .dl { min-width: min(100%, 380px); }
.software .chips { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pd__grid { grid-template-columns: 1fr; gap: 40px; }
  .pd__info { position: static; }
  .mgrid, .npanel, .calc__box { grid-template-columns: 1fr; gap: 36px; }
  .ctlbanner { grid-template-columns: 1fr; }
  .srow__flow { flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .subpage .section { padding: 72px 0; }
  .phero { padding: 130px 0 56px; }
  .cats { grid-template-columns: 1fr; }
  .cat__series a { grid-template-columns: 76px 1fr 24px; }
  .ctlbanner { padding: 32px 24px; }
  .srow { padding: 18px; }
  .srow__flow { flex-direction: column; align-items: stretch; }
  .srow__arrow { transform: rotate(90deg); align-self: center; }
  .scard--end { max-width: none; }
  .mpanels { padding: 24px 18px; border-radius: 22px; }
  .fcards { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: stretch; }
  .fnode, .fnode--link { flex: none; flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
  .fnode__ico { margin-bottom: 0; }
  .fnode--link { padding: 12px 18px; }
  .flink { flex: 0 0 30px; width: 2px; height: 30px; align-self: center; }
  .flink::after { right: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top: 8px solid var(--accent); border-bottom: 0; }
  .flink i::before { top: -40%; left: -1px; width: 4px; height: 40%; background: linear-gradient(180deg, transparent, var(--accent), #fff); animation: signalv 1.6s linear infinite; }
  @keyframes signalv { to { top: 110%; } }
  .npanel, .calc__box, .ctaband__box { padding: 28px 22px; }
  .chain { flex-direction: column; }
  .chain__link { flex: 0 0 24px; width: 2px; height: 24px; }
  .pager__item { max-width: 40%; }
  .pager__item strong { font-size: 0.95rem; }
  .pager__all { display: none; }
  .lb__nav--prev { left: 8px; } .lb__nav--next { right: 8px; }
}
@media (max-width: 560px) {
  .seg { display: flex; width: 100%; }
  .seg__btn { flex: 1; justify-content: center; padding: 12px 8px; flex-direction: column; align-items: center; gap: 2px; }
  .calc__result { grid-template-columns: 1fr; }
  .calc__input { flex-direction: column; align-items: stretch; }
  .calc__input input[type="number"] { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .phero__dots, .flink i::before, .dn__hint, .chain__link, .ctlbanner__diagram i, .fnode:last-child .fnode__ico circle { animation: none !important; }
}


/* ---------- Project Hub & Detail Styles ---------- */
.pcard--proj { aspect-ratio: 16 / 11; }
.pcard[hidden] { display: none !important; }
.proj-hero { padding: 40px 0 20px; }
.proj-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.proj__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.proj__title { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 24px; word-break: keep-all; }
.proj__meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; padding: 22px 24px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 28px; }
.proj__meta-item { display: flex; flex-direction: column; gap: 4px; }
.proj__meta-item span { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.proj__meta-item strong { font-size: 0.98rem; color: #fff; font-weight: 600; }
.proj__meta-item strong a { color: var(--accent); }
.proj__meta-item strong a:hover { text-decoration: underline; }
.proj__desc { font-size: 1.02rem; line-height: 1.85; color: #b8b8c2; margin-bottom: 32px; }
.proj__desc p { margin-bottom: 16px; word-break: keep-all; white-space: pre-line; }
.proj__main-media { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.proj__main-media .gthumb { aspect-ratio: 16 / 11; width: 100%; border: none; border-radius: 0; }
.proj__gal { margin-top: 40px; }
.proj__gal .gal__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gthumb__zoom { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); display: grid; place-items: center; font-size: 0.85rem; opacity: 0; transition: opacity 0.3s; }
.gthumb:hover .gthumb__zoom { opacity: 1; }

.proj-prod-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 26px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); margin-top: 24px; transition: border-color 0.3s, transform 0.3s var(--ease); }
.proj-prod-card:hover { border-color: rgba(255, 90, 31, 0.5); transform: translateY(-3px); }
.proj-prod-card__left { display: flex; align-items: center; gap: 20px; }
.proj-prod-card__img { width: 84px; height: 64px; border-radius: 10px; overflow: hidden; background: #000; flex: none; }
.proj-prod-card__img img { width: 100%; height: 100%; object-fit: cover; }
.proj-prod-card__txt strong { font-size: 1.15rem; display: block; margin-bottom: 4px; }
.proj-prod-card__txt p { font-size: 0.82rem; color: var(--muted); margin: 0; }

@media (max-width: 860px) {
  .proj-grid { grid-template-columns: 1fr; gap: 32px; }
  .proj-prod-card { flex-direction: column; align-items: flex-start; }
  .proj__meta { grid-template-columns: 1fr; }
}


/* ---------- Scroll Margin & Breadcrumb Fixes ---------- */
section[id], [id] { scroll-margin-top: 96px; }
.crumb a { color: var(--muted); transition: color 0.25s; }
.crumb a:hover { color: var(--accent); text-decoration: underline; }


/* Ensure subpages are never blank under any condition */
.subpage .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* =======================================================
   Motion Graphic 1: Subpage Card Spotlight Theme
   ====================================================== */
.cat, .scard, .mcard, .pcard--proj, .spotlight-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.4s;
  will-change: transform;
}

.cat::before, .scard::before, .mcard::before, .pcard--proj::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    360px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(255, 90, 31, 0.28),
    rgba(255, 90, 31, 0.08) 38%,
    transparent 75%
  );
  opacity: var(--spotlight-opacity, 0);
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.cat::after, .scard::after, .mcard::after, .pcard--proj::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1.2px, transparent 1.6px);
  background-size: 15px 15px;
  mask-image: radial-gradient(
    280px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    black 15%,
    transparent 70%
  );
  -webkit-mask-image: radial-gradient(
    28ppx circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    black 15%,
    transparent 70%
  );
  opacity: var(--spotlight-opacity, 0);
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.cat > *, .scard > *, .mcard > *, .pcard--proj > * {
  position: relative;
  z-index: 2;
}

.cat:hover, .scard:hover, .mcard:hover, .pcard--projh:hover {
  border-color: rgba(255, 90, 31, 0.55);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8), 0 0 25px -6px rgba(255, 90, 31, 0.28);
}

/* =======================================================
   Motion Graphic 2: System Flow Theme (Engine & Telemetry)
   ====================================================== */
:root {
  --signal-speed: 1.4s;
}

/* Telemetry HUD Bar */
.flow-telemetry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 24px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: rgba(20, 20, 26, 0.8);
  border: 1px solid rgba(255, 90, 31, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
.tele-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tele-item--right {
  align-items: flex-end;
  text-align: right;
}
.tele-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.tele-val-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tele-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.tele-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.tele-badge--active {
  background: rgba(255, 90, 31, 0.16);
  color: var(--accent);
  border: 1px solid rgba(255, 90, 31, 0.35);
  box-shadow: 0 0 10px rgba(255, 90, 31, 0.25);
}
.tele-badge--opt {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}
.tele-channel-info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: #a8a8b4;
  font-weight: 600;
}
.tele-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulseBeacon 1.2s infinite;
}
@keyframes pulseBeacon {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Multi-conduit Optical Trace Links */
.flink {
  position: relative;
  flex: 0 0 54px;
  height: 12px;
  background: transparent;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.flink::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left: 10px solid var(--accent);
  border-right: 0;
  filter: drop-shadow(0 0 6px var(--accent));
}
.flink__bus {
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}
.flink__bus::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -50%;
  width: 50%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), #fff);
  box-shadow: 0 0 12px var(--accent);
  animation: signalMulti var(--signal-speed) linear infinite;
}
.flink__bus--1::before { animation-delay: 0s; }
.flink__bus--2::before { animation-delay: calc(var(--signal-speed) * -0.33); }
.flink__bus--3::before { animation-delay: calc(/**var*/ -0.66s * 1.4); }

@keyframes signalMulti {
  0% { left: -50%; }
  100% { left: 115%; }
}

/* Node Enhancements */
.fnode {
  position: relative;
  overflow: hidden;
  background: rgba(18, 18, 22, 0.9);
  will-change: transform, box-shadow;
}
.fnode__status {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.fnode.is-active .fnode__status {
  color: var(--accent);
}
.status-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #52525b;
  display: inline-block;
}
.fnode.is-active .status-led {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* Mini LED Matrix Preview inside last node */
.fnode__matrix {
  display: grid;
  grid-template-columns: repeat(4, 7px);
  gap: 4px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
}
.fnode__matrix i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 90, 31, 0.2);
  animation: matrixDot 1.6s ease-in-out infinite alternate;
}
.fnode__matrix i:nth-child(2n) { animation-delay: -0.4s; background: rgba(255, 255, 255, 0.2); }
.fnode__matrix i:nth-child(3n) { animation-delay: -0.8s; background: rgba(255, 160, 122, 0.2); }
.fnode__matrix i:nth-child(5n) { animation-delay: -1.2s; background: rgba(40, 230, 220, 0.25); }

@keyframes matrixDot {
  0% { transform: scale(0.8); opacity: 0.3; }
  100% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 8px currentColor; }
}


/* =======================================================
   Hardware Signal Flow Theme (Exact Mockup Match)
   ====================================================== */
:root {
  --cable-speed: 2s;
  --pulse-glow: rgba(255, 90, 31, 0.85);
}

.sysflow-heading {
  margin-bottom: 28px;
}
.sysflow-toplabel {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 6px;
}
.sysflow-headline {
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}

/* System Flow Master Board */
.sysflow-board {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: radial-gradient(circle at 50% 30%, rgba(22, 28, 42, 0.95), #080b12 85%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 38px 28px 32px;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.9), 0 0 45px -15px rgba(255, 90, 31, 0.18);
  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: 28px 28px;
  margin-bottom: 24px;
  overflow: hidden;
}

/* Unit Buttons */
.sys-unit {
  flex: 0 0 156px;
  max-width: 165px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-family: inherit;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}
.sys-unit:hover {
  transform: translateY(-4px);
}
.sys-unit__bracket,
.sys-unit__tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  color: #7d8494;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.3s, text-shadow 0.3s;
}
.sys-unit.is-active .sys-unit__bracket,
.sys-unit.is-active .sys-unit__tag {
  color: #ff853f;
  text-shadow: 0 0 10px rgba(255, 90, 31, 0.7);
}

/* Shared Chassis Frame */
.sys-chassis {
  width: 146px;
  height: 136px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #151923, #090c13);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.35s, box-shadow 0.35s;
}
.sys-unit.is-active .sys-chassis {
  border-color: #ff5a1f;
  box-shadow: 0 0 28px rgba(255, 90, 31, 0.5), 0 14px 32px rgba(0, 0, 0, 0.85);
}
.sys-unit:hover .sys-chassis {
  border-color: rgba(255, 90, 31, 0.6);
}

/* Corner Screws/Bolts */
.chassis-bolt {
  position: absolute;
  width: 8px;
  height: 8px;
  font-size: 0.5rem;
  line-height: 8px;
  text-align: center;
  color: #4b5263;
  z-index: 3;
}
.bolt-tl { top: 4px; left: 5px; }
.bolt-tr { top: 4px; right: 5px; }
.bolt-bl { bottom: 4px; left: 5px; }
.bolt-br { bottom: 4px; right: 5px; }

/* Status LEDs */
.led-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}
.led-dot--orange { background: #ff5a1f; box-shadow: 0 0 8px #ff5a1f; }
.led-dot--green  { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.led-dot--red    { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.led-dot--cyan   { background: #00f0ff; box-shadow: 0 0 8px #00f0ff; }

/* 1. PC Server Workstation */
.sys-chassis--pc {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 8px 8px 6px;
}
.chassis-pc__screen {
  height: 82px;
  background: #04070e;
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  border-radius: 6px;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.pc-screen__header {
  height: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 6px;
  background: rgba(0, 240, 255, 0.08);
  border-bottom: 1px solid rgba(0, 240, 255, 0.18);
}
.pc-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 6px #00f0ff;
}
.pc-title {
  font-size: 0.5rem;
  color: #8edcff;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.pc-screen__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 2px 6px;
  color: #00f0ff;
}
.pc-wire {
  opacity: 0.85;
  filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.5));
}
.pc-screen__wave {
  height: 12px;
  width: 100%;
  overflow: hidden;
}
.chassis-pc__hinge {
  height: 4px;
  background: #1b202e;
  margin: 2px 14px 0;
  border-radius: 2px;
}
.chassis-pc__base {
  height: 28px;
  background: linear-gradient(180deg, #1b212f, #0d1017);
  margin-top: 1px;
  border-radius: 0 0 6px 6px;
  border-top: 1px solid #2d3445;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}
.pc-base__leds {
  display: flex;
  gap: 4px;
}
.pc-base__pad {
  width: 32px;
  height: 11px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.3);
}

/* 2. Rack Processor Unit */
.sys-chassis--rack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 10px 8px;
}
.rack-row--top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}
.rack-vents {
  display: flex;
  gap: 3px;
}
.rack-vents i {
  width: 11px;
  height: 3px;
  background: #282f40;
  transform: skewX(-25deg);
  border-radius: 1px;
}
.rack-leds {
  display: flex;
  gap: 4px;
}
.rack-row--mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0;
}
.rack-groove {
  flex: 1;
  height: 2px;
  background: #252c3c;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.8);
  margin-right: 8px;
}
.rack-status-strip {
  display: flex;
  gap: 4px;
}
.rack-row--bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 52px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 8px;
}
.rack-vumeter {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 100%;
}
.rack-vumeter span {
  display: block;
  width: 4px;
  background: linear-gradient(0deg, #ff5a1f, #ffb347);
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(255, 90, 31, 0.6);
  transform-origin: bottom;
  animation: vuBounce 1.4s ease-in-out infinite alternate;
}
.rack-vumeter span:nth-child(2n) { animation-delay: -0.4s; }
.rack-vumeter span:nth-child(3n) { animation-delay: -0.8s; }
@keyframes vuBounce {
  0% { transform: scaleY(0.7); }
  100% { transform: scaleY(1.1); }
}
.rack-fiber-port {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #090c13;
  border: 1.5px solid rgba(255, 90, 31, 0.4);
  box-shadow: inset 0 0 10px rgba(255, 90, 31, 0.25), 0 0 8px rgba(255, 90, 31, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff7838;
}

/* 3. Sub Controller Unit */
.sys-chassis--sub {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}
.sub-row--top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 6px 8px;
}
.sub-led-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sub-bar--amber {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}
.sub-led-pair {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sub-tx-lbl {
  font-size: 0.5rem;
  font-family: var(--font-mono, monospace);
  color: #ff853f;
  font-weight: 700;
}
.sub-screen {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.sub-screen__val {
  font-size: 0.55rem;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sub-row--ports {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 2px;
}
.sub-port {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sub-port--bnc .bnc-outer {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #ff7838;
  box-shadow: 0 0 8px rgba(255, 90, 31, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bnc-core {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5a1f;
  box-shadow: 0 0 6px #ff5a1f;
}
.sub-port--xlr .xlr-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #4a5468;
  background: #090c13;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.xlr-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #94a3b8;
}
.sub-port--rj45 .rj45-box {
  width: 24px;
  height: 20px;
  background: #0c101a;
  border: 1.5px solid #3b4457;
  border-radius: 3px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rj45-slot {
  width: 12px;
  height: 6px;
  background: #1e2638;
  border-radius: 1px;
}
.rj45-led {
  position: absolute;
  top: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
}
.rj45-led--g { left: 3px; background: #22c55e; box-shadow: 0 0 4px #22c55e; }
.rj45-led--y { right: 3px; background: #eab308; box-shadow: 0 0 4px #eab308; }

/* 4. Image LED Pixels Unit */
.sys-chassis--led {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 10px;
}
.led-neonbar {
  height: 4px;
  border-radius: 2px;
}
.led-neonbar--top {
  background: #00f0ff;
  box-shadow: 0 0 12px #00f0ff, 0 0 20px #00f0ff;
}
.led-neonbar--bottom {
  background: linear-gradient(90deg, #00f0ff, #ff007f);
  box-shadow: 0 0 12px #ff007f, 0 0 20px rgba(0, 240, 255, 0.6);
}
.led-matrix-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3.5px;
  padding: 6px 4px;
}
.lpx {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 90, 31, 0.25);
  transition: transform 0.2s, background-color 0.4s;
}
.lpx[data-color="amber"] {
  background: #ff5a1f;
  box-shadow: 0 0 8px rgba(255, 90, 31, 0.9);
}
.lpx[data-color="cyan"] {
  background: #00f0ff;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.9);
}
.lpx[data-color="gold"] {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.9);
}
.lpx[data-color="magenta"] {
  background: #ec4899;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.9);
}
.lpx[data-color="dim"] {
  background: rgba(255, 255, 255, 0.12);
}

/* Conduits (Optical Bus Cables) */
.sys-conduit {
  flex: 1 1 80px;
  height: 90px;
  position: relative;
  display: flex;
  align-items: center;
}
.conduit-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.conduit-wire {
  fill: none;
  stroke: #ff5a1f;
  stroke-width: 2.2;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px var(--pulse-glow));
  stroke-dasharray: 8 4;
  animation: wireDash 1.2s linear infinite;
}
@keyframes wireDash {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -24; }
}
.conduit-pulse {
  fill: #ffffff;
  filter: drop-shadow(0 0 8px #ff7838) drop-shadow(0 0 14px #ff5a1f);
  animation: conduitFlow var(--cable-speed) linear infinite;
}
.conduit-pulse--1 { animation-delay: 0s; }
.conduit-pulse--2 { animation-delay: calc(var(--cable-speed) * -0.35); }
.conduit-pulse--3 { animation-delay: calc(var(--cable-speed) * -0.7); }

@keyframes conduitFlow {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

.sys-conduit--fan .conduit-pulse--1 { offset-path: path("M0,45 C45,45 35,16 110,16"); }
.sys-conduit--fan .conduit-pulse--2 { offset-path: path("M0,45 C50,45 50,45 110,45"); }
.sys-conduit--fan .conduit-pulse--3 { offset-path: path("M0,45 C45,45 35,74 110,74"); }

.sys-conduit--mid .conduit-pulse--1 { offset-path: path("M0,26 C35,26 55,32 90,32"); }
.sys-conduit--mid .conduit-pulse--2 { offset-path: path("M0,52 C35,52 55,50 90,50"); }

.sys-conduit--end .conduit-pulse--1 { offset-path: path("M0,26 L90,26"); }
.sys-conduit--end .conduit-pulse--2 { offset-path: path("M0,38 L90,38"); }
.sys-conduit--end .conduit-pulse--3 { offset-path: path("M0,64 L90,64"); }

/* Interactive Dual Console Cards */
.sys-console-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.sys-console-card {
  background: rgba(15, 19, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}
.sys-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sys-console-label {
  font-size: 0.96rem;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: -0.01em;
}
.sys-console-badge {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
}
.sys-console-badge--active,
.sys-console-badge--opt {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.sys-console-body {
  display: flex;
  align-items: center;
  gap: 20px;
}
.sys-slider-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.sys-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff5a1f, rgba(255, 90, 31, 0.25));
  outline: none;
  -webkit-appearance: none;
  cursor: grab;
}
.sys-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff5a1f;
  box-shadow: 0 0 16px #ff5a1f, 0 0 4px #ffffff;
  border: 2.5px solid #ffffff;
  cursor: grab;
  transition: transform 0.15s, box-shadow 0.15s;
}
.sys-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 22px #ff7838, 0 0 6px #ffffff;
}
.sys-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.22);
}
.sys-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff5a1f;
  box-shadow: 0 0 16px #ff5a1f, 0 0 4px #ffffff;
  border: 2.5px solid #ffffff;
  cursor: grab;
}

.sys-console-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  min-width: 90px;
  text-align: right;
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .sysflow-board {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .sys-conduit {
    display: none;
  }
  .sys-unit {
    flex: 0 0 calc(50% - 15px);
    max-width: 180px;
  }
  .sys-console-row {
    grid-template-columns: 1fr;
  }
}
