/* /branding/process — FUTURISTIC / SCI-FI mission-system theme
   Dark space canvas, neon brand accents, wired timeline, HUD panels.
   On-brand: the BytesGlue mark is a space astronaut. */

.proc {
  --p-bg: #05080F;
  --p-bg2: #0A0F1C;
  --p-panel: rgba(14, 23, 42, 0.94);
  --p-solid: #0C1322;
  --p-line: rgba(120, 160, 220, 0.16);
  --p-line-2: rgba(120, 160, 220, 0.30);
  --p-blue: #2E8BFF;
  --p-cyan: #34E0FF;
  --p-orange: #FB7A2E;
  --p-violet: #7C5CFF;
  --p-text: #EAF1FB;
  --p-muted: #94A8C6;
  --p-dim: #5E6F8C;
  --p-mono: "JetBrains Mono", ui-monospace, monospace;
  --p-display: "Space Grotesk", system-ui, sans-serif;
  --p-body: "Inter", system-ui, sans-serif;

  position: relative;
  background: var(--p-bg);
  color: var(--p-text);
  font-family: var(--p-body);
  overflow: hidden;
}

/* page-wide dark + ambient field — scoped to the React mount so the surrounding
   site chrome (header/footer) keeps its own background. */
.bg-brand-scope { background: #05080F; }

/* /branding only: pull the footer's top padding in so the dark constellation
   section meets the footer band without the default 240px gap. Pricing keeps
   its default gap. */
body.bytesglue-branding-body footer > .vl-footer {
  padding-top: 50px !important;
}

.proc-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 82% 4%, rgba(46,125,255,0.18), transparent 60%),
    radial-gradient(760px 520px at 8% 30%, rgba(52,224,255,0.10), transparent 60%),
    radial-gradient(700px 700px at 50% 116%, rgba(124,92,255,0.12), transparent 60%);
}
.proc-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120,160,220,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,220,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, black, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, black, transparent 70%);
}
.proc-stars {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.8;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 18%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 68% 28%, rgba(52,224,255,0.8), transparent),
    radial-gradient(1px 1px at 42% 48%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 88% 62%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 26% 72%, rgba(46,139,255,0.8), transparent),
    radial-gradient(1px 1px at 78% 88%, rgba(255,255,255,0.4), transparent);
}
.proc > * { position: relative; z-index: 1; }

.proc .container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .proc .container { padding: 0 20px; } }
.proc .sec { padding: 110px 0; position: relative; overflow: hidden; contain: paint; }
@media (max-width: 720px) { .proc .sec { padding: 72px 0; } }

/* ---------- HUD label / eyebrow ---------- */
.hud {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--p-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--p-cyan);
}
.hud::before {
  content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--p-cyan));
}
.hud-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--p-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--p-cyan);
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(52,224,255,0.30);
  background: rgba(52,224,255,0.06);
}
.hud-pill .led { width: 6px; height: 6px; border-radius: 50%; background: var(--p-cyan); box-shadow: 0 0 10px var(--p-cyan); animation: led 2.4s ease-in-out infinite; }
@keyframes led { 50% { opacity: 0.35; } }

.proc h1, .proc h2, .proc h3, .proc h4 { font-family: var(--p-display); margin: 0; color: var(--p-text); letter-spacing: -0.02em; font-weight: 600; }
.proc-display { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.0; letter-spacing: -0.04em; font-weight: 700; }
.proc-h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.proc-lede { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--p-muted); max-width: 62ch; }
.proc-body { font-size: 14.5px; line-height: 1.6; color: var(--p-muted); }
.glow-cyan { color: var(--p-cyan); text-shadow: 0 0 24px rgba(52,224,255,0.5); }
.glow-blue { color: #6FB4FF; text-shadow: 0 0 24px rgba(46,139,255,0.55); }

/* ---------- Hero ---------- */
.proc-hero { padding: 88px 0 80px; position: relative; overflow: hidden; }
.proc-hero .container { position: relative; z-index: 1; }
.hero-constellation { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* Page-wide constellation: sticks to the viewport while .proc is in view so the
   network of points sits behind every section (not just the hero) and scrolls
   off naturally when the footer comes up. */
.proc > .hero-constellation-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  margin-bottom: -100vh; /* take no space in flow — sections render directly after the backdrop layers */
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Per-section constellation overlay: same look as HeroFX but bound to a single
   .sec so each section carries its own local particle field on top of (and
   independent from) the sticky page-wide canvas. */
.proc .sec > .sec-constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.proc .sec.sec-timeline { contain: none; }
.proc .sec > .container { position: relative; z-index: 1; }
.proc .sec > .timeline-constellation {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  margin-bottom: -100vh;
  transform: translateY(-110px);
  z-index: 0;
  pointer-events: none;
  display: block;
}

.proc .anchor-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

@media (max-width: 720px) {
  .proc .sec > .timeline-constellation {
    transform: translateY(-72px);
  }
}

.proc-hero-art { transition: transform .25s ease-out; will-change: transform; }
.proc-hero-grid { margin-top: 20px; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,0.92fr); gap: 48px; align-items: center; }
@media (max-width: 960px) { .proc-hero-grid { grid-template-columns: 1fr; gap: 36px; } .proc-hero-art { order: -1; } }

.proc-hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.proc-hero-ring {
  position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(52,224,255,0.18);
  box-shadow: inset 0 0 60px rgba(46,139,255,0.18);
}
.proc-hero-ring::after {
  content: ""; position: absolute; inset: -8%; border-radius: 50%;
  border: 1px dashed rgba(120,160,220,0.18);
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.proc-hero-art .halo {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(46,139,255,0.4), transparent 70%);
  filter: blur(14px);
}
.proc-hero-art img { position: relative; width: 74%; filter: drop-shadow(0 26px 50px rgba(46,139,255,0.5)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px); } }

