/* ═══════════════════════════════════════════════════════
   COGNITIVE INDUSTRIES — Master Stylesheet
   ═══════════════════════════════════════════════════════ */

/* ─── Custom Properties ─── */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #0f1923;
  --accent-cyan: #00d4ff;
  --accent-steel: #8a9bb5;
  --accent-hot: #ff3366;
  --accent-success: #00ff88;
  --accent-amber: #ffaa00;
  --text-primary: #e8edf5;
  /* Lifted from #5a6a80 — the old slate was too dark to read as body copy
     over the 3D scene. Now a light slate: clearly readable, still a step
     below --text-primary so secondary text keeps its hierarchy. */
  --text-muted: #c4d0e2;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  /* Dark-only site — tells the UA to render native form controls, the select
     popup list, and scrollbars in dark mode instead of light. */
  color-scheme: dark;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Kill mobile pull-to-refresh / overscroll chaining. Without this, the fast
   warp-scroll (see app.js warpScrollTo) overscrolls the top edge on touch
   devices and the browser fires pull-to-refresh, reloading the page. */
html, body { overscroll-behavior-y: none; }

/* Global keyboard-focus ring — the default UA outline is nearly invisible on
   this near-black theme. Mouse users are unaffected (:focus-visible only). */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
  border-radius: 2px;
}
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 0;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--text-primary);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Utility ─── */
.mono { font-family: var(--font-mono); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.accent { color: var(--accent-cyan); }

/* ─── Section Labels ─── */
.section-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/* ─── Glitch Animation ─── */
.glitch {
  position: relative;
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0%, 93%, 100% { text-shadow: none; }
  94% { text-shadow: 2px 0 var(--accent-cyan), -2px 0 var(--accent-hot); }
  95% { text-shadow: -1px 0 var(--accent-hot), 1px 0 var(--accent-cyan); }
  96% { text-shadow: none; }
  97% { text-shadow: 3px 0 var(--accent-cyan), -3px 0 var(--accent-hot); }
  98% { text-shadow: -2px 0 var(--accent-hot), 2px 0 var(--accent-cyan); }
}

/* ─── Reveal (scroll animations) ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--accent-cyan);
  background: transparent;
  color: var(--accent-cyan);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  min-height: 44px;
  min-width: 44px;
}
.btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  text-decoration: none;
}
.btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.btn--hot {
  border-color: var(--accent-hot);
  color: var(--accent-hot);
}
.btn--hot:hover {
  background: var(--accent-hot);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.3);
}

/* ─── Cursor Glow ─── */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav--hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.nav--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav__logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}
.nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav__links a {
  color: var(--accent-steel);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav__links a:hover {
  color: var(--accent-cyan);
  text-decoration: none;
}
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;   /* avoid the mobile URL-bar gap (dynamic viewport) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(0, 30, 60, 0.3) 0%, var(--bg-primary) 70%);
  overflow: hidden;
}
#circuit-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.15;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}
.hero__logo {
  max-width: 500px;
  width: 100%;
  margin: 0 auto 2.5rem;
  border-radius: 12px;
  animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.2), 0 0 60px rgba(0, 212, 255, 0.1); }
  50% { box-shadow: 0 0 50px rgba(0, 212, 255, 0.4), 0 0 100px rgba(0, 212, 255, 0.15); }
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 800px;
}

/* ── Hero intro blurb ── */
.hero__intro {
  margin: 1.6rem auto 0;
  max-width: 700px;
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-primary);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 1px rgba(0, 0, 0, 0.9);
}

