/* ═══════════════════════════════════════════════════════
   rosary — ritual interface
   agent first / cyberpunk / anime / desert at night
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;0,800;1,300;1,400&display=swap');

/* ── Palette ── */
:root {
  --void:       #08080E;
  --bg:         #0C0C14;
  --surface:    #12121E;
  --raised:     #18182A;
  --elevated:   #1E1E32;
  --text:       #E0D9C7;
  --text-2:     #B8A98E;
  --text-3:     #95866E;
  --text-4:     #6B6358;
  --border:     #242038;
  --border-lit: #342E50;
  --mint:       #A0D8C8;
  --teal:       #88CCCC;
  --periwinkle: #A8B4E8;
  --lavender:   #CCA8E8;
  --lilac:      #C8B0E0;
  --rose:       #E8A0B8;
  --pink:       #F0B8D0;
  --sage:       #8ECFA0;
  --amber:      #E8A878;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 450;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Texture layers ── */
#beadchain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Rosary spans full viewport as ambient background */
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 512px 512px;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    transparent 0%,
    rgba(8, 8, 14, 0.5) 100%
  );
}

/* ── Page structure ── */
.page {
  position: relative;
  z-index: 1;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Nav ── */
nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--border);
}

/* Logo variant: flower-of-life SVG (see site/DESIGN.md#logo) */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.sigil-nav {
  transition: filter 400ms cubic-bezier(0.23, 1, 0.32, 1);
  flex-shrink: 0;
}

.logo:hover .sigil-nav {
  filter: drop-shadow(0 0 6px rgba(240, 184, 208, 0.5))
          brightness(1.2);
}

.logo-text {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-3);
  text-decoration: none;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  transition: color 300ms ease;
  position: relative;
}

.nav-links a:hover { color: var(--text); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--rose);
  transition: width 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-links a:hover::after { width: 100%; }

.btn-nav {
  padding: 8px 20px !important;
  font-size: 0.625rem !important;
  letter-spacing: 0.1em !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: var(--rose) !important;
  border: 1px solid rgba(232,160,184,0.3) !important;
  box-shadow: none !important;
}

.btn-nav:hover {
  background: rgba(232,160,184,0.08) !important;
  border-color: var(--rose) !important;
  box-shadow: 0 0 16px rgba(232,160,184,0.15) !important;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  border: none;
  text-transform: lowercase;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--rose);
  color: var(--void);
  box-shadow: 0 0 24px rgba(232, 160, 184, 0.2),
              0 0 60px rgba(232, 160, 184, 0.06);
}

.btn-primary:hover {
  background: var(--pink);
  box-shadow: 0 0 32px rgba(240, 184, 208, 0.3),
              0 0 80px rgba(240, 184, 208, 0.1);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-lit);
  background: rgba(232, 160, 184, 0.03);
}

/* ═══════ HERO ═══════ */
.hero {
  padding: 140px 0 100px;
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-marker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.marker-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--lavender), transparent);
}

.marker-text {
  font-size: 0.625rem;
  color: var(--lavender);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 300;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 40px;
  max-width: 600px;
}

.h1-dim {
  display: inline;
  color: var(--text-3);
  font-weight: 300;
  font-style: italic;
}

