/* =========================================================
   BentoKit · Landing v5
   --------------------------------------------------------
   An editorial-tech hybrid. io.net energy meets
   LangChain restraint, themed around the BentoKit Canvas.
   ========================================================= */

/* ---------- 1. Tokens ----------------------------------- */
:root {
  /* Surfaces */
  --bg: #0d0c18;
  --bg-soft: #14132a;
  --bg-elev: #1a1830;
  --panel: rgba(26, 24, 48, 0.62);
  --panel-strong: rgba(32, 30, 56, 0.88);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);

  /* Lines */
  --line: rgba(210, 226, 255, 0.10);
  --line-2: rgba(210, 226, 255, 0.18);
  --line-strong: rgba(210, 226, 255, 0.32);

  /* Text */
  --text: #f5f7ff;
  --text-soft: #cdd5ee;
  --muted: #8a93ad;
  --muted-2: #5e667d;

  /* Accents */
  --cyan: #2ee8ff;
  --cyan-soft: #9ee9ff;
  --blue: #4182ff;
  --violet: #9d5cff;
  --violet-soft: #d3b6ff;
  --magenta: #ff4fd8;
  --amber: #ffc76a;
  --green: #42f5a7;

  /* Glows */
  --glow-cyan: 0 0 38px rgba(46, 232, 255, 0.35);
  --glow-violet: 0 0 38px rgba(157, 92, 255, 0.35);

  /* Type */
  --f-display: "Newsreader", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 220ms;
  --t-med: 420ms;
  --t-slow: 700ms;

  /* Layout */
  --container: 1240px;
  --pad: clamp(20px, 4vw, 64px);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
}

/* ---------- 2. Reset ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em, i { font-style: italic; }
::selection { background: rgba(46, 232, 255, 0.35); color: var(--text); }

.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;
}

.skip {
  position: absolute; left: 16px; top: 16px;
  background: var(--text); color: var(--bg);
  padding: 10px 14px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
  transform: translateY(-200%);
  transition: transform var(--t-fast) var(--ease);
  z-index: 1000;
}
.skip:focus { transform: translateY(0); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- 3. Ambient backdrop ------------------------- */
.ambient {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.ambient-grain {
  position: absolute; inset: -10%;
  background-image:
    radial-gradient(rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}
.ambient-glow {
  position: absolute;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.4;
  will-change: transform;
}
.ambient-glow-violet {
  background: radial-gradient(circle, #2a1452 0%, transparent 65%);
  top: -22vw; left: -22vw;
  animation: ambient-drift-a 22s var(--ease) infinite alternate;
}
.ambient-glow-cyan {
  background: radial-gradient(circle, #082e40 0%, transparent 65%);
  bottom: -22vw; right: -22vw;
  animation: ambient-drift-b 28s var(--ease) infinite alternate;
}
@keyframes ambient-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(15vw, 8vw) scale(1.15); }
}
@keyframes ambient-drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-10vw, -10vw) scale(1.1); }
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- 4. Nav -------------------------------------- */
.nav {
  position: fixed;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 1320px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px 12px 20px;
  border-radius: 999px;
  background: rgba(13, 12, 24, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  transition: border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              top var(--t-fast) var(--ease);
}
.nav.is-scrolled {
  background: rgba(13, 12, 24, 0.82);
  border-color: var(--line-2);
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.01em;
  font-size: 16px;
}
.nav-mark { width: 28px; height: 28px; filter: drop-shadow(0 0 12px rgba(46,232,255,0.25)); }
.nav-wordmark { line-height: 1; }

.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; color: var(--muted);
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color var(--t-fast) var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width var(--t-med) var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.is-current { color: var(--text); }
.nav-links a.is-current::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-contact {
  font-size: 14px; color: var(--muted);
  transition: color var(--t-fast) var(--ease);
}
.nav-contact:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--text);
  margin: 4px auto;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

/* ---------- 5. Buttons ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              box-shadow var(--t-med) var(--ease);
  position: relative; overflow: hidden;
  isolation: isolate;
}
.btn svg { width: 14px; height: 14px; }

.btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, #e6e9f4 100%);
  color: #07080d;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.6),
    0 14px 30px -10px rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.08);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.7),
    0 22px 50px -10px rgba(46,232,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.08);
}

.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--glass-strong);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }

/* ---------- 6. Hero ------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 140px var(--pad) 100px;
  overflow: hidden;
  background: #000;
}
.hero .hero-aurora { display: none; }
.hero .hero-vignette { display: none; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 1024px) {
  .hero {
    padding-top: 110px;
    padding-bottom: 80px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .hero-copy { max-width: none; margin: 0 auto; }
  .hero-eyebrow { margin-bottom: 24px; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-video-frame {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    transform: none !important;
  }
  .hero-video-screen { aspect-ratio: 1 / 1; }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 35px;
    padding-bottom: 97px;
    min-height: auto;
  }
  .hero-copy { margin-top: -5px; }
  .hero-grid { gap: 20px; }
  .hero-title { font-size: clamp(34px, 8.5vw, 52px); }
  .hero-lede { font-size: 15px; max-width: 480px; }
  .hero-eyebrow { margin-bottom: 18px; font-size: 10px; padding: 5px 12px; }
  .hero-video-frame { max-width: 360px; }
  .hero-ticker { padding: 10px 0; }
  .hero-ticker-track { font-size: 10px; gap: 22px; letter-spacing: 0.18em; }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 84px;
    padding-bottom: 64px;
  }
  .hero-title { font-size: clamp(30px, 9vw, 44px); }
  .hero-lede { font-size: 14.5px; line-height: 1.55; }
  .hero-video-frame { max-width: 300px; }
  .hero-actions { width: 100%; gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding: 12px 16px; }
}
.hero-canvas {
  display: none;
}
.hero-vignette {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-vignette::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,12,24,0) 0%, rgba(13,12,24,0.25) 78%, rgba(13,12,24,0.7) 100%);
}

.hero-aurora {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora-blob-1 {
  width: 60vw; height: 60vw;
  top: -16vw; left: -12vw;
  background: radial-gradient(circle, #170828 0%, transparent 62%);
  opacity: 0.6;
  animation: aurora-drift-1 36s var(--ease) infinite alternate;
}
.aurora-blob-2 {
  width: 55vw; height: 55vw;
  bottom: -20vw; right: -10vw;
  background: radial-gradient(circle, #062a3e 0%, transparent 62%);
  opacity: 0.6;
  animation: aurora-drift-2 44s var(--ease) infinite alternate;
}
.aurora-blob-3 {
  width: 42vw; height: 42vw;
  top: 14vh; right: 16vw;
  background: radial-gradient(circle, #220822 0%, transparent 65%);
  opacity: 0.32;
  animation: aurora-drift-3 52s var(--ease) infinite alternate;
}
.aurora-blob-4 {
  width: 40vw; height: 40vw;
  bottom: 6vh; left: 20vw;
  background: radial-gradient(circle, #082343 0%, transparent 65%);
  opacity: 0.45;
  animation: aurora-drift-4 40s var(--ease) infinite alternate;
}

@keyframes aurora-drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(8vw, 6vw) scale(1.15); }
}
@keyframes aurora-drift-2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-10vw, -8vw) scale(1.2); }
}
@keyframes aurora-drift-3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-12vw, 10vw) scale(0.85); }
}
@keyframes aurora-drift-4 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(14vw, -6vw) scale(1.1); }
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  width: 100%;
}

.hero-copy {
  max-width: 600px;
}

.hero-video-frame {
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.hero-video-chrome { display: none; }
.hero-video-screen {
  position: relative;
  aspect-ratio: 1 / 1;
  background: transparent;
  overflow: visible;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  mix-blend-mode: lighten;
  -webkit-mask-image:
    radial-gradient(ellipse 45% 55% at 50% 55%, #000 0%, rgba(0,0,0,0.9) 18%, rgba(0,0,0,0.45) 55%, transparent 90%),
    linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image:
    radial-gradient(ellipse 45% 55% at 50% 55%, #000 0%, rgba(0,0,0,0.9) 18%, rgba(0,0,0,0.45) 55%, transparent 90%),
    linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero-video-overlay { display: none; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 36px;
  backdrop-filter: blur(10px);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: dot-pulse 2.4s var(--ease) infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 70px);
  line-height: 1.0;
  letter-spacing: -0.022em;
  margin-bottom: 24px;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: hero-line-in 900ms var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 100ms; }
.hero-title .line:nth-child(2) { animation-delay: 220ms; }
.hero-title .line:nth-child(3) { animation-delay: 340ms; }
.hero-title em {
  font-style: italic;
  background: linear-gradient(110deg, var(--cyan-soft) 0%, var(--cyan) 30%, var(--violet) 70%, var(--violet-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}
@keyframes hero-line-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 580px;
  margin-bottom: 40px;
  opacity: 0;
  animation: hero-line-in 900ms var(--ease-out) 480ms forwards;
}

.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 0;
  opacity: 0;
  animation: hero-line-in 900ms var(--ease-out) 600ms forwards;
}

.hero-ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  background: rgba(13,12,24,0.65);
  backdrop-filter: blur(10px);
  z-index: 3;
}
.hero-ticker-track {
  display: flex; gap: 28px;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft);
  animation: ticker 38s linear infinite;
}
.hero-ticker-track .sep { color: var(--violet); opacity: 0.7; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero-scroll {
  position: absolute;
  bottom: 90px;
  right: var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 3;
}
.hero-scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(180deg, var(--cyan) 0%, transparent 100%);
  position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -20px; left: 0; right: 0;
  height: 20px;
  background: linear-gradient(180deg, transparent 0%, var(--text) 100%);
  animation: scroll-pulse 2s var(--ease) infinite;
}
@keyframes scroll-pulse {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(80px); opacity: 0; }
}

/* ---------- 7. Section heads / typography -------------- */
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.kicker-num {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(46,232,255,0.16), rgba(157,92,255,0.16));
  border: 1px solid var(--line-2);
  color: var(--cyan-soft);
  font-weight: 600;
}

