/* ============ KnoxAiD — "What We Build" industries ============ */
.ind-section { padding-top: clamp(72px, 9vw, 120px); }
.ind-h { margin-top: 18px; }
.ind-lead { margin-top: 20px; }

/* family color tokens */
.fam-cloud { --fam: var(--accent); --fam-soft: rgba(61,189,247,0.12); --fam-border: rgba(61,189,247,0.32); }
.fam-local { --fam: var(--violet); --fam-soft: rgba(155,107,255,0.12); --fam-border: rgba(155,107,255,0.34); }

/* legend */
.ind-legend { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.ind-legend-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-elev-1); flex: 1 1 280px;
}
.ind-legend-swatch { width: 14px; height: 14px; border-radius: 5px; margin-top: 3px; flex: none; background: var(--fam); box-shadow: 0 0 12px var(--fam); }
.ind-legend-item b { display: block; font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 15px; }
.ind-legend-item span { color: var(--text-muted); font-size: 13.5px; }

/* scroller layout */
.ind-scroller {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.ind-stage { position: sticky; top: 92px; align-self: start; }
.ind-stage-inner {
  padding: 32px;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(255,255,255,0.03), transparent 60%),
    linear-gradient(180deg, #0F0F17, #0A0A11);
}
.ind-motif-wrap { position: relative; height: clamp(220px, 26vw, 300px); margin-bottom: 28px; }
.motif-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 420ms var(--ease-sharp); pointer-events: none; }
.motif-layer.is-on { opacity: 1; }

.ind-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; color: var(--fam);
  background: var(--fam-soft); border: 1px solid var(--fam-border);
}
.ind-stage-name { margin-top: 16px; font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.2vw, 38px); color: #fff; letter-spacing: -0.025em; line-height: 1.05; }
.ind-stage-sub { margin-top: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); letter-spacing: 0.04em; }
.ind-stage-desc { margin-top: 16px; color: var(--text-muted); font-size: 16px; line-height: 1.5; }
.ind-progress { margin-top: 24px; display: flex; gap: 6px; }
.ind-tick { height: 4px; flex: 1; border-radius: 999px; background: rgba(255,255,255,0.08); transition: background 300ms var(--ease-sharp); }
.ind-tick.is-active { background: var(--fam); box-shadow: 0 0 10px var(--fam); }

/* panels */
.ind-panels { display: flex; flex-direction: column; }
.ind-family-head {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
  padding: 18px 0; border-bottom: 1px solid var(--border); margin-bottom: 8px;
  position: sticky; top: 64px; background: var(--bg); z-index: 2;
}
.ind-family-head:not(:first-child) { margin-top: 40px; }
.fam-num { color: var(--accent); margin-right: 10px; }

