/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; text-decoration: none; padding: 15px 30px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--red); color: #fff; border: 1px solid var(--red); transition: all 0.25s;
}
.btn-primary:hover { background: transparent; color: var(--red); }
.btn-outline {
  display: inline-block; text-decoration: none; padding: 15px 30px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2); border: 1px solid var(--rule-2); transition: all 0.25s;
}
.btn-outline:hover { color: var(--text); border-color: rgba(237,232,220,0.3); background: rgba(237,232,220,0.03); }
.btn-text {
  display: inline-block; text-decoration: none; font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber); transition: opacity 0.2s;
}
.btn-text:hover { opacity: 0.65; }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(11,12,18,0.97) 0%,
    rgba(11,12,18,0.75) 42%,
    rgba(11,12,18,0.08) 100%);
}
.hero-inner {
  position: relative; z-index: 5; padding-top: 90px; max-width: 800px;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 40px;
}
.hero-eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--amber); flex-shrink: 0;
}
.hero-h1 {
  font-family: var(--ff-head); font-size: clamp(46px, 7.2vw, 100px);
  font-weight: 300; line-height: 1.03; letter-spacing: -0.025em;
  color: var(--text); margin-bottom: 40px;
}
.hero-h1 em { font-style: italic; font-weight: 300; color: var(--amber); }
.hero-h1 .red-word { color: var(--red); font-style: normal; }
.hero-sub {
  font-size: 18px; font-weight: 300; line-height: 1.7;
  color: var(--text-2); max-width: 520px; margin-bottom: 52px;
}
.hero-sub strong { color: var(--text); font-weight: 500; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.12em;
  color: var(--text-3); text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: sc 2.2s ease-in-out infinite;
}
@keyframes sc { 0%,100%{opacity:0.25} 50%{opacity:0.9} }

/* ── SECTIONS ── */
.section { padding: clamp(100px,13vw,190px) 0; border-top: 1px solid var(--rule); }
.section-alt { background: var(--bg-2); }

.sec-label {
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 56px;
  display: flex; align-items: center; gap: 10px;
}
.sec-label span { color: var(--amber); }

/* ── MANIFESTO ── */
.manifesto-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 100px; align-items: start;
}
.manifesto-sidebar { padding-top: 8px; }
.manifesto-sidebar p {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.07em; color: var(--text-3);
  line-height: 1.9; margin-top: 20px;
}
.mf-h2 {
  font-family: var(--ff-head); font-size: clamp(32px,4.5vw,60px);
  font-weight: 300; line-height: 1.12; letter-spacing: -0.022em; margin-bottom: 32px;
}
.mf-h2 em { font-style: italic; color: var(--amber); }
.mf-body { font-size: 17px; font-weight: 300; line-height: 1.78; color: var(--text-2); }
.mf-body p { margin-bottom: 20px; }
.mf-body strong { color: var(--text); font-weight: 500; }

/* ── STAT CELLS ── */
.stat-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2px; background: var(--rule); border: 1px solid var(--rule); margin-top: 60px;
}
.stat-cell { background: var(--bg); padding: 32px 28px; }
.stat-num {
  font-family: var(--ff-head); font-size: 56px; font-weight: 300;
  line-height: 1; letter-spacing: -0.035em; color: var(--amber); margin-bottom: 10px;
}
.stat-lbl { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); line-height: 1.7; }

/* ── ARCHITECTURE / LAYER CARDS ── */
.arch-top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: end; margin-bottom: 72px;
}
.arch-h2 {
  font-family: var(--ff-head); font-size: clamp(32px,4.5vw,60px);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.022em;
}
.arch-h2 em { font-style: italic; color: var(--amber); }
.arch-sub { font-size: 16px; font-weight: 300; color: var(--text-2); line-height: 1.72; }

.layers { display: flex; flex-direction: column; gap: 2px; }
.layer {
  display: grid; grid-template-columns: 72px 1fr 60px;
  align-items: center; gap: 40px;
  background: var(--bg-3); border: 1px solid var(--rule);
  padding: 30px 36px; cursor: pointer;
  transition: background 0.28s, transform 0.28s, border-color 0.28s;
}
.layer:hover { background: var(--bg-4); transform: translateX(7px); border-color: var(--rule-2); }
.layer.is-active { border-left: 2px solid var(--amber); }
.layer-n {
  font-family: var(--ff-head); font-size: 44px; font-weight: 300;
  color: var(--text-3); line-height: 1; transition: color 0.28s;
}
.layer:hover .layer-n { color: var(--amber); }
.layer-info h4 {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 400; margin-bottom: 7px; color: var(--text);
}
.layer-info p { font-size: 14px; color: var(--text-2); font-weight: 300; line-height: 1.6; }
.layer-aside {
  font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3);
  writing-mode: vertical-rl; transform: rotate(180deg); align-self: center;
}

/* ── AGENTS / AGENT CARDS ── */
.agents-top { margin-bottom: 64px; }
.agents-h2 {
  font-family: var(--ff-head); font-size: clamp(32px,4.5vw,60px);
  font-weight: 300; letter-spacing: -0.022em; line-height: 1.1; max-width: 620px;
}
.agents-h2 em { font-style: italic; color: var(--amber); }
.agents-sub { font-size: 16px; color: var(--text-2); font-weight: 300; margin-top: 20px; max-width: 500px; line-height: 1.72; }

.agent-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2px; background: var(--rule); border: 1px solid var(--rule);
}
.agent-card {
  background: var(--bg); padding: 36px 30px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: background 0.28s;
}
.agent-card:hover { background: var(--bg-2); }
.agent-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
  opacity: 0; transition: opacity 0.28s;
}
.agent-card:hover::after { opacity: 1; }
.agent-meta {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px;
}
.agent-code { font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.agent-status {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.08em; color: var(--text-3);
}
.agent-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--amber);
  animation: agdot 3.5s ease-in-out infinite;
}
@keyframes agdot { 0%,100%{opacity:0.4} 50%{opacity:1; box-shadow:0 0 8px var(--amber)} }
.agent-name {
  font-family: var(--ff-head); font-size: 30px; font-weight: 300;
  letter-spacing: -0.01em; margin-bottom: 10px;
}
.agent-role {
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 18px;
}
.agent-desc { font-size: 13px; color: var(--text-2); font-weight: 300; line-height: 1.68; flex: 1; }
.agent-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule);
}
.agent-days { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.07em; color: var(--text-3); }
.agent-days em { color: var(--text-2); font-style: normal; }
.sparkline { display: flex; align-items: flex-end; gap: 2px; height: 22px; }
.sparkline div { width: 3px; background: var(--amber); border-radius: 1px; opacity: 0.55; }
.agent-card:hover .sparkline div { opacity: 0.85; }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.30s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .manifesto-grid, .arch-top { grid-template-columns: 1fr; gap: 40px; }
  .agent-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 52px 1fr; }
  .layer-aside { display: none; }
}