.display {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin-bottom: 24px;
  max-width: 900px;
}

#get-started .display {
  font-size: clamp(36px, 5.5vw, 68px);
}

.display em {
  font-style: italic;
  background: linear-gradient(110deg, var(--cyan-soft) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}
.display.center { margin-left: auto; margin-right: auto; text-align: center; }

.lede {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.62;
  color: var(--text-soft);
  max-width: 640px;
}
.lede.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Feature cells — vertically stacked minimalist rows with shared hairline */
.feature-cells {
  display: flex;
  flex-direction: column;
  margin-top: 36px;
  list-style: none;
  border-top: 1px solid var(--line);
}
.fc {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 4px 22px 10px;
  border-bottom: 1px solid var(--line);
  transition: background var(--t-med) var(--ease);
}
.fc::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: -1px;
  width: 0;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  transition: width var(--t-med) var(--ease);
}
.fc:hover {
  background: linear-gradient(90deg, rgba(46,232,255,0.025), transparent 60%);
}
.fc:hover::before { width: 2px; }

.fc-num {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  flex-shrink: 0;
  width: 28px;
  transition: color var(--t-med) var(--ease);
}
.fc:hover .fc-num { color: var(--cyan-soft); }

.fc-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.fc-title {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--text);
  flex-shrink: 0;
}
.fc-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  min-width: 0;
}

@media (max-width: 640px) {
  .feature-cells { margin-top: 28px; }
  .fc { padding: 18px 0; gap: 16px; }
}

/* ---------- 8. Pillars (shared layout) ----------------- */
.pillar {
  position: relative;
  padding: clamp(80px, 12vh, 160px) 0;
}
.pillar::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 1px; height: 80px;
  background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
}
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.pillar-grid-reverse .pillar-copy { order: 2; }
.pillar-grid-reverse .pillar-visual { order: 1; }

.pillar-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(48px, 8vh, 80px);
  display: flex; flex-direction: column; align-items: center;
}

/* ---------- 9. Manifesto ------------------------------- */
.manifesto {
  position: relative;
  padding: clamp(56px, 9vh, 96px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13,12,24,0) 0%, rgba(20,19,42,0.4) 50%, rgba(13,12,24,0) 100%);
  overflow: hidden;
}
.manifesto::before,
.manifesto::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.5;
}
.manifesto::before {
  width: 38vw; height: 38vw;
  top: -10vw; left: -8vw;
  background: radial-gradient(circle, #2a1452 0%, transparent 65%);
  animation: manifesto-drift-a 18s var(--ease) infinite alternate;
}
.manifesto::after {
  width: 36vw; height: 36vw;
  bottom: -10vw; right: -8vw;
  background: radial-gradient(circle, #082e40 0%, transparent 65%);
  animation: manifesto-drift-b 22s var(--ease) infinite alternate;
}
@keyframes manifesto-drift-a {
  from { transform: translate(0, 0); }
  to   { transform: translate(8vw, 4vw); }
}
@keyframes manifesto-drift-b {
  from { transform: translate(0, 0); }
  to   { transform: translate(-6vw, -4vw); }
}
.manifesto .container {
  position: relative;
  z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: clamp(14px, 2.5vh, 28px);
  text-align: center;
}
.manifesto-line {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--text-soft);
}
.manifesto-line .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out),
    filter 700ms var(--ease-out);
  transition-delay: calc(var(--word-i, 0) * 60ms);
  white-space: pre;
}
.manifesto-line.is-active .word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.manifesto-line em {
  font-style: italic;
  background: linear-gradient(110deg, var(--cyan-soft), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  display: inline-block;
  position: relative;
}
.manifesto-line em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.08em;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 900ms var(--ease-out) 280ms;
}
.manifesto-line.is-active em::after {
  transform: scaleX(1);
}

/* ---------- 10. Federation pillar ---------------------- */
.federation-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%; max-width: 540px;
  margin: 0 auto;
}
.federation-svg { width: 100%; height: 100%; overflow: visible; }
.federation-svg .orbit {
  fill: none;
  stroke: var(--line-2);
  stroke-dasharray: 2 6;
  animation: orbit-rotate 80s linear infinite;
  transform-origin: 260px 260px;
}
.federation-svg .orbit:nth-child(2) { animation-duration: 60s; animation-direction: reverse; }
.federation-svg .orbit:nth-child(3) { animation-duration: 40s; }
@keyframes orbit-rotate {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

.federation-svg .fed-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  opacity: 0;
  animation: line-draw 4s var(--ease) infinite;
}
.federation-svg .fed-line:nth-child(1) { animation-delay: 0s; }
.federation-svg .fed-line:nth-child(2) { animation-delay: 0.4s; }
.federation-svg .fed-line:nth-child(3) { animation-delay: 0.8s; }
.federation-svg .fed-line:nth-child(4) { animation-delay: 1.2s; }
.federation-svg .fed-line:nth-child(5) { animation-delay: 1.6s; }
.federation-svg .fed-line:nth-child(6) { animation-delay: 2.0s; }
.federation-svg .fed-line:nth-child(7) { animation-delay: 2.4s; }
@keyframes line-draw {
  0%   { stroke-dashoffset: 200; opacity: 0; }
  20%  { opacity: 0.85; }
  60%  { stroke-dashoffset: 0; opacity: 0.85; }
  100% { stroke-dashoffset: -200; opacity: 0; }
}

.federation-svg .fed-node {
  fill: var(--text);
  filter: drop-shadow(0 0 6px rgba(46,232,255,0.8));
}
.federation-svg .fed-core {
  fill: var(--cyan-soft);
  filter: drop-shadow(0 0 12px var(--cyan));
}
.federation-svg .fed-glow {
  animation: glow-pulse 3s var(--ease) infinite;
  transform-origin: center;
}
.federation-svg .fed-glow:nth-child(odd) { animation-delay: 0.6s; }
.federation-svg .fed-glow:nth-child(3n) { animation-delay: 1.2s; }
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.federation-label {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(13,12,24,0.7);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.fl-1 { top: 14%; left: 8%; }
.fl-2 { top: 14%; right: 8%; }
.fl-3 { bottom: 22%; right: 4%; color: var(--violet-soft); }
.fl-4 { bottom: 22%; left: 4%; color: var(--green); border-color: rgba(66,245,167,0.3); }

/* ---------- 11. Canvas pillar -------------------------- */
.canvas-frame {
  position: relative;
  margin: 0 auto;
  max-width: 1080px;
  border-radius: var(--radius-xl);
  background: var(--panel-strong);
  border: 1px solid var(--line-2);
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 0 80px -20px rgba(46,232,255,0.18);
  overflow: hidden;
  transform: perspective(1800px) rotateX(0deg);
  transition: transform 600ms var(--ease);
}
.canvas-frame-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(20,19,42,0.7);
}
.cfc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.cfc-dot:nth-child(1) { background: rgba(255,123,123,0.65); }
.cfc-dot:nth-child(2) { background: rgba(255,199,106,0.65); }
.cfc-dot:nth-child(3) { background: rgba(66,245,167,0.65); }
.cfc-title {
  flex: 1; text-align: center;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.cfc-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green);
}
.cfc-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: dot-pulse 2s var(--ease) infinite;
}

.canvas-frame-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0d0c18;
  overflow: hidden;
}
.canvas-video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.canvas-frame-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(13,12,24,0.7) 100%);
}

/* Canvas placeholder mock (until demo video is added) */
.canvas-mock {
  position: absolute; inset: 0;
  display: block;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(157,92,255,0.10), transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(46,232,255,0.10), transparent 55%);
}
.canvas-mock-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.canvas-mock-window {
  position: absolute;
  border-radius: 10px;
  background: var(--panel-strong);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
  box-shadow:
    0 14px 40px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.05);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: cmw-float 8s var(--ease) infinite;
}
.canvas-mock-window .cmw-bar {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(13,12,24,0.6);
}
.canvas-mock-window .cmw-bar span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}
.canvas-mock-window .cmw-bar span:first-child { background: rgba(255,123,123,0.55); }
.canvas-mock-window .cmw-bar span:nth-child(2) { background: rgba(255,199,106,0.55); }
.canvas-mock-window .cmw-bar span:nth-child(3) { background: rgba(66,245,167,0.55); }
.cmw-1 {
  top: 14%; left: 8%;
  width: 32%; height: 38%;
  animation-delay: 0s;
}
.cmw-2 {
  top: 22%; right: 10%;
  width: 30%; height: 30%;
  animation-delay: 1.4s;
}
.cmw-3 {
  bottom: 14%; left: 28%;
  width: 28%; height: 30%;
  animation-delay: 2.6s;
}
@keyframes cmw-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.cmw-rows {
  flex: 1;
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px;
}
.cmw-row {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, transparent 80%);
  opacity: 0.5;
}
.cmw-row.short { width: 60%; opacity: 0.35; }
.cmw-chart {
  flex: 1;
  display: flex; align-items: flex-end; gap: 6px;
  padding: 12px;
}
.cmw-chart span {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--violet), var(--cyan));
  opacity: 0.6;
}
.cmw-chart span:nth-child(1) { height: 40%; }
.cmw-chart span:nth-child(2) { height: 70%; }
.cmw-chart span:nth-child(3) { height: 55%; }
.cmw-chart span:nth-child(4) { height: 85%; }
.cmw-chart span:nth-child(5) { height: 60%; }
.cmw-orb {
  flex: 1;
  margin: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--cyan-soft), var(--violet) 60%, transparent 80%);
  filter: blur(0.4px);
  box-shadow: 0 0 30px rgba(46,232,255,0.4);
}
.canvas-mock-caption {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13,12,24,0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.canvas-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.cf-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: transform var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              background var(--t-med) var(--ease);
}
.cf-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--panel-strong);
}
.cf-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(46,232,255,0.15), rgba(157,92,255,0.15));
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan-soft);
  margin-bottom: 18px;
}
.cf-icon svg { width: 22px; height: 22px; overflow: visible; }