/* ── Hero quick-jump chips (HUD-style) ── */
.hero__jump {
  margin: 2.3rem auto 0;
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}
.jump-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 1.15rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: rgba(10, 14, 23, 0.55);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  transition: color 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s, background 0.25s;
}
.jump-chip__idx {
  color: var(--accent-cyan);
  opacity: 0.65;
  font-size: 0.72rem;
  transition: opacity 0.25s;
}
/* light sweep across the chip on hover */
.jump-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(0, 212, 255, 0.20) 50%, transparent 100%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
  pointer-events: none;
}
.jump-chip:hover,
.jump-chip:focus-visible {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  background: rgba(10, 18, 28, 0.7);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4), 0 0 22px rgba(0, 212, 255, 0.25);
  text-decoration: none;
  outline: none;
}
.jump-chip:hover::before,
.jump-chip:focus-visible::before { transform: translateX(130%); }
.jump-chip:hover .jump-chip__idx,
.jump-chip:focus-visible .jump-chip__idx { opacity: 1; }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-cyan);
  fill: none;
  stroke-width: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════════
   MISSION
   ═══════════════════════════════════════════════════════ */
.mission {
  position: relative;
}
.mission::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.02) 2px,
    rgba(0, 212, 255, 0.02) 3px
  );
  pointer-events: none;
}
.directive {
  display: block;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.mission__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.value-block {
  padding: 1.5rem;
  border-left: 3px solid rgba(0, 212, 255, 0.2);
  transition: border-color 0.3s;
}
.value-block:hover {
  border-color: var(--accent-cyan);
}
.value-block p {
  color: var(--accent-steel);
  line-height: 1.7;
}
mark {
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent-cyan);
  padding: 0 4px;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════
   PRODUCTS — General
   ═══════════════════════════════════════════════════════ */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(138, 155, 181, 0.1);
}
.product:last-child { border-bottom: none; }
.product--reverse .product__info { order: 2; }
.product--reverse .product__interactive { order: 1; }

.product__info h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}
.product__info .one-liner {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}
.product__info p {
  color: var(--accent-steel);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.status-badge--live {
  color: var(--accent-success);
  border: 1px solid var(--accent-success);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.2);
  animation: pulseGreen 2s ease-in-out infinite;
}
.status-badge--dev {
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber);
  box-shadow: 0 0 12px rgba(255, 170, 0, 0.2);
  animation: pulseAmber 2s ease-in-out infinite;
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 12px rgba(0, 255, 136, 0.2); }
  50% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.4); }
}
@keyframes pulseAmber {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 170, 0, 0.2); }
  50% { box-shadow: 0 0 20px rgba(255, 170, 0, 0.4); }
}