.h1-glow {
  display: inline;
  color: var(--pink);
  text-shadow:
    0 0 30px rgba(240, 184, 208, 0.25),
    0 0 60px rgba(184, 160, 216, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-body {
  max-width: 480px;
}

.hero-body p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.9;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Decorative vertical rule */
.hero-rule {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0.15;
}

.rule-glyph {
  font-size: 0.5rem;
  color: var(--lavender);
  padding: 4px;
}

.rule-line {
  width: 1px;
  height: 200px;
  background: linear-gradient(180deg, transparent, var(--lavender), transparent);
}

/* ═══════ SECTION SHARED ═══════ */
.section-header {
  margin-bottom: 60px;
  max-width: 480px;
  opacity: 0;
  transform: translateY(16px);
  transition: all 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-tag {
  display: inline-block;
  font-size: 0.5625rem;
  color: var(--text-4);
  letter-spacing: 0.35em;
  margin-bottom: 20px;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.9;
  font-weight: 300;
}

/* ═══════ STAGES — the page IS the loop ═══════ */

.stage {
  min-height: 80vh;
  padding: 120px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 800ms cubic-bezier(0.23, 1, 0.32, 1);
}

.stage.visible {
  opacity: 1;
  transform: translateY(0);
}

.stage-intent {
  min-height: 90vh;
  padding: 140px 0 100px;
  text-align: center;
}

.stage-intent h1 {
  text-align: center;
}

/* Stage marker — bead + label on the left */
.stage-marker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.stage-bead {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 12px color-mix(in srgb, var(--c) 50%, transparent);
  flex-shrink: 0;
}

.stage-label {
  font-size: 0.625rem;
  color: var(--text-3);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 300;
}

.stage h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.stage-body {
  max-width: 520px;
  text-align: left;
}

.stage-body p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 24px;
}

.stage-body em {
  color: var(--text);
  font-style: normal;
  background: rgba(204,168,232,0.06);
  padding: 1px 6px;
  border-radius: 2px;
}

.stage-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

.stage-loop-hint {
  color: var(--text-4) !important;
  font-size: 0.75rem !important;
  font-style: italic;
  cursor: pointer;
}

.stage-loop-hint:hover {
  color: var(--lavender) !important;
}

/* Detail cards within stages — organic, not blocky */
.stage-detail {
  display: flex;
  gap: 24px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.detail-card {
  flex: 1;
  min-width: 200px;
  padding: 28px 24px;
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  transition: all 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.detail-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Soft glow border instead of hard line */
.detail-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(135deg,
    rgba(204,168,232,0.08) 0%,
    rgba(160,216,200,0.04) 50%,
    transparent 100%
  );
  z-index: -1;
}

.detail-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--lavender), transparent);
  opacity: 0.3;
  transition: opacity 400ms ease;
}

.detail-card:hover::after {
  opacity: 0.7;
}

.detail-glyph {
  font-size: 1.25rem;
  color: var(--lavender);
  opacity: 0.5;
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}

.detail-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.detail-card p {
  font-size: 0.75rem;
  color: var(--text-2);
  line-height: 1.8;
  font-weight: 300;
}

/* Scroll progress bead */
.scroll-bead {
  position: fixed;
  left: 16px;
  top: 60px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  z-index: 100;
  transition: top 100ms ease-out, background 300ms ease, box-shadow 300ms ease;
  pointer-events: none;
}

/* ═══════ CARD MOSAIC ═══════ */
.section-beads { padding: 120px 0; }

.card-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  gap: 3px;
}

.card {
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: all 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:nth-child(1) { transition-delay: 0ms; }
.card:nth-child(2) { transition-delay: 80ms; grid-row: span 2; }
.card:nth-child(3) { transition-delay: 160ms; }
.card:nth-child(4) { transition-delay: 240ms; }
.card:nth-child(5) { transition-delay: 320ms; grid-column: 1 / -1; }

.card-glass {
  background: linear-gradient(135deg, rgba(18, 18, 30, 0.8), rgba(24, 24, 42, 0.6));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

.card-glass:hover {
  border-color: var(--border-lit);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Glowing edge accent */
.card-edge {
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  transition: box-shadow 400ms ease;
}

.card[data-accent="mint"]       .card-edge { background: var(--mint); box-shadow: 0 0 8px rgba(160,216,200,0.2); }
.card[data-accent="lavender"]   .card-edge { background: var(--lavender); box-shadow: 0 0 8px rgba(184,160,216,0.2); }
.card[data-accent="pink"]       .card-edge { background: var(--pink); box-shadow: 0 0 8px rgba(240,184,208,0.2); }
.card[data-accent="periwinkle"] .card-edge { background: var(--periwinkle); box-shadow: 0 0 8px rgba(168,180,232,0.2); }
.card[data-accent="rose"]       .card-edge { background: var(--rose); box-shadow: 0 0 8px rgba(232,160,184,0.2); }

.card:hover .card-edge {
  box-shadow: 0 0 16px rgba(232, 160, 184, 0.35);
}

.card-glyph {
  font-size: 1.25rem;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
  opacity: 0.6;
}

.card[data-accent="mint"]       .card-glyph { color: var(--mint); }
.card[data-accent="lavender"]   .card-glyph { color: var(--lavender); }
.card[data-accent="pink"]       .card-glyph { color: var(--pink); }
.card[data-accent="periwinkle"] .card-glyph { color: var(--periwinkle); }

.card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  line-height: 1.4;
}

.card p {
  font-size: 0.75rem;
  color: var(--text-2);
  line-height: 1.8;
  font-weight: 300;
}

/* Statement card — the manifesto panel */
.card-statement {
  background: linear-gradient(135deg, rgba(232, 160, 184, 0.04), rgba(184, 160, 216, 0.03));
  border: 1px solid rgba(232, 160, 184, 0.12);
  text-align: center;
  padding: 48px 40px;
}

.card-statement h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--pink);
}