.proc-stats { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.proc-stat { flex: 1; min-width: 120px; padding: 16px 18px; border: 1px solid var(--p-line); border-radius: 12px; background: var(--p-panel); }
.proc-stat-k { font-family: var(--p-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.proc-stat-l { font-family: var(--p-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--p-dim); margin-top: 6px; }

/* buttons on the dark page */
.proc .btn-neon {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--p-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 13px 22px; border-radius: 10px; cursor: pointer;
  background: linear-gradient(180deg, #3A93FF, #1E66E6); color: #fff;
  border: 1px solid rgba(120,180,255,0.6);
  box-shadow: 0 0 0 1px rgba(46,139,255,0.3), 0 18px 40px -16px rgba(46,139,255,0.8);
  transition: transform .15s ease, box-shadow .2s ease;
}
.proc .btn-neon:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(52,224,255,0.6), 0 22px 48px -14px rgba(52,224,255,0.6); }
.proc .btn-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--p-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 13px 22px; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--p-text);
  border: 1px solid var(--p-line-2);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.proc .btn-line:hover { border-color: var(--p-cyan); color: var(--p-cyan); background: rgba(52,224,255,0.05); }
.proc .ar { width: 14px; height: 14px; }

/* ---------- Section heading ---------- */
.proc-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.proc-head .hud, .proc-head .hud-pill { margin-bottom: 18px; }

/* ---------- Mission timeline ---------- */
.tl { position: relative; }
.tl-spine { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(52,224,255,0.45) 8%, rgba(46,139,255,0.45) 92%, transparent);
}
.tl-step { position: relative; display: grid; grid-template-columns: 1fr 76px 1fr; align-items: center; margin-bottom: 26px; }
.tl-step:last-child { margin-bottom: 0; }
.tl-card-wrap { grid-column: 1; display: flex; justify-content: flex-end; }
.tl-step.right .tl-card-wrap { grid-column: 3; justify-content: flex-start; }
.tl-node { grid-column: 2; display: flex; align-items: center; justify-content: center; position: relative; }

.tl-node-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--p-bg); border: 2px solid var(--p-cyan);
  box-shadow: 0 0 0 4px rgba(52,224,255,0.10), 0 0 18px rgba(52,224,255,0.7);
  position: relative; z-index: 2;
}
.tl-node-dot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(52,224,255,0.4); animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
.tl-step.gate .tl-node-dot { border-color: var(--p-orange); box-shadow: 0 0 0 4px rgba(251,122,46,0.12), 0 0 18px rgba(251,122,46,0.7); }
.tl-step.gate .tl-node-dot::after { border-color: rgba(251,122,46,0.45); }
.tl-step.opt .tl-node-dot { border-color: var(--p-dim); box-shadow: none; }
.tl-step.opt .tl-node-dot::after { display: none; }

/* connector from node to card */
.tl-card-wrap::before {
  content: ""; position: absolute; top: 50%; width: 38px; height: 1px;
  background: linear-gradient(90deg, var(--p-cyan), transparent);
}
.tl-step:not(.right) .tl-card-wrap::before { right: calc(50% - 38px); transform: translateX(0); left: auto; background: linear-gradient(270deg, var(--p-cyan), transparent); }
.tl-step.right .tl-card-wrap::before { left: calc(50% - 38px); }

/* console card */
.tl-card {
  position: relative;
  width: 100%; max-width: 460px;
  background: linear-gradient(180deg, rgba(18,28,50,0.96), rgba(10,16,30,0.96));
  border: 1px solid var(--p-line);
  border-radius: 14px;
  padding: 22px 22px 20px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .2s ease;
}
.tl-card:hover { border-color: rgba(52,224,255,0.5); transform: translateY(-3px); box-shadow: 0 24px 60px -28px rgba(46,139,255,0.6); }
.tl-step.gate .tl-card { border-color: rgba(251,122,46,0.32); }
.tl-step.opt .tl-card { border-style: dashed; }

