/* ============================================================
   CivicOps — Band of Agents Hackathon page
   Self-contained cinematic command-platform theme.
   Built on the Culltron "Gridlight" design language.
   Scoped under .cv-hack so it never collides with the
   existing global MVC / Bootstrap theme.
   ============================================================ */

/* ---- Fonts (only loaded by this page) ---- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ============================================================
   TOKENS — scoped to the page root (.cv-hack)
   ============================================================ */
.cv-hack {
  /* canvas */
  --void: #04060c;
  --void-2: #070b14;
  --panel: #0b1220;
  --panel-2: #0e1628;
  --panel-3: #121c33;
  --graphite: #0a101d;

  /* ink */
  --ink: #e8f4ff;
  --ink-dim: #8fa7bf;
  --ink-faint: #5b7390;
  --ink-on-accent: #03131c;

  /* accents */
  --accent: #00d4ff;
  --accent-bright: #6be4ff;
  --gold: #ffc24d;
  --blue: #4da3ff;
  --violet: #b86bff;
  --ember: #ff7a45;
  --emerald: #41e08d;

  /* status */
  --ok: #3ddc97;
  --warn: #ffb020;
  --danger: #ff5a5a;

  /* lines */
  --line: rgba(0, 212, 255, 0.16);
  --line-soft: rgba(0, 212, 255, 0.08);
  --line-strong: rgba(0, 212, 255, 0.38);
  --line-neutral: rgba(255, 255, 255, 0.07);

  /* surfaces */
  --grad-card: linear-gradient(180deg, rgba(14, 22, 40, 0.72), rgba(10, 16, 30, 0.78));
  --grad-text: linear-gradient(118deg, #ffffff 0%, #b6ecff 52%, #6be4ff 100%);
  --surface-glass: rgba(8, 13, 24, 0.82);

  /* effects */
  --shadow-card: 0 18px 55px rgba(0, 0, 0, 0.45), 0 0 50px rgba(0, 212, 255, 0.06);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 212, 255, 0.07);
  --glow: 0 0 18px rgba(0, 212, 255, 0.35), 0 0 2px rgba(0, 212, 255, 0.8);
  --glow-btn: 0 0 26px rgba(0, 212, 255, 0.40);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* type */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* radii */
  --r-chip: 12px;
  --r-card: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  --container: 1240px;

  position: relative;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================================
   RESETS (scoped — do not touch host app)
   ============================================================ */
.cv-hack *, .cv-hack *::before, .cv-hack *::after { box-sizing: border-box; }
.cv-hack h1, .cv-hack h2, .cv-hack h3, .cv-hack h4, .cv-hack p { margin: 0; }
.cv-hack a { color: inherit; text-decoration: none; }
.cv-hack img { max-width: 100%; display: block; }
.cv-hack ul { margin: 0; padding: 0; list-style: none; }

.cv-hack .cv-container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* ============================================================
   BACKGROUND LAYERS (fixed, behind content)
   ============================================================ */
.cv-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cv-bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 18% -8%, rgba(0, 212, 255, 0.10), transparent 60%),
    radial-gradient(900px 560px at 88% 6%, rgba(184, 107, 255, 0.06), transparent 60%),
    radial-gradient(800px 560px at 70% 110%, rgba(255, 90, 90, 0.05), transparent 60%);
}
.cv-bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 28%, #000 0%, transparent 78%);
          mask-image: radial-gradient(circle at 50% 28%, #000 0%, transparent 78%);
}

.cv-page { position: relative; z-index: 1; }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.cv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.cv-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow);
}
.cv-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.cv-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

/* ============================================================
   NAVBAR (premium rounded glass — NOT bootstrap)
   ============================================================ */
.cv-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(var(--container), calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transition: padding 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.cv-nav.is-scrolled {
  padding-top: 7px;
  padding-bottom: 7px;
  background: rgba(5, 8, 16, 0.92);
}
.cv-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.cv-brand .cv-hex {
  width: 26px; height: 26px;
  flex: none;
  display: grid;
  place-items: center;
}
.cv-brand b { color: var(--accent); text-shadow: 0 0 14px rgba(0, 212, 255, 0.55); }
.cv-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
  color: var(--ink-dim);
}
.cv-nav-links a { transition: color 0.18s; }
.cv-nav-links a:hover { color: var(--ink); }
.cv-nav-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 940px) {
  .cv-nav-links { display: none; }
}

/* ============================================================
   BUTTONS (three-tier)
   ============================================================ */
.cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background 0.18s, border-color 0.18s, color 0.18s;
}
.cv-btn:hover { transform: translateY(-1px); }
.cv-btn:active { transform: translateY(0); }
.cv-btn--primary {
  background: linear-gradient(135deg, #00d4ff, #6be4ff 55%, #4da3ff);
  color: var(--ink-on-accent);
  box-shadow: var(--glow-btn);
}
.cv-btn--primary:hover { box-shadow: 0 0 34px rgba(0, 212, 255, 0.6); }
.cv-btn--secondary {
  background: rgba(0, 212, 255, 0.05);
  border-color: var(--line-strong);
  color: var(--ink);
}
.cv-btn--secondary:hover { background: rgba(0, 212, 255, 0.12); }
.cv-btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-dim);
}
.cv-btn--ghost:hover { color: var(--ink); border-color: var(--line-strong); }
.cv-btn--danger {
  background: rgba(255, 90, 90, 0.12);
  border-color: rgba(255, 90, 90, 0.4);
  color: #ffb3b3;
}
.cv-btn--sm { padding: 9px 16px; font-size: 0.85rem; }
.cv-btn--lg { padding: 16px 28px; font-size: 1rem; }
.cv-btn svg { width: 17px; height: 17px; }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.cv-section { padding: clamp(72px, 9vw, 132px) 0; }
.cv-section--tight { padding: clamp(48px, 6vw, 88px) 0; }
.cv-head { max-width: 720px; margin-bottom: 52px; }
.cv-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.cv-head .cv-eyebrow { margin-bottom: 18px; }
.cv-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  margin-bottom: 18px;
}
.cv-head p {
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  color: var(--ink-dim);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ============================================================
   CARD PRIMITIVE
   ============================================================ */
.cv-card {
  position: relative;
  background: var(--grad-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s var(--ease-out), border-color 0.28s var(--ease-out);
}
.cv-card--hover:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

/* ============================================================
   HERO
   ============================================================ */
.cv-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding: 150px 0 90px;
}
.cv-hero-copy { position: relative; z-index: 2; }
.cv-hero .cv-eyebrow { margin-bottom: 22px; }
.cv-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  margin-bottom: 6px;
}
.cv-hero .cv-sub {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.12;
  margin: 16px 0 20px;
  max-width: 18ch;
}
.cv-hero .cv-support {
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  color: var(--ink-dim);
  line-height: 1.6;
  max-width: 46ch;
  margin-bottom: 32px;
  text-wrap: pretty;
}
.cv-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.cv-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 34px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cv-hero-meta b { color: var(--accent-bright); font-weight: 700; display: block; font-size: 1.4rem; letter-spacing: -0.02em; }

/* Hero visual — canvas network */
.cv-hero-visual {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
}
.cv-net-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cv-net-fallback { display: none; }

@media (max-width: 920px) {
  .cv-hero { grid-template-columns: 1fr; text-align: left; padding-top: 124px; }
  .cv-hero-visual { order: -1; max-width: 440px; margin: 0 auto 10px; }
}

/* ============================================================
   APP ENTRY POINTS
   ============================================================ */