.card-statement p {
  max-width: 500px;
  margin: 0 auto;
  font-style: italic;
}

/* ═══════ MCP ═══════ */
.section-mcp { padding: 120px 0; }

.mcp-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(18,18,30,0.6), rgba(12,12,20,0.8));
  opacity: 0;
  transform: translateY(16px);
  transition: all 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.mcp-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.mcp-left {
  padding: 40px 32px;
  border-right: 1px solid rgba(36,32,56,0.5);
}

.mcp-left h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.mcp-left p {
  font-size: 0.75rem;
  color: var(--text-2);
  line-height: 1.9;
  margin-bottom: 20px;
  font-weight: 300;
}

.mcp-endpoint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--void);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.75rem;
}

.endpoint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(160, 216, 200, 0.5);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(160, 216, 200, 0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 4px rgba(160, 216, 200, 0.2); }
}

.endpoint-url {
  color: var(--rose);
  font-weight: 500;
}

.endpoint-status {
  color: var(--mint);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.mcp-right {
  background: rgba(8,8,14,0.6);
  padding: 32px;
  display: flex;
  align-items: center;
}

.mcp-right pre {
  font-family: inherit;
  font-size: 0.6875rem;
  line-height: 2;
  color: var(--text-2);
  white-space: pre;
  font-weight: 300;
}

.syn-c  { color: var(--text-4); }
.syn-k  { color: var(--mint); }
.syn-f  { color: var(--text-3); }
.syn-u  { color: var(--rose); font-weight: 500; }
.syn-fn { color: var(--lavender); }

/* ═══════ CTA ═══════ */
.section-cta {
  padding: 140px 0 120px;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: all 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.section-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-cta .section-tag {
  display: block;
  margin-bottom: 24px;
}

.section-cta h2 {
  margin-bottom: 16px;
  color: var(--pink);
  text-shadow: 0 0 40px rgba(240, 184, 208, 0.15);
}

.section-cta p {
  color: var(--text-2);
  font-size: 0.875rem;
  margin-bottom: 40px;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════ FOOTER ═══════ */
footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.5625rem;
  color: var(--text-4);
  letter-spacing: 0.06em;
}

footer a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 300ms ease;
}

footer a:hover { color: var(--text-2); }

.footer-links {
  display: flex;
  gap: 20px;
}

/* ═══════ RESPONSIVE ═══════ */
/* ═══════ PULL-TO-LOOP — the loop symbol IS the indicator ═══════ */
.pull-loop { display: none; } /* hidden — loop symbol handles the visual */

/* ═══════ CATAPULT CRACK ═══════ */
.loop-crack {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10000;
  opacity: 0;
  transition: opacity 100ms ease;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--mint) 20%,
    var(--lavender) 40%,
    var(--rose) 60%,
    var(--mint) 80%,
    transparent 100%
  );
  box-shadow:
    0 0 20px rgba(160,216,200,0.6),
    0 0 60px rgba(204,168,232,0.3),
    0 -4px 30px rgba(232,160,184,0.2);
}

.loop-crack.active {
  opacity: 1;
  animation: crack-flash 400ms ease-out forwards;
}

@keyframes crack-flash {
  0% { height: 3px; opacity: 1; }
  30% { height: 6px; opacity: 1; }
  100% { height: 60px; opacity: 0; }
}

/* ═══════ LOOP TRANSITION OVERLAY ═══════ */
.loop-overlay {
  position: fixed;
  inset: 0;
  background: var(--void);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.loop-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.loop-overlay-content {
  text-align: center;
}

/* Beads passing through — staggered animation */
.loop-beads {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.loop-beads span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lavender);
  opacity: 0.2;
}