.tl-cardhead { display: flex; align-items: center; justify-content: space-between; }
.tl-num { font-family: var(--p-display); font-weight: 700; font-size: 30px; letter-spacing: -0.03em; color: #6FB4FF; line-height: 1; }
.tl-step.gate .tl-num { color: var(--p-orange); }
.tl-step.opt .tl-num { color: var(--p-dim); }
.tl-status {
  font-family: var(--p-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 5px; border: 1px solid var(--p-line-2); color: var(--p-muted);
}
.tl-status.s-gate { color: var(--p-orange); border-color: rgba(251,122,46,0.4); }
.tl-status.s-hand { color: var(--p-cyan); border-color: rgba(52,224,255,0.4); }
.tl-title { font-family: var(--p-display); font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin-top: 14px; color: var(--p-text); }
.tl-what { font-size: 13.5px; line-height: 1.55; color: var(--p-muted); margin-top: 9px; }

.tl-why {
  margin-top: 14px; padding: 11px 13px;
  border-left: 2px solid var(--p-cyan);
  background: linear-gradient(90deg, rgba(52,224,255,0.08), transparent);
  border-radius: 0 8px 8px 0;
}
.tl-why-label { font-family: var(--p-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--p-cyan); }
.tl-why-text { font-size: 12.5px; line-height: 1.5; color: var(--p-text); opacity: 0.92; margin-top: 4px; }

.tl-meta { margin-top: 16px; display: grid; gap: 10px; }
.tl-meta-row { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; }
.tl-meta-k { font-family: var(--p-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--p-dim); padding-top: 5px; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-chip { font-family: var(--p-mono); font-size: 10px; letter-spacing: 0.02em; color: var(--p-muted); padding: 4px 9px; border-radius: 6px; border: 1px solid var(--p-line); background: rgba(120,160,220,0.05); }
.tl-chip.out { color: #8FE9FF; border-color: rgba(52,224,255,0.25); background: rgba(52,224,255,0.06); }

@media (max-width: 860px) {
  .tl-spine { left: 22px; }
  .tl-step { grid-template-columns: 44px 1fr; gap: 6px; }
  .tl-node { grid-column: 1; }
  .tl-card-wrap, .tl-step.right .tl-card-wrap { grid-column: 2; justify-content: flex-start; }
  .tl-card-wrap::before, .tl-step.right .tl-card-wrap::before { left: -16px; right: auto; width: 16px; background: linear-gradient(270deg, var(--p-cyan), transparent); }
  .tl-card { max-width: none; }
}

/* ---------- Palette showcase ---------- */
.pal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 880px) { .pal-grid { grid-template-columns: repeat(2, 1fr); } }
.pal-card {
  position: relative; border: 1px solid var(--p-line); border-radius: 14px; overflow: hidden;
  background: var(--p-solid); transition: transform .18s ease, box-shadow .2s ease;
}
.pal-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -26px rgba(0,0,0,0.8); }
.pal-fill { height: 130px; position: relative; display: flex; align-items: flex-end; padding: 12px; }
.pal-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.35)); }
.pal-role { position: relative; font-family: var(--p-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.pal-meta { padding: 14px; }
.pal-name { font-family: var(--p-display); font-weight: 600; font-size: 15px; }
.pal-hex { font-family: var(--p-mono); font-size: 11px; color: var(--p-cyan); margin-top: 3px; }
.pal-use { font-size: 11.5px; color: var(--p-muted); margin-top: 8px; line-height: 1.45; }

.pal-extras { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 760px) { .pal-extras { grid-template-columns: 1fr; } }
.pal-panel { border: 1px solid var(--p-line); border-radius: 14px; background: var(--p-panel); padding: 18px; }
.pal-gradient { height: 80px; border-radius: 10px; background: linear-gradient(110deg, #1E66E6, #2E8BFF 45%, #34E0FF); }
.pal-ramp { display: flex; border-radius: 8px; overflow: hidden; margin-top: 14px; }
.pal-ramp span { flex: 1; height: 40px; }

/* ---------- Type showcase ---------- */
.type-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
@media (max-width: 880px) { .type-grid { grid-template-columns: 1fr; } }
.type-card { border: 1px solid var(--p-line); border-radius: 16px; background: var(--p-panel); padding: clamp(22px, 3vw, 34px); }
.type-row { display: flex; align-items: baseline; justify-content: space-between; }
.type-spec { font-weight: 700; line-height: 0.96; letter-spacing: -0.04em; margin-top: 14px; color: var(--p-text); }
.type-sample { color: var(--p-muted); margin-top: 12px; }
.type-why { font-size: 12.5px; color: var(--p-muted); margin-top: 14px; line-height: 1.5; }
.type-tag { font-family: var(--p-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--p-cyan); }
.type-scale { border: 1px solid var(--p-line); border-radius: 16px; background: var(--p-panel); padding: clamp(20px,3vw,30px); margin-top: 16px; }
.type-scale-row { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: baseline; border-top: 1px solid var(--p-line); padding-top: 14px; margin-top: 14px; }
.type-scale-row:first-of-type { border-top: none; }
.type-scale-k { font-family: var(--p-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--p-dim); text-transform: uppercase; }

/* ---------- AI band ---------- */
.ai-band { border: 1px solid var(--p-line); border-radius: 22px; padding: clamp(28px,4vw,54px); background:
  radial-gradient(700px 300px at 88% 0%, rgba(46,139,255,0.16), transparent 70%), linear-gradient(180deg, rgba(16,26,46,0.7), rgba(8,13,26,0.7)); position: relative; overflow: hidden; }
.ai-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .ai-grid2 { grid-template-columns: 1fr; gap: 30px; } }
.ai-items2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .ai-items2 { grid-template-columns: 1fr; } }
.ai-item2 { border: 1px solid var(--p-line); border-radius: 12px; background: rgba(10,16,30,0.5); padding: 18px; }
.ai-item2 .n { font-family: var(--p-mono); font-size: 11px; color: var(--p-cyan); letter-spacing: 0.1em; }
.ai-item2 h4 { font-family: var(--p-display); font-size: 16px; font-weight: 600; margin-top: 8px; }
.ai-item2 p { font-size: 12.5px; color: var(--p-muted); margin-top: 6px; line-height: 1.5; }

/* ---------- CTA ---------- */
.proc-cta { border: 1px solid rgba(52,224,255,0.28); border-radius: 24px; padding: clamp(32px,4vw,64px); position: relative; overflow: hidden;
  background: radial-gradient(620px 300px at 84% 50%, rgba(46,139,255,0.22), transparent 70%), linear-gradient(180deg, rgba(14,22,42,0.85), rgba(7,11,22,0.9)); }
.proc-cta-grid { display: grid; grid-template-columns: 1.5fr auto; gap: 40px; align-items: center; }
@media (max-width: 720px) { .proc-cta-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .proc-hero-art img, .proc-hero-ring::after, .tl-node-dot::after, .hud-pill .led { animation: none; }
}

/* ============================================================
   FANCY FRAMES + HUD GRAPHICS
   ============================================================ */

/* 4-corner L brackets + edge ticks (Frame component) */
.frame { position: relative; isolation: isolate; }
.frame > .cnr {
  position: absolute; width: 15px; height: 15px; pointer-events: none; z-index: -1;
  color: var(--p-cyan); border-color: var(--p-cyan); opacity: 0.85;
}
.frame > .cnr.tl { top: 8px; left: 8px; border-top: 2px solid; border-left: 2px solid; border-top-left-radius: 5px; }
.frame > .cnr.tr { top: 8px; right: 8px; border-top: 2px solid; border-right: 2px solid; border-top-right-radius: 5px; }
.frame > .cnr.bl { bottom: 8px; left: 8px; border-bottom: 2px solid; border-left: 2px solid; border-bottom-left-radius: 5px; }
.frame > .cnr.br { bottom: 8px; right: 8px; border-bottom: 2px solid; border-right: 2px solid; border-bottom-right-radius: 5px; }
.frame > .edge-tick { position: absolute; left: 50%; transform: translateX(-50%); width: 28px; height: 2px; background: var(--p-line-2); pointer-events: none; z-index: -1; }
.frame > .edge-tick.et-t { top: -1px; }
.frame > .edge-tick.et-b { bottom: -1px; }
.frame.frame-glow:hover > .cnr { opacity: 1; }
.tl-step.gate .frame > .cnr { border-color: var(--p-orange); }
.tl-step.opt .frame > .cnr { border-color: var(--p-dim); }

/* base for all decorative svg/graphics */
.deco { position: absolute; pointer-events: none; color: var(--p-cyan); z-index: 0; }

/* scanline overlay */
.scanline { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5;
  background: repeating-linear-gradient(180deg, rgba(120,160,220,0.05) 0 1px, transparent 1px 4px);
  mask-image: radial-gradient(ellipse at 60% 40%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, black, transparent 75%);
}

/* radar sweep (hero) */
.radar { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(52,224,255,0.18); overflow: hidden; }
.radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(52,224,255,0.32), rgba(52,224,255,0) 70deg);
  animation: spin 5s linear infinite; }

/* readout chips */
.readout { position: absolute; z-index: 3; display: inline-flex; flex-direction: column; gap: 1px;
  font-family: var(--p-mono); padding: 6px 10px; border-radius: 8px;
  background: rgba(8,13,26,0.92); border: 1px solid var(--p-line-2); }
.readout-l { font-size: 8px; letter-spacing: 0.16em; color: var(--p-dim); }
.readout-v { font-size: 11px; letter-spacing: 0.06em; color: var(--p-cyan); }
.ro-1 { top: 6%; left: -4%; } .ro-2 { bottom: 18%; left: -8%; } .ro-3 { top: 38%; right: -6%; }
@media (max-width: 540px) { .readout { display: none; } }

/* ---- hero decorations ---- */
.d-hero-ret { width: 150px; height: 150px; top: 8%; right: 4%; opacity: 0.16; }
.d-hero-ticks { width: 14px; height: 240px; top: 30%; left: -10px; opacity: 0.22; }
.d-hero-plus { width: 200px; height: 200px; bottom: 4%; left: 2%; opacity: 0.18; color: var(--p-violet); }
.d-hero-rings { width: 150%; height: 150%; opacity: 0.14; color: var(--p-blue); }
.d-hero-wave { width: 180px; height: 50px; bottom: 4%; right: -4%; opacity: 0.5; color: var(--p-cyan); }