/* Window Manager — front window slowly drifts over the back one */
.cf-icon-windows .cfi-win-front {
  transform-box: fill-box;
  transform-origin: center;
  animation: cfi-drift 5.4s var(--ease) infinite alternate;
}
.cf-icon-windows .cfi-win-back {
  opacity: 0.55;
}
@keyframes cfi-drift {
  0%   { transform: translate(-1.8px, -1.4px); }
  100% { transform: translate(1.4px, 1px); }
}
.cf-card:hover .cf-icon-windows .cfi-win-front {
  animation-duration: 2.6s;
}

/* Brand adaptation — three swatches cycle through brand hues */
.cf-icon-palette .cfi-dot {
  animation: cfi-hue 4.2s linear infinite;
}
.cf-icon-palette .cfi-dot-1 { animation-delay: 0s;    }
.cf-icon-palette .cfi-dot-2 { animation-delay: -1.4s; }
.cf-icon-palette .cfi-dot-3 { animation-delay: -2.8s; }
@keyframes cfi-hue {
  0%   { fill: #2ee8ff; }
  33%  { fill: #9d5cff; }
  66%  { fill: #ff7adc; }
  100% { fill: #2ee8ff; }
}

/* Private extension catalog — fourth tile pulses in like a new module */
.cf-icon-grid .cfi-tile {
  opacity: 0.6;
}
.cf-icon-grid .cfi-tile-new {
  transform-origin: 17px 17px;
  animation: cfi-pop 3.4s var(--ease) infinite;
}
@keyframes cfi-pop {
  0%, 100% { opacity: 0.25; transform: scale(0.82); }
  50%      { opacity: 1;    transform: scale(1); }
}
.cf-card:hover .cf-icon-grid .cfi-tile-new {
  animation-duration: 1.8s;
}
.cf-card h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.cf-card p {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- 12. Memory pillar -------------------------- */
.vault-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Query terminal */
.vault-query {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panel-strong);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--text);
  box-shadow:
    0 14px 32px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.05);
}
.vq-prompt {
  color: var(--cyan);
  font-weight: 700;
}
.vq-text {
  position: relative;
  flex: 1;
  height: 18px;
  overflow: hidden;
}
.vq-line {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(8px);
}
.vq-cursor {
  width: 7px; height: 14px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: vq-blink 1s steps(2) infinite;
}
@keyframes vq-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* Vaults row */
.vaults-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  aspect-ratio: 6 / 5;
}
.vault {
  --vault-accent: var(--cyan);
  --vault-soft: var(--cyan-soft);
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--vault-accent) 6%, transparent) 0%, transparent 100%),
    var(--panel);
  border: 1px solid var(--line-2);
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05);
  opacity: 0.42;
  filter: saturate(0.7);
  transition:
    opacity 700ms var(--ease),
    filter 700ms var(--ease),
    border-color 700ms var(--ease),
    box-shadow 700ms var(--ease),
    transform 700ms var(--ease);
}
.vault[data-vault="A"] { --vault-accent: var(--cyan);    --vault-soft: var(--cyan-soft); }
.vault[data-vault="B"] { --vault-accent: var(--violet);  --vault-soft: var(--violet-soft); }
.vault[data-vault="C"] { --vault-accent: var(--amber);   --vault-soft: #ffe2a5; }

.vault-label {
  padding: 10px 12px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.vault-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  overflow: hidden;
}
.memo {
  position: relative;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.01em;
  padding: 6px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--vault-accent) 6%, var(--bg-elev));
  border: 1px solid color-mix(in srgb, var(--vault-accent) 18%, var(--line));
  color: color-mix(in srgb, var(--vault-accent) 65%, var(--text-soft));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vault-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.wa-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 8px rgba(37, 211, 102, 0.55);
  flex-shrink: 0;
}

.vault-spot {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--vault-accent) 22%, transparent), transparent 70%);
  box-shadow:
    inset 0 0 40px color-mix(in srgb, var(--vault-accent) 18%, transparent);
  transition: opacity 700ms var(--ease);
}

/* Sequential spotlight: 3 scenes × 5s = 15s loop */
.pillar-memory .pillar-visual.is-visible .vault[data-vault="A"] { animation: vault-scene-A 15s var(--ease) infinite both; }
.pillar-memory .pillar-visual.is-visible .vault[data-vault="B"] { animation: vault-scene-B 15s var(--ease) infinite both; }
.pillar-memory .pillar-visual.is-visible .vault[data-vault="C"] { animation: vault-scene-C 15s var(--ease) infinite both; }

.pillar-memory .pillar-visual.is-visible .vault[data-vault="A"] .vault-spot { animation: vault-spot-A 15s var(--ease) infinite both; }
.pillar-memory .pillar-visual.is-visible .vault[data-vault="B"] .vault-spot { animation: vault-spot-B 15s var(--ease) infinite both; }
.pillar-memory .pillar-visual.is-visible .vault[data-vault="C"] .vault-spot { animation: vault-spot-C 15s var(--ease) infinite both; }

.pillar-memory .pillar-visual.is-visible .vault[data-vault="A"] .memo.m3 { animation: memo-active 15s var(--ease) infinite both; }
.pillar-memory .pillar-visual.is-visible .vault[data-vault="B"] .memo.m1 { animation: memo-active 15s var(--ease) infinite both; animation-delay: -10s; }
.pillar-memory .pillar-visual.is-visible .vault[data-vault="C"] .memo.m1 { animation: memo-active 15s var(--ease) infinite both; animation-delay: -5s; }

.pillar-memory .pillar-visual.is-visible .vq-line-1 { animation: vq-cycle 15s var(--ease) infinite both; }
.pillar-memory .pillar-visual.is-visible .vq-line-2 { animation: vq-cycle 15s var(--ease) infinite both; animation-delay: 5s; }
.pillar-memory .pillar-visual.is-visible .vq-line-3 { animation: vq-cycle 15s var(--ease) infinite both; animation-delay: 10s; }

@keyframes vault-scene-A {
  0%, 2%   { opacity: 0.42; filter: saturate(0.7); transform: translateY(0); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
  6%, 30%  { opacity: 1;    filter: saturate(1.1); transform: translateY(-3px); border-color: color-mix(in srgb, var(--vault-accent) 50%, var(--line-2)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 14px 30px color-mix(in srgb, var(--vault-accent) 16%, transparent); }
  34%,100% { opacity: 0.42; filter: saturate(0.7); transform: translateY(0); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
}
@keyframes vault-scene-B {
  0%, 35%  { opacity: 0.42; filter: saturate(0.7); transform: translateY(0); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
  39%,63%  { opacity: 1;    filter: saturate(1.1); transform: translateY(-3px); border-color: color-mix(in srgb, var(--vault-accent) 50%, var(--line-2)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 14px 30px color-mix(in srgb, var(--vault-accent) 16%, transparent); }
  67%,100% { opacity: 0.42; filter: saturate(0.7); transform: translateY(0); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
}
@keyframes vault-scene-C {
  0%, 68%  { opacity: 0.42; filter: saturate(0.7); transform: translateY(0); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
  72%,96%  { opacity: 1;    filter: saturate(1.1); transform: translateY(-3px); border-color: color-mix(in srgb, var(--vault-accent) 50%, var(--line-2)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 14px 30px color-mix(in srgb, var(--vault-accent) 16%, transparent); }
  100%     { opacity: 0.42; filter: saturate(0.7); transform: translateY(0); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
}

@keyframes vault-spot-A {
  0%, 4%   { opacity: 0; }
  10%, 28% { opacity: 1; }
  34%,100% { opacity: 0; }
}
@keyframes vault-spot-B {
  0%, 37%  { opacity: 0; }
  43%, 61% { opacity: 1; }
  67%,100% { opacity: 0; }
}
@keyframes vault-spot-C {
  0%, 70%  { opacity: 0; }
  76%, 94% { opacity: 1; }
  100%     { opacity: 0; }
}

@keyframes memo-active {
  0%, 5%   { background: color-mix(in srgb, var(--vault-accent) 6%, var(--bg-elev)); border-color: color-mix(in srgb, var(--vault-accent) 18%, var(--line)); color: color-mix(in srgb, var(--vault-accent) 65%, var(--text-soft)); box-shadow: none; }
  12%, 30% { background: color-mix(in srgb, var(--vault-accent) 22%, var(--bg-elev)); border-color: color-mix(in srgb, var(--vault-accent) 60%, var(--line)); color: var(--text); box-shadow: 0 0 18px color-mix(in srgb, var(--vault-accent) 32%, transparent); }
  38%,100% { background: color-mix(in srgb, var(--vault-accent) 6%, var(--bg-elev)); border-color: color-mix(in srgb, var(--vault-accent) 18%, var(--line)); color: color-mix(in srgb, var(--vault-accent) 65%, var(--text-soft)); box-shadow: none; }
}

@keyframes vq-cycle {
  0%, 1%   { opacity: 0; transform: translateY(8px); }
  5%, 30%  { opacity: 1; transform: translateY(0); }
  34%, 100%{ opacity: 0; transform: translateY(-8px); }
}

.vault-barrier {
  display: none;
}

/* ---------- 13. Pulse pillar --------------------------- */
.pulse-stage {
  position: relative;
  width: 100%; max-width: 580px;
  aspect-ratio: 13 / 8;
  margin: 0 auto;
  display: flex; flex-direction: column;
  justify-content: center;
}
.pulse-svg {
  width: 100%;
  height: 60%;
  filter: drop-shadow(0 0 12px rgba(46,232,255,0.6));
}
.pulse-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: pulse-draw 6s var(--ease) infinite;
}
@keyframes pulse-draw {
  0%   { stroke-dashoffset: 1200; }
  60%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1200; }
}

.pulse-ticks {
  display: flex;
  justify-content: space-around;
  margin-top: 16px;
  padding: 0 8%;
}
.pulse-tick {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  opacity: 0;
  animation: tick-rise 6s var(--ease) infinite;
  animation-delay: calc(var(--t) * 0.4s + 1s);
}
@keyframes tick-rise {
  0%, 12% { opacity: 0; transform: translateY(8px); }
  20%, 60% { opacity: 1; transform: translateY(0); }
  72%, 100% { opacity: 0; transform: translateY(-8px); }
}
.pt-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-strong);
  border: 1px solid var(--line-2);
  color: var(--cyan-soft);
  box-shadow: 0 0 16px rgba(46,232,255,0.2);
}
.pt-icon svg { width: 18px; height: 18px; }
.pt-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 13b. Tasks & Goals (kanban) ---------------- */
.kanban-stage {
  --kb-cyan: var(--cyan);
  --kb-violet: var(--violet);
  --kb-amber: var(--amber);
  --kb-green: var(--green);
  --kb-red: #ff8e95;
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kanban-goal {
  position: relative;
  padding: 14px 16px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(46,232,255,0.05) 0%, transparent 100%),
    var(--panel-strong);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  box-shadow:
    0 14px 32px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.05);
}
.kg-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.kg-horizon {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.kg-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: dot-pulse 2.4s var(--ease) infinite;
}
.kg-progress-pct {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}
.kg-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.012em;
  color: var(--text);
  margin-bottom: 12px;
}
.kg-progress-bar {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.kg-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 60%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(46,232,255,0.5);
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.kanban-col {
  --col-accent: var(--text-soft);
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0;
}
.kanban-col[data-col="todo"]     { --col-accent: var(--text-soft); }
.kanban-col[data-col="progress"] { --col-accent: var(--cyan-soft); }
.kanban-col[data-col="blocked"]  { --col-accent: var(--kb-red); }
.kanban-col[data-col="done"]     { --col-accent: var(--green); }

.kanban-col-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 6px 8px;
  border-bottom: 1px solid var(--line);
}
.kch-label {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--col-accent);
}
.kch-count {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--col-accent) 12%, var(--bg-elev));
  color: var(--col-accent);
  min-width: 16px;
  text-align: center;
}