.ind-panel {
  min-height: 62vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.ind-panel-badge {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; color: var(--fam);
  background: var(--fam-soft); border: 1px solid var(--fam-border);
}
.ind-panel-name {
  margin-top: 16px; font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3vw, 34px);
  color: #fff; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.ind-panel-sub { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); letter-spacing: 0.04em; font-weight: 400; }
.ind-panel-block { margin-top: 22px; }
.ind-block-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.ind-leak { margin-top: 10px; color: var(--text); font-size: 16.5px; line-height: 1.6; max-width: 54ch; }
.ind-deploy { margin-top: 12px; padding: 0; list-style: none; display: grid; gap: 9px; }
.ind-deploy li { position: relative; padding-left: 26px; color: var(--text-muted); font-size: 15px; }
.ind-deploy li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.ind-stat {
  margin-top: 24px; padding: 16px 18px; align-self: flex-start;
  background: var(--proof-soft); border: 1px solid rgba(16,209,148,0.2); border-radius: var(--radius-md);
}
.ind-stat-text { color: #fff; font-size: 14.5px; font-weight: 500; line-height: 1.45; }
.ind-stat-src { margin-top: 7px; font-family: var(--font-mono); font-size: 11px; color: var(--proof); letter-spacing: 0.04em; }

.ind-closer { margin-top: 56px; text-align: center; color: var(--text-muted); font-size: clamp(17px, 2vw, 22px); font-family: var(--font-display); }

/* explore links → industry pages */
.ind-stage-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--fam);
  padding: 10px 16px; border: 1px solid var(--fam-border); border-radius: 999px; background: var(--fam-soft);
  transition: background 160ms var(--ease-sharp), transform 160ms var(--ease-sharp);
}
.ind-stage-link:hover { background: var(--fam-soft); transform: translateY(-1px); filter: brightness(1.2); }
.ind-stage-link span { transition: transform 180ms var(--ease-sharp); }
.ind-stage-link:hover span { transform: translateX(3px); }
.ind-panel-link {
  align-self: flex-start; margin-top: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--fam);
}
.ind-panel-link span { transition: transform 180ms var(--ease-sharp); }
.ind-panel-link:hover { color: #fff; }
.ind-panel-link:hover span { transform: translateX(3px); }

/* ---------- CLOUD motif ---------- */
.cloud-motif { position: relative; width: 100%; height: 100%; }
.cm-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 999px;
  background: radial-gradient(circle, #fff, var(--accent) 70%); box-shadow: 0 0 28px var(--accent-glow); z-index: 2; }
.cm-core-ring { position: absolute; inset: -10px; border-radius: 999px; border: 1.5px solid var(--accent-soft); }
.motif-layer.is-on .cm-core-ring { animation: cmPulse 2.4s ease-out infinite; }
@keyframes cmPulse { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(2.2); opacity: 0; } }

.cm-in, .cm-out { position: absolute; width: 7px; height: 7px; border-radius: 999px; opacity: 0; }
.cm-in { background: #BFEBFF; box-shadow: 0 0 8px var(--accent-glow); }
.cm-out { background: var(--proof); box-shadow: 0 0 8px rgba(16,209,148,0.6); }
.motif-layer.is-on .cm-in { animation: cmIn 2.6s ease-in infinite; }
.motif-layer.is-on .cm-out { animation: cmOut 2.6s ease-out infinite; }
.cm-in-1 { left: 4%;  top: 18%; } .cm-in-2 { left: 0%; top: 54%; animation-delay: .5s; }
.cm-in-3 { left: 10%; top: 86%; animation-delay: 1s; } .cm-in-4 { left: 92%; top: 12%; animation-delay: 1.5s; }
.cm-in-5 { left: 96%; top: 70%; animation-delay: 2s; }
@keyframes cmIn { 0% { opacity: 0; } 15% { opacity: 1; } 100% { left: 50%; top: 50%; opacity: 0; } }
.cm-out-1 { left: 50%; top: 50%; animation-delay: .9s; --tx: 120px; --ty: -70px; }
.cm-out-2 { left: 50%; top: 50%; animation-delay: 1.6s; --tx: 130px; --ty: 40px; }
.cm-out-3 { left: 50%; top: 50%; animation-delay: 2.3s; --tx: -110px; --ty: 80px; }
@keyframes cmOut { 0% { transform: translate(0,0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)); opacity: 0; } }
.cm-caption { position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--accent); }

/* ---------- LOCAL motif ---------- */
.local-motif { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.lm-boundary {
  position: relative; width: clamp(170px, 22vw, 210px); aspect-ratio: 1; border-radius: 26px;
  border: 1.5px dashed var(--violet); display: grid; place-items: center;
  box-shadow: inset 0 0 40px rgba(155,107,255,0.10);
}
.lm-boundary-label { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: #0A0A11; padding: 0 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--violet); white-space: nowrap; }
.lm-core { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: #fff;
  background: radial-gradient(circle at 30% 30%, #C8B0FF, var(--violet)); box-shadow: 0 0 26px rgba(155,107,255,0.6); z-index: 2; }
.lm-orbit { position: absolute; inset: 14px; }
.motif-layer.is-on .lm-orbit { animation: lmSpin 7s linear infinite; }
@keyframes lmSpin { to { transform: rotate(360deg); } }
.lm-data { position: absolute; width: 8px; height: 8px; border-radius: 3px; background: #D6C2FF; box-shadow: 0 0 10px rgba(155,107,255,0.7); }
.lm-data-1 { left: 50%; top: -4px; transform: translateX(-50%); }
.lm-data-2 { right: -4px; top: 50%; transform: translateY(-50%); }
.lm-data-3 { left: 14%; bottom: -4px; }
.lm-cloud { position: absolute; top: 2px; right: 6px; color: var(--text-dim); text-align: center; opacity: 0.65; }
.lm-cloud-x { position: absolute; left: 50%; top: 12px; width: 46px; height: 1.6px; background: var(--danger); transform: translateX(-50%) rotate(-20deg); }
.lm-cloud-label { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--danger); margin-top: 4px; }
.lm-caption { position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--violet); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .ind-scroller { grid-template-columns: 1fr; gap: 0; }
  .ind-stage { display: none; }
  .ind-panel { min-height: 0; padding: 32px 0; }
  .ind-family-head { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  .cm-in, .cm-out, .cm-core-ring, .lm-orbit { animation: none !important; }
  .cm-in, .cm-out { opacity: 0; }
}