/* ---- timeline decorations ---- */
.d-tl-rings { width: 360px; height: 360px; top: 4%; left: -120px; opacity: 0.10; }
.d-tl-circuit { width: 340px; height: 200px; bottom: 6%; right: -80px; opacity: 0.12; color: var(--p-violet); }
.d-tl-ticks { width: 14px; height: 320px; top: 24%; right: 8px; opacity: 0.16; }
.tl-pulse { position: absolute; left: 50%; top: 0; width: 8px; height: 8px; transform: translateX(-50%);
  border-radius: 50%; background: var(--p-cyan); box-shadow: 0 0 14px var(--p-cyan);
  animation: pulse-down 4.5s ease-in-out infinite; }
@keyframes pulse-down { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@media (max-width: 860px) { .tl-pulse { left: 22px; } }

.tl-watermark { position: absolute; top: 6px; right: 16px; font-family: var(--p-display); font-weight: 700;
  font-size: 78px; line-height: 1; color: rgba(120,160,220,0.05); z-index: 0; pointer-events: none; letter-spacing: -0.04em; }
.d-card-dots { width: 70px; height: 46px; bottom: 16px; right: 14px; opacity: 0.18; }
.tl-card > .tl-cardhead, .tl-card > .tl-title, .tl-card > .tl-what, .tl-card > .tl-why, .tl-card > .tl-meta { position: relative; z-index: 2; }

/* ---- palette decorations ---- */
.d-pal-ret { width: 170px; height: 170px; top: 6%; left: 2%; opacity: 0.14; }
.d-pal-bars { width: 120px; height: 100px; top: 10%; right: 4%; opacity: 0.2; color: var(--p-blue); }
.d-pal-plus { width: 220px; height: 220px; bottom: 0; right: 6%; opacity: 0.14; color: var(--p-violet); }
.pal-idx { position: absolute; top: 10px; right: 12px; font-family: var(--p-mono); font-size: 10px; letter-spacing: 0.12em; color: rgba(255,255,255,0.55); }
.pal-card { overflow: hidden; }

/* ---- type decorations ---- */
.d-type-wave { width: 240px; height: 60px; top: 8%; right: 3%; opacity: 0.35; }
.d-type-dots { width: 140px; height: 84px; bottom: 6%; left: 3%; opacity: 0.16; color: var(--p-violet); }
.type-card-main { position: relative; overflow: hidden; }
.d-type-baseline { width: 90px; height: 14px; top: 18px; right: 18px; opacity: 0.4; }
.type-card > .type-row, .type-card > .type-spec, .type-card > .type-sample, .type-card > .type-why, .type-card > .type-tag, .type-card > p { position: relative; z-index: 2; }

/* ---- AI decorations ---- */
.d-ai-circuit { width: 320px; height: 190px; bottom: -10px; right: -40px; opacity: 0.14; }
.d-ai-ret { width: 130px; height: 130px; top: -20px; left: -20px; opacity: 0.14; color: var(--p-violet); }
.ai-band { position: relative; overflow: hidden; }
.ai-band > .ai-grid2 { position: relative; z-index: 2; }

/* ---- CTA decorations ---- */
.proc-cta { position: relative; overflow: hidden; }
.d-cta-rings { width: 280px; height: 280px; top: -40px; right: -40px; opacity: 0.16; }
.d-cta-plus { width: 180px; height: 180px; bottom: 0; left: 2%; opacity: 0.16; color: var(--p-violet); }
.d-cta-wave { width: 200px; height: 50px; top: 12%; left: 30%; opacity: 0.3; }
.proc-cta > .proc-cta-grid { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .radar::after, .tl-pulse { animation: none; }
}

/* ============================================================
   PER-CHECKPOINT VIZ WIDGETS
   ============================================================ */
.tl-card > .tl-screen { position: relative; z-index: 2; margin: 14px 0 6px; }

.viz-screen { border: 1px solid var(--p-line); border-radius: 11px; overflow: hidden; background: rgba(6,11,22,0.55); }
.viz-bar { display: flex; align-items: center; justify-content: space-between; padding: 7px 11px; border-bottom: 1px solid var(--p-line); background: rgba(10,16,30,0.7); }
.viz-dots { display: inline-flex; gap: 5px; }
.viz-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--p-line-2); }
.viz-dots i:first-child { background: var(--p-orange); opacity: 0.8; }
.viz-tag { font-family: var(--p-mono); font-size: 9.5px; letter-spacing: 0.08em; color: var(--p-dim); }
.viz-body { padding: 13px; }

/* 01 research console */
.viz-console { font-family: var(--p-mono); font-size: 11px; line-height: 1.7; min-height: 112px; }
.vc-line { white-space: pre-wrap; word-break: break-word; }
.vc-sys { color: var(--p-cyan); }
.vc-res { color: var(--p-muted); }
.vc-mark { color: var(--p-cyan); margin-right: 6px; }
.vc-caret { display: inline-block; width: 7px; height: 13px; background: var(--p-cyan); margin-left: 3px; vertical-align: -2px; animation: blink 1s steps(1) infinite; box-shadow: 0 0 8px var(--p-cyan); }
@keyframes blink { 50% { opacity: 0; } }

