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

:root {
  --bg: #0a090f;
  --surface: #0f0e16;
  --surface-2: #15131e;
  --border: rgba(255, 255, 255, 0.055);
  --border-hover: rgba(255, 255, 255, 0.10);
  --text: #d8d3e3;
  --text-dim: #847e94;
  --accent: #c4a24e;
  --accent-dim: #96793a;
  --accent-subtle: rgba(196, 162, 78, 0.06);
  --accent-glow: rgba(196, 162, 78, 0.12);
  --danger: #C4704D;
  --success: #7A9E6A;
  --radius: 14px;
  --radius-sm: 8px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Film Grain ── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Accessibility ── */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 200;
  padding: 8px 16px; background: var(--accent); color: var(--bg);
  font-size: 14px; font-weight: 600; border-radius: var(--radius-sm);
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
.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; }

/* ── Typography ── */
h1, h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--text);
}

/* ── Scroll Reveal ── */
/* Content visible by default (SEO + no-JS fallback).
   JS adds .js-reveal-ready to html to enable the animated reveal. */
.reveal { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.js-reveal-ready .reveal { opacity: 0; transform: translateY(40px); }
.js-reveal-ready .reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  padding: 16px 40px;
  background: rgba(10, 9, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
nav.scrolled { background: rgba(10, 9, 15, 0.95); }
.nav-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: 20px; color: var(--accent);
  text-decoration: none; letter-spacing: 0.5px;
}
.nav-cta {
  font-size: 13px; font-weight: 500; color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 12px 20px; border-radius: var(--radius-sm); min-height: 44px; display: inline-flex; align-items: center;
  text-decoration: none; transition: all 0.3s var(--ease-out-expo);
}
.nav-cta:hover { background: var(--accent); color: var(--bg); }
.nav-cta-short { display: none; }

/* Nav delayed entrance for landing page */
.page-landing nav { opacity: 0; animation: nav-entrance 0.6s var(--ease-out-expo) 1.8s forwards; }
@keyframes nav-entrance { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Buttons ── */
.btn {
  display: inline-block; font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 15px; padding: 14px 32px;
  border-radius: var(--radius-sm); text-decoration: none; cursor: pointer;
  border: none; transition: all 0.3s var(--ease-out-expo); min-height: 48px;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #d4b35e; transform: translateY(-1px); box-shadow: 0 4px 24px rgba(196, 162, 78, 0.2); }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border-hover); }
.btn-ghost:hover { border-color: var(--accent-dim); color: var(--accent); }

/* ── Section Base ── */
.section { padding: 80px 0; }
.section-inner { max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent-dim);
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.section-label::after {
  content: ''; display: block; width: 5px; height: 5px;
  transform: rotate(45deg); background: var(--accent-dim); opacity: 0.35;
}

/* ── Divider ── */
.divider {
  max-width: 1080px; margin: 0 auto;
  height: 1px; background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  position: relative;
}
.divider::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 5px; height: 5px; transform: translate(-50%, -50%) rotate(45deg);
  background: var(--accent-dim); opacity: 0.25;
}

/* ── 1. Hero ── */
.hero {
  text-align: center;
  padding: 100px 40px 80px;
  max-width: 800px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 3px; color: var(--text-dim); margin-bottom: 28px;
}
.hero h1 {
  font-weight: 600; font-size: 48px; line-height: 1.12;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 17px; color: var(--text-dim); max-width: 520px;
  margin: 0 auto 40px; line-height: 1.6;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── 2. Problem ── */
.section-problem h2 { font-size: 28px; line-height: 1.3; margin-bottom: 36px; }
.cascade { display: flex; flex-direction: column; gap: 10px; margin: 32px 0; }
.cascade-step { display: flex; align-items: center; gap: 16px; }
.cascade-info { width: 180px; text-align: right; flex-shrink: 0; }
.cascade-role { font-weight: 600; font-size: 14px; color: var(--text); display: block; }
.cascade-action { font-size: 12px; color: var(--text-dim); display: block; }
.cascade-bar-track {
  flex: 1; height: 12px; background: var(--surface); border-radius: 6px;
  position: relative; overflow: visible;
}
.cascade-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 6px; transition: width 0.7s ease-out;
}
.cascade-pct {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-dim); width: 36px;
}
.cost-callout {
  margin-top: 40px; padding: 20px 24px;
  border-left: 2px solid var(--accent-dim);
  background: var(--accent-subtle); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px; color: var(--text-dim); line-height: 1.65;
}
.cost-callout strong { color: var(--accent); font-weight: 600; }

/* ── 3. The Turn ── */
.section-turn {
  text-align: center; padding: 140px 40px;
}
.section-turn h2 {
  font-style: italic; font-weight: 400; font-size: 44px; line-height: 1.2;
  max-width: 700px; margin: 0 auto;
}
.section-turn h2 em { font-style: italic; color: var(--accent); }

/* ── 4. Product ── */
.flow-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 40px; flex-wrap: wrap;
}
.flow-step {
  background: var(--surface); border: 1px solid var(--border);
  padding: 16px 20px; border-radius: var(--radius-sm); text-align: center;
  flex: 1; min-width: 160px;
}
.flow-step-active { border-color: var(--accent-dim); }
.flow-label {
  display: block; font-size: 10px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-dim); margin-bottom: 6px; font-weight: 600;
}
.flow-step-active .flow-label { color: var(--accent); }
.flow-desc { display: block; font-size: 13px; color: var(--text-dim); }
.flow-arrow { color: var(--text-dim); font-size: 20px; flex-shrink: 0; opacity: 0.4; }