/* ─── Chat Window (ChazzAI) ─── */
.chat-window {
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid rgba(138, 155, 181, 0.15);
  overflow: hidden;
}
.chat-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(138, 155, 181, 0.1);
}
.chat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.chat-dot--red { background: #ff5f57; }
.chat-dot--yellow { background: #ffbd2e; }
.chat-dot--green { background: #28ca42; }
.chat-titlebar-text {
  margin-left: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.chat-messages {
  padding: 1.25rem;
  min-height: 250px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  max-width: 85%;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}
.chat-user {
  align-self: flex-end;
  background: var(--bg-primary);
  color: var(--text-primary);
  border-bottom-right-radius: 4px;
}
.chat-ai {
  align-self: flex-start;
  background: rgba(0, 212, 255, 0.08);
  color: var(--text-primary);
  border-left: 2px solid var(--accent-cyan);
  border-bottom-left-radius: 4px;
}

/* Typing indicator */
.chat-typing {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
  align-self: flex-start;
}
.chat-typing span {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* ─── Lucky 100 Grid ─── */
.lucky-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid rgba(138, 155, 181, 0.15);
}
.lucky-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.lucky-cell.lit {
  background: rgba(0, 212, 255, 0.25);
  color: var(--accent-cyan);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* ─── WebSwarm Browser Frame ─── */
.browser-frame {
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid rgba(138, 155, 181, 0.15);
  overflow: hidden;
}
.browser-address-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(138, 155, 181, 0.1);
}
.browser-address-bar .chat-dot { width: 8px; height: 8px; }
.browser-address-input {
  flex: 1;
  margin-left: 10px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(138, 155, 181, 0.1);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.browser-canvas-wrap {
  position: relative;
  height: 280px;
}
.browser-canvas-wrap canvas {
  width: 100%;
  height: 100%;
}

/* Embedded presentation videos (YouTube) inside a browser frame */
.video-frame { box-shadow: 0 0 40px rgba(0, 212, 255, 0.08); }
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ═══════════════════════════════════════════════════════
   PORTFOLIO — live website embeds
   ═══════════════════════════════════════════════════════ */
.portfolio-intro,
.clients-intro {
  color: var(--accent-steel);
  max-width: 60ch;
  margin: 0.5rem 0 0;
  line-height: 1.7;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.portfolio-card { display: flex; flex-direction: column; }
.portfolio-frame-link {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.portfolio-frame-link:hover { transform: translateY(-4px); }
.portfolio-frame-link .browser-frame {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-frame-link:hover .browser-frame {
  border-color: var(--accent-cyan);
  box-shadow: 0 16px 50px rgba(0, 212, 255, 0.14);
}
.portfolio-embed {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: #fff;
}
.portfolio-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* Overlay swallows pointer/scroll so the live preview never hijacks the page;
   the wrapping link handles the click-through to the real site. */
.portfolio-embed-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}
.portfolio-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.portfolio-meta h3 { font-size: 1.1rem; font-weight: 600; }
.portfolio-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.8rem;
  white-space: nowrap;
}
.portfolio-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════
   CLIENTS — trusted-by logo wall
   ═══════════════════════════════════════════════════════ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.client-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: 2rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid rgba(138, 155, 181, 0.15);
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.client-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 14px 44px rgba(0, 212, 255, 0.12);
}
.client-logo-wrap {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.client-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.client-logo-wrap--mono {
  background: rgba(0, 212, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.25);
}
/* Dark wrap for logos that already ship on a black background (e.g. banners),
   so they blend into the theme instead of sitting in a white box. */
.client-logo-wrap--dark {
  background: #0a0e17;
  padding: 0.5rem;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.3);
}
.client-monogram {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
}
.client-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.4;
}
.client-tag {
  display: inline-block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  border-radius: 100px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════
   OPEN SOURCE
   ═══════════════════════════════════════════════════════ */
.oss h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}
.oss > .container > p {
  color: var(--accent-steel);
  max-width: 700px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.repo-card {
  display: block;
  background: var(--bg-secondary);
  border: 1px solid rgba(138, 155, 181, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  color: inherit;
  text-decoration: none;
}
.repo-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}
.repo-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}
.repo-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.repo-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.lang-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.lang-dot--js { background: #f7df1e; }
.lang-dot--ts { background: #3178c6; }
.lang-dot--py { background: #3572A5; }
.lang-dot--rs { background: #dea584; }

/* ═══════════════════════════════════════════════════════
   UPDATES / BLOG
   ═══════════════════════════════════════════════════════ */
.updates__container {
  max-width: 800px;
  margin: 0 auto;
}
.post-card {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: background 0.3s;
}
.post-card:hover {
  background: rgba(15, 25, 35, 0.9);
}
.post-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.post-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.post-excerpt {
  color: var(--accent-steel);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.contact__divider {
  background: rgba(0, 212, 255, 0.2);
}
.contact__grid h3 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.contact__grid p {
  color: var(--accent-steel);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--accent-steel);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s;
  min-height: 44px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-cyan);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238a9bb5' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.contact-confirm {
  display: none;
  color: var(--accent-success);
  font-weight: 600;
  margin-top: 1rem;
}
.contact-confirm.visible { display: block; }
.contact-emails {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}
.contact-email-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-steel);
  transition: color 0.2s;
}
.contact-email-link:hover { color: var(--accent-cyan); text-decoration: none; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-steel);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.social-links a:hover { color: var(--accent-cyan); text-decoration: none; }

/* ═══════════════════════════════════════════════════════
   BOUNTY LEADERBOARD
   ═══════════════════════════════════════════════════════ */
.bounty-section {
  position: relative;
  background:
    radial-gradient(ellipse at top center, rgba(255, 51, 102, 0.06) 0%, transparent 60%),
    var(--bg-primary);
}
.bounty-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 0.5rem;
}
.bounty-sub {
  text-align: center;
  color: var(--accent-steel);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}
.bounty-counters {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.bounty-counter {
  text-align: center;
}
.bounty-counter-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
#total-debt {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-hot);
  text-shadow: 0 0 20px rgba(255, 51, 102, 0.4);
}
#total-paid {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-success);
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

/* Hacker Cards */
#hackers-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.hacker-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(138, 155, 181, 0.15);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.3s;
}
.hacker-card.border-owed { border-color: rgba(255, 51, 102, 0.3); }
.hacker-card.border-paid { border-color: rgba(0, 255, 136, 0.3); }
.hacker-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.border-owed .hacker-avatar { border: 2px solid var(--accent-cyan); }
.border-paid .hacker-avatar { border: 2px solid var(--accent-success); }
.hacker-info { flex: 1; min-width: 0; }
.hacker-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.debt-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 51, 102, 0.3);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.debt-bar-paid {
  height: 100%;
  border-radius: 4px;
  background: var(--accent-success);
  transition: width 1s ease;
}
.debt-amounts {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.bounty-cta {
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   SUBMISSION MODAL
   ═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 2rem;
}
.modal h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { color: var(--text-primary); }
.modal-inner { position: relative; }
.form-error {
  display: none;
  color: var(--accent-hot);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
}
.success-message {
  display: none;
  text-align: center;
  padding: 2rem 0;
}
.success-message p {
  color: var(--accent-success);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(0, 212, 255, 0.15);
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.footer__logo img {
  width: 24px;
  height: 24px;
  border-radius: 3px;
}
.footer__logo span {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.footer__copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1.5rem;
}
.footer__links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--accent-cyan); }
.footer__tagline {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-style: italic;
}

/* ─── Additional Status Badges ─── */
.status-badge--beta {
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
  animation: pulseCyan 2s ease-in-out infinite;
}
.status-badge--research {
  color: #b980ff;
  border: 1px solid #b980ff;
  box-shadow: 0 0 12px rgba(185, 128, 255, 0.2);
  animation: pulsePurple 2s ease-in-out infinite;
}
.status-badge--closed {
  color: var(--accent-steel);
  border: 1px solid rgba(138, 155, 181, 0.4);
  margin-left: 0.5rem;
}
.status-badge--active {
  color: #19f0c8;
  border: 1px solid #19f0c8;
  box-shadow: 0 0 12px rgba(25, 240, 200, 0.2);
  animation: pulseTeal 2s ease-in-out infinite;
}

@keyframes pulseCyan {
  0%, 100% { box-shadow: 0 0 12px rgba(0, 212, 255, 0.2); }
  50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.4); }
}
@keyframes pulseTeal {
  0%, 100% { box-shadow: 0 0 12px rgba(25, 240, 200, 0.2); }
  50% { box-shadow: 0 0 20px rgba(25, 240, 200, 0.45); }
}