.kanban-col-body {
  display: flex; flex-direction: column; gap: 8px;
  min-height: 80px;
}

.kanban-card {
  --kc-accent: var(--cyan);
  position: relative;
  padding: 8px 9px 8px 12px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  display: flex; flex-direction: column; gap: 4px;
}
.kanban-card::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--kc-accent);
}
.kc-prio {
  font-family: var(--f-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--kc-accent);
  width: max-content;
}
.kc-title {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}
.kc-meta { margin-top: 2px; }
.kc-sub {
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.kc-blocked {
  font-family: var(--f-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--kb-red);
  margin-top: 2px;
}

.prio-low      { --kc-accent: var(--text-soft); }
.prio-medium   { --kc-accent: var(--cyan); }
.prio-high     { --kc-accent: var(--amber); }
.prio-urgent   { --kc-accent: var(--kb-red); }

.kanban-card.kc-done {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  opacity: 0.65;
}
.kanban-card.kc-done::before { background: var(--green); }
.kanban-card.kc-done .kc-title {
  font-size: 10.5px;
  color: var(--text-soft);
}
.kc-check {
  flex-shrink: 0;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--green);
  color: var(--bg);
  display: grid; place-items: center;
  box-shadow: 0 0 10px rgba(66,245,167,0.45);
}
.kc-check svg { width: 9px; height: 9px; }

/* Motion: in-progress card pulses; the cycle nudges progress + a card slides */
.kanban-card.kc-active {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px color-mix(in srgb, var(--kc-accent) 38%, transparent),
    0 0 20px color-mix(in srgb, var(--kc-accent) 18%, transparent);
}

.pillar-tasks .pillar-visual.is-visible .kc-active {
  animation: kc-active-pulse 2.6s ease-in-out infinite;
}
@keyframes kc-active-pulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.06),
      0 0 0 1px color-mix(in srgb, var(--kc-accent) 38%, transparent),
      0 0 18px color-mix(in srgb, var(--kc-accent) 18%, transparent);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.08),
      0 0 0 1px color-mix(in srgb, var(--kc-accent) 60%, transparent),
      0 0 28px color-mix(in srgb, var(--kc-accent) 32%, transparent);
  }
}

.pillar-tasks .pillar-visual.is-visible .kg-progress-fill {
  animation: kg-progress-grow 18s var(--ease) infinite;
}
@keyframes kg-progress-grow {
  0%   { width: 58%; }
  35%  { width: 67%; }
  60%  { width: 67%; }
  72%  { width: 74%; }
  100% { width: 74%; }
}
.pillar-tasks .pillar-visual.is-visible .kg-progress-pct {
  animation: kg-progress-pct 18s var(--ease) infinite;
}
@keyframes kg-progress-pct {
  0%   { content: "58%"; }
  35%  { content: "67%"; }
  60%  { content: "67%"; }
  72%  { content: "74%"; }
  100% { content: "74%"; }
}

/* The active "Draft welcome email" card subtly lifts as it nears completion */
.pillar-tasks .pillar-visual.is-visible .kc-3 {
  animation: kc-3-lift 18s var(--ease) infinite;
}
@keyframes kc-3-lift {
  0%, 50%   { transform: translateY(0); }
  62%, 78%  { transform: translateY(-3px); }
  90%, 100% { transform: translateY(0); }
}

/* Sub-task counter ticks 2/3 → 3/3 on the active card just before it ships */
.pillar-tasks .pillar-visual.is-visible .kc-3 .kc-sub {
  position: relative;
}
.pillar-tasks .pillar-visual.is-visible .kc-3 .kc-sub::after {
  content: "";
  display: inline-block;
  margin-left: 4px;
  color: var(--green);
  animation: kc-sub-tick 18s steps(1, end) infinite;
}
@keyframes kc-sub-tick {
  0%, 70%   { content: ""; }
  72%, 100% { content: "→ 3/3 ✓"; }
}

/* The progress percentage label crossfades along with the bar */
.pillar-tasks .pillar-visual.is-visible .kg-progress-pct {
  animation: kg-pct-pulse 18s var(--ease) infinite;
}
@keyframes kg-pct-pulse {
  0%, 70%   { color: var(--text); text-shadow: none; }
  72%, 82%  { color: var(--cyan); text-shadow: 0 0 12px rgba(46,232,255,0.6); }
  90%, 100% { color: var(--text); text-shadow: none; }
}

/* Mobile / tablet collapse: keep all 4 columns visible but tighten */
@media (max-width: 1024px) {
  .kanban-stage { max-width: 100%; }
  .kanban-board { padding: 12px; gap: 6px; }
  .kanban-card { padding: 7px 8px 7px 10px; }
  .kc-title { font-size: 10.5px; }
  .pillar-tasks .pillar-visual.is-visible .kc-1,
  .pillar-tasks .pillar-visual.is-visible .kc-3 {
    animation: none;
  }
}
@media (max-width: 640px) {
  .kanban-board { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kanban-col-body { min-height: 60px; }
}

/* ---------- 14. Bento grid ----------------------------- */
.bento {
  padding: clamp(80px, 12vh, 160px) 0;
  position: relative;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
}
.tile {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              background var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
}
.tile::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(46,232,255,0.06), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.tile:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--panel-strong);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.5),
    0 0 40px -10px rgba(46,232,255,0.18);
}
.tile:hover::before { opacity: 1; }