/* Chat preview window (polished, from old site) */
.preview-window {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
  box-shadow: 0 8px 48px rgba(0,0,0,0.4), 0 24px 80px rgba(0,0,0,0.2),
              0 0 0 1px rgba(255,255,255,0.03), inset 0 1px 0 rgba(255,255,255,0.03);
  transition: box-shadow 0.4s, transform 0.4s var(--ease-out-expo);
  max-width: 800px; margin: 0 auto;
}
.preview-window:hover {
  box-shadow: 0 12px 56px rgba(0,0,0,0.5), 0 32px 100px rgba(0,0,0,0.25),
              0 0 0 1px rgba(196,162,78,0.06), inset 0 1px 0 rgba(255,255,255,0.04);
  transform: translateY(-2px);
}
.preview-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.preview-title { font-size: 12px; color: var(--text-dim); letter-spacing: 0.3px; }
.preview-body { display: flex; min-height: 280px; }
.preview-sidebar {
  width: 220px; flex-shrink: 0; padding: 20px 16px;
  border-right: 1px solid var(--border); background: rgba(255,255,255,0.01);
}
.preview-sidebar-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px;
}
.preview-card-ref {
  font-size: 12px; color: var(--text-dim); padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 8px; line-height: 1.5; transition: border-color 0.2s;
}
.preview-card-ref:hover { border-color: var(--accent-dim); }
.preview-card-type {
  display: block; font-size: 9px; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--accent-dim); margin-bottom: 2px;
}
.preview-hit-rate { font-size: 11px; color: var(--accent-dim); margin-top: 16px; font-style: italic; }
.preview-chat {
  flex: 1; padding: 20px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.preview-msg {
  font-size: 13px; line-height: 1.7; padding: 14px 16px;
  border-radius: var(--radius-sm); max-width: 90%;
}
.preview-msg-user {
  background: rgba(255,255,255,0.04); color: var(--text);
  align-self: flex-end; border: 1px solid var(--border);
}
.preview-msg-ai {
  background: var(--accent-subtle); color: var(--text-dim);
  align-self: flex-start; border: 1px solid rgba(196,162,78,0.08);
}
.preview-ai-point { display: block; margin-top: 6px; }
.preview-inscribe {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start; font-size: 12px; color: var(--accent-dim);
  padding: 6px 12px; border: 1px dashed rgba(196,162,78,0.2);
  border-radius: 6px; margin-top: auto; transition: all 0.2s;
}
.preview-inscribe:hover { border-color: var(--accent-dim); color: var(--accent); }
.preview-inscribe-icon { font-size: 14px; font-weight: 300; }

/* ── 5. Differentiators ── */
.diff-columns { display: flex; gap: 40px; }
.diff-col { flex: 1; }
.diff-col h3 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: 17px; margin-bottom: 10px; color: var(--text);
}
.diff-col p { font-size: 14px; color: var(--text-dim); line-height: 1.65; margin-bottom: 12px; }
.diff-detail { font-size: 12px; color: var(--accent-dim); border-top: 1px solid var(--border); padding-top: 10px; }