.cv-entry-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cv-entry {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--grad-card);
  transition: transform 0.22s var(--ease-out), border-color 0.22s, background 0.22s;
}
.cv-entry:hover { transform: translateY(-4px); border-color: var(--line-strong); background: rgba(0, 212, 255, 0.05); }
.cv-entry-ico {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--line-strong);
  color: var(--accent-bright);
}
.cv-entry-ico svg { width: 21px; height: 21px; }
.cv-entry h3 { font-size: 1rem; font-weight: 600; }
.cv-entry p { font-size: 0.84rem; color: var(--ink-faint); line-height: 1.5; }
.cv-entry .cv-route {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
@media (max-width: 1080px) { .cv-entry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cv-entry-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PROBLEM vs SOLUTION
   ============================================================ */
.cv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 880px) { .cv-split { grid-template-columns: 1fr; } }
.cv-problem-list, .cv-solution-list { display: flex; flex-direction: column; gap: 12px; }
.cv-prob {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 15px 18px;
  border-radius: var(--r-chip);
  border: 1px solid rgba(255, 90, 90, 0.18);
  background: rgba(255, 90, 90, 0.05);
  font-size: 0.95rem;
}
.cv-prob .cv-x { color: var(--danger); flex: none; margin-top: 1px; }
.cv-sol {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 15px 18px;
  border-radius: var(--r-chip);
  border: 1px solid var(--line);
  background: rgba(0, 212, 255, 0.05);
  font-size: 0.95rem;
}
.cv-sol .cv-c { color: var(--accent); flex: none; margin-top: 1px; }
.cv-sol b { display: block; margin-bottom: 2px; }
.cv-sol span { color: var(--ink-dim); }

/* ============================================================
   AGENT WORKFLOW (the centrepiece)
   ============================================================ */
/* carousel controls bar */
.cv-ag-bar {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  margin-bottom: 22px;
}
.cv-ag-dots { display: flex; gap: 8px; }
.cv-ag-dot {
  width: 26px; height: 6px; border-radius: 999px; border: none; padding: 0;
  background: rgba(0, 212, 255, 0.22); cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.cv-ag-dot.is-active { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.cv-ag-arrows { display: flex; gap: 9px; }
.cv-ag-arrow {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(0, 212, 255, 0.05);
  color: var(--accent); font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: background 0.2s, transform 0.18s var(--ease-out);
}
.cv-ag-arrow:hover { background: rgba(0, 212, 255, 0.12); }
.cv-ag-arrow:active { transform: scale(0.94); }

/* carousel viewport + track */
.cv-ag-viewport { position: relative; overflow: hidden; padding: 6px 4px; }
.cv-ag-track {
  display: flex; gap: 22px;
  transition: transform 0.55s var(--ease-out);
  will-change: transform;
}
.cv-agent {
  flex: none;
  width: min(420px, 84vw);
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--grad-card);
  box-shadow: var(--shadow-card);
  opacity: 0.5;
  transition: border-color 0.4s, opacity 0.4s var(--ease-out), box-shadow 0.4s;
}
.cv-agent.is-active {
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 0 40px rgba(0, 212, 255, 0.12);
  opacity: 1;
  z-index: 2;
}
.cv-agent-step {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.cv-agent-orb {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--accent-bright);
  position: relative;
}
.cv-agent-orb svg { width: 24px; height: 24px; }
.cv-agent h3 { font-size: 1.06rem; font-weight: 600; margin-bottom: 8px; }
.cv-agent .cv-role {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.cv-agent ul { display: flex; flex-direction: column; gap: 8px; }
.cv-agent li {
  font-size: 0.86rem;
  color: var(--ink-dim);
  line-height: 1.45;
  padding-left: 16px;
  position: relative;
}
.cv-agent li::before {
  content: "›";
  position: absolute; left: 0;
  color: var(--accent);
}
.cv-agent .cv-handoff {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex; align-items: center; gap: 7px;
}
.cv-agent .cv-handoff svg { width: 14px; height: 14px; color: var(--accent); }

/* Band coordination rail */
.cv-band-rail {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.08), rgba(184, 107, 255, 0.06));
  position: relative;
  overflow: hidden;
}
.cv-band-rail .cv-rail-pulse {
  position: absolute;
  top: 0; left: 0; height: 100%;
  width: 120px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.35), transparent);
  animation: cv-rail 3.2s linear infinite;
}
@keyframes cv-rail { from { transform: translateX(-140px); } to { transform: translateX(calc(100vw)); } }
.cv-band-rail .cv-rail-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
  display: flex; align-items: center; gap: 10px;
  position: relative; z-index: 1;
}
.cv-band-rail .cv-rail-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: var(--glow);
}
.cv-band-rail p { position: relative; z-index: 1; font-size: 0.9rem; color: var(--ink-dim); }

@media (max-width: 980px) {
  .cv-agent { width: min(360px, 86vw); padding: 22px 20px; }
}

/* ============================================================
   SCROLLYTELLING DEMO SCENARIO
   ============================================================ */
.cv-scrolly { position: relative; }
.cv-scrolly-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cv-scrolly-steps { display: flex; flex-direction: column; gap: 16px; }
.cv-scrolly-step {
  padding: 24px 26px;
  border-radius: var(--r-card);
  border: 1px solid var(--line-soft);
  background: rgba(10, 16, 30, 0.5);
  opacity: 0.4;
  transition: opacity 0.4s var(--ease-out), border-color 0.4s, transform 0.4s var(--ease-out);
}
.cv-scrolly-step.is-active {
  opacity: 1;
  border-color: var(--line-strong);
  background: var(--grad-card);
  transform: translateX(6px);
  box-shadow: var(--shadow-card);
}
.cv-scrolly-step .cv-st-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 9px;
}
.cv-scrolly-step h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.cv-scrolly-step p { font-size: 0.95rem; color: var(--ink-dim); line-height: 1.55; }

/* sticky viewport panel */
.cv-scrolly-sticky { position: sticky; top: 100px; }
.cv-demo-window {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 16, 30, 0.95), rgba(6, 10, 20, 0.98));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cv-demo-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 212, 255, 0.03);
}
.cv-demo-bar .cv-dot { width: 10px; height: 10px; border-radius: 50%; }
.cv-demo-bar .cv-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cv-demo-body { padding: 22px; min-height: 360px; }
.cv-demo-msg {
  display: flex; gap: 12px;
  padding: 12px 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.cv-demo-msg.is-shown { opacity: 1; transform: none; }
.cv-demo-msg .cv-msg-orb {
  width: 34px; height: 34px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--line-strong);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
}
.cv-demo-msg .cv-msg-who {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.cv-demo-msg .cv-msg-text { font-size: 0.9rem; color: var(--ink); line-height: 1.5; }
.cv-demo-msg .cv-msg-text .cv-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--line);
  color: var(--accent-bright);
  margin: 2px 3px 2px 0;
}
@media (max-width: 880px) {
  .cv-scrolly-grid { grid-template-columns: 1fr; }
  .cv-scrolly-sticky { position: relative; top: 0; order: -1; margin-bottom: 12px; }
}