.loop-overlay.active .loop-beads span {
  animation: bead-pass 700ms ease-in-out forwards;
  animation-delay: calc(var(--d) * 80ms);
}

@keyframes bead-pass {
  0% { opacity: 0.2; transform: translateY(0) scale(1); }
  40% { opacity: 1; transform: translateY(-8px) scale(1.5); box-shadow: 0 0 12px rgba(204,168,232,0.6); }
  100% { opacity: 0.2; transform: translateY(0) scale(1); }
}

.loop-label {
  font-size: 0.5625rem;
  color: var(--text-4);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ═══════ LOOP SYMBOL — centerpiece interaction ═══════ */
.loop-symbol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 0 40px;
  animation: loop-float 3s ease-in-out infinite;
  transition: transform 300ms ease, filter 300ms ease;
}

@keyframes loop-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.loop-ring {
  animation: loop-spin 12s linear infinite;
  transition: opacity 300ms ease;
}

.loop-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: -28px;
}

.loop-chevrons svg {
  opacity: 0.3;
  filter: drop-shadow(0 0 4px rgba(232,160,184,0.3));
}

.loop-chevrons svg:nth-child(1) { animation: chevron-pulse 2s ease-in-out infinite 0ms; }
.loop-chevrons svg:nth-child(2) { animation: chevron-pulse 2s ease-in-out infinite 200ms; }
.loop-chevrons svg:nth-child(3) { animation: chevron-pulse 2s ease-in-out infinite 400ms; }

@keyframes chevron-pulse {
  0%, 100% { transform: translateY(0); opacity: 0.2; }
  50% { transform: translateY(4px); opacity: 0.7; }
}

@keyframes loop-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loop-symbol-text {
  font-size: 1.5rem;
  color: var(--lavender);
  opacity: 0.2;
  transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

.loop-symbol-label {
  font-size: 0.5625rem;
  color: var(--text-4);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  transition: all 400ms ease;
  margin-top: -4px;
}

/* Armed — settled at bottom, ready to pull */
.loop-symbol.ready {
  animation: none; /* stop floating — feel deliberate */
}

.loop-symbol.ready .loop-symbol-text {
  opacity: 0.6;
  text-shadow: 0 0 16px rgba(204,168,232,0.4);
}

.loop-symbol.ready .loop-symbol-label {
  opacity: 1;
  color: var(--text-3);
}

.loop-symbol.ready .loop-ring {
  opacity: 0.5;
}

.loop-symbol.ready .loop-arrow {
  opacity: 0.7;
}

/* Pulling — symbol grows with pull progress */
.loop-symbol.pulling {
  animation: none;
}

.loop-symbol.pulling .loop-symbol-text {
  opacity: calc(0.4 + var(--pull, 0) * 0.6);
  transform: scale(calc(1 + var(--pull, 0) * 0.6));
  text-shadow: 0 0 calc(var(--pull, 0) * 30px) rgba(204,168,232, calc(var(--pull, 0) * 0.7));
}

.loop-symbol.pulling .loop-ring {
  opacity: calc(0.3 + var(--pull, 0) * 0.5);
}

.loop-symbol.pulling .loop-chevrons svg {
  animation: none;
  opacity: calc(0.4 + var(--pull, 0) * 0.6);
  transform: translateY(calc(var(--pull, 0) * 12px));
  filter: drop-shadow(0 0 calc(var(--pull, 0) * 12px) rgba(232,160,184, calc(var(--pull, 0) * 0.6)));
}

.loop-symbol.pulling .loop-symbol-label {
  opacity: 1;
}

/* Threshold reached — turns mint, "release" */
.loop-symbol.release-ready .loop-symbol-text {
  color: var(--mint);
  opacity: 1;
  transform: scale(1.8);
  text-shadow: 0 0 40px rgba(160,216,200,0.7);
}

.loop-symbol.release-ready .loop-ring circle {
  stroke: var(--mint);
}

.loop-symbol.release-ready .loop-chevrons svg {
  animation: none;
  opacity: 1;
}

.loop-symbol.release-ready .loop-chevrons svg path {
  stroke: var(--mint);
  filter: drop-shadow(0 0 8px rgba(160,216,200,0.8));
}

.loop-symbol.release-ready .loop-symbol-label {
  color: var(--mint);
  opacity: 1;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  main { padding: 0 20px; }
  nav { padding: 16px 20px; flex-wrap: wrap; }
  .nav-links { gap: 16px; }

  .stage { min-height: 60vh; padding: 80px 0 60px; }
  .stage-intent { min-height: auto; padding: 100px 0 60px; }
  .stage-intent h1 { font-size: 2rem; }
  .stage-detail { grid-template-columns: 1fr; }

  .mcp-panel { grid-template-columns: 1fr; }
  .mcp-left { border-right: none; border-bottom: 1px solid var(--border); }

  .scroll-bead { display: none; }

  /* Nav: compact sign-in on mobile */
  nav { gap: 12px; }
  .nav-links { gap: 12px; font-size: 0.6rem; }
  .btn-nav {
    padding: 5px 12px !important;
    font-size: 0.5rem !important;
    order: -1;
  }
}

@media (max-width: 480px) {
  nav { flex-direction: column; gap: 16px; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 1.75rem; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}

/* ═══════ ABOUT PAGE ═══════ */

.about-stage {
  padding: 80px 0 60px;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
  transition: all 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.about-stage.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-stage:first-child {
  padding-top: 100px;
}

.about-stage h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.about-stage h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-bottom: 16px;
}

.about-lead {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 24px;
}

/* Tool cards — SectionCard pattern */
.tool-card {
  padding: 24px;
  margin: 16px 0;
  position: relative;
  background: linear-gradient(135deg, rgba(18,18,30,0.6), rgba(12,12,20,0.8));
  border-left: 2px solid;
  opacity: 0;
  transform: translateY(12px);
  transition: all 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.tool-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(204,168,232,0.04) 0%, transparent 100%);
  z-index: -1;
}

.tool-card:hover {
  background: linear-gradient(135deg, rgba(18,18,30,0.8), rgba(16,16,28,0.9));
}

.tool-card-rosary { border-color: var(--rose); }
.tool-card-mache  { border-color: var(--sage); }
.tool-card-signet { border-color: var(--lavender); }

.tool-glyph {
  font-size: 1rem;
  opacity: 0.5;
  display: inline-block;
  margin-right: 8px;
  line-height: 1;
}

.tool-name {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-desc {
  font-size: 0.75rem;
  color: var(--text-2);
  line-height: 1.8;
  font-weight: 300;
}

.tool-desc a {
  color: var(--lavender);
  text-decoration: none;
  border-bottom: 1px dotted rgba(204,168,232,0.4);
  transition: border-color 300ms ease;
}

.tool-desc a:hover {
  border-color: var(--lavender);
}

/* Flow steps */
.flow-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(18,18,30,0.4), transparent);
  position: relative;
}