/* ── 6. Design Partner CTA ── */
.cta-card {
  background: var(--surface); border: 1px solid rgba(196,162,78,0.15);
  border-radius: var(--radius); padding: 56px 48px; text-align: center;
  box-shadow: 0 8px 48px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.02);
}
.cta-badge {
  display: inline-block; font-size: 10px; text-transform: uppercase;
  letter-spacing: 2px; color: var(--accent); font-weight: 600;
  border: 1px solid var(--accent-dim); background: var(--accent-subtle);
  padding: 6px 16px; border-radius: 100px; margin-bottom: 24px;
}
.cta-card h2 { font-weight: 600; font-size: 32px; margin-bottom: 12px; }
.cta-sub { color: var(--text-dim); font-size: 15px; max-width: 480px; margin: 0 auto 24px; line-height: 1.55; }
.cta-perks {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px;
  max-width: 420px; margin: 0 auto 36px; text-align: left;
}
.perk { font-size: 13px; color: var(--text-dim); }

/* Form */
.dp-form { max-width: 480px; margin: 0 auto; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.form-field-full { grid-column: 1 / -1; }
.form-field input, .form-field select {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px; color: var(--text);
  font-family: 'Instrument Sans', sans-serif; font-size: 13px; min-height: 48px;
  transition: border-color 0.2s; -webkit-appearance: none; appearance: none;
}
.form-field input::placeholder { color: var(--text-dim); }
.form-field select { color: var(--text-dim); cursor: pointer; }
.form-field input:focus, .form-field select:focus {
  outline: none; border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-field input.invalid { border-color: var(--danger); }
.field-error { display: block; font-size: 12px; color: var(--danger); margin-top: 4px; min-height: 0; }
.btn-submit { width: 100%; position: relative; }
.btn-submit:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-submit.loading .btn-text { visibility: hidden; }
.btn-submit.loading .btn-spinner { display: block; }
.btn-spinner {
  display: none; position: absolute; top: 50%; left: 50%;
  width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border: 2px solid var(--bg); border-top-color: transparent;
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { font-size: 13px; color: var(--danger); margin-top: 12px; min-height: 0; }
.cta-note { font-size: 12px; color: var(--text-dim); margin-top: 16px; }
.dp-confirmation { text-align: center; padding: 56px 48px; }
.dp-confirmation h2 { font-weight: 600; font-size: 28px; margin-bottom: 12px; color: var(--success); }
.dp-confirmation p { color: var(--text-dim); margin-bottom: 24px; }

/* ── Footer ── */
footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 40px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-links { display: flex; gap: 20px; align-items: center; font-size: 12px; }
.footer-links a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; padding: 10px 4px; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-dim); }

/* ════════════════════════════════════════════
   GRIMOIRE VISUAL EFFECTS
   ════════════════════════════════════════════ */

/* Book opening animation */
.grimoire-opening {
  position: fixed; inset: 0; z-index: 900;
  perspective: 1800px; display: flex; align-items: stretch;
  justify-content: center; pointer-events: none;
}
.grimoire-cover {
  position: absolute; top: 0; width: 50%; height: 100%;
  background: #050409;
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(30,25,18,0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(25,20,15,0.4) 0%, transparent 50%),
    linear-gradient(180deg, #080610 0%, #0a0810 50%, #070509 100%);
  z-index: 2;
}
.grimoire-cover-left {
  left: 0; transform-origin: left center;
  animation: cover-open-left 1.6s cubic-bezier(0.4,0,0.2,1) 0.4s forwards;
  border-right: 1px solid rgba(196,162,78,0.08);
}
.grimoire-cover-right {
  right: 0; transform-origin: right center;
  animation: cover-open-right 1.6s cubic-bezier(0.4,0,0.2,1) 0.4s forwards;
  border-left: 1px solid rgba(196,162,78,0.08);
}
.grimoire-cover-left::after, .grimoire-cover-right::after {
  content: ''; position: absolute; top: 0; width: 2px; height: 100%;
  background: linear-gradient(180deg, transparent 10%, rgba(196,162,78,0.15) 30%, rgba(196,162,78,0.25) 50%, rgba(196,162,78,0.15) 70%, transparent 90%);
}
.grimoire-cover-left::after { right: 0; }
.grimoire-cover-right::after { left: 0; }

.grimoire-seam {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 2px; height: 0;
  background: linear-gradient(180deg, transparent, var(--accent), rgba(196,162,78,0.7), var(--accent), transparent);
  border-radius: 1px; z-index: 3;
  animation: seam-appear 1.2s ease-out forwards;
}
.grimoire-light {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 4px; height: 0; z-index: 1; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(196,162,78,0.3) 0%, rgba(196,162,78,0.05) 40%, transparent 70%);
  animation: light-bloom 1.8s ease-out 0.3s forwards;
}

@keyframes seam-appear {
  0% { height: 0; opacity: 0; box-shadow: none; }
  30% { height: 70vh; opacity: 1; box-shadow: 0 0 15px rgba(196,162,78,0.5), 0 0 60px rgba(196,162,78,0.15); }
  50% { height: 80vh; opacity: 1; box-shadow: 0 0 20px rgba(196,162,78,0.6), 0 0 80px rgba(196,162,78,0.2); }
  100% { height: 80vh; opacity: 0; box-shadow: 0 0 0 rgba(196,162,78,0); }
}
@keyframes cover-open-left {
  0% { transform: rotateY(0deg); opacity: 1; }
  70% { transform: rotateY(85deg); opacity: 0.8; }
  100% { transform: rotateY(95deg); opacity: 0; }
}
@keyframes cover-open-right {
  0% { transform: rotateY(0deg); opacity: 1; }
  70% { transform: rotateY(-85deg); opacity: 0.8; }
  100% { transform: rotateY(-95deg); opacity: 0; }
}
@keyframes light-bloom {
  0% { width: 4px; height: 0; opacity: 0; }
  20% { width: 8px; height: 60vh; opacity: 0.6; }
  50% { width: 60vw; height: 100vh; opacity: 0.8; }
  100% { width: 200vw; height: 200vh; opacity: 0; }
}

/* Spine */
.grimoire-spine {
  position: fixed; top: 0; left: 0; width: 3px; height: 100vh; z-index: 99;
  background: linear-gradient(180deg, transparent 5%, var(--accent-dim) 30%, var(--accent) 50%, var(--accent-dim) 70%, transparent 95%);
  opacity: 0; animation: spine-appear 0.6s ease-out 2.0s forwards; pointer-events: none;
}
.grimoire-spine::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(196,162,78,0.6), transparent);
  opacity: 0; animation: spine-shimmer 8s ease-in-out 2.2s infinite;
}
@keyframes spine-appear { from { opacity: 0; } to { opacity: 0.15; } }
@keyframes spine-shimmer { 0%, 100% { opacity: 0; transform: translateY(-100%); } 50% { opacity: 0.4; transform: translateY(100%); } }