/* ─── Cyber range terminal demo (MXCyberSLaM product) ─── */
.cyber-term {
  padding: 1.1rem 1.25rem;
  background: #05080f;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-secondary, #c9d4e3);
  min-height: 220px;
}
.cyber-term-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cyber-term-prompt { color: #19f0c8; }
.cyber-term-ok { color: var(--accent-success, #00ff88); }
.cyber-term-dim { color: var(--accent-steel, #8a9bb5); }
.cyber-term-cursor {
  color: #19f0c8;
  animation: cyberBlink 1.1s step-end infinite;
}
@keyframes cyberBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Portfolio intro inline link */
.portfolio-intro-link {
  color: var(--accent-cyan, #00d4ff);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.4);
}
.portfolio-intro-link:hover { border-bottom-color: var(--accent-cyan, #00d4ff); }
@keyframes pulsePurple {
  0%, 100% { box-shadow: 0 0 12px rgba(185, 128, 255, 0.2); }
  50% { box-shadow: 0 0 20px rgba(185, 128, 255, 0.4); }
}

/* ─── Repo Status Tags ─── */
.repo-status-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 170, 0, 0.3);
  border-radius: 100px;
  padding: 1px 8px;
}
.repo-status-tag--closed {
  color: var(--text-muted);
  border-color: rgba(90, 106, 128, 0.4);
}

/* ─── Pipeline Demo (Adtomaton) ─── */
.pipeline-demo {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-secondary);
  border: 1px solid rgba(138, 155, 181, 0.15);
  border-radius: 12px;
  overflow: hidden;
}
.pipeline-node {
  padding: 1.25rem 1.5rem;
}
.pipeline-node--input { border-bottom: 1px solid rgba(138, 155, 181, 0.1); }
.pipeline-node--output { border-top: 1px solid rgba(138, 155, 181, 0.1); }
.pipeline-node-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.pipeline-node-content {
  font-size: 0.75rem;
  color: var(--accent-steel);
  line-height: 1.7;
}
.pipeline-connector {
  padding: 1rem 1.5rem;
  background: rgba(0, 212, 255, 0.03);
}
.pipeline-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.stage-chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 100px;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.05);
}
.output-check { color: var(--accent-success); }

/* ─── Vote Demo (MatchPoints) ─── */
.vote-demo {
  background: var(--bg-secondary);
  border: 1px solid rgba(138, 155, 181, 0.15);
  border-radius: 12px;
  overflow: hidden;
}
.vote-demo-header {
  padding: 0.75rem 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent-success);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(138, 155, 181, 0.1);
}
.vote-demo-players {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.vote-player {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
}
.vote-medal { font-size: 1rem; }
.vote-name { font-size: 0.9rem; color: var(--text-primary); }
.vote-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(138, 155, 181, 0.15);
  overflow: hidden;
}
.vote-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), rgba(0, 212, 255, 0.5));
}
.vote-pts {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  white-space: nowrap;
}
.vote-demo-footer {
  padding: 0.6rem 1.25rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(138, 155, 181, 0.1);
}