.flow-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--mint), transparent);
  opacity: 0.2;
}

.flow-step-num {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--mint);
  min-width: 24px;
  flex-shrink: 0;
}

.flow-step-text {
  font-size: 0.75rem;
  color: var(--text-2);
  line-height: 1.8;
  font-weight: 300;
}

.flow-step-text strong {
  color: var(--text);
  font-weight: 500;
}

.flow-step-text code {
  color: var(--teal);
  font-size: 0.6875rem;
}

/* About code blocks — syntax highlighted */
.about-pre {
  background: rgba(8,8,14,0.8);
  padding: 20px 24px;
  margin: 16px 0 24px;
  overflow-x: auto;
  font-size: 0.6875rem;
  line-height: 2;
  border-left: 2px solid var(--border);
  position: relative;
}

.about-pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--periwinkle), transparent);
  opacity: 0.4;
}

/* Mermaid container */
.mermaid-wrap {
  margin: 24px 0;
  padding: 32px 24px;
  background: rgba(8,8,14,0.6);
  border: 1px solid var(--border);
  overflow-x: auto;
}

/* Section divider — bead chain accent */
.about-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
  opacity: 0.3;
}

.about-divider-bead {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lavender);
}

.about-divider-thread {
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lavender), transparent);
}

/* About CTA */
.about-cta {
  text-align: center;
  padding: 60px 0 80px;
}

@media (max-width: 768px) {
  .about-stage { padding: 60px 20px 40px; }
  .about-stage:first-child { padding-top: 80px; }
  .flow-step { flex-direction: column; gap: 8px; }
  .mermaid-wrap { padding: 16px 12px; }
}