/* 02 brand axis calibration (semantic sliders) */
.viz-axes { display: grid; gap: 13px; padding: 4px 2px 2px; }
.ax-row { display: grid; gap: 6px; }
.ax-cap { display: flex; justify-content: space-between; font-family: var(--p-mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--p-dim); transition: color .4s; }
.ax-cap .on { color: var(--p-cyan); text-shadow: 0 0 10px rgba(52,224,255,0.45); }
.ax-track { position: relative; height: 5px; border-radius: 3px; background: rgba(159,178,199,0.12); touch-action: none; }
.ax-mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: rgba(159,178,199,0.22); }
.ax-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, rgba(46,139,255,0.55), #34E0FF); box-shadow: 0 0 12px rgba(52,224,255,0.32); }
.ax-knob { position: absolute; top: 50%; width: 13px; height: 13px; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px solid #BFefff; background: radial-gradient(circle at 38% 32%, #eafcff, #2E8BFF 78%); box-shadow: 0 0 0 3px rgba(46,139,255,0.18), 0 0 12px rgba(52,224,255,0.55); cursor: grab; padding: 0; }
.ax-knob:hover { box-shadow: 0 0 0 4px rgba(52,224,255,0.22), 0 0 16px rgba(52,224,255,0.8); }
.ax-row.dragging .ax-knob { cursor: grabbing; box-shadow: 0 0 0 5px rgba(52,224,255,0.22), 0 0 18px rgba(52,224,255,0.9); }
.viz-axes-foot { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-family: var(--p-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--p-cyan); }
.ax-led { width: 6px; height: 6px; border-radius: 50%; background: #34E0FF; box-shadow: 0 0 8px #34E0FF; animation: axpulse 1.8s ease-in-out infinite; }
@keyframes axpulse { 50% { opacity: 0.35; } }

/* 03 palette (tints + click-to-copy) */
.viz-pal2 { display: flex; gap: 7px; }
.viz-pchip { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; cursor: pointer; display: flex; flex-direction: column; gap: 5px; font-family: var(--p-mono); }
.viz-pchip-fill { height: 54px; border-radius: 8px; display: flex; align-items: flex-end; padding: 7px; transition: transform .15s, box-shadow .2s; }
.viz-pchip:hover .viz-pchip-fill { transform: translateY(-4px); box-shadow: 0 12px 22px -8px var(--c); }
.viz-pchip-tag { font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.viz-pchip-tints { display: flex; gap: 3px; }
.viz-pchip-tints i { flex: 1; height: 8px; border-radius: 2px; }
.viz-pchip-hex { font-size: 8.5px; color: var(--p-muted); text-align: left; }
.viz-pal-grad { height: 12px; border-radius: 6px; margin-top: 10px; background: linear-gradient(90deg, #1E66E6, #2E8BFF 45%, #34E0FF); }

/* 04 type chips */
.viz-type-row { display: flex; gap: 8px; }
.viz-type-chip { flex: 1; aspect-ratio: 1; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-family: var(--p-display); font-weight: 700; font-size: 26px; letter-spacing: -0.03em; }
.viz-type-light { background: #F3F8FF; color: #0A0F1C; }
.viz-type-names { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 12px; font-family: var(--p-mono); font-size: 10px; color: var(--p-muted); }
.viz-type-names i { color: var(--p-dim); }

/* 05 messaging (interactive) */
.viz-msg { position: relative; min-height: 96px; display: flex; flex-direction: column; justify-content: center; padding: 4px 4px 0; }
.viz-msg-q { position: absolute; top: -8px; left: 0; font-family: var(--p-display); font-size: 44px; color: rgba(52,224,255,0.25); line-height: 1; }
.viz-msg-text { font-family: var(--p-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--p-text); padding-left: 22px; min-height: 46px; animation: msgIn .45s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.viz-msg-ctl { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding-left: 22px; }
.viz-msg-btn { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--p-line-2); background: transparent; color: var(--p-cyan); cursor: pointer; font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.viz-msg-btn:hover { border-color: var(--p-cyan); background: rgba(52,224,255,0.08); }
.viz-msg-dots { display: flex; gap: 6px; }
.viz-msg-dots i { width: 14px; height: 3px; border-radius: 2px; background: var(--p-line-2); transition: background .3s; cursor: pointer; }
.viz-msg-dots i.on { background: var(--p-cyan); }
.viz-msg-gen { margin-left: auto; font-family: var(--p-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--p-cyan); background: rgba(52,224,255,0.08); border: 1px solid rgba(52,224,255,0.3); border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.viz-msg-gen:hover { background: rgba(52,224,255,0.16); }

/* 06 logo (interactive variants) */
.viz-logo2 { height: 116px; border-radius: 10px; border: 1px solid var(--p-line); display: flex; align-items: center; justify-content: center; gap: 12px; transition: background .25s; }
.viz-logo2-mark { width: 64px; transition: filter .25s, width .25s; }
.viz-logo2-word { font-family: var(--p-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; transition: color .25s; }
.viz-logo2.v-dark { background: radial-gradient(circle at 50% 35%, rgba(46,139,255,0.25), #070C17 75%); }
.viz-logo2.v-dark .viz-logo2-word { color: #fff; }
.viz-logo2.v-light { background: #F3F8FF; }
.viz-logo2.v-light .viz-logo2-word { color: #0A0F1C; }
.viz-logo2.v-mono { background: #0c1322; }
.viz-logo2.v-mono .viz-logo2-mark { filter: grayscale(1) brightness(1.6); }
.viz-logo2.v-mono .viz-logo2-word { color: #C2D2E6; }
.viz-logo2.v-icon { background: radial-gradient(circle at 50% 40%, rgba(52,224,255,0.22), #070C17 78%); }
.viz-logo2.v-icon .viz-logo2-mark { width: 84px; }
.viz-logo-tabs { display: flex; gap: 6px; margin-top: 10px; }
.viz-logo-tabs button { flex: 1; font-family: var(--p-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--p-muted); background: transparent; border: 1px solid var(--p-line); border-radius: 7px; padding: 7px 0; cursor: pointer; transition: all .15s; }
.viz-logo-tabs button:hover { border-color: rgba(52,224,255,0.5); color: var(--p-text); }
.viz-logo-tabs button.on { color: var(--p-cyan); border-color: var(--p-cyan); background: rgba(52,224,255,0.08); }

/* 07 system */
.viz-sys { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 7px; }
.viz-sys-tile { border: 1px solid var(--p-line); border-radius: 8px; background: #070C17; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.viz-sys-tile img { width: 30px; } .viz-sys-tile b { font-size: 22px; color: var(--p-text); }
.viz-sys-tile span { font-family: var(--p-mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--p-dim); }
.viz-sys-pal { display: flex; gap: 3px; } .viz-sys-pal i { width: 8px; height: 18px; border-radius: 2px; }
.viz-sys-grid { width: 30px; height: 30px; background-image: linear-gradient(var(--p-cyan) 1px, transparent 1px), linear-gradient(90deg, var(--p-cyan) 1px, transparent 1px); background-size: 8px 8px; opacity: 0.5; }

/* 08 business card (flip + circuit + QR) */
.viz-flip { perspective: 1100px; display: flex; justify-content: center; padding: 4px 0; }
.viz-flip-in { position: relative; width: 88%; aspect-ratio: 1.74; transition: transform .7s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.viz-flip:hover .viz-flip-in, .viz-flip.flip-on .viz-flip-in { transform: rotateY(180deg); }
.viz-bcard { position: absolute; inset: 0; border-radius: 11px; backface-visibility: hidden; overflow: hidden; }
.viz-bcircuit { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; pointer-events: none; }

/* front — echoes the real BytesGlue card */
.viz-bcard-front { display: flex; gap: 9px; padding: 11px 12px; border: 1px solid rgba(46,139,255,0.45); background: radial-gradient(130% 120% at 16% 6%, #14274d 0%, #0a1428 46%, #050a14 100%); box-shadow: inset 0 0 22px rgba(46,139,255,0.12); }
.bc-left { position: relative; z-index: 1; flex: 1.3; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.bc-brand { display: flex; align-items: center; gap: 8px; }
.bc-brand img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 7px rgba(52,224,255,0.55)); }
.bc-brand-tx { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.bc-word { font-family: var(--p-display); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; color: #fff; }
.bc-sub { font-family: var(--p-mono); font-size: 6.2px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--p-cyan); margin-top: 4px; white-space: nowrap; }
.bc-svcs { display: flex; gap: 7px; }
.bc-hex { color: var(--p-cyan); filter: drop-shadow(0 0 5px rgba(52,224,255,0.4)); }
.bc-hex svg { width: 22px; height: 22px; display: block; }
.bc-hex .bc-hex-o { stroke: rgba(52,224,255,0.55); }
.bc-tagstrip { display: flex; align-items: center; gap: 5px; font-family: var(--p-mono); font-size: 6px; letter-spacing: 0.18em; color: #9fc6e6; }
.bc-tagstrip span { white-space: nowrap; }
.bc-tagstrip b { width: 2px; height: 2px; border-radius: 50%; background: var(--p-cyan); flex: none; }
.bc-tagstrip i { flex: none; width: 12px; height: 1px; background: linear-gradient(90deg, transparent, rgba(52,224,255,0.6)); }
.bc-tagstrip i:last-child { background: linear-gradient(90deg, rgba(52,224,255,0.6), transparent); }
.bc-right { position: relative; z-index: 1; flex: none; width: 30%; max-width: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.bc-scan { font-family: var(--p-mono); font-size: 6.4px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--p-cyan); }
.bc-qrwrap { position: relative; padding: 5px; }
.viz-qr2 { width: 62px; height: 62px; display: grid; grid-template-columns: repeat(21, 1fr); grid-template-rows: repeat(21, 1fr); padding: 4px; background: #fff; border-radius: 4px; box-shadow: 0 0 10px rgba(52,224,255,0.3); }
.viz-qr2 i { background: transparent; }
.viz-qr2 i.on { background: #07101f; }
.bc-cnr { position: absolute; width: 7px; height: 7px; border: 1.5px solid var(--p-cyan); }
.bc-cnr.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.bc-cnr.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.bc-cnr.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.bc-cnr.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.bc-vpill { font-family: var(--p-mono); font-size: 6.4px; letter-spacing: 0.1em; color: var(--p-cyan); border: 1px solid rgba(52,224,255,0.4); border-radius: 20px; padding: 2px 9px; }

/* back — white contact side */
.viz-bcard-back { transform: rotateY(180deg); border: 1px solid rgba(46,139,255,0.3); background: linear-gradient(160deg, #ffffff, #eaf1fa); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 9px; text-align: center; }
.bc-back-logo { width: 28px; height: 28px; object-fit: contain; }
.bc-back-word { font-family: var(--p-display); font-weight: 700; font-size: 14px; color: #0a1430; letter-spacing: -0.02em; margin-top: 3px; }
.bc-back-sub { font-family: var(--p-mono); font-size: 5.6px; letter-spacing: 0.1em; text-transform: uppercase; color: #2E8BFF; margin-top: 3px; }
.bc-back-name { font-family: var(--p-display); font-weight: 700; font-size: 13px; color: #0a1430; margin-top: 6px; }
.bc-back-role { font-family: var(--p-mono); font-size: 6px; letter-spacing: 0.12em; text-transform: uppercase; color: #2E8BFF; margin-top: 2px; }
.bc-back-rows { display: flex; flex-direction: column; gap: 2px; margin-top: 7px; }
.bc-back-rows span { display: flex; align-items: center; gap: 5px; font-family: var(--p-mono); font-size: 7px; color: #41506a; }
.bc-back-rows i { width: 4px; height: 4px; border-radius: 50%; background: #2E8BFF; flex: none; }

/* 09 pillars */
.viz-pillars { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.viz-pillar { border: 1px solid var(--p-line); border-radius: 8px; background: #070C17; padding: 10px; display: grid; gap: 7px; }
.viz-pillar i { width: 18px; height: 3px; border-radius: 2px; }
.viz-pillar span { font-size: 10px; font-weight: 600; color: var(--p-text); }
.viz-pillar em { display: grid; gap: 3px; } .viz-pillar u { height: 3px; background: rgba(159,178,199,0.2); border-radius: 2px; display: block; }

/* 10 real social posts */
.viz-posts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.viz-post { position: relative; margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--p-line); aspect-ratio: 1; }
.viz-post img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.viz-post:hover img { transform: scale(1.06); }
.viz-post figcaption { position: absolute; left: 8px; bottom: 8px; font-family: var(--p-mono); font-size: 9px; letter-spacing: 0.06em; color: #fff; background: rgba(6,11,22,0.85); border: 1px solid rgba(52,224,255,0.3); padding: 3px 7px; border-radius: 5px; }
.viz-posts-meta { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 11px; font-family: var(--p-mono); font-size: 9.5px; color: var(--p-muted); }
.viz-posts-meta i { color: var(--p-dim); }

/* 11 file tree */
.viz-tree { font-family: var(--p-mono); font-size: 11px; line-height: 1.9; }
.viz-tree-row { color: var(--p-muted); } .viz-tree-row span { color: var(--p-cyan); margin-right: 8px; }

/* 12 calendar (real month) */
.viz-calhead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.viz-calmonth { font-family: var(--p-display); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; color: var(--p-text); }
.viz-callabel { font-family: var(--p-mono); font-size: 9px; color: var(--p-dim); }
.viz-caldow { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-bottom: 4px; }
.viz-caldow span { text-align: center; font-family: var(--p-mono); font-size: 8.5px; color: var(--p-dim); }
.viz-cal2 { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.viz-cell { position: relative; aspect-ratio: 1; border-radius: 4px; border: 1px solid var(--p-line); background: rgba(159,178,199,0.04); display: flex; align-items: center; justify-content: center; }
.viz-cell.empty { border-color: transparent; background: transparent; }
.viz-cell-n { font-family: var(--p-mono); font-size: 8.5px; color: var(--p-muted); }
.viz-cell.post { border-color: rgba(46,139,255,0.45); background: rgba(46,139,255,0.10); }
.viz-cell.post .viz-cell-n { color: #bcd9ff; }
.viz-cell.camp { border-color: transparent; background: var(--p-orange); }
.viz-cell.camp .viz-cell-n { color: #2a1003; font-weight: 600; }
.viz-cell-dot { position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--p-blue); }
.viz-cell-dot.camp { background: #2a1003; }
.viz-cal-key { display: flex; gap: 16px; margin-top: 10px; font-family: var(--p-mono); font-size: 9px; color: var(--p-dim); }
.viz-cal-key span { display: inline-flex; align-items: center; gap: 6px; }
.viz-cal-key i { width: 10px; height: 10px; border-radius: 3px; } .k-post { background: rgba(46,139,255,0.6); } .k-camp { background: var(--p-orange); }

html[lang="ar"] .proc {
  --p-mono: "Noto Sans Arabic", ui-sans-serif, system-ui, sans-serif;
  --p-display: "Amiri", "Noto Sans Arabic", Georgia, serif;
  --p-body: "Noto Sans Arabic", ui-sans-serif, system-ui, sans-serif;
}

html[lang="hi"] .proc {
  --p-mono: "Noto Sans Devanagari", "Noto Sans", ui-sans-serif, system-ui, sans-serif;
  --p-display: "Noto Sans Devanagari", "Noto Sans", ui-sans-serif, system-ui, sans-serif;
  --p-body: "Noto Sans Devanagari", "Noto Sans", ui-sans-serif, system-ui, sans-serif;
}

html[lang="ur"] .proc {
  --p-mono: "Noto Sans Arabic", "Noto Nastaliq Urdu", ui-sans-serif, system-ui, sans-serif;
  --p-display: "Noto Nastaliq Urdu", "Noto Sans Arabic", Georgia, serif;
  --p-body: "Noto Sans Arabic", "Noto Nastaliq Urdu", ui-sans-serif, system-ui, sans-serif;
}

html[lang="ml"] .proc {
  --p-mono: "Noto Sans Malayalam", "Figtree", ui-sans-serif, system-ui, sans-serif;
  --p-display: "Noto Sans Malayalam", "Figtree", ui-sans-serif, system-ui, sans-serif;
  --p-body: "Noto Sans Malayalam", "Figtree", ui-sans-serif, system-ui, sans-serif;
}

html[lang="bn"] .proc {
  --p-mono: "Noto Sans Bengali", "Figtree", ui-sans-serif, system-ui, sans-serif;
  --p-display: "Noto Sans Bengali", "Figtree", ui-sans-serif, system-ui, sans-serif;
  --p-body: "Noto Sans Bengali", "Figtree", ui-sans-serif, system-ui, sans-serif;
}

html[lang="tl"] .proc {
  --p-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --p-display: "Space Grotesk", "Figtree", ui-sans-serif, system-ui, sans-serif;
  --p-body: "Inter", "Figtree", ui-sans-serif, system-ui, sans-serif;
}

html[lang="ar"] .proc h1,
html[lang="ar"] .proc h2,
html[lang="ar"] .proc h3,
html[lang="ar"] .proc h4,
html[lang="hi"] .proc h1,
html[lang="hi"] .proc h2,
html[lang="hi"] .proc h3,
html[lang="hi"] .proc h4,
html[lang="ur"] .proc h1,
html[lang="ur"] .proc h2,
html[lang="ur"] .proc h3,
html[lang="ur"] .proc h4,
html[lang="ml"] .proc h1,
html[lang="ml"] .proc h2,
html[lang="ml"] .proc h3,
html[lang="ml"] .proc h4,
html[lang="bn"] .proc h1,
html[lang="bn"] .proc h2,
html[lang="bn"] .proc h3,
html[lang="bn"] .proc h4 {
  letter-spacing: 0;
}

html[lang="ar"] .proc-display,
html[lang="hi"] .proc-display,
html[lang="ur"] .proc-display,
html[lang="ml"] .proc-display,
html[lang="bn"] .proc-display {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.14;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

html[lang="hi"] .proc-display { line-height: 1.16; }
html[lang="ml"] .proc-display,
html[lang="bn"] .proc-display { line-height: 1.18; }
html[lang="ur"] .proc-display { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.34; }

html[lang="ar"] .proc-h2,
html[lang="hi"] .proc-h2,
html[lang="ur"] .proc-h2,
html[lang="ml"] .proc-h2,
html[lang="bn"] .proc-h2,
html[lang="ar"] .tl-title,
html[lang="hi"] .tl-title,
html[lang="ur"] .tl-title,
html[lang="ml"] .tl-title,
html[lang="bn"] .tl-title,
html[lang="ar"] .type-spec,
html[lang="hi"] .type-spec,
html[lang="ur"] .type-spec,
html[lang="ml"] .type-spec,
html[lang="bn"] .type-spec {
  letter-spacing: 0;
  line-height: 1.2;
}

html[lang="ar"] .hud,
html[lang="hi"] .hud,
html[lang="ur"] .hud,
html[lang="ar"] .hud-pill,
html[lang="hi"] .hud-pill,
html[lang="ur"] .hud-pill,
html[lang="ar"] .proc-stat-l,
html[lang="hi"] .proc-stat-l,
html[lang="ur"] .proc-stat-l,
html[lang="ar"] .tl-kicker,
html[lang="hi"] .tl-kicker,
html[lang="ur"] .tl-kicker,
html[lang="ar"] .tl-why-label,
html[lang="hi"] .tl-why-label,
html[lang="ur"] .tl-why-label,
html[lang="ar"] .tl-meta-k,
html[lang="hi"] .tl-meta-k,
html[lang="ur"] .tl-meta-k,
html[lang="ar"] .viz-tag,
html[lang="hi"] .viz-tag,
html[lang="ur"] .viz-tag,
html[lang="ar"] .ax-cap,
html[lang="hi"] .ax-cap,
html[lang="ur"] .ax-cap,
html[lang="ar"] .viz-axes-foot,
html[lang="hi"] .viz-axes-foot,
html[lang="ur"] .viz-axes-foot {
  letter-spacing: 0;
  text-transform: none;
}

html[lang="ml"] .hud,
html[lang="bn"] .hud,
html[lang="tl"] .hud,
html[lang="ml"] .hud-pill,
html[lang="bn"] .hud-pill,
html[lang="tl"] .hud-pill,
html[lang="ml"] .proc-stat-l,
html[lang="bn"] .proc-stat-l,
html[lang="tl"] .proc-stat-l,
html[lang="ml"] .tl-kicker,
html[lang="bn"] .tl-kicker,
html[lang="tl"] .tl-kicker,
html[lang="ml"] .tl-why-label,
html[lang="bn"] .tl-why-label,
html[lang="tl"] .tl-why-label,
html[lang="ml"] .tl-meta-k,
html[lang="bn"] .tl-meta-k,
html[lang="tl"] .tl-meta-k,
html[lang="ml"] .viz-tag,
html[lang="bn"] .viz-tag,
html[lang="tl"] .viz-tag,
html[lang="ml"] .ax-cap,
html[lang="bn"] .ax-cap,
html[lang="tl"] .ax-cap,
html[lang="ml"] .viz-axes-foot,
html[lang="bn"] .viz-axes-foot,
html[lang="tl"] .viz-axes-foot {
  letter-spacing: 0;
  text-transform: none;
}

html[lang="ar"] .proc .proc-lede,
html[lang="hi"] .proc .proc-lede,
html[lang="ur"] .proc .proc-lede,
html[lang="ml"] .proc .proc-lede,
html[lang="bn"] .proc .proc-lede,
html[lang="tl"] .proc .proc-lede,
html[lang="ar"] .proc .proc-body,
html[lang="hi"] .proc .proc-body,
html[lang="ur"] .proc .proc-body,
html[lang="ml"] .proc .proc-body,
html[lang="bn"] .proc .proc-body,
html[lang="tl"] .proc .proc-body,
html[lang="ar"] .proc .tl-what,
html[lang="hi"] .proc .tl-what,
html[lang="ur"] .proc .tl-what,
html[lang="ml"] .proc .tl-what,
html[lang="bn"] .proc .tl-what,
html[lang="tl"] .proc .tl-what,
html[lang="ar"] .proc .tl-why-text,
html[lang="hi"] .proc .tl-why-text,
html[lang="ur"] .proc .tl-why-text,
html[lang="ml"] .proc .tl-why-text,
html[lang="bn"] .proc .tl-why-text,
html[lang="tl"] .proc .tl-why-text,
html[lang="ar"] .proc .ai-item2 p,
html[lang="hi"] .proc .ai-item2 p,
html[lang="ur"] .proc .ai-item2 p,
html[lang="ml"] .proc .ai-item2 p,
html[lang="bn"] .proc .ai-item2 p,
html[lang="tl"] .proc .ai-item2 p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

html[lang="ar"] .bc-sub,
html[lang="hi"] .bc-sub,
html[lang="ur"] .bc-sub,
html[lang="ml"] .bc-sub,
html[lang="bn"] .bc-sub,
html[lang="tl"] .bc-sub,
html[lang="ar"] .bc-tagstrip span,
html[lang="hi"] .bc-tagstrip span,
html[lang="ur"] .bc-tagstrip span,
html[lang="ml"] .bc-tagstrip span,
html[lang="bn"] .bc-tagstrip span,
html[lang="tl"] .bc-tagstrip span,
html[lang="ar"] .bc-scan,
html[lang="hi"] .bc-scan,
html[lang="ur"] .bc-scan,
html[lang="ml"] .bc-scan,
html[lang="bn"] .bc-scan,
html[lang="tl"] .bc-scan,
html[lang="ar"] .bc-vpill,
html[lang="hi"] .bc-vpill,
html[lang="ur"] .bc-vpill,
html[lang="ml"] .bc-vpill,
html[lang="bn"] .bc-vpill,
html[lang="tl"] .bc-vpill,
html[lang="ar"] .viz-sys-tile span,
html[lang="hi"] .viz-sys-tile span,
html[lang="ur"] .viz-sys-tile span,
html[lang="ml"] .viz-sys-tile span,
html[lang="bn"] .viz-sys-tile span,
html[lang="tl"] .viz-sys-tile span,
html[lang="ar"] .viz-pillar span,
html[lang="hi"] .viz-pillar span,
html[lang="ur"] .viz-pillar span,
html[lang="ml"] .viz-pillar span,
html[lang="bn"] .viz-pillar span,
html[lang="tl"] .viz-pillar span {
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

html[lang="ar"] .bc-tagstrip,
html[lang="hi"] .bc-tagstrip,
html[lang="ur"] .bc-tagstrip,
html[lang="ml"] .bc-tagstrip,
html[lang="bn"] .bc-tagstrip,
html[lang="tl"] .bc-tagstrip {
  flex-wrap: wrap;
  row-gap: 2px;
}

html[lang="ar"] .type-scale-row > span:last-child,
html[lang="hi"] .type-scale-row > span:last-child,
html[lang="ur"] .type-scale-row > span:last-child,
html[lang="ml"] .type-scale-row > span:last-child,
html[lang="bn"] .type-scale-row > span:last-child,
html[lang="tl"] .type-scale-row > span:last-child {
  white-space: normal !important;
  overflow-x: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

html[lang="ar"] .proc .btn-neon,
html[lang="hi"] .proc .btn-neon,
html[lang="ur"] .proc .btn-neon,
html[lang="ml"] .proc .btn-neon,
html[lang="bn"] .proc .btn-neon,
html[lang="tl"] .proc .btn-neon,
html[lang="ar"] .proc .btn-line,
html[lang="hi"] .proc .btn-line,
html[lang="ur"] .proc .btn-line,
html[lang="ml"] .proc .btn-line,
html[lang="bn"] .proc .btn-line,
html[lang="tl"] .proc .btn-line {
  min-height: 50px;
  max-width: 100%;
  justify-content: center;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  text-align: center;
}

html[dir="rtl"] .proc .btn-neon,
html[dir="rtl"] .proc .btn-line {
  flex-direction: row-reverse;
}

html[dir="rtl"] .proc .ar {
  transform: scaleX(-1);
}

html[dir="rtl"] .vc-mark {
  margin-right: 0;
  margin-left: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .vc-caret, .viz-msg-text, .ax-led { animation: none !important; }
  .viz-flip-in, .ax-fill, .ax-knob { transition: none !important; }
}

/* ============================================================
   MOBILE / RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .proc-display { font-size: clamp(30px, 9vw, 40px); }
  html[lang="ar"] .proc-display,
  html[lang="hi"] .proc-display,
  html[lang="ur"] .proc-display,
  html[lang="ml"] .proc-display,
  html[lang="bn"] .proc-display {
    max-width: 100%;
    font-size: clamp(28px, 7.5vw, 34px);
    line-height: 1.22;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  html[lang="ur"] .proc-display { line-height: 1.38; }
  .proc-h2 { font-size: clamp(24px, 7vw, 34px); }
  .proc-hero { padding: 52px 0 54px; }
  .proc-hero-grid { gap: 26px; }
  .proc-hero-art img { width: 60%; max-width: 240px; }
  .proc-stats { gap: 10px; }
  .proc-stat { padding: 12px 14px; min-width: 92px; }
  .proc-stat-k { font-size: 22px; }
  .proc-head { margin-bottom: 38px; }
  .proc-head .proc-lede { font-size: 15px; }
  /* trim heavy decorations on small screens for clarity + perf */
  .scanline, .d-hero-plus, .d-hero-ticks, .d-hero-wave,
  .d-tl-circuit, .d-tl-ticks, .d-tl-rings,
  .d-pal-plus, .d-pal-bars, .d-type-dots, .d-type-wave,
  .d-ai-circuit, .d-cta-plus, .d-cta-wave { display: none; }
  .ai-band, .proc-cta { padding: 26px 20px; }
  .ai-items2 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  /* timeline already switches to left-spine; tighten card padding */
  .tl-card { padding: 18px 16px 18px; }
  .tl-title { font-size: 19px; }
  .tl-watermark { font-size: 60px; right: 12px; }
}

@media (max-width: 600px) {
  .tl-step { grid-template-columns: 30px 1fr; }
  .tl-spine { left: 15px; }
  .tl-pulse { left: 15px; }
  .tl-node-dot { width: 14px; height: 14px; }
  .tl-card-wrap::before, .tl-step.right .tl-card-wrap::before { left: -13px; width: 13px; }
  .viz-pchip-hex { font-size: 8px; }
  .viz-type-chip { font-size: 20px; border-radius: 7px; }
  .viz-msg-text { font-size: 16px; }
  .viz-msg-gen { display: none; }
}

@media (max-width: 420px) {
  .proc-stats { width: 100%; }
  .proc-stat { flex: 1 1 40%; }
  .viz-pchip-tag { font-size: 7px; }
}