/* ─── Detection Demo (FireSmokeDetector) ─── */
.detection-demo {
  background: var(--bg-secondary);
  border: 1px solid rgba(138, 155, 181, 0.15);
  border-radius: 12px;
  overflow: hidden;
}
.detection-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(138, 155, 181, 0.1);
}
.det-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 8px rgba(255, 51, 102, 0.6);
  animation: pulseLive 1.5s ease-in-out infinite;
}
@keyframes pulseLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.detection-scene {
  position: relative;
  height: 220px;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 22px,
    rgba(138, 155, 181, 0.03) 22px, rgba(138, 155, 181, 0.03) 23px
  ),
  repeating-linear-gradient(
    90deg, transparent, transparent 22px,
    rgba(138, 155, 181, 0.03) 22px, rgba(138, 155, 181, 0.03) 23px
  );
}
.det-box {
  position: absolute;
  border: 2px solid;
  border-radius: 2px;
  display: flex;
  align-items: flex-start;
  padding: 3px;
}
.det-box--fire {
  border-color: rgba(255, 100, 0, 0.8);
  background: rgba(255, 80, 0, 0.06);
  box-shadow: 0 0 12px rgba(255, 100, 0, 0.2);
  animation: boxPulse 2s ease-in-out infinite;
}
.det-box--smoke {
  border-color: rgba(200, 180, 160, 0.5);
  background: rgba(200, 180, 160, 0.04);
  border-style: dashed;
}
@keyframes boxPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 100, 0, 0.2); }
  50% { box-shadow: 0 0 20px rgba(255, 100, 0, 0.4); }
}
.det-label {
  font-size: 0.6rem;
  padding: 1px 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.7);
}
.det-box--fire .det-label { color: #ff7733; }
.det-box--smoke .det-label { color: #c8b49e; }
.det-hazard-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  background: rgba(255, 51, 102, 0.15);
  border: 1px solid rgba(255, 51, 102, 0.4);
  border-radius: 100px;
  color: var(--accent-hot);
}
.detection-footer {
  padding: 0.6rem 1.25rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(138, 155, 181, 0.1);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav__hamburger {
    display: flex;
  }
  .nav__links {
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    /* 10 links can exceed a short/landscape phone viewport — let the menu
       scroll instead of pushing items off-screen with no way to reach them. */
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links a {
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .product--reverse .product__info { order: 1; }
  .product--reverse .product__interactive { order: 2; }

  .contact__grid {
    grid-template-columns: 1fr;
  }
  .contact__divider { display: none; }

  .bounty-counters {
    gap: 2rem;
  }
  #hackers-list {
    grid-template-columns: 1fr;
  }

  .mission__grid {
    grid-template-columns: 1fr;
  }
  .repo-grid {
    grid-template-columns: 1fr;
  }
  .hero__logo {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 4rem 0; }

  .hero h1 { font-size: 1.5rem; }
  .hero__logo { max-width: 240px; }

  .product__info h2 { font-size: 1.6rem; }
  .bounty-title { font-size: 1.2rem; }

  .chat-messages {
    min-height: 200px;
    max-height: 260px;
  }
  .browser-canvas-wrap { height: 220px; }

  .vote-player {
    grid-template-columns: 1.5rem 1fr;
    grid-template-rows: auto auto;
  }
  .vote-bar { grid-column: 1 / -1; }
  .vote-pts { grid-column: 2; }

  .detection-scene { height: 180px; }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-glow { display: none; }
}

/* ═══════════════════════════════════════════════════════
   WEBTOOLS ULTIMA — STATIC PREVIEW (featherweight, links out)
   ═══════════════════════════════════════════════════════ */
.webtools-preview {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.browser-canvas-wrap--tools {
  height: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background:
    radial-gradient(ellipse at top, rgba(0, 212, 255, 0.08), transparent 70%),
    var(--bg-primary);
}
.webtools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.webtools-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 6px;
  border: 1px solid rgba(138, 155, 181, 0.15);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.72rem;
  color: var(--accent-steel);
  text-align: center;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.webtools-tile-ico {
  font-size: 1rem;
  line-height: 1;
  color: var(--accent-cyan);
}
.webtools-launch {
  align-self: center;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.webtools-preview:hover .webtools-tile {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}
.webtools-preview:hover .webtools-launch {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}
@media (max-width: 768px) {
  .webtools-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════
   ABOUT / CAPABILITIES / SELECTED WORK / FOUNDER / TEAM
   ═══════════════════════════════════════════════════════ */
.about-lede {
  max-width: 60rem;
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
}
.about-lede em { color: var(--accent-cyan); font-style: normal; }

.about-subhead {
  margin: 3.5rem 0 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  border-bottom: 1px solid rgba(0, 212, 255, 0.18);
  padding-bottom: 0.5rem;
}
.about-sub-intro {
  margin: -0.5rem 0 1.5rem;
  max-width: 55rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Stat strip ── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(138, 155, 181, 0.12);
  border-bottom: 1px solid rgba(138, 155, 181, 0.12);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 18px rgba(0, 212, 255, 0.35);
}
.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Capabilities matrix ── */
.cap-note {
  max-width: 62rem;
  margin: -0.25rem 0 1.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}
.cap-note strong { color: var(--accent-cyan); }
.cap-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.cap-count {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-left: 0.4rem;
  opacity: 0.65;
  vertical-align: middle;
}
.cap-more {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--accent-cyan);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
}
.cap-group {
  padding: 1.25rem 1.25rem 1.5rem;
  border: 1px solid rgba(138, 155, 181, 0.15);
  border-radius: 12px;
  background: rgba(15, 25, 35, 0.5);
}
.cap-group h4 {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent-steel);
  text-transform: uppercase;
}
.cap-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cap-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}
.cap-tag:hover {
  background: rgba(0, 212, 255, 0.16);
  border-color: rgba(0, 212, 255, 0.5);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* ── Selected work ── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.work-card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid rgba(138, 155, 181, 0.15);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(0, 212, 255, 0.04), transparent 40%),
    rgba(15, 25, 35, 0.55);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.work-card:hover {
  border-color: rgba(0, 212, 255, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 212, 255, 0.1);
}
.work-cat {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  opacity: 0.85;
}
.work-card h3 {
  margin: 0.55rem 0 0.6rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}
.work-card p {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex-grow: 1;
}
.work-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--accent-steel);
}