/* Vignette */
.grimoire-vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 120px 40px rgba(0,0,0,0.4), inset 0 0 300px 80px rgba(0,0,0,0.15);
  opacity: 0; animation: vignette-appear 1s ease-out 1.4s forwards;
}
@keyframes vignette-appear { from { opacity: 0; } to { opacity: 1; } }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

@media (max-width: 768px) {
  .nav-cta-full { display: none; }
  .nav-cta-short { display: inline; }
  nav { padding: 12px 20px; }
  .section-inner { padding: 0 20px; }
  .section { padding: 56px 0; }

  .hero { padding: 80px 20px 60px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .hero-ctas { flex-direction: column; align-items: center; }

  .cascade-info { width: auto; text-align: left; }
  .cascade-step { flex-direction: column; align-items: stretch; gap: 4px; }
  .cascade-pct { right: 4px; font-size: 11px; }

  .section-turn { padding: 80px 20px; }
  .section-turn h2 { font-size: 30px; }

  .flow-strip { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .preview-sidebar { display: none; }
  .preview-body { min-height: 220px; }

  .diff-columns { flex-direction: column; gap: 32px; }

  .cta-card { padding: 32px 20px; }
  .cta-perks { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; padding: 0 20px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  /* Mobile grimoire effects */
  .grimoire-opening { perspective: none; }
  .grimoire-cover { animation: none; }
  .grimoire-cover-left, .grimoire-cover-right { width: 50%; animation: cover-fade-mobile 1s ease-out 0.3s forwards; }
  .grimoire-seam, .grimoire-light { display: none; }
  @keyframes cover-fade-mobile { 0% { opacity: 1; } 100% { opacity: 0; } }
  .grimoire-spine { display: none; }
  .grimoire-vignette { box-shadow: inset 0 0 60px 20px rgba(0,0,0,0.3); }
  .page-landing nav { animation-delay: 0.8s; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-primary:hover { transform: none; }
  .preview-window:hover { transform: none; }
  html { scroll-behavior: auto; }
  .grimoire-opening { display: none !important; }
  .page-landing nav { opacity: 1; animation: none; }
  .grimoire-spine { opacity: 0.15; animation: none; }
  .grimoire-spine::after { animation: none; }
  .grimoire-vignette { opacity: 1; animation: none; }
  .cascade-bar-fill { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   v2 — Trust Authority Evolution (2026-04-04)
   ═══════════════════════════════════════════════════════════════════════ */

/* Trust state color tokens (new) */
:root {
  --trust-verified: #5EA06A;
  --trust-verified-bg: rgba(94, 160, 106, 0.10);
  --trust-verified-border: rgba(94, 160, 106, 0.22);
  --trust-needs-review: #D4A43A;
  --trust-needs-review-bg: rgba(212, 164, 58, 0.10);
  --trust-needs-review-border: rgba(212, 164, 58, 0.22);
  --trust-contradiction: #CF6B48;
  --trust-contradiction-bg: rgba(207, 107, 72, 0.10);
  --trust-contradiction-border: rgba(207, 107, 72, 0.22);
}

/* ── Trust Badge ── */
.trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 9999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  font-family: 'Instrument Sans', sans-serif;
}
.trust-badge-dot { width: 6px; height: 6px; border-radius: 50%; }
.trust-badge.verified { background: var(--trust-verified-bg); color: var(--trust-verified); border: 1px solid var(--trust-verified-border); }
.trust-badge.verified .trust-badge-dot { background: var(--trust-verified); }
.trust-badge.needs-review { background: var(--trust-needs-review-bg); color: var(--trust-needs-review); border: 1px solid var(--trust-needs-review-border); }
.trust-badge.needs-review .trust-badge-dot { background: var(--trust-needs-review); }
.trust-badge.contradiction { background: var(--trust-contradiction-bg); color: var(--trust-contradiction); border: 1px solid var(--trust-contradiction-border); }
.trust-badge.contradiction .trust-badge-dot { background: var(--trust-contradiction); }

/* ── Bento Grid ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.bento-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}
.bento-tile:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.bento-tile.large { grid-column: span 2; grid-row: span 2; }
.bento-tile.wide { grid-column: span 2; }
.bento-tile.tall { grid-row: span 2; }
.bento-tile-label {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent-dim);
  margin-bottom: 10px; display: block;
}
.bento-tile h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500; font-size: 19px; line-height: 1.35;
  color: var(--text); margin-bottom: 10px;
}
.bento-tile p {
  font-size: 14px; color: var(--text-dim); line-height: 1.55;
}
.bento-tile strong { color: var(--text); font-weight: 600; }

/* Stagger entry animation for bento tiles */
.bento-grid .bento-tile {
  opacity: 0; transform: translateY(12px);
  animation: tile-enter 0.5s var(--ease-out-expo) forwards;
}
.bento-grid .bento-tile:nth-child(1) { animation-delay: 0ms; }
.bento-grid .bento-tile:nth-child(2) { animation-delay: 80ms; }
.bento-grid .bento-tile:nth-child(3) { animation-delay: 160ms; }
.bento-grid .bento-tile:nth-child(4) { animation-delay: 240ms; }
.bento-grid .bento-tile:nth-child(5) { animation-delay: 320ms; }
.bento-grid .bento-tile:nth-child(6) { animation-delay: 400ms; }
@keyframes tile-enter { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-tile.large { grid-column: span 2; grid-row: span 1; }
  .bento-tile.tall { grid-row: span 1; }
}
@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-tile.wide, .bento-tile.large { grid-column: span 1; }
}

/* ── Interactive Trust Demo ── */
.trust-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-top: 32px;
}
.trust-demo-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.trust-demo-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500; font-size: 15px; color: var(--text);
}
.trust-demo-samples {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.trust-sample-btn {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-dim); font-family: 'Instrument Sans', sans-serif;
  font-size: 13px; padding: 10px 14px; border-radius: 8px;
  cursor: pointer; transition: all 0.2s var(--ease-out-expo);
  min-height: 44px; display: inline-flex; align-items: center;
}
.trust-sample-btn:hover { border-color: var(--accent-dim); color: var(--accent); }
.trust-sample-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); }