.tile-glyph {
  min-height: 96px;
  margin-bottom: auto;
  display: flex; align-items: flex-start;
  pointer-events: none;
  position: relative; z-index: 1;
}
.tile h3, .tile p { position: relative; z-index: 1; }
.tile h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px);
  margin-bottom: 8px;
  letter-spacing: -0.012em;
}
.tile p {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

/* asymmetric bento — 12 cols, 4 rows, two tall panels */
.tile-souls    { grid-column: 1 / span 4; grid-row: 1; }
.tile-tiers    { grid-column: 5 / span 4; grid-row: 1; }
.tile-hitl     { grid-column: 9 / span 4; grid-row: 1 / span 2; }
.tile-audit    { grid-column: 1 / span 8; grid-row: 2; }
.tile-modules  { grid-column: 1 / span 4; grid-row: 3 / span 2; }
.tile-team     { grid-column: 5 / span 4; grid-row: 3; }
.tile-binary   { grid-column: 9 / span 4; grid-row: 3; }
.tile-providers{ grid-column: 5 / span 4; grid-row: 4; }
.tile-channels { grid-column: 9 / span 4; grid-row: 4; }

/* ---- tile glyphs ---- */
.tile-souls .tile-glyph { gap: 10px; }
.soul {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  background:
    radial-gradient(circle at 35% 35%, rgba(46,232,255,0.4), transparent 60%),
    var(--bg-elev);
  box-shadow: 0 0 24px rgba(46,232,255,0.18);
  animation: soul-drift 6s var(--ease) infinite;
}
.soul.s2 {
  background:
    radial-gradient(circle at 35% 35%, rgba(157,92,255,0.5), transparent 60%),
    var(--bg-elev);
  box-shadow: 0 0 24px rgba(157,92,255,0.18);
  animation-delay: 1s;
}
.soul.s3 {
  background:
    radial-gradient(circle at 35% 35%, rgba(255,79,216,0.45), transparent 60%),
    var(--bg-elev);
  box-shadow: 0 0 24px rgba(255,79,216,0.18);
  animation-delay: 2s;
}
@keyframes soul-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.tile-tiers .tile-glyph {
  align-self: stretch;
  min-height: 160px;
  display: block;
}

.capability-queue {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 160px;
}

.capability-toast {
  --tier-accent: var(--cyan);
  --tier-accent-soft: rgba(46,232,255,0.12);
  position: absolute;
  left: 0; right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    var(--panel-strong);
  border: 1px solid var(--line-2);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 0 1px color-mix(in srgb, var(--tier-accent) 14%, transparent);
  backdrop-filter: blur(10px);
  overflow: hidden;
  opacity: 0;
  z-index: 1;
}
.capability-toast::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--tier-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--tier-accent) 60%, transparent);
}
.capability-toast::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--tier-accent) 28%, transparent), transparent);
  opacity: 0;
  transform: translateX(-120%);
}
.capability-toast .toast-status {
  grid-column: 1; grid-row: 1;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tier-accent);
}
.capability-toast strong {
  grid-column: 1 / -1; grid-row: 2;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--text);
}
.capability-toast i {
  grid-column: 2; grid-row: 1;
  align-self: center;
  justify-self: end;
  padding: 3px 8px;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tier-accent);
  background: color-mix(in srgb, var(--tier-accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--tier-accent) 28%, transparent);
  border-radius: 999px;
  white-space: nowrap;
}
.safe-toast     { --tier-accent: #42f5a7; }
.moderate-toast { --tier-accent: #ffc76a; }
.danger-toast   { --tier-accent: #ff8e95; }

.capability-rail {
  position: absolute;
  right: 8px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-2), transparent);
  opacity: 0.7;
}
.capability-rail span {
  position: absolute;
  left: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 8px rgba(46,232,255,0.25);
}
.capability-rail span:nth-child(1) { top: 8%;  border-color: rgba(66,245,167,0.45); box-shadow: 0 0 8px rgba(66,245,167,0.4); }
.capability-rail span:nth-child(2) { top: 50%; border-color: rgba(255,199,106,0.45); box-shadow: 0 0 8px rgba(255,199,106,0.4); }
.capability-rail span:nth-child(3) { top: 92%; border-color: rgba(255,142,149,0.45); box-shadow: 0 0 8px rgba(255,142,149,0.4); }

.tile-tiers.is-visible .capability-toast {
  animation: tierStack 13.5s var(--ease) infinite both;
}
.tile-tiers.is-visible .safe-toast     { animation-delay: 0s; }
.tile-tiers.is-visible .moderate-toast { animation-delay: 4.5s; }
.tile-tiers.is-visible .danger-toast   { animation-delay: 9s; }

.tile-tiers.is-visible .capability-toast::after {
  animation: tierScan 2.6s ease-in-out infinite;
}
.tile-tiers.is-visible .safe-toast::after     { animation-delay: 0.9s; }
.tile-tiers.is-visible .moderate-toast::after { animation-delay: 1.8s; }
.tile-tiers.is-visible .danger-toast::after   { animation-delay: 2.7s; }

.tile-tiers.is-visible .capability-rail span {
  animation: railNodePulse 4.5s ease-in-out infinite;
}
.tile-tiers.is-visible .capability-rail span:nth-child(2) { animation-delay: 1.5s; }
.tile-tiers.is-visible .capability-rail span:nth-child(3) { animation-delay: 3s; }

@keyframes tierStack {
  0%, 100% {
    z-index: 1;
    opacity: 0;
    transform: translateY(calc(-50% + 22px)) scale(0.92);
  }
  8%, 28% {
    z-index: 5;
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  38%, 58% {
    z-index: 4;
    opacity: 0.55;
    transform: translateY(calc(-50% + 10px)) scale(0.97);
  }
  68%, 86% {
    z-index: 3;
    opacity: 0.25;
    transform: translateY(calc(-50% + 18px)) scale(0.94);
  }
}
@keyframes tierScan {
  0%, 56% { opacity: 0; transform: translateX(-120%); }
  66% { opacity: 0.85; }
  86%, 100% { opacity: 0; transform: translateX(120%); }
}
@keyframes railNodePulse {
  0%, 72%, 100% { transform: scale(0.85); opacity: 0.5; }
  12%, 34% { transform: scale(1.18); opacity: 1; }
}

.tile-hitl .tile-glyph {
  align-self: stretch;
  flex: 1;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 24px;
}

.hitl-stage {
  position: relative;
  width: 100%;
  min-height: 160px;
  display: grid;
  place-items: center;
}

.review-orbit {
  --hitl-accent: #ffc76a;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 340px);
  height: calc(100% + 24px);
  max-height: 180px;
  pointer-events: none;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--hitl-accent) 16%, transparent);
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--hitl-accent) 12%, transparent), transparent 65%);
}
.review-orbit span {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hitl-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--hitl-accent) 60%, transparent);
}
.review-orbit span:nth-child(1) { left: -3px; top: -3px; }
.review-orbit span:nth-child(2) { right: -3px; top: 30%; }
.review-orbit span:nth-child(3) { left: 50%; bottom: -3px; transform: translateX(-50%); }

.approval-request-toast {
  --hitl-accent: #ffc76a;
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 12px 12px 12px 14px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    var(--panel-strong);
  border: 1px solid var(--line-2);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 0 1px color-mix(in srgb, var(--hitl-accent) 14%, transparent);
  backdrop-filter: blur(12px);
  overflow: hidden;
  opacity: 0;
}
.approval-request-toast::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--hitl-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--hitl-accent) 60%, transparent);
}
.approval-request-toast .toast-status {
  grid-column: 1; grid-row: 1;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hitl-accent);
}
.approval-request-toast strong {
  grid-column: 1; grid-row: 2;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
}
.approval-request-toast em {
  grid-column: 2; grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  padding: 4px 9px;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hitl-accent);
  background: color-mix(in srgb, var(--hitl-accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--hitl-accent) 28%, transparent);
  border-radius: 999px;
  white-space: nowrap;
}
.approval-actions-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.approval-actions-preview span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--hitl-accent) 6%, var(--bg-elev));
  color: var(--text-soft);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.tile-hitl.is-visible .approval-request-toast {
  animation:
    hitlToastIn 760ms cubic-bezier(0.16, 1, 0.3, 1) 280ms both,
    approvalPulse 3.6s ease-in-out 1.4s infinite;
}
.tile-hitl.is-visible .review-orbit {
  animation: reviewOrbitBreathe 4.8s ease-in-out infinite;
}
.tile-hitl.is-visible .approval-actions-preview span {
  animation: approvalButtonWake 4.6s ease-in-out infinite;
}
.tile-hitl.is-visible .approval-actions-preview span:nth-child(2) { animation-delay: 0.35s; }
.tile-hitl.is-visible .approval-actions-preview span:nth-child(3) { animation-delay: 0.7s; }

@keyframes hitlToastIn {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.96); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes reviewOrbitBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.97); opacity: 0.55; }
  50%      { transform: translate(-50%, -50%) scale(1.03); opacity: 0.95; }
}
@keyframes approvalButtonWake {
  0%, 62%, 100% {
    transform: translateY(0);
    border-color: var(--line-2);
    color: var(--text-soft);
  }
  18% {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--hitl-accent) 50%, transparent);
    color: var(--hitl-accent);
  }
}
@keyframes approvalPulse {
  0% {
    box-shadow:
      0 18px 40px rgba(0,0,0,0.35),
      inset 0 1px 0 rgba(255,255,255,0.05),
      0 0 0 1px color-mix(in srgb, var(--hitl-accent) 14%, transparent),
      0 0 0 0 color-mix(in srgb, var(--hitl-accent) 36%, transparent);
  }
  60% {
    box-shadow:
      0 18px 40px rgba(0,0,0,0.35),
      inset 0 1px 0 rgba(255,255,255,0.05),
      0 0 0 1px color-mix(in srgb, var(--hitl-accent) 22%, transparent),
      0 0 0 12px color-mix(in srgb, var(--hitl-accent) 0%, transparent);
  }
  100% {
    box-shadow:
      0 18px 40px rgba(0,0,0,0.35),
      inset 0 1px 0 rgba(255,255,255,0.05),
      0 0 0 1px color-mix(in srgb, var(--hitl-accent) 14%, transparent),
      0 0 0 0 color-mix(in srgb, var(--hitl-accent) 36%, transparent);
  }
}

.tile-audit .tile-glyph {
  align-self: stretch;
  min-height: 110px;
  display: block;
}

.audit-ledger {
  --audit-accent: var(--cyan);
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}
.audit-ledger::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--audit-accent) 50%, transparent), transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--audit-accent) 35%, transparent);
}

.audit-ledger-track {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px 30px;
  width: max-content;
}

.audit-entry {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  flex-shrink: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.audit-entry::before {
  content: "";
  position: absolute;
  bottom: -28px;
  left: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--audit-accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--audit-accent) 60%, transparent);
  transform: translateX(-50%);
}
.audit-entry span {
  grid-column: 1; grid-row: 1;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--audit-accent) 80%, var(--text-soft));
  white-space: nowrap;
}
.audit-entry strong {
  grid-column: 1 / -1; grid-row: 2;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text);
  white-space: nowrap;
}
.audit-entry em {
  grid-column: 2; grid-row: 1;
  justify-self: end;
  padding: 3px 8px;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--audit-accent) 75%, var(--text-soft));
  background: color-mix(in srgb, var(--audit-accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--audit-accent) 22%, transparent);
  border-radius: 999px;
  white-space: nowrap;
}