/* ── Founder ── */
.founder {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 1.75rem;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at top left, rgba(0, 212, 255, 0.08), transparent 60%),
    rgba(15, 25, 35, 0.6);
}
.founder-portrait {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(0, 212, 255, 0.18), transparent 60%),
    linear-gradient(145deg, #122231, #0a0e17);
  border: 1px solid rgba(0, 212, 255, 0.3);
  overflow: hidden;
}
.founder-monogram {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 28px rgba(0, 212, 255, 0.5);
}
.founder-status {
  position: absolute;
  bottom: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--accent-success);
  white-space: nowrap;
}
.founder-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-success);
  box-shadow: 0 0 8px var(--accent-success);
  animation: founder-pulse 2s infinite;
}
@keyframes founder-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.founder-name { margin: 0; font-size: 1.7rem; color: var(--text-primary); }
.founder-handle {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  opacity: 0.85;
  margin-left: 0.4rem;
}

/* Live work-status states on the founder badge */
.founder-status.is-resting { color: var(--accent-amber); }
.founder-status.is-resting .founder-dot {
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
}
.founder-status.is-offline { color: var(--accent-steel); }
.founder-status.is-offline .founder-dot {
  background: var(--accent-steel);
  box-shadow: none;
  animation: none;
}
.founder-title {
  margin: 0.2rem 0 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}