.trust-demo-input {
  width: 100%; min-height: 120px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12px; line-height: 1.55; color: var(--text);
  resize: vertical; transition: border-color 0.2s;
}
.trust-demo-input:focus { outline: none; border-color: var(--accent-dim); }
.trust-demo-input::placeholder { color: var(--text-dim); opacity: 0.6; }

.trust-demo-run {
  margin-top: 12px; display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}

.trust-results {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--border);
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity 0.4s var(--ease-out-expo), max-height 0.4s var(--ease-out-expo);
}
.trust-results.shown { opacity: 1; max-height: 600px; }
.trust-results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.trust-results-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 14px; color: var(--text); font-weight: 500;
}
.trust-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.trust-score.verified { color: var(--trust-verified); }
.trust-score.needs-review { color: var(--trust-needs-review); }
.trust-score.contradiction { color: var(--trust-contradiction); }
.trust-findings { display: flex; flex-direction: column; gap: 10px; }
.trust-finding {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 8px;
  border: 1px solid; background: transparent;
  font-size: 13px; line-height: 1.5;
}
.trust-finding.verified { border-color: var(--trust-verified-border); background: var(--trust-verified-bg); }
.trust-finding.needs-review { border-color: var(--trust-needs-review-border); background: var(--trust-needs-review-bg); }
.trust-finding.contradiction { border-color: var(--trust-contradiction-border); background: var(--trust-contradiction-bg); }
.trust-finding-icon {
  width: 16px; height: 16px; border-radius: 50%;
  flex-shrink: 0; margin-top: 2px;
}
.trust-finding.verified .trust-finding-icon { background: var(--trust-verified); }
.trust-finding.needs-review .trust-finding-icon { background: var(--trust-needs-review); }
.trust-finding.contradiction .trust-finding-icon { background: var(--trust-contradiction); }
.trust-finding-content { flex: 1; color: var(--text); }
.trust-finding-content strong { font-weight: 600; }
.trust-finding-detail { color: var(--text-dim); font-size: 12px; margin-top: 3px; }