/* ============================================================
   PARTNERS
   ============================================================ */
.cv-partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .cv-partner-grid { grid-template-columns: 1fr; } }
.cv-partner { display: flex; flex-direction: column; gap: 14px; }
.cv-partner-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cv-partner-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.cv-badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.cv-badge--core { background: rgba(0, 212, 255, 0.12); border-color: var(--line-strong); color: var(--accent-bright); }
.cv-badge--opt { background: rgba(143, 167, 191, 0.1); border-color: var(--line-neutral); color: var(--ink-dim); }
.cv-partner p { font-size: 0.94rem; color: var(--ink-dim); line-height: 1.55; }
.cv-partner ul { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.cv-partner li { font-size: 0.88rem; color: var(--ink-dim); padding-left: 18px; position: relative; line-height: 1.45; }
.cv-partner li::before { content: "›"; position: absolute; left: 0; color: var(--accent); }
.cv-partner code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-bright);
  background: rgba(0, 212, 255, 0.07);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ============================================================
   ENV / INTEGRATION READINESS
   ============================================================ */
.cv-env {
  font-family: var(--font-mono);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(4, 7, 14, 0.7);
  overflow: hidden;
}
.cv-env-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 212, 255, 0.03);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint);
}
.cv-env-body { padding: 18px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; }
@media (max-width: 680px) { .cv-env-body { grid-template-columns: 1fr; } }
.cv-env-row { display: flex; gap: 12px; padding: 7px 0; font-size: 0.84rem; border-bottom: 1px solid var(--line-soft); }
.cv-env-row .cv-key { color: var(--accent-bright); flex: none; }
.cv-env-row .cv-cmt { color: var(--ink-faint); }

/* ============================================================
   IMPACT
   ============================================================ */
.cv-impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .cv-impact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cv-impact-grid { grid-template-columns: 1fr; } }
.cv-impact .cv-impact-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--accent-bright);
  margin-bottom: 16px;
}
.cv-impact .cv-impact-ico svg { width: 22px; height: 22px; }
.cv-impact h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.cv-impact p { font-size: 0.92rem; color: var(--ink-dim); line-height: 1.55; }

/* ============================================================
   ARCHITECTURE
   ============================================================ */
.cv-arch {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
}
.cv-arch-stage {
  flex: 1 1 160px;
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cv-arch-node {
  flex: 1;
  padding: 20px 18px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--grad-card);
  text-align: center;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.cv-arch-node:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.cv-arch-node .cv-arch-ico {
  width: 40px; height: 40px; margin: 0 auto 12px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--accent-bright);
}
.cv-arch-node .cv-arch-ico svg { width: 20px; height: 20px; }
.cv-arch-node h4 { font-size: 0.96rem; font-weight: 600; margin-bottom: 5px; }
.cv-arch-node p { font-size: 0.78rem; color: var(--ink-faint); line-height: 1.4; }
.cv-arch-arrow {
  flex: none;
  color: var(--accent);
  display: grid; place-items: center;
  width: 30px;
}
.cv-arch-arrow svg { width: 22px; height: 22px; }
@media (max-width: 1080px) {
  .cv-arch { flex-direction: column; }
  .cv-arch-stage { flex-direction: column; width: 100%; }
  .cv-arch-arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.cv-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(4, 7, 14, 0.6);
  padding: 64px 0 40px;
}
.cv-footer-cta {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}
.cv-footer-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}
.cv-footer-cta p { color: var(--ink-dim); margin-bottom: 26px; }
.cv-footer-links {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.cv-footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 0.84rem;
  color: var(--ink-faint);
}
.cv-footer-bottom .cv-brand { font-size: 1rem; }
.cv-footer-bottom a { color: var(--ink-dim); }
.cv-footer-bottom a:hover { color: var(--ink); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.cv-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.cv-reveal.is-in { opacity: 1; transform: none; }
.cv-reveal[data-delay="1"] { transition-delay: 0.08s; }
.cv-reveal[data-delay="2"] { transition-delay: 0.16s; }
.cv-reveal[data-delay="3"] { transition-delay: 0.24s; }
.cv-reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .cv-hack *, .cv-hack *::before, .cv-hack *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .cv-reveal { opacity: 1 !important; transform: none !important; }
  .cv-band-rail .cv-rail-pulse { display: none; }
}