.founder-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.3rem;
}
.title-chip {
  font-size: 0.72rem;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  color: var(--accent-steel);
  background: rgba(138, 155, 181, 0.08);
  border: 1px solid rgba(138, 155, 181, 0.22);
  white-space: nowrap;
}
.founder-body p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 1px rgba(0, 0, 0, 0.9);
}
.founder-body p strong { color: var(--accent-steel); }
.founder-spec {
  margin-top: 1.4rem;
  border-top: 1px solid rgba(138, 155, 181, 0.15);
  padding-top: 1.1rem;
  display: grid;
  gap: 0.5rem;
}
.spec-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  font-size: 0.78rem;
}
.spec-key { color: var(--accent-cyan); opacity: 0.8; }
.spec-val { color: var(--text-primary); }

/* ── Team ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.team-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid rgba(138, 155, 181, 0.15);
  border-top: 2px solid rgba(0, 212, 255, 0.4);
  border-radius: 12px;
  background: rgba(15, 25, 35, 0.5);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  border-top-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.team-discipline {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.team-desc {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex-grow: 1;
}
.team-tags { font-size: 0.72rem; color: var(--accent-steel); }

@media (max-width: 768px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .cap-matrix { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder-portrait { max-width: 200px; margin: 0 auto; }
  .spec-row { grid-template-columns: 130px 1fr; gap: 0.6rem; }
}
@media (max-width: 480px) {
  .stat-num { font-size: 1.6rem; }
  .spec-row { grid-template-columns: 1fr; gap: 0.1rem; }
  .spec-row .spec-key { font-size: 0.66rem; }
}

/* ═══════════════════════════════════════════════════════
   SUPPORT / DONATE / LIVE LEADERBOARD
   ═══════════════════════════════════════════════════════ */
.support-intro {
  max-width: 60rem;
  margin: 1rem 0 2.5rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.support-intro strong { color: var(--accent-success); }

.support-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
  align-items: stretch;
}