/* ── Section: The Difference (Trust Authority) ── */
.section-difference h2 { font-size: 32px; line-height: 1.25; margin-bottom: 12px; }
.section-difference .section-sub {
  font-size: 16px; color: var(--text-dim); line-height: 1.65;
  max-width: 640px; margin-bottom: 32px;
}

/* ── Section: Foundation (Knowledge Platform) ── */
.section-foundation h2 { font-size: 32px; line-height: 1.25; margin-bottom: 12px; }
.section-foundation .section-sub {
  font-size: 16px; color: var(--text-dim); line-height: 1.65;
  max-width: 640px; margin-bottom: 32px;
}

/* ── Section: Integration ── */
.section-integration {
  text-align: center;
}
.section-integration h2 {
  font-size: 32px; line-height: 1.25; margin-bottom: 16px;
  max-width: 680px; margin-left: auto; margin-right: auto;
}
.section-integration p {
  font-size: 15px; color: var(--text-dim); line-height: 1.65;
  max-width: 640px; margin: 0 auto 24px;
}
.integration-logos {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  padding: 24px 0; margin-top: 16px;
  border-top: 1px solid var(--border);
}
.integration-logo {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 13px; color: var(--text-dim); font-weight: 500;
  opacity: 0.7; transition: opacity 0.2s;
}
.integration-logo:hover { opacity: 1; color: var(--text); }

/* ═══════════════════════════════════════════════════════════════════════
   Trust Demo v2 — Two-panel document + results layout
   ═══════════════════════════════════════════════════════════════════════ */

.trust-demo-samples-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.trust-demo-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent-dim);
}
.trust-demo-samples { display: flex; gap: 8px; flex-wrap: wrap; }

.trust-demo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  min-height: 420px;
}
@media (max-width: 900px) {
  .trust-demo-grid { grid-template-columns: 1fr; }
}