.tile-audit.is-visible .audit-ledger-track {
  animation: auditLedgerScroll 18s cubic-bezier(0.65, 0, 0.35, 1) 0.6s infinite;
}
.tile-audit.is-visible .audit-entry::before {
  animation: auditNodePulse 4s ease-in-out infinite;
}
.tile-audit.is-visible .audit-entry:nth-child(2)::before { animation-delay: 0.45s; }
.tile-audit.is-visible .audit-entry:nth-child(3)::before { animation-delay: 0.9s; }
.tile-audit.is-visible .audit-entry:nth-child(4)::before { animation-delay: 1.35s; }
.tile-audit.is-visible .audit-entry:nth-child(5)::before { animation-delay: 1.8s; }
.tile-audit.is-visible .audit-entry:nth-child(6)::before { animation-delay: 2.25s; }

@keyframes auditLedgerScroll {
  0%, 8% { transform: translateX(0); }
  50%, 58% { transform: translateX(calc(-100% + 540px)); }
  100% { transform: translateX(0); }
}
@keyframes auditNodePulse {
  0%, 72%, 100% {
    opacity: 0.5;
    transform: translateX(-50%) scale(0.85);
  }
  16%, 34% {
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
  }
}

.tile-modules .tile-glyph {
  align-self: stretch;
  flex: 1;
  min-height: 320px;
  display: block;
  padding-bottom: 24px;
}

.module-drawer {
  --module-accent: var(--cyan);
  --module-amber: #ffc76a;
  position: relative;
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.module-tile {
  --tile-accent: var(--module-accent);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 12px;
  min-height: 80px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--tile-accent) 22%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tile-accent) 6%, transparent), transparent 70%),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  opacity: 0.42;
  transition: opacity 320ms ease, border-color 320ms ease, background 320ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.module-tile-amber {
  --tile-accent: var(--module-amber);
}
.module-tile-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--tile-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tile-accent) 18%, transparent);
  color: var(--tile-accent);
}
.module-tile-icon svg {
  width: 16px; height: 16px;
}
.module-tile-name {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.module-tile-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--tile-accent);
  color: var(--bg);
  box-shadow: 0 0 12px color-mix(in srgb, var(--tile-accent) 60%, transparent);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 320ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}
.module-tile-check svg {
  width: 9px; height: 9px;
}

/* Sequential 9-tile activation, 8s cycle */
.tile-modules.is-visible .module-tile {
  animation-duration: 8s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
}
.tile-modules.is-visible .module-tile-1 { animation-name: modTileLoop1; }
.tile-modules.is-visible .module-tile-2 { animation-name: modTileLoop2; }
.tile-modules.is-visible .module-tile-3 { animation-name: modTileLoop3; }
.tile-modules.is-visible .module-tile-4 { animation-name: modTileLoop4; }
.tile-modules.is-visible .module-tile-5 { animation-name: modTileLoop5; }
.tile-modules.is-visible .module-tile-6 { animation-name: modTileLoop6; }
.tile-modules.is-visible .module-tile-7 { animation-name: modTileLoop7; }
.tile-modules.is-visible .module-tile-8 { animation-name: modTileLoop8; }
.tile-modules.is-visible .module-tile-9 { animation-name: modTileLoop9; }

.tile-modules.is-visible .module-tile-1 .module-tile-check { animation: modCheckLoop1 8s cubic-bezier(0.16, 1, 0.3, 1) infinite both; }
.tile-modules.is-visible .module-tile-2 .module-tile-check { animation: modCheckLoop2 8s cubic-bezier(0.16, 1, 0.3, 1) infinite both; }
.tile-modules.is-visible .module-tile-3 .module-tile-check { animation: modCheckLoop3 8s cubic-bezier(0.16, 1, 0.3, 1) infinite both; }
.tile-modules.is-visible .module-tile-4 .module-tile-check { animation: modCheckLoop4 8s cubic-bezier(0.16, 1, 0.3, 1) infinite both; }
.tile-modules.is-visible .module-tile-5 .module-tile-check { animation: modCheckLoop5 8s cubic-bezier(0.16, 1, 0.3, 1) infinite both; }
.tile-modules.is-visible .module-tile-6 .module-tile-check { animation: modCheckLoop6 8s cubic-bezier(0.16, 1, 0.3, 1) infinite both; }
.tile-modules.is-visible .module-tile-7 .module-tile-check { animation: modCheckLoop7 8s cubic-bezier(0.16, 1, 0.3, 1) infinite both; }
.tile-modules.is-visible .module-tile-8 .module-tile-check { animation: modCheckLoop8 8s cubic-bezier(0.16, 1, 0.3, 1) infinite both; }
.tile-modules.is-visible .module-tile-9 .module-tile-check { animation: modCheckLoop9 8s cubic-bezier(0.16, 1, 0.3, 1) infinite both; }

@keyframes modTileLoop1 { 0%,3%{opacity:.42;transform:translateY(0) scale(1);} 6%{opacity:1;transform:translateY(-2px) scale(1.04);} 9%{opacity:1;transform:translateY(0) scale(1);} 86%{opacity:1;transform:translateY(0) scale(1);} 94%{opacity:.42;} 100%{opacity:.42;} }
@keyframes modTileLoop2 { 0%,9%{opacity:.42;transform:translateY(0) scale(1);} 12%{opacity:1;transform:translateY(-2px) scale(1.04);} 15%{opacity:1;transform:translateY(0) scale(1);} 86%{opacity:1;transform:translateY(0) scale(1);} 94%{opacity:.42;} 100%{opacity:.42;} }
@keyframes modTileLoop3 { 0%,15%{opacity:.42;transform:translateY(0) scale(1);} 18%{opacity:1;transform:translateY(-2px) scale(1.04);} 21%{opacity:1;transform:translateY(0) scale(1);} 86%{opacity:1;transform:translateY(0) scale(1);} 94%{opacity:.42;} 100%{opacity:.42;} }
@keyframes modTileLoop4 { 0%,21%{opacity:.42;transform:translateY(0) scale(1);} 24%{opacity:1;transform:translateY(-2px) scale(1.04);} 27%{opacity:1;transform:translateY(0) scale(1);} 86%{opacity:1;transform:translateY(0) scale(1);} 94%{opacity:.42;} 100%{opacity:.42;} }
@keyframes modTileLoop5 { 0%,27%{opacity:.42;transform:translateY(0) scale(1);} 30%{opacity:1;transform:translateY(-2px) scale(1.04);} 33%{opacity:1;transform:translateY(0) scale(1);} 86%{opacity:1;transform:translateY(0) scale(1);} 94%{opacity:.42;} 100%{opacity:.42;} }
@keyframes modTileLoop6 { 0%,33%{opacity:.42;transform:translateY(0) scale(1);} 36%{opacity:1;transform:translateY(-2px) scale(1.04);} 39%{opacity:1;transform:translateY(0) scale(1);} 86%{opacity:1;transform:translateY(0) scale(1);} 94%{opacity:.42;} 100%{opacity:.42;} }
@keyframes modTileLoop7 { 0%,39%{opacity:.42;transform:translateY(0) scale(1);} 42%{opacity:1;transform:translateY(-2px) scale(1.04);} 45%{opacity:1;transform:translateY(0) scale(1);} 86%{opacity:1;transform:translateY(0) scale(1);} 94%{opacity:.42;} 100%{opacity:.42;} }
@keyframes modTileLoop8 { 0%,45%{opacity:.42;transform:translateY(0) scale(1);} 48%{opacity:1;transform:translateY(-2px) scale(1.04);} 51%{opacity:1;transform:translateY(0) scale(1);} 86%{opacity:1;transform:translateY(0) scale(1);} 94%{opacity:.42;} 100%{opacity:.42;} }
@keyframes modTileLoop9 { 0%,51%{opacity:.42;transform:translateY(0) scale(1);} 54%{opacity:1;transform:translateY(-2px) scale(1.04);} 57%{opacity:1;transform:translateY(0) scale(1);} 86%{opacity:1;transform:translateY(0) scale(1);} 94%{opacity:.42;} 100%{opacity:.42;} }

@keyframes modCheckLoop1 { 0%,5%{opacity:0;transform:scale(0.6);} 8%{opacity:1;transform:scale(1.15);} 11%{opacity:1;transform:scale(1);} 86%{opacity:1;transform:scale(1);} 94%{opacity:0;transform:scale(0.6);} 100%{opacity:0;transform:scale(0.6);} }
@keyframes modCheckLoop2 { 0%,11%{opacity:0;transform:scale(0.6);} 14%{opacity:1;transform:scale(1.15);} 17%{opacity:1;transform:scale(1);} 86%{opacity:1;transform:scale(1);} 94%{opacity:0;transform:scale(0.6);} 100%{opacity:0;transform:scale(0.6);} }
@keyframes modCheckLoop3 { 0%,17%{opacity:0;transform:scale(0.6);} 20%{opacity:1;transform:scale(1.15);} 23%{opacity:1;transform:scale(1);} 86%{opacity:1;transform:scale(1);} 94%{opacity:0;transform:scale(0.6);} 100%{opacity:0;transform:scale(0.6);} }
@keyframes modCheckLoop4 { 0%,23%{opacity:0;transform:scale(0.6);} 26%{opacity:1;transform:scale(1.15);} 29%{opacity:1;transform:scale(1);} 86%{opacity:1;transform:scale(1);} 94%{opacity:0;transform:scale(0.6);} 100%{opacity:0;transform:scale(0.6);} }
@keyframes modCheckLoop5 { 0%,29%{opacity:0;transform:scale(0.6);} 32%{opacity:1;transform:scale(1.15);} 35%{opacity:1;transform:scale(1);} 86%{opacity:1;transform:scale(1);} 94%{opacity:0;transform:scale(0.6);} 100%{opacity:0;transform:scale(0.6);} }
@keyframes modCheckLoop6 { 0%,35%{opacity:0;transform:scale(0.6);} 38%{opacity:1;transform:scale(1.15);} 41%{opacity:1;transform:scale(1);} 86%{opacity:1;transform:scale(1);} 94%{opacity:0;transform:scale(0.6);} 100%{opacity:0;transform:scale(0.6);} }
@keyframes modCheckLoop7 { 0%,41%{opacity:0;transform:scale(0.6);} 44%{opacity:1;transform:scale(1.15);} 47%{opacity:1;transform:scale(1);} 86%{opacity:1;transform:scale(1);} 94%{opacity:0;transform:scale(0.6);} 100%{opacity:0;transform:scale(0.6);} }
@keyframes modCheckLoop8 { 0%,47%{opacity:0;transform:scale(0.6);} 50%{opacity:1;transform:scale(1.15);} 53%{opacity:1;transform:scale(1);} 86%{opacity:1;transform:scale(1);} 94%{opacity:0;transform:scale(0.6);} 100%{opacity:0;transform:scale(0.6);} }
@keyframes modCheckLoop9 { 0%,53%{opacity:0;transform:scale(0.6);} 56%{opacity:1;transform:scale(1.15);} 59%{opacity:1;transform:scale(1);} 86%{opacity:1;transform:scale(1);} 94%{opacity:0;transform:scale(0.6);} 100%{opacity:0;transform:scale(0.6);} }