/* Donate call-to-action card */
.support-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.6rem;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at top left, rgba(0, 255, 136, 0.08), transparent 60%),
    rgba(15, 25, 35, 0.6);
}
.support-raised-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent-steel);
}
.support-raised {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-success);
  text-shadow: 0 0 22px rgba(0, 255, 136, 0.35);
}
.btn--donate {
  margin: 0.8rem 0 0.4rem;
  background: var(--accent-success);
  color: var(--bg-primary);
  border-color: var(--accent-success);
  font-weight: 700;
}
.btn--donate:hover {
  background: transparent;
  color: var(--accent-success);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.4);
}
.support-note {
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* Supporter leaderboard */
.donor-board {
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid rgba(138, 155, 181, 0.15);
  border-radius: 16px;
  background: rgba(15, 25, 35, 0.55);
}
.donor-title {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
}
.donor-list { list-style: none; margin: 0; padding: 0; }
.donor-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(138, 155, 181, 0.1);
}
.donor-row:last-child { border-bottom: none; }
.donor-row--loading { display: block; color: var(--text-muted); opacity: 0.6; }
.donor-rank { color: var(--accent-steel); opacity: 0.6; font-size: 0.8rem; }
.donor-name {
  color: var(--text-primary);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.donor-note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}
.donor-amount {
  color: var(--accent-success);
  font-size: 0.95rem;
  white-space: nowrap;
}

.view-counter {
  margin: 3.5rem auto 0;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
  padding: 1.75rem 2rem;
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at top, rgba(0, 212, 255, 0.10), transparent 65%),
    rgba(10, 14, 23, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 212, 255, 0.05);
}
.view-count-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--accent-success);
}
.view-count-num {
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent-cyan);
  letter-spacing: 0.01em;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.45);
}
.view-count-label {
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .support-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   LIVE HUMAN-UPTIME TICKER
   ═══════════════════════════════════════════════════════ */
.work-ticker {
  padding: 1.4rem 1.5rem 1rem;
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at top right, rgba(0, 212, 255, 0.06), transparent 60%),
    rgba(15, 25, 35, 0.55);
}
.ticker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.ticker-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent-success);
}
.ticker-status.is-resting { color: var(--accent-amber); }
.ticker-status.is-resting .founder-dot {
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
}
.ticker-status.is-offline { color: var(--accent-steel); }
.ticker-status.is-offline .founder-dot {
  background: var(--accent-steel);
  box-shadow: none;
  animation: none;
}
.ticker-stats { display: flex; gap: 1.75rem; }
.ticker-stat { display: flex; flex-direction: column; align-items: flex-end; }
.ticker-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1.1;
}
.ticker-lbl {
  margin-top: 0.15rem;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ticker-canvas-wrap { position: relative; width: 100%; }
.ticker-canvas {
  width: 100%;
  height: 160px;
  display: block;
  cursor: crosshair;
}
.ticker-tooltip {
  position: absolute;
  top: 2px;
  background: rgba(10, 14, 23, 0.96);
  border: 1px solid rgba(0, 212, 255, 0.4);
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--text-primary);
  pointer-events: none;
  white-space: nowrap;
  z-index: 3;
}
.ticker-tooltip .tip-pct { color: var(--accent-cyan); margin-left: 0.35rem; }
.ticker-foot {
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  opacity: 0.7;
}
@media (max-width: 560px) {
  .ticker-head { flex-direction: column; align-items: flex-start; }
  .ticker-stats { gap: 1.25rem; }
  .ticker-stat { align-items: flex-start; }
}

/* ─── Recruit clearance easter-egg hint (Contact › Join the Lab) ─── */
.join-hint {
  margin-top: 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--accent-steel);
  opacity: 0.55;
  transition: opacity 0.35s, color 0.35s;
}
.join-hint:hover { opacity: 1; color: var(--text-muted); }
.join-hint a {
  color: var(--accent-success);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 255, 136, 0.4);
}
.join-hint a:hover { text-shadow: 0 0 12px rgba(0, 255, 136, 0.5); }
.join-hint__blip {
  color: var(--accent-cyan);
  margin-right: 0.35rem;
  animation: joinBlip 1.4s steps(2) infinite;
}
@keyframes joinBlip { 50% { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .join-hint__blip { animation: none; } }