/* ── Document panel (left) ── */
.trust-doc-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 0.3s var(--ease-out-expo);
}
.trust-doc-panel.scanning {
  border-color: var(--accent-dim);
}
.trust-doc-panel.scanning::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--accent-glow) 50%, transparent 100%);
  pointer-events: none; z-index: 2;
  animation: scan-sweep 1.2s linear infinite;
}
@keyframes scan-sweep {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.trust-doc-header {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.trust-doc-chrome { display: flex; gap: 6px; }
.trust-doc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.trust-doc-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500; color: var(--text);
  font-size: 13px;
}
.trust-doc-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text-dim);
  margin-left: auto; opacity: 0.7;
}

.trust-doc-body {
  padding: 20px 24px; flex: 1; overflow-y: auto;
  font-size: 13px; line-height: 1.65; color: var(--text);
}
.trust-doc-body h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500; font-size: 17px; margin-bottom: 10px;
  color: var(--text);
}
.trust-doc-body h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500; font-size: 14px; margin: 16px 0 6px;
  color: var(--text);
}
.trust-doc-body p { margin-bottom: 10px; color: var(--text-dim); }
.trust-doc-body ul, .trust-doc-body ol { padding-left: 20px; margin-bottom: 10px; color: var(--text-dim); }
.trust-doc-body li { margin-bottom: 4px; }
.trust-doc-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; padding: 1px 5px;
  background: var(--surface); border-radius: 4px;
  color: var(--accent);
}
.trust-doc-body pre {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px 12px; margin: 8px 0;
  overflow-x: auto;
}
.trust-doc-body pre code {
  background: transparent; padding: 0; font-size: 11px;
  color: var(--text);
}
.trust-doc-body strong { color: var(--text); font-weight: 600; }

/* Highlighted spans in the doc (revealed during scan) */
.trust-doc-body mark {
  background: transparent; color: inherit;
  padding: 1px 3px; border-radius: 3px;
  transition: background 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.trust-doc-body mark.revealed[data-highlight="verified"] {
  background: var(--trust-verified-bg);
  color: var(--trust-verified);
  box-shadow: 0 0 0 1px var(--trust-verified-border);
}
.trust-doc-body mark.revealed[data-highlight="needs-review"] {
  background: var(--trust-needs-review-bg);
  color: var(--trust-needs-review);
  box-shadow: 0 0 0 1px var(--trust-needs-review-border);
}
.trust-doc-body mark.revealed[data-highlight="contradiction"] {
  background: var(--trust-contradiction-bg);
  color: var(--trust-contradiction);
  box-shadow: 0 0 0 1px var(--trust-contradiction-border);
}

.trust-doc-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* Check button with live pulse */
.trust-check-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; font-size: 14px; min-height: 44px;
  position: relative;
}
.trust-scan-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg); position: relative; display: inline-block;
}
.trust-scan-dot::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; border: 1.5px solid var(--bg);
  animation: pulse-ring 2s var(--ease-out-expo) infinite;
  opacity: 0.5;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(2); opacity: 0; }
}
.trust-check-btn:disabled { cursor: wait; opacity: 0.7; }
.trust-check-btn:disabled .trust-scan-dot::after {
  animation-duration: 0.8s;
}

/* ── Results panel (right) ── */
.trust-results-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.trust-results-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; padding: 40px 24px; text-align: center;
  color: var(--text-dim);
}
.trust-results-empty-icon {
  color: var(--accent-dim); opacity: 0.4; margin-bottom: 14px;
}
.trust-results-empty p { font-size: 14px; }
.trust-results-empty strong { color: var(--text); font-weight: 600; }

.trust-results-content {
  display: none; padding: 20px 24px;
}
.trust-results-content.shown { display: block; animation: results-fade-in 0.4s var(--ease-out-expo); }
@keyframes results-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.trust-results-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.trust-results-eyebrow {
  display: block; font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent-dim); margin-bottom: 4px;
}
.trust-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1; letter-spacing: -0.02em;
}
.trust-score.verified { color: var(--trust-verified); }
.trust-score.needs-review { color: var(--trust-needs-review); }
.trust-score.contradiction { color: var(--trust-contradiction); }
.trust-results-status {
  padding: 4px 10px; border-radius: 9999px;
  font-size: 11px; font-weight: 600;
  border: 1px solid;
}
.trust-results-status.verified { background: var(--trust-verified-bg); color: var(--trust-verified); border-color: var(--trust-verified-border); }
.trust-results-status.needs-review { background: var(--trust-needs-review-bg); color: var(--trust-needs-review); border-color: var(--trust-needs-review-border); }
.trust-results-status.contradiction { background: var(--trust-contradiction-bg); color: var(--trust-contradiction); border-color: var(--trust-contradiction-border); }