.tile-team .tile-glyph {
  align-self: stretch;
  display: block;
  min-height: 120px;
  padding-bottom: 20px;
}

.team-matrix {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.team-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  opacity: 0.7;
  transition: opacity 320ms ease, border-color 320ms ease;
}
.team-avatar {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--bg);
  border: 1px solid var(--line-strong);
}
.avatar-cyan    { background: linear-gradient(135deg, #9ee9ff, var(--cyan)); box-shadow: 0 0 12px rgba(46,232,255,0.45); }
.avatar-violet  { background: linear-gradient(135deg, #d3b6ff, var(--violet)); box-shadow: 0 0 12px rgba(157,92,255,0.45); }
.avatar-magenta { background: linear-gradient(135deg, #ffb3e8, var(--magenta)); box-shadow: 0 0 12px rgba(255,79,216,0.45); }

.team-name {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  width: 32px;
  flex-shrink: 0;
}
.team-perms {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.perm-chip {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cyan) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan) 24%, transparent);
  color: var(--cyan-soft);
  white-space: nowrap;
}

.tile-team.is-visible .team-row {
  animation: teamRowHighlight 9s cubic-bezier(0.65, 0, 0.35, 1) infinite both;
}
.tile-team.is-visible .team-row-1 { animation-delay: 0s; }
.tile-team.is-visible .team-row-2 { animation-delay: 3s; }
.tile-team.is-visible .team-row-3 { animation-delay: 6s; }

@keyframes teamRowHighlight {
  0%, 8%, 36%, 100% {
    opacity: 0.6;
    border-color: var(--line);
  }
  16%, 28% {
    opacity: 1;
    border-color: var(--line-strong);
  }
}

.tile-providers .tile-glyph { gap: 6px; flex-wrap: wrap; align-content: start;}
.prov {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.tile-channels .tile-glyph {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chan {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--text-soft);
}

.tile-binary .tile-glyph {
  align-self: stretch;
  min-height: 120px;
  padding-bottom: 20px;
}
.binary-bg {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 14px);
  overflow: hidden;
}
.binary-puck {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.06),
    0 0 40px rgba(46,232,255,0.5),
    0 20px 40px rgba(0,0,0,0.4);
}

/* ---------- 15. Sovereignty ---------------------------- */
.sovereign {
  padding: clamp(80px, 12vh, 140px) 0;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent 0%, rgba(20,19,42,0.4) 50%, transparent 100%);
}
.sovereign-numbers {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(20px, 5vw, 80px);
  margin-bottom: 40px;
}
.sn { display: flex; flex-direction: column; gap: 8px; }
.sn-num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(64px, 10vw, 144px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--text) 0%, rgba(245,247,255,0.5) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sn-lbl {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.sn-divider {
  width: 1px;
  height: clamp(60px, 8vw, 110px);
  background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
}
.sovereign-line {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.45;
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- 16. Built for ------------------------------ */
.builtfor { padding: clamp(80px, 12vh, 160px) 0; }
.builtfor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.bf-card {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: transform var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              background var(--t-med) var(--ease);
}
.bf-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--panel-strong);
}
.bf-num {
  display: inline-block;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: var(--cyan-soft);
  margin-bottom: 24px;
}
.bf-card h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 30px;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.bf-card p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- 17. CTA ------------------------------------ */
.cta {
  position: relative;
  padding: clamp(80px, 14vh, 200px) 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 95% 90% at 15% 50%, #29103d 0%, rgba(41,16,61,0.75) 40%, rgba(41,16,61,0.35) 65%, rgba(41,16,61,0) 90%),
    var(--bg);
}
@media (max-width: 1024px) {
  .cta {
    background:
      radial-gradient(ellipse 110% 60% at 50% 100%, #29103d 0%, rgba(41,16,61,0.5) 40%, rgba(41,16,61,0) 75%),
      var(--bg);
  }
}
.cta-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.cta-inner { position: relative; z-index: 2; }
.cta-title { margin-bottom: 24px; }
.cta-actions {
  display: flex; gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  text-align: left;
}
.cta-copy { max-width: 600px; }
.cta-copy .display { text-align: left; }
.cta-copy .lede { text-align: left; margin-left: 0; margin-right: 0; }

.cta-video-frame {
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.cta-video-screen {
  position: relative;
  aspect-ratio: 1 / 1;
  background: transparent;
  overflow: visible;
}
.cta-video {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  mix-blend-mode: lighten;
  -webkit-mask-image:
    radial-gradient(ellipse 45% 55% at 50% 55%, #000 0%, rgba(0,0,0,0.9) 18%, rgba(0,0,0,0.45) 55%, transparent 90%),
    linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image:
    radial-gradient(ellipse 45% 55% at 50% 55%, #000 0%, rgba(0,0,0,0.9) 18%, rgba(0,0,0,0.45) 55%, transparent 90%),
    linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

@media (max-width: 1024px) {
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .cta-copy { max-width: none; margin: 0 auto; }
  .cta-copy .display,
  .cta-copy .lede { text-align: center; }
  .cta-copy .lede { margin-left: auto; margin-right: auto; }
  .cta-actions { justify-content: center; }
  .cta-video-frame {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    order: 2;
  }
  .cta-copy { order: 1; }
}
@media (max-width: 720px) {
  .cta-video-frame { max-width: 360px; }
}
@media (max-width: 480px) {
  .cta-video-frame { max-width: 300px; }
}

/* ---------- 18. Footer --------------------------------- */
.foot {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: rgba(13,12,24,0.6);
  backdrop-filter: blur(8px);
}
.foot-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.foot-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px;
}
.foot-brand img { width: 22px; height: 22px; }
.foot-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-dot { margin: 0 10px; opacity: 0.5; }
.foot-links {
  display: flex; gap: 24px;
  font-size: 13px;
  color: var(--muted);
}
.foot-links a { transition: color var(--t-fast) var(--ease); }
.foot-links a:hover { color: var(--text); }

/* ---------- 19. Contact support ------------------------- */
.contact-support {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

.contact-support.is-open {
  pointer-events: none;
}

.contact-backdrop {
  display: none;
}

.contact-panel {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(420px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    rgba(15, 14, 30, 0.92);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  box-shadow:
    0 34px 90px -28px rgba(0, 0, 0, 0.78),
    0 0 42px rgba(46, 232, 255, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition:
    opacity var(--t-fast) var(--ease),
    transform var(--t-med) var(--ease-out),
    visibility 0s linear var(--t-med);
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(46,232,255,0.38), rgba(157,92,255,0.24) 46%, rgba(255,255,255,0.08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}

.contact-support.is-open .contact-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition:
    opacity var(--t-fast) var(--ease),
    transform var(--t-med) var(--ease-out),
    visibility 0s linear 0s;
}

.contact-sheet-handle {
  display: none;
}

.contact-head {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.contact-agent-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background:
    radial-gradient(circle at 45% 35%, rgba(255,255,255,0.45), transparent 22%),
    linear-gradient(135deg, rgba(46,232,255,0.30), rgba(157,92,255,0.34));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 28px rgba(46, 232, 255, 0.16);
}

.contact-agent-core {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow:
    0 0 0 6px rgba(46, 232, 255, 0.12),
    0 0 22px rgba(46, 232, 255, 0.60);
}

.contact-head-copy {
  min-width: 0;
}

.contact-kicker {
  margin-bottom: 2px;
  color: var(--cyan-soft);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-head h2 {
  font-family: var(--f-display);
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: 0;
}

.contact-head p:last-child {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.contact-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.035);
  transition:
    color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

.contact-close svg {
  width: 16px;
  height: 16px;
}

.contact-close:hover,
.contact-close:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-2);
  transform: translateY(-1px);
}

.contact-body {
  min-height: 0;
  display: grid;
  background:
    radial-gradient(90% 70% at 10% 0%, rgba(46,232,255,0.09), transparent 55%),
    radial-gradient(100% 70% at 90% 12%, rgba(157,92,255,0.10), transparent 58%);
}

.contact-agent-view,
.contact-form-view {
  min-height: 0;
}

.contact-agent-view[hidden],
.contact-form-view[hidden] {
  display: none !important;
}

.contact-agent-view {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.contact-chat-messages {
  min-height: 280px;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(210, 226, 255, 0.28) transparent;
}

.contact-chat-message {
  max-width: 86%;
  animation: contact-message-in var(--t-med) var(--ease-out) both;
}

.contact-chat-message.assistant {
  align-self: flex-start;
}

.contact-chat-message.user {
  align-self: flex-end;
}

.contact-message-role {
  display: block;
  margin: 0 0 5px 4px;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.contact-chat-bubble {
  padding: 12px 14px;
  border-radius: 18px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.contact-chat-message.assistant .contact-chat-bubble {
  border-bottom-left-radius: 5px;
}

.contact-chat-message.user .contact-chat-bubble {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, rgba(46,232,255,0.72), rgba(157,92,255,0.82));
}

.contact-chat-status .contact-chat-bubble {
  width: fit-content;
  min-width: 58px;
}

.contact-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 18px;
}

.contact-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-soft);
  animation: contact-typing 900ms ease-in-out infinite;
}

.contact-typing-dots span:nth-child(2) { animation-delay: 120ms; }
.contact-typing-dots span:nth-child(3) { animation-delay: 240ms; }

.contact-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(8, 7, 18, 0.34);
}

.contact-chat-composer textarea,
.contact-field input,
.contact-field textarea {
  width: 100%;
  color: var(--text);
  font: inherit;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  outline: none;
  transition:
    border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.contact-chat-composer textarea::placeholder,
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(205, 213, 238, 0.44);
}

.contact-chat-composer textarea:focus,
.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(46, 232, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(46, 232, 255, 0.10);
}

.contact-chat-composer textarea {
  min-height: 46px;
  max-height: 110px;
  resize: none;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}

.contact-chat-composer button,
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #071018;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 34px rgba(46, 232, 255, 0.18);
  transition:
    transform var(--t-fast) var(--ease),
    filter var(--t-fast) var(--ease),
    opacity var(--t-fast) var(--ease);
}

.contact-chat-composer button {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

.contact-chat-composer button svg,
.contact-submit svg {
  width: 16px;
  height: 16px;
}

.contact-chat-composer button:hover,
.contact-submit:hover {
  transform: translateY(-1px);
  filter: saturate(1.12) brightness(1.05);
}

.contact-chat-composer button:disabled,
.contact-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.contact-form-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  overflow-y: auto;
}

.contact-form-intro {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.contact-form-title {
  color: var(--text);
  font-weight: 800;
  line-height: 1.2;
}

.contact-form-intro p:last-child {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.contact-field {
  display: grid;
  gap: 7px;
}

.contact-field span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.contact-field input,
.contact-field textarea {
  border-radius: 15px;
  padding: 12px 13px;
  font-size: 14px;
  line-height: 1.45;
}

.contact-field textarea {
  min-height: 118px;
  resize: vertical;
}

.contact-form-view.was-validated input:invalid,
.contact-form-view.was-validated textarea:invalid {
  border-color: rgba(255, 79, 116, 0.58);
  box-shadow: 0 0 0 3px rgba(255, 79, 116, 0.10);
}

.contact-submit {
  min-height: 48px;
  border-radius: 16px;
  padding: 0 18px;
  font-size: 14px;
}

.contact-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.contact-status.is-success { color: var(--green); }
.contact-status.is-error { color: #ff7a9c; }

@keyframes contact-message-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes contact-typing {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* ---------- 20. Reveals -------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms var(--ease-out),
    transform 800ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 21. Responsive ----------------------------- */
@media (max-width: 1024px) {
  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .pillar-grid-reverse .pillar-copy { order: 1; }
  .pillar-grid-reverse .pillar-visual { order: 2; }

  .canvas-features { grid-template-columns: 1fr; }
  .builtfor-grid { grid-template-columns: 1fr; }

  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(240px, auto);
  }
  .tile-souls    { grid-column: 1 / span 3; grid-row: auto; }
  .tile-tiers    { grid-column: 4 / span 3; grid-row: auto; }
  .tile-hitl     { grid-column: 1 / span 6; grid-row: auto; }
  .tile-audit    { grid-column: 1 / span 6; grid-row: auto; }
  .tile-modules  { grid-column: 1 / span 6; grid-row: auto; }
  .tile-team     { grid-column: 1 / span 6; grid-row: auto; }
  .tile-binary   { grid-column: 1 / span 6; grid-row: auto; }
  .tile-providers{ grid-column: 1 / span 3; grid-row: auto; }
  .tile-channels { grid-column: 4 / span 3; grid-row: auto; }
  .tile-modules .tile-glyph { min-height: 240px; }

  .nav-links {
    position: fixed;
    top: 78px;
    left: 50%;
    transform: translateX(-50%) translateY(-12px) scale(0.98);
    transform-origin: top center;
    width: min(420px, calc(100% - 24px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    border-radius: 24px;
    background: rgba(13, 12, 24, 0.86);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--line-2);
    box-shadow:
      0 30px 80px -20px rgba(0, 0, 0, 0.7),
      0 0 0 1px rgba(46, 232, 255, 0.04) inset,
      0 1px 0 rgba(255, 255, 255, 0.05) inset;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 60;
    transition:
      opacity var(--t-fast) var(--ease),
      transform var(--t-med) var(--ease-out),
      visibility 0s linear var(--t-med);
  }
  .nav-links::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(46,232,255,0.35), rgba(157,92,255,0.35) 60%, transparent 90%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0.6;
    pointer-events: none;
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
    transition:
      opacity var(--t-fast) var(--ease),
      transform var(--t-med) var(--ease-out),
      visibility 0s linear 0s;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-soft);
    border-radius: 14px;
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 320ms var(--ease-out),
      transform 380ms var(--ease-out),
      color var(--t-fast) var(--ease),
      background var(--t-fast) var(--ease),
      border-color var(--t-fast) var(--ease);
  }
  .nav-links a::after {
    left: auto; right: 18px; bottom: 50%;
    width: 0; height: 1px;
    transform: translateY(50%);
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    opacity: 0;
    transition: width var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
  }
  .nav-links.is-open a {
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links.is-open a:nth-child(1) { transition-delay: 80ms, 80ms, 0s, 0s, 0s; }
  .nav-links.is-open a:nth-child(2) { transition-delay: 130ms, 130ms, 0s, 0s, 0s; }
  .nav-links.is-open a:nth-child(3) { transition-delay: 180ms, 180ms, 0s, 0s, 0s; }
  .nav-links.is-open a:nth-child(4) { transition-delay: 230ms, 230ms, 0s, 0s, 0s; }
  .nav-links.is-open a:nth-child(5) { transition-delay: 280ms, 280ms, 0s, 0s, 0s; }

  .nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--line);
  }
  .nav-links a:hover::after { width: 22px; opacity: 1; }
  .nav-links a.is-current {
    color: var(--text);
    background: linear-gradient(90deg, rgba(46,232,255,0.08), rgba(157,92,255,0.08));
    border-color: var(--line-2);
  }
  .nav-links a.is-current::after { width: 22px; opacity: 1; }

  .nav-toggle { display: block; }
  .nav-toggle span {
    transition:
      transform var(--t-fast) var(--ease),
      opacity var(--t-fast) var(--ease);
    transform-origin: center;
  }
  .nav-toggle[aria-expanded="true"] {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  body.nav-open {
    overflow: hidden;
  }
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(120% 80% at 50% 0%, rgba(46,232,255,0.06), transparent 55%),
                rgba(8, 7, 18, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 45;
    opacity: 0;
    animation: nav-scrim-in var(--t-med) var(--ease-out) forwards;
  }
  @keyframes nav-scrim-in {
    to { opacity: 1; }
  }

  .hero-scroll { display: none; }
  .sovereign-numbers { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .contact-support.is-open {
    pointer-events: auto;
  }

  .contact-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    background:
      radial-gradient(110% 70% at 50% 0%, rgba(46,232,255,0.07), transparent 58%),
      rgba(6, 5, 14, 0.64);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity var(--t-fast) var(--ease);
  }

  .contact-support.is-open .contact-backdrop {
    opacity: 1;
  }

  .contact-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    max-height: min(86vh, 760px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 26px 26px 0 0;
    transform: translateY(calc(100% + 24px));
    transform-origin: bottom center;
  }

  .contact-support.is-open .contact-panel {
    transform: translateY(var(--contact-sheet-y, 0px));
  }

  .contact-support.is-dragging .contact-panel {
    transition: none;
  }

  .contact-sheet-handle {
    width: 44px;
    height: 5px;
    display: block;
    justify-self: center;
    margin: 9px 0 1px;
    border-radius: 999px;
    background: rgba(210, 226, 255, 0.28);
  }

  .contact-head {
    padding: 14px 16px 13px;
  }

  .contact-agent-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .contact-head h2 {
    font-size: 23px;
  }

  .contact-chat-messages {
    min-height: 320px;
    max-height: none;
    padding: 16px;
  }

  .contact-chat-message {
    max-width: 92%;
  }

  .contact-form-view {
    padding: 16px;
  }

  body.contact-sheet-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  :root {
    --container: 100%;
    --pad: 20px;
  }

  .nav {
    top: 8px;
    width: calc(100% - 16px);
    padding: 8px 8px 8px 14px;
  }
  .nav-wordmark { display: none; }
  .nav-actions { gap: 8px; }
  .nav-contact { display: none; }

  .hero-actions .btn { justify-content: center; }

  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile { grid-column: 1 / -1 !important; min-height: 220px; }

  .canvas-features { gap: 12px; }

  .sovereign-numbers { gap: 32px; }
  .sn-divider { display: none; }

  .foot-inner { justify-content: center; text-align: center; flex-direction: column; }
}

/* ---------- 22. Reduced motion ------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-canvas, .cta-canvas { display: none; }
  .ambient-glow { animation: none; }
  .contact-panel { transform: none; }
}