.trust-findings { display: flex; flex-direction: column; gap: 10px; }
.trust-finding {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 8px;
  border: 1px solid; font-size: 13px; line-height: 1.5;
  opacity: 0; transform: translateY(6px);
  animation: finding-enter 0.4s var(--ease-out-expo) forwards;
}
@keyframes finding-enter { to { opacity: 1; transform: translateY(0); } }
.trust-finding.verified { border-color: var(--trust-verified-border); background: var(--trust-verified-bg); }
.trust-finding.needs-review { border-color: var(--trust-needs-review-border); background: var(--trust-needs-review-bg); }
.trust-finding.contradiction { border-color: var(--trust-contradiction-border); background: var(--trust-contradiction-bg); }
.trust-finding-icon {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.trust-finding.verified .trust-finding-icon { background: var(--trust-verified-bg); color: var(--trust-verified); border: 1px solid var(--trust-verified-border); }
.trust-finding.needs-review .trust-finding-icon { background: var(--trust-needs-review-bg); color: var(--trust-needs-review); border: 1px solid var(--trust-needs-review-border); }
.trust-finding.contradiction .trust-finding-icon { background: var(--trust-contradiction-bg); color: var(--trust-contradiction); border: 1px solid var(--trust-contradiction-border); }
.trust-finding-content { flex: 1; }
.trust-finding-content strong { color: var(--text); font-weight: 600; font-size: 13px; display: block; margin-bottom: 2px; }
.trust-finding-detail { color: var(--text-dim); font-size: 12px; line-height: 1.55; }

.trust-demo-note {
  margin-top: 14px; font-size: 11px; color: var(--text-dim); opacity: 0.7;
  text-align: center; font-family: 'JetBrains Mono', monospace;
}

/* Reduced motion for the demo */
@media (prefers-reduced-motion: reduce) {
  .trust-doc-panel.scanning::before { animation: none; display: none; }
  .trust-scan-dot::after { animation: none; }
  .trust-finding { animation: none; opacity: 1; transform: none; }
  .trust-doc-body mark { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Hero dynamism — kinetic typography + scroll indicator
   ═══════════════════════════════════════════════════════════════════════ */

/* Kinetic weight animation on the emphasized word */
.hero h1 em {
  display: inline-block;
  font-variation-settings: "wght" 700, "opsz" 144;
  animation: kinetic-weight 3.6s ease-in-out infinite;
}
@keyframes kinetic-weight {
  0%, 100% { font-variation-settings: "wght" 700, "opsz" 144; letter-spacing: 0; }
  50% { font-variation-settings: "wght" 800, "opsz" 144; letter-spacing: -0.01em; }
}

/* Subtle underline draw-in under the em word */
.hero h1 em::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  animation: underline-draw 1.4s var(--ease-out-expo) 2.2s forwards;
}
.hero h1 em { position: relative; }

@keyframes underline-draw {
  to { transform: scaleX(1); }
}

/* Scroll indicator below hero */
.hero-scroll-indicator {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; margin-top: 48px;
  opacity: 0; animation: indicator-fade-in 0.8s var(--ease-out-expo) 3s forwards;
}
.hero-scroll-indicator span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); opacity: 0.5;
}
.hero-scroll-arrow {
  width: 1px; height: 32px; background: var(--accent-dim);
  position: relative; overflow: hidden;
}
.hero-scroll-arrow::after {
  content: ''; position: absolute; top: -100%; left: 0; right: 0;
  height: 50%; background: linear-gradient(180deg, transparent, var(--accent));
  animation: scroll-arrow-drop 2s ease-in-out infinite;
}
@keyframes scroll-arrow-drop {
  0% { top: -100%; }
  100% { top: 100%; }
}
@keyframes indicator-fade-in { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero h1 em { animation: none; }
  .hero h1 em::after { animation: none; transform: scaleX(1); }
  .hero-scroll-indicator { animation: none; opacity: 1; }
  .hero-scroll-arrow::after { animation: none; }
}
