/* ===========================
   Hoot Ventures — p90 Redesign
   Production AI Studio Aesthetic
   =========================== */

/* Variables — Dark Mode */
:root {
  --ink: #f4efe7;
  --ink-light: #c8cdd5;
  --ink-muted: #8896ab;
  --text-primary: #f4efe7;
  --text-secondary: #a6b4c6;
  --text-muted: #738399;
  --paper: #0d1116;
  --paper-light: #121922;
  --card-bg: #161f2b;
  --card-border: rgba(196, 211, 230, 0.14);
  --accent: #0DB7A3;
  --accent-dark: #10d4bc;
  --accent-light: rgba(13, 183, 163, 0.12);
  --highlight: #FFB86B;
  --highlight-light: rgba(255, 184, 107, 0.12);
  --white: #f4efe7;
  --surface-dark: #0a0f14;
  --surface-raised: #121922;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.35);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 5rem;
}

/* ===========================
   Desktop / Mobile System
   Two separate experiences, one codebase.
   =========================== */
.desktop-only { display: block; }
.mobile-only  { display: none;  }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only  { display: block !important; }
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(180deg, #0a0f14 0%, #0d1116 20%, #0d1116 100%);
}

/* Scroll lock when modal is open — set on <html> only so body::before and position:fixed children still work */
html.modal-open {
  overflow: hidden;
}

/* Subtle grid overlay — also fixed to the viewport */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
  z-index: -1;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  background: transparent;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Fixed glow layer — position:fixed element works on iOS Safari unlike background-attachment:fixed */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(13, 183, 163, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(255, 184, 107, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(13, 183, 163, 0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

small, .text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.8rem; }

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

/* ===========================
   Layout
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--space-4xl) 0;
  position: relative;
}

section[id] {
  scroll-margin-top: 80px;
}

/* ===========================
   Navigation
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav.scrolled {
  background: rgba(13, 17, 22, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--card-border);
  padding: 0.6rem 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo-mark {
  height: 34px;
  width: auto;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-mark {
  transform: scale(1.05);
}

.nav-logo-mark img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  background: var(--accent);
  color: var(--surface-dark) !important;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--ink-light);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  display: flex;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13, 17, 22, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  border: none;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--accent);
  color: var(--surface-dark);
  box-shadow: 0 4px 20px rgba(13, 183, 163, 0.3);
}

.btn-primary:hover {
  color: var(--surface-dark);
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 183, 163, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-accent {
  background: var(--accent);
  color: var(--surface-dark);
  box-shadow: 0 4px 16px rgba(13, 183, 163, 0.3);
}

.btn-accent:hover {
  color: var(--white);
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 183, 163, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.85rem 0;
}

.btn-ghost:hover {
  color: var(--accent-dark);
}

.btn-ghost svg {
  transition: transform 0.2s ease;
}

.btn-ghost:hover svg {
  transform: translateX(3px);
}

/* ===========================
   Section Labels
   =========================== */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(13, 183, 163, 0.35);
  border-radius: 2rem;
  padding: 0.35rem 1rem;
  margin-bottom: var(--space-md);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 var(--space-4xl);
  background: transparent;
  color: var(--white);
  position: relative;
}

/* .hero::before removed — glows now live on html with background-attachment: fixed
   so they remain visible throughout the entire scroll journey */

/* Single fixed particle canvas — covers full viewport, spans hero + gauntlet */
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
  align-items: center;
  max-width: 950px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(3.25rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.accent-word {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.15s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero .btn-primary {
  background: var(--accent);
  box-shadow: 0 4px 20px rgba(13, 183, 163, 0.3);
}

.hero .btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 8px 30px rgba(13, 183, 163, 0.4);
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero .btn-secondary:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-microcopy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.45s forwards;
}

/* Trust strip */
.trust-strip {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.trust-strip-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.75rem;
}

.trust-strip-logos {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.trust-strip-logos span {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

/* Hero right side - phone mockup */
.hero-visual {
  position: relative;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-phone-wrap {
  position: relative;
  display: inline-block;
}

.hero-phone-img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.6)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

/* Connecting lines (SVG) — kept for potential reuse */
.hero-lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-lines line {
  stroke: rgba(13, 183, 163, 0.15);
  stroke-width: 1;
  stroke-dasharray: 6 4;
}

/* ===========================
   Proof Cards Section
   =========================== */
.proof-section {
  padding: var(--space-3xl) 0;
  background: var(--paper);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.proof-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.proof-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.proof-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  margin-bottom: var(--space-sm);
}

.proof-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.proof-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.proof-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.proof-card:nth-child(1) .proof-card-accent { background: var(--accent); }
.proof-card:nth-child(2) .proof-card-accent { background: var(--highlight); }
.proof-card:nth-child(3) .proof-card-accent { background: var(--surface-raised); }

/* Metric callouts inside proof cards */
.proof-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.proof-metric {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

/* ===========================
   Problem Section
   =========================== */
.problem-section {
  background: var(--surface-raised);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.problem-text h2 {
  margin-bottom: var(--space-md);
}

.problem-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.problem-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}

.problem-list li {
  margin-bottom: 0.25rem;
}

.problem-punchline {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: var(--space-md);
}

.problem-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.problem-compare {
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.problem-compare-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.problem-compare-flow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.problem-compare-flow span {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
}

.problem-compare-flow .arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0;
  background: none;
}

.compare-demo {
  background: var(--paper-light);
  border: 1px dashed rgba(196, 211, 230, 0.15);
}

.compare-demo .problem-compare-label {
  color: var(--text-muted);
}

.compare-demo .problem-compare-flow span:not(.arrow) {
  background: var(--card-bg);
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
}

.compare-production {
  background: var(--surface-raised);
}

.compare-production .problem-compare-label {
  color: var(--accent);
}

.compare-production .problem-compare-flow span:not(.arrow) {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.compare-production .problem-compare-flow .arrow {
  color: rgba(255, 255, 255, 0.35);
}

/* ===========================
   Deterministic Hardening Section
   =========================== */
.deterministic-hardening-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px;
  background-color: transparent;
  text-align: center;
  scroll-margin-top: 56px;
  border-top: 1px solid var(--card-border);
}

/* ── Header Block ── */
.header-block {
  max-width: 800px;
  margin-bottom: 64px;
}

.gs-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(13, 183, 163, 0.35);
  border-radius: 2rem;
  padding: 0.35rem 1rem;
  margin-bottom: 2rem;
}

.gs-headline {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.gs-subtext {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Ring Wrapper: positions HTML labels over the SVG ── */
.ring-wrapper {
  position: relative;
  width: 100%;
  max-width: clamp(400px, 75vw, 620px);
  margin: 0 auto;
  aspect-ratio: 1;
}

.gs-ring-diagram {
  width: 100%;
  height: 100%;
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Ring border circles — match 01-03 top edge */
.gs-ring-border {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2;
}

/* Segment fills only (no stroke — diagonal seams removed) */
.gs-seg {
  fill: rgba(255, 255, 255, 0.02);
  stroke: none;
  transition: fill 0.3s ease;
}
.gs-seg:hover {
  fill: rgba(255, 255, 255, 0.04);
}

/* Vertical + horizontal dividers */
.gs-divider {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2;
}

/* Quadrant text inside the donut — matches old card typography */
.gs-quad-num {
  font-size: 38px;
  font-weight: 800;
  fill: rgba(255, 255, 255, 0.07);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.gs-quad-num--ai {
  fill: rgba(180, 138, 255, 0.12);
}
.gs-quad-title {
  font-size: 14px;
  font-weight: 700;
  fill: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.02em;
}
.gs-quad-title--ai {
  fill: #b48aff;
}
.gs-center-body {
  font-size: 13.6px;
  fill: rgba(255, 255, 255, 0.48);
}

/* Corner descriptions — outside the donut ring */
.gs-corner-label {
  font-size: 13.6px;
  fill: rgba(255, 255, 255, 0.48);
  font-family: inherit;
}

/* Curved label hugging the donut */
.gs-curved-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  fill: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

/* ── Corner description labels (outside the ring) ── */
.ring-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  max-width: 170px;
}

.ring-label-body {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.55;
}

/* Position each label at the visual center of its donut segment */
.ring-label--nw {
  top: 14%;
  left: 6%;
  text-align: left;
}
.ring-label--ne {
  top: 14%;
  right: 6%;
  text-align: right;
  align-items: flex-end;
}
.ring-label--sw {
  bottom: 14%;
  left: 6%;
  text-align: left;
}
.ring-label--se {
  bottom: 14%;
  right: 6%;
  text-align: right;
  align-items: flex-end;
}

/* ── Ring description list (mobile only, hidden on desktop) ── */
.ring-desc-list {
  display: none;
}

/* ── Footer Block (Mic Drop) ── */
.footer-block {
  margin-top: 40px;
  max-width: 600px;
}

.footer-block h3 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

/* ===========================
   Production AI Stack Section
   =========================== */
.blueprint-section {
  background: transparent;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

.blueprint-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.blueprint-header h2 {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: var(--space-sm);
}

.blueprint-header p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* Data flow connector between sections */
.bp-flow-connector {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 2rem;
  position: relative;
}
.bp-flow-connector::before {
  content: '';
  width: 1px;
  background: linear-gradient(to bottom, var(--card-border), rgba(196, 211, 230, 0.08));
}
.bp-flow-connector::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-right: 1px solid rgba(196, 211, 230, 0.3);
  border-bottom: 1px solid rgba(196, 211, 230, 0.3);
  transform: translateX(-50%) rotate(45deg);
}
.bp-flow-connector--write::before {
  background: linear-gradient(to bottom, rgba(255, 156, 80, 0.3), rgba(255, 156, 80, 0.08));
}
.bp-flow-connector--write::after {
  border-color: rgba(255, 156, 80, 0.4);
}

/* Full-width horizontal rail (inputs / outputs) */
.bp-rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
}
.bp-rail--inputs {
  border-top: 2px solid rgba(196, 211, 230, 0.15);
}
.bp-rail--outputs {
  border-bottom: 2px solid rgba(13, 183, 163, 0.2);
}
.bp-rail-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.bp-rail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.bp-rail-pills .rail-item {
  justify-content: center;
  text-align: center;
}

/* Full-width layer stack */
.bp-layer-stack {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* Legacy: Side rails (kept for responsive fallback) */
.stack-rail {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.75rem;
  padding: 1.25rem;
  position: sticky;
  top: 5rem;
}

.rail-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: left;
}

.rail-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: left;
}

.rail-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rail-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: default;
}

.rail-item:hover {
  border-color: rgba(13, 183, 163, 0.35);
  background: rgba(13, 183, 163, 0.06);
  color: var(--text-primary);
}

.rail-num {
  font-size: 0.68rem;
  color: var(--ink-muted);
}

/* Layer cards */
.stack-layers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.layer-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.layer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.layer-card--accent {
  border-color: rgba(13, 183, 163, 0.25);
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(13, 183, 163, 0.04) 100%);
}

.layer-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.layer-eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.layer-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.layer-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 0.5rem;
}

.layer-num-badge {
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  border: 1px solid rgba(196, 211, 230, 0.12);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.55;
}

.layer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.layer-tag {
  display: inline-flex;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: default;
}

.layer-tag:hover {
  border-color: rgba(196, 211, 230, 0.3);
  background: rgba(255, 255, 255, 0.07);
}

.layer-tag--accent {
  border-color: rgba(13, 183, 163, 0.2);
  background: rgba(13, 183, 163, 0.05);
  color: var(--text-secondary);
}

.layer-tag--accent:hover {
  background: rgba(13, 183, 163, 0.1);
  border-color: rgba(13, 183, 163, 0.4);
}

.layer-callout {
  margin-top: 1rem;
  display: inline-flex;
  border: 1px solid rgba(13, 183, 163, 0.3);
  background: rgba(13, 183, 163, 0.08);
  color: var(--accent);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ── The Read/Write Fork — the key architectural claim ── */
.path-fork {
  text-align: center;
  padding: 1rem 0 0.25rem;
  position: relative;
}

.path-fork::before {
  content: '';
  display: block;
  width: 1px;
  height: 1.25rem;
  background: var(--card-border);
  margin: 0 auto 0.75rem;
}

.path-fork::after {
  content: '';
  display: block;
  width: 60%;
  height: 1px;
  background: var(--card-border);
  margin: 0.75rem auto 0;
}

.path-fork-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Two-column read/write split */
.layer-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Read path styling */
.layer-card--read {
  border-color: rgba(196, 211, 230, 0.18);
}

.layer-eyebrow--read {
  color: var(--text-secondary);
}

.layer-tag--read {
  border-color: rgba(196, 211, 230, 0.15);
  background: rgba(196, 211, 230, 0.04);
  color: var(--text-secondary);
}

.layer-tag--read:hover {
  border-color: rgba(196, 211, 230, 0.3);
  background: rgba(196, 211, 230, 0.08);
}

/* Write path styling — more visually distinct, danger zone */
.layer-card--write {
  border-color: rgba(255, 140, 66, 0.25);
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 140, 66, 0.03) 100%);
}

.layer-eyebrow--write {
  color: #ff9c50;
}

.layer-tag--write {
  border-color: rgba(255, 140, 66, 0.2);
  background: rgba(255, 140, 66, 0.05);
  color: var(--text-secondary);
}

.layer-tag--write:hover {
  background: rgba(255, 140, 66, 0.1);
  border-color: rgba(255, 140, 66, 0.4);
}

.layer-card--write .layer-callout {
  border-color: rgba(255, 140, 66, 0.3);
  background: rgba(255, 140, 66, 0.08);
  color: #ff9c50;
}

/* Path arrows below each split card */
.path-arrow {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.path-arrow svg {
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

/* Write-path rail item highlight */
.rail-item--write {
  border-color: rgba(255, 140, 66, 0.25);
  color: #ff9c50;
}

.rail-item--write:hover {
  border-color: rgba(255, 140, 66, 0.45);
  background: rgba(255, 140, 66, 0.08);
  color: #ff9c50;
}

/* Meta rail items (non-input properties) */
.rail-item--meta {
  border-style: dashed;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

/* Fallback callout in the right rail */
.rail-fallback {
  margin-top: 1rem;
  padding: 0.75rem;
  border: 1px dashed rgba(196, 211, 230, 0.2);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.rail-fallback-title {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
}

.rail-fallback-line {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-style: italic;
}

/* Stack footer bar */
.stack-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 1.5rem;
  padding: 1.25rem 1.75rem;
}

.stack-footer-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stack-footer-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.stack-provenance-badge {
  flex-shrink: 0;
  border: 1px solid rgba(13, 183, 163, 0.3);
  background: rgba(13, 183, 163, 0.08);
  color: var(--accent);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}


/* ===========================
   Proof / Credibility Section
   =========================== */
.credibility-section {
  background: transparent;
}

.credibility-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: center;
}

.credibility-text h2 {
  margin-bottom: var(--space-md);
}

.credibility-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.credibility-text ul {
  list-style: none;
  margin: var(--space-md) 0;
}

.credibility-text ul li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.credibility-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.founder-line {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--card-border);
}

.founder-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.founder-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.founder-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Metrics strip */
.metrics-strip {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-2xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.metric-item {
  padding: var(--space-sm) 0;
}

.metric-value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===========================
   Products Section
   =========================== */
.products-section {
  background: transparent;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.product-info h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.25rem;
}

.product-tagline {
  font-size: 1.05rem;
  color: var(--accent-dark);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.product-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.product-features {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.product-features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 1.5px solid var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230DB7A3'%3E%3Cpath d='M8.5 13.3 5.7 10.5l1-1L8.5 11.3l4.8-4.8 1 1z'/%3E%3C/svg%3E");
}

.product-visual {
  display: flex;
  justify-content: center;
}

/* Phone Mockup */
.phone-mockup {
  width: 100%;
  max-width: 260px;
  background: var(--surface-raised);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #050a15;
  border-radius: 16px;
  z-index: 2;
}

.phone-screen {
  background: #F7F5F2;
  border-radius: 26px;
  padding: 2rem 1rem 1rem;
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.mock-app-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1c1917;
}

.mock-date {
  font-size: 0.7rem;
  color: #78716c;
}

.mock-child-tab {
  background: #5B8DB8;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  display: inline-block;
}

.mock-card {
  background: white;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.4rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mock-card-badge {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.mock-badge-urgent { background: #FEF2F2; color: #DC2626; }
.mock-badge-info { background: #EDF1F6; color: #5B8DB8; }
.mock-badge-calendar { background: #FEF3C7; color: #92400E; }
.mock-badge-task { background: #F0FDF4; color: #16A34A; }

.mock-card-text {
  font-size: 0.68rem;
  color: #44403c;
  line-height: 1.35;
}

/* ===========================
   Services Section
   =========================== */
.services-section {
  background: transparent;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card h3 {
  margin-bottom: var(--space-xs);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.services-note {
  text-align: center;
  margin-top: var(--space-2xl);
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ===========================
   Culture Section
   =========================== */
.culture-section {
  background: transparent;
  color: var(--white);
}

.culture-section h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.culture-content {
  max-width: 640px;
}

.culture-content p {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.culture-values {
  list-style: none;
  margin: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.culture-values li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.7;
}

.culture-values li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 8px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.culture-section .btn-accent {
  margin-top: var(--space-sm);
}

/* ===========================
   What We Do — Combined Section
   =========================== */
.whatwedo-section {
  background: transparent;
  border-top: 1px solid var(--card-border);
  scroll-margin-top: 56px;
}

.whatwedo-header {
  max-width: 680px;
  margin-bottom: var(--space-2xl);
}

.whatwedo-header h2 {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: var(--space-sm);
}

.whatwedo-subhead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 540px;
}

/* Gist showcase */
.gist-showcase {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-3xl);
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  padding: 2.5rem 3rem;
  margin-bottom: var(--space-2xl);
}

.gist-launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13, 183, 163, 0.1);
  border: 1px solid rgba(13, 183, 163, 0.3);
  color: var(--accent-dark);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}

.launch-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseGlow 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(13, 183, 163, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(13, 183, 163, 0); }
}

.gist-name {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1;
}

.gist-tagline {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

.gist-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 480px;
}

.gist-proof-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.gist-proof-callout svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 1px;
}

.gist-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Studio divider */
.studio-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: var(--space-2xl) 0 var(--space-lg);
}

.studio-divider-line {
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

.studio-divider-text {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* Studio intro */
.studio-intro {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

.studio-intro p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Three engagement modes */
.studio-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: var(--space-2xl);
}

.studio-mode {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.75rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.studio-mode:hover {
  border-color: rgba(196, 211, 230, 0.28);
  transform: translateY(-2px);
}

.studio-mode--featured {
  border-color: rgba(13, 183, 163, 0.2);
  background: linear-gradient(160deg, var(--card-bg) 0%, rgba(13, 183, 163, 0.04) 100%);
}

.studio-mode--featured:hover {
  border-color: rgba(13, 183, 163, 0.4);
}

.mode-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.mode-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.mode-type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.studio-mode--featured .mode-type {
  color: var(--accent-dark);
}

.mode-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.mode-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1rem;
}

.mode-for {
  font-size: 0.76rem;
  color: var(--ink-muted);
  font-style: italic;
  line-height: 1.5;
  padding-top: 0.75rem;
  border-top: 1px solid var(--card-border);
}

/* Studio footer: credentials + CTA */
.studio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
}

.studio-creds {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.creds-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}

.creds-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cred-sep {
  color: var(--ink-muted);
}

/* ===========================
   Reference Implementation
   =========================== */
.ref-impl-section {
  padding: 100px 0;
  border-top: 1px solid var(--card-border);
}

.ref-impl-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.ref-impl-text .section-label {
  margin-bottom: var(--space-md);
}

.ref-impl-text h2 {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.ref-impl-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.ref-impl-proof {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1.5rem;
}

.ref-impl-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ===========================
   Engagement Models
   =========================== */
.engagement-section {
  padding: 100px 0;
  border-top: 1px solid var(--card-border);
}

.engagement-header {
  text-align: center;
  margin-bottom: 4rem;
}

.engagement-header h2 {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.1;
  margin-top: var(--space-sm);
}

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.engagement-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.engagement-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.engagement-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===========================
   About the Founder
   =========================== */
.founder-section {
  padding: 100px 0;
}

.founder-grid {
  max-width: 680px;
  margin: 0 auto;
}

.founder-narrative h2 {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.founder-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.founder-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.founder-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.founder-social-link:hover { color: var(--text-primary); }

.founder-facts {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 0.25rem;
}

.founder-fact-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.founder-fact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.founder-fact-line {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===========================
   Footer CTA
   =========================== */
.footer-cta-section {
  padding: 80px 0;
  border-top: 1px solid var(--card-border);
}

.footer-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-cta-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
}

.footer-cta-action {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.footer-cta-discuss {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

/* ===========================
   Mobile: New lower sections
   =========================== */
.m-ref-proof {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1.25rem;
}

.m-engagement-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.m-engagement-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.m-engagement-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}

.m-engagement-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.m-founder-facts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
}

.m-founder-fact-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ===========================
   Contact Section (legacy — keep for other pages referencing)
   =========================== */
.contact-section {
  background: transparent;
  padding: var(--space-4xl) 0;
}

.contact-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-text h2 {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: var(--space-md);
}

.contact-text p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-dark);
  padding: 0.75rem 1.5rem;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.contact-email-link:hover {
  color: var(--white);
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(13, 183, 163, 0.3);
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: rgba(7, 10, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--card-border);
  color: var(--white);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 300px;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
}

.footer-logo-mark {
  height: 34px;
  width: auto;
  display: flex;
  align-items: center;
}

.footer-logo-mark img {
  height: 34px;
  width: auto;
  display: block;
}

.footer-logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.footer-links-section {
  display: flex;
  gap: var(--space-2xl);
}

.footer-links-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-sm);
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links-col a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.78rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ===========================
   Content Pages (Privacy, Terms, Support)
   =========================== */
.content-page {
  padding-top: 6rem;
  padding-bottom: var(--space-3xl);
  min-height: 100vh;
  background: var(--paper);
}

.content-page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.content-page .page-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
}

.content-page h2 {
  font-size: 1.4rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
  color: var(--ink);
}

.content-page h3 {
  font-size: 1.125rem;
  margin-top: var(--space-md);
  margin-bottom: 0.5rem;
}

.content-page p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.content-page ul, .content-page ol {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
  padding-left: 1.5rem;
}

.content-page li {
  margin-bottom: 0.4rem;
}

.content-page a {
  color: var(--accent-dark);
}

.content-page .glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-md) 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--shadow-sm);
}

.content-page .glass-card:hover {
  transform: none;
}

/* Support-specific */
.faq-item {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--card-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  color: var(--ink);
  margin-bottom: 0.35rem;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===========================
   (capstack/pipeline styles removed — replaced by gauntlet)
   =========================== */


/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .layer-split {
    grid-template-columns: 1fr;
  }

  .stack-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .credibility-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {

  /* ── Navigation ── */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* ── General spacing — tighter on mobile ── */
  section { padding: var(--space-2xl) 0; }

  /* ── Particle canvas: enabled on mobile, behind all content ── */
  #particleCanvas { display: block; z-index: 0; }
  .mobile-only { position: relative; z-index: 1; }

  /* ──────────────────────────────────────
     HERO — Full-bleed, centered manifesto
  ────────────────────────────────────── */
  .hero {
    padding: 5rem 0 var(--space-xl);
    text-align: center;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .hero-visual { display: none; }
  .hero-content h1 {
    font-size: clamp(2.6rem, 10vw, 4rem);
    line-height: 1.05;
  }
  .hero-subtitle {
    font-size: 0.975rem;
    line-height: 1.65;
    max-width: 34ch;
    margin: 0 auto;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .hero-cta .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* ──────────────────────────────────────
     HOW WE BUILD — collapse pipeline panel to 2-col
  ────────────────────────────────────── */
  .deterministic-hardening-section { padding: 4rem 0 3rem; }
  .gs-headline { font-size: clamp(2rem, 9vw, 2.75rem); }
  .footer-block h3 { font-size: clamp(1.1rem, 5vw, 1.5rem); }

  /* Ring diagram: hide corner labels on mobile, show desc list below */
  .ring-label { display: none; }
  .ring-wrapper { max-width: 75vw; margin: 0 auto; }
  .ring-desc-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 0 1.25rem;
    max-width: 400px;
  }
  .ring-desc-item {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
  }
  .ring-desc-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
  }
  .ring-desc-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.5;
  }


  /* ──────────────────────────────────────
     BLUEPRINT — Vertical flow, no rails
  ────────────────────────────────────── */

  .blueprint-header { text-align: center; }
  .blueprint-header h2 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }
  .blueprint-header p {
    font-size: 0.925rem;
  }

  /* Layer cards: compact, strip subtitle, keep tags */
  .layer-card {
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.625rem;
    border-radius: var(--radius-md);
  }
  .layer-card-top { margin-bottom: 0.625rem; gap: 0.5rem; }
  .layer-title { font-size: 1rem; }
  .layer-subtitle { display: none; }
  .layer-num-badge { display: none; }
  .layer-tag {
    font-size: 0.68rem;
    padding: 0.2rem 0.55rem;
  }
  .layer-callout {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    margin-top: 0.75rem;
  }

  /* Fork: prominent divider */
  .path-fork {
    margin: 0.25rem 0;
    padding: 0.875rem 1.25rem;
    font-size: 0.8rem;
    border-radius: var(--radius-md);
    text-align: center;
  }

  /* Read/write: stacked 1-col */
  .layer-split { grid-template-columns: 1fr; gap: 0.625rem; }

  /* Stack footer: just the badge */
  .stack-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .stack-footer-desc { display: none; }

  /* ──────────────────────────────────────
     WHAT WE DO — Gist + Studio modes
  ────────────────────────────────────── */
  .whatwedo-header { text-align: center; }
  .whatwedo-header h2 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }
  .whatwedo-subhead { font-size: 0.925rem; }

  /* Gist showcase */
  .gist-showcase {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .gist-visual {
    order: -1;
    display: flex;
    justify-content: center;
  }
  .gist-name { font-size: 2.25rem; }
  /* Keep tagline + proof callout; hide long description */
  .gist-desc { display: none; }
  .gist-proof-callout { font-size: 0.825rem; }

  /* Studio divider */
  .studio-divider { margin: 2rem 0 1.5rem; }
  .studio-divider-text {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    white-space: normal;
    text-align: center;
  }
  .studio-intro { font-size: 0.925rem; text-align: center; }

  /* Studio modes: compact list — not full cards
     Each mode: number + title only. Hide verbose desc. */
  .studio-modes {
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .studio-mode {
    padding: 1.25rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--card-border);
  }
  .studio-mode:last-child { border-bottom: none; }
  .studio-mode--featured {
    border-left: 3px solid var(--accent);
  }
  .mode-header { margin-bottom: 0.5rem; gap: 0.5rem; }
  .mode-num { font-size: 0.7rem; }
  .mode-type { font-size: 0.7rem; }
  .mode-title {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }
  /* Hide verbose descriptions — "For..." qualifier is enough */
  .mode-desc { display: none; }
  .mode-for {
    font-size: 0.8rem;
    margin-top: 0;
    padding-top: 0.625rem;
    border-top: 1px solid var(--card-border);
  }

  /* Studio footer / credentials */
  .studio-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .creds-list { gap: 0.3rem; }

  /* ──────────────────────────────────────
     REFERENCE IMPLEMENTATION + ENGAGEMENT + FOUNDER
  ────────────────────────────────────── */
  .ref-impl-section { padding: 60px 0; }
  .ref-impl-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .ref-impl-visual { display: none; }

  .engagement-section { padding: 60px 0; }
  .engagement-grid { grid-template-columns: 1fr; gap: 1rem; }

  .founder-section { padding: 60px 0; }
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* ──────────────────────────────────────
     FOOTER CTA + FOOTER
  ────────────────────────────────────── */
  .footer-cta-section { padding: 50px 0; }
  .footer-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .footer-cta-action {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* ──────────────────────────────────────
     CONTACT + FOOTER (legacy)
  ────────────────────────────────────── */
  .footer-inner {
    flex-direction: column;
    gap: var(--space-lg);
  }
  .footer-links-section { gap: var(--space-2xl); }

  /* Legacy / unused on current build — keep for safety */
  .proof-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .product-showcase { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .services-grid { grid-template-columns: 1fr; }
  .metrics-strip { grid-template-columns: 1fr; gap: 0; padding: var(--space-md); }
  .metric-item { padding: var(--space-sm); border-bottom: 1px solid var(--card-border); }
  .metric-item:last-child { border-bottom: none; }
  .phone-mockup { width: 240px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .hero-cta { align-items: stretch; }
  .btn { width: 100%; justify-content: center; }
  .trust-strip-logos { gap: 1rem; }
  .footer-block { margin-top: 20px; }
  .footer-block h3 { font-size: clamp(1rem, 5.5vw, 1.35rem); }

  /* Ring diagram: horizontal scroll container — bypasses body overflow-x:hidden */
  .ring-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
  .ring-scroll-container .ring-wrapper {
    width: 560px;
    max-width: none;
    padding: 0 100px;
    box-sizing: content-box; /* padding is extra space for corner label overflow */
    margin: 0 auto;
  }
}


/* =====================================================
   MOBILE SYSTEM — Purpose-built experience for < 768px
   Not overrides. A separate editorial format.
   ===================================================== */

/* Base */
.m-container { max-width: 100%; padding: 0 1.25rem; }
.m-section { padding: 3.75rem 0; }

/* Section typography */
.m-section-label {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(13, 183, 163, 0.35);
  border-radius: 2rem;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.25rem;
}
.m-section-h2 {
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.875rem;
}
.m-section-sub {
  font-size: 0.925rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
}

/* ── M1: Hero ── */
.m-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5.5rem 0 3.5rem;
}
.m-hero-h1 {
  font-size: clamp(2.6rem, 11vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.m-hero-sub {
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.m-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.m-ctas .btn {
  width: 100%;
  justify-content: center;
}

/* ── M2: Principles (How We Build) — now a sticky scrollytelling section ── */
/* border-top removed: section has its own sticky structure */

.m-principles-list {
  position: relative;
  margin-bottom: 0;
}
/* Continuous teal rail */
.m-principles-list::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(13,183,163,0.2) 100%);
}
.m-principle {
  padding: 1.375rem 0 1.375rem 1.5rem;
  position: relative;
}
/* Rail dot */
.m-principle::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 1.75rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(13,183,163,0.7);
}
.m-principle + .m-principle {
  border-top: 1px solid rgba(196,211,230,0.06);
}
.m-principle-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}
.m-principle-tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 3px;
}
.m-tag-det {
  background: rgba(13,183,163,0.1);
  color: var(--accent);
  border: 1px solid rgba(13,183,163,0.2);
}
.m-tag-prob {
  background: rgba(180,138,255,0.1);
  color: #b48aff;
  border: 1px solid rgba(180,138,255,0.2);
}
.m-principle-num {
  font-size: 0.875rem;
  font-weight: 800;
  color: rgba(244,239,231,0.18);
  font-variant-numeric: tabular-nums;
}
.m-principle-h {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}
.m-principle-h--prob { color: #b48aff; }
.m-principle-body {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
/* Mic drop */
.m-micdrop {
  border: 1px solid var(--card-border);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  background: rgba(13,183,163,0.03);
  margin-top: 0;
}
.m-micdrop p {
  font-size: clamp(0.95rem, 4.5vw, 1.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.7;
}

/* ── M3: Blueprint ── */
.m-blueprint { border-top: 1px solid var(--card-border); }

.m-stack { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.375rem; }

/* Input chips */
.m-stack-input {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: rgba(196,211,230,0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
}
.m-stack-io-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.m-stack-io-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.m-stack-io-chips span {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  background: rgba(196,211,230,0.06);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
}
/* Arrow */
.m-stack-arrow {
  text-align: center;
  color: rgba(196,211,230,0.25);
  font-size: 0.875rem;
  line-height: 1;
  padding: 0.1rem 0;
}
/* Layer row */
.m-stack-layer {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
}
.m-layer-num {
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(196,211,230,0.08);
  color: var(--text-secondary);
  margin-top: 0.1rem;
}
.m-layer-num--read { background: rgba(13,183,163,0.15); color: var(--accent); }
.m-layer-num--write { background: rgba(255,156,80,0.15); color: #ff9c50; }
.m-layer-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}
.m-layer-tags {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}
/* Read/write split */
.m-stack-split { display: flex; flex-direction: column; gap: 0.375rem; }
.m-stack-layer--read { border-color: rgba(13,183,163,0.2); }
.m-stack-layer--write { border-color: rgba(255,156,80,0.25); }
.m-stack-layer--memory {
  border-color: rgba(13,183,163,0.15);
  background: rgba(13,183,163,0.03);
}
/* Fork label */
.m-stack-fork {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0;
}
.m-stack-fork-line { flex: 1; height: 1px; background: rgba(196,211,230,0.1); }
.m-stack-fork span {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
/* Blueprint footer badge (legacy — kept for safety) */
.m-blueprint-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff9c50;
  padding: 0.75rem;
  border: 1px solid rgba(255,156,80,0.2);
  border-radius: var(--radius-md);
  background: rgba(255,156,80,0.04);
}

/* ══════════════════════════════════════════════
   MOBILE BLUEPRINT — Waterfall Layout
   ══════════════════════════════════════════════ */

/* Observability status bar */
.m-bp-observability {
  margin-top: 1.75rem;
  padding: 0.875rem 1rem;
  background: rgba(13,183,163,0.03);
  border: 1px solid rgba(13,183,163,0.12);
  border-left: 3px solid rgba(13,183,163,0.4);
  border-radius: var(--radius-md);
}
.m-bp-obs-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.m-bp-obs-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Flow connector between sections */
.m-bp-connector {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 1.5rem;
  position: relative;
}
.m-bp-connector::before {
  content: '';
  width: 1px;
  background: linear-gradient(to bottom, var(--card-border), rgba(196,211,230,0.06));
}
.m-bp-connector::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-right: 1px solid rgba(196,211,230,0.3);
  border-bottom: 1px solid rgba(196,211,230,0.3);
  transform: translateX(-50%) rotate(45deg);
}
.m-bp-connector--write::before {
  background: linear-gradient(to bottom, rgba(255,156,80,0.35), rgba(255,156,80,0.06));
}
.m-bp-connector--write::after {
  border-color: rgba(255,156,80,0.5);
}

/* Input / Output rail */
.m-bp-rail {
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.m-bp-rail--inputs { border-top: 2px solid rgba(196,211,230,0.15); }
.m-bp-rail--outputs { border-bottom: 2px solid rgba(13,183,163,0.25); }
.m-bp-rail-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.m-bp-rail-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: -0.2rem;
}

/* Chip pills */
.m-bp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.m-bp-chips span {
  display: inline-flex;
  padding: 0.22rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: 100px;
}
.m-bp-chips--layer span {
  background: rgba(255,255,255,0.03);
  border-color: rgba(196,211,230,0.12);
  font-size: 0.68rem;
}
.m-bp-chips--read span {
  background: rgba(196,211,230,0.04);
  border-color: rgba(196,211,230,0.15);
}
.m-bp-chips--write span {
  background: rgba(255,156,80,0.05);
  border-color: rgba(255,156,80,0.2);
  color: var(--text-secondary);
}
.m-bp-chips--accent span {
  background: rgba(13,183,163,0.05);
  border-color: rgba(13,183,163,0.2);
  color: var(--text-secondary);
}

/* Layer stack */
.m-bp-layers {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Thin connector between individual layers */
.m-bp-layer-connector {
  height: 0.6rem;
  display: flex;
  justify-content: center;
}
.m-bp-layer-connector::before {
  content: '';
  width: 1px;
  background: rgba(196,211,230,0.1);
}

/* Layer card */
.m-bp-layer {
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.m-bp-layer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.m-bp-layer-meta { flex: 1; }
.m-bp-layer-eyebrow {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: block;
}
.m-bp-layer-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
}
.m-bp-layer-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(196,211,230,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-top: 0.1rem;
  opacity: 0.6;
}
.m-bp-layer-num--memory {
  background: rgba(13,183,163,0.15);
  color: var(--accent);
  border-color: rgba(13,183,163,0.25);
  opacity: 1;
}
.m-bp-layer-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Cost zone labels */
.m-bp-cost-label {
  display: inline-flex;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.m-bp-cost-det {
  background: rgba(196,211,230,0.07);
  color: var(--text-muted);
  border: 1px solid rgba(196,211,230,0.12);
}
.m-bp-cost-ai {
  background: rgba(255,184,107,0.1);
  color: var(--highlight);
  border: 1px solid rgba(255,184,107,0.2);
}

/* Fallback note */
.m-bp-fallback {
  font-size: 0.7rem;
  font-style: italic;
  color: var(--highlight);
  opacity: 0.8;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,184,107,0.1);
}

/* Read / Write path cards */
.m-bp-layer--read {
  border-color: rgba(196,211,230,0.18);
}
.m-bp-eyebrow--read { color: var(--text-secondary); }

.m-bp-layer--write {
  border-color: rgba(255,156,80,0.28);
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255,156,80,0.03) 100%);
  margin-top: 0.5rem;
}
.m-bp-eyebrow--write { color: #ff9c50; }

/* Callout pills */
.m-bp-callout {
  display: inline-flex;
  border-radius: 100px;
  padding: 0.3rem 0.875rem;
  font-size: 0.72rem;
  font-weight: 600;
}
.m-bp-callout--write {
  border: 1px solid rgba(255,156,80,0.3);
  background: rgba(255,156,80,0.08);
  color: #ff9c50;
}
.m-bp-callout--accent {
  border: 1px solid rgba(13,183,163,0.3);
  background: rgba(13,183,163,0.08);
  color: var(--accent);
}

/* Fork label */
.m-bp-fork {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 0 0.5rem;
}
.m-bp-fork-line { flex: 1; height: 1px; background: rgba(196,211,230,0.1); }
.m-bp-fork span {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Governed Memory */
.m-bp-memory {
  padding: 1rem;
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(13,183,163,0.04) 100%);
  border: 1px solid rgba(13,183,163,0.2);
  border-top: 2px solid rgba(13,183,163,0.35);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.m-bp-memory-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.m-bp-eyebrow--memory {
  color: var(--accent);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

/* Covenant footer */
.m-bp-footer {
  padding: 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
}
.m-bp-footer-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.m-bp-footer-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.875rem;
}
.m-bp-covenant {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem;
  background: rgba(255,156,80,0.05);
  border: 1px solid rgba(255,156,80,0.18);
  border-radius: var(--radius-sm);
}
.m-bp-covenant p {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ff9c50;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* Mobile blueprint teaser */
.m-bp-teaser {
  margin-top: 1.5rem;
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease;
}
.m-bp-teaser:hover,
.m-bp-teaser:active { border-color: rgba(13,183,163,0.3); }
.m-bp-teaser-layers { padding: 1rem; display: flex; flex-direction: column; gap: 0.375rem; }
.m-bp-teaser-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(196,211,230,0.08);
  border-radius: 8px;
}
.m-bp-teaser-row--memory { border-color: rgba(13,183,163,0.15); background: rgba(13,183,163,0.04); }
.m-bp-t-num {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(196,211,230,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--text-muted);
}
.m-bp-t-num--read { background: rgba(13,183,163,0.15); color: var(--accent); border-color: rgba(13,183,163,0.2); }
.m-bp-t-num--write { background: rgba(255,156,80,0.15); color: #ff9c50; border-color: rgba(255,156,80,0.2); }
.m-bp-t-num--memory { background: rgba(13,183,163,0.2); color: var(--accent); border-color: rgba(13,183,163,0.3); }
.m-bp-t-name {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}
.m-bp-t-tag {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: rgba(196,211,230,0.07);
  color: var(--text-muted);
  border: 1px solid rgba(196,211,230,0.12);
}
.m-bp-t-tag--ai {
  background: rgba(255,184,107,0.1);
  color: var(--highlight);
  border-color: rgba(255,184,107,0.2);
}
.m-bp-teaser-fork {
  text-align: center;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.35rem 0;
}
.m-bp-teaser-split { display: flex; gap: 0.375rem; }
.m-bp-teaser-half {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(196,211,230,0.08);
  border-radius: 8px;
}
.m-bp-teaser-half--read { border-color: rgba(13,183,163,0.15); }
.m-bp-teaser-half--write { border-color: rgba(255,156,80,0.18); }

/* Gradient fade on teaser */
.m-bp-teaser-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5rem;
  background: linear-gradient(to bottom, transparent, var(--card-bg));
  pointer-events: none;
}

/* Open button */
.m-bp-open-btn {
  margin-top: 0.875rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: rgba(13,183,163,0.08);
  border: 1px solid rgba(13,183,163,0.3);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.m-bp-open-btn:hover,
.m-bp-open-btn:active {
  background: rgba(13,183,163,0.14);
  border-color: rgba(13,183,163,0.5);
}

/* Hidden full blueprint — only shown in modal now, hide inline */
.m-bp-full { display: none; }

/* ── M4: What We Do ── */
.m-whatwedo { border-top: 1px solid var(--card-border); scroll-margin-top: 56px; }

/* Gist card */
.m-gist-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-top: 1.5rem;
  margin-bottom: 2.25rem;
}
.m-gist-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.28rem 0.75rem;
  border: 1px solid rgba(13,183,163,0.25);
  border-radius: 100px;
  background: rgba(13,183,163,0.08);
  margin-bottom: 1.25rem;
}
.m-gist-name {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.m-gist-tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}
.m-gist-proof {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 0.75rem 1rem;
  background: rgba(196,211,230,0.04);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.25rem;
}
/* Studio divider */
.m-studio-divider {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding: 1.25rem 0;
  position: relative;
}
.m-studio-divider::before, .m-studio-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: var(--card-border);
}
.m-studio-divider::before { left: 0; }
.m-studio-divider::after { right: 0; }
/* Studio list */
.m-studio-list {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.75rem;
}
.m-studio-item {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
}
.m-studio-item:last-child { border-bottom: none; }
.m-studio-item--featured {
  border-left: 3px solid var(--accent);
  background: rgba(13,183,163,0.03);
}
.m-studio-item-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}
.m-studio-num {
  font-size: 0.625rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.m-studio-type {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.m-studio-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.m-studio-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.m-studio-for {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(196,211,230,0.07);
}
/* Studio intro */
.m-studio-intro {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
/* Credentials */
.m-creds { margin-bottom: 1.75rem; }
.m-creds-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.m-creds-list {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.m-cta-btn { width: 100%; justify-content: center; }


/* =====================================================
   BLUEPRINT TEASER — Ghost preview on the page
   ===================================================== */

.blueprint-teaser {
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

/* Ghost preview grid */
.btl-preview {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  background: rgba(22, 31, 43, 0.5);
  overflow: hidden;
  user-select: none;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.btl-preview:hover {
  border-color: rgba(196, 211, 230, 0.35);
  box-shadow: 0 0 0 1px rgba(196, 211, 230, 0.08), 0 0 24px rgba(196, 211, 230, 0.05);
}

/* Fade mask — bottom half dissolves into background */
.btl-fade {
  position: absolute;
  inset: 40% 0 0 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--paper) 80%
  );
  z-index: 2;
  pointer-events: none;
}

/* Side rails in the preview */
.btl-rail {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.5rem;
}
.btl-rail span {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(196, 211, 230, 0.06);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0.7;
}
.btl-rail--right span { text-align: right; }

/* Center layers in the preview */
.btl-layers { display: flex; flex-direction: column; gap: 0.5rem; }

.btl-layer {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  opacity: 0.75;
}
.btl-layer--read { border-color: rgba(13, 183, 163, 0.2); }
.btl-layer--write { border-color: rgba(255, 156, 80, 0.2); }
.btl-layer--memory { border-color: rgba(13, 183, 163, 0.15); }

.btl-num {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 800;
  background: rgba(196, 211, 230, 0.08);
  color: var(--text-muted);
}
.btl-num--read { background: rgba(13, 183, 163, 0.15); color: var(--accent); }
.btl-num--write { background: rgba(255, 156, 80, 0.15); color: #ff9c50; }

.btl-name {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.btl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-left: auto;
}
.btl-tags span {
  font-size: 0.6rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: rgba(196, 211, 230, 0.05);
  border: 1px solid rgba(196, 211, 230, 0.08);
  color: var(--text-muted);
}

.btl-fork {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-top: 1px solid rgba(196, 211, 230, 0.08);
  border-bottom: 1px solid rgba(196, 211, 230, 0.08);
  opacity: 0.6;
}

.btl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

/* Inspect button */
.blueprint-inspect-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.blueprint-inspect-btn:hover {
  background: rgba(13, 183, 163, 0.1);
  box-shadow: 0 0 24px rgba(13, 183, 163, 0.15);
}
.blueprint-inspect-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =====================================================
   BLUEPRINT MODAL — Full-screen Command Center
   ===================================================== */

.blueprint-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.blueprint-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Blurred dark backdrop */
.blueprint-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Scrollable inner container */
.blueprint-modal-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 2rem 3rem;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}
.blueprint-modal.is-open .blueprint-modal-inner {
  transform: translateY(0);
}

/* Sticky header bar */
.blueprint-modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 0 1.25rem;
  background: rgba(5, 8, 12, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 2.5rem;
}
.blueprint-modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.blueprint-modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
}

/* Close button */
.blueprint-modal-close {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.875rem;
  background: rgba(196, 211, 230, 0.06);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.blueprint-modal-close:hover { background: rgba(196, 211, 230, 0.12); color: var(--text-primary); }
.blueprint-modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Modal content area — vertical waterfall */
.blueprint-modal-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.blueprint-modal-content .stack-footer {
  margin-top: 0;
}

/* Modal works on both desktop and mobile — teaser + button triggers it */
@media (max-width: 768px) {
  .blueprint-teaser { display: none; }

  /* Tighter inner padding on narrow screens */
  .blueprint-modal-inner { padding: 0 1rem 2.5rem; }
  .blueprint-modal-header { padding: 1.25rem 0 1rem; margin-bottom: 1.5rem; }
  .blueprint-modal-title { font-size: 1.35rem; }

  /* Observability: stack header on small width */
  .obs-header { flex-direction: column; gap: 0.5rem; }

  /* Inputs/outputs rail desc: hide on very narrow to save space */
  .bp-rail-desc { display: none; }
}


/* =====================================================
   BLUEPRINT IMPROVEMENTS — v2 CTO + Design Director
   ===================================================== */

/* Observability rail — status bar at top */
.observability-rail {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1rem 1.75rem;
  margin-bottom: 0;
  background: rgba(13, 183, 163, 0.03);
  border: 1px solid rgba(13, 183, 163, 0.12);
  border-left: 3px solid rgba(13, 183, 163, 0.35);
  border-radius: var(--radius-md);
}
.obs-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.obs-rail-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.obs-rail-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.obs-traces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.obs-trace {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
}
.obs-trace-dir {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.obs-trace-stmt {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Fallback rail */
.fallback-rail {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.875rem 1.25rem;
  margin-top: 1.5rem;
  background: rgba(255, 184, 107, 0.03);
  border: 1px solid rgba(255, 184, 107, 0.15);
  border-left: 3px solid var(--highlight);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}
.fallback-rail-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--highlight);
  white-space: nowrap;
  flex-shrink: 0;
}
.fallback-rail-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  min-width: 160px;
}
.fallback-rail-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.fallback-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: var(--text-secondary);
  padding: 0.2rem 0.6rem;
  background: rgba(255, 184, 107, 0.06);
  border: 1px solid rgba(255, 184, 107, 0.12);
  border-radius: 4px;
}
.fallback-layer {
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--highlight);
  letter-spacing: 0.05em;
}

/* Per-layer fallback note */
.layer-fallback-note {
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 184, 107, 0.12);
  font-size: 0.78rem;
  color: var(--highlight);
  opacity: 0.75;
  font-style: italic;
  padding-top: 0.625rem;
  border-top: 1px solid rgba(255, 184, 107, 0.1);
}

/* Cost zone labels on layer eyebrows */
.layer-cost-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.layer-cost-det {
  background: rgba(196, 211, 230, 0.07);
  color: var(--text-muted);
  border: 1px solid rgba(196, 211, 230, 0.12);
}
.layer-cost-ai {
  background: rgba(255, 184, 107, 0.1);
  color: var(--highlight);
  border: 1px solid rgba(255, 184, 107, 0.2);
}

/* Layer 4: validation card */
.layer-card--validation {
  background: var(--card-bg);
}

/* Governed Memory — bidirectional store */
.memory-store {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(13, 183, 163, 0.04) 100%);
  border: 1px solid rgba(13, 183, 163, 0.2);
  border-top: 2px solid rgba(13, 183, 163, 0.35);
  border-radius: var(--radius-lg);
}
.memory-connector {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 0.5rem;
  writing-mode: vertical-lr;
  flex-shrink: 0;
}
.memory-connector--read {
  color: var(--accent);
  border-left: 2px solid rgba(13, 183, 163, 0.3);
  transform: rotate(180deg);
}
.memory-connector--write {
  color: #ff9c50;
  border-right: 2px solid rgba(255, 156, 80, 0.3);
}
.memory-store-body { width: 100%; }
.memory-store-header {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 0.5rem;
}

/* Rail memory annotations */
.rail-memory-read, .rail-memory-write {
  margin-top: 1rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
}
.rail-memory-read {
  background: rgba(13, 183, 163, 0.06);
  border: 1px solid rgba(13, 183, 163, 0.15);
}
.rail-memory-write {
  background: rgba(255, 156, 80, 0.06);
  border: 1px solid rgba(255, 156, 80, 0.15);
}
.rail-memory-arrow {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.rail-memory-write .rail-memory-arrow { color: #ff9c50; }
.rail-memory-label {
  color: var(--text-muted);
  font-size: 0.62rem;
}

/* Blueprint covenant — three-rule footer */
.blueprint-covenant {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 156, 80, 0.05);
  border: 1px solid rgba(255, 156, 80, 0.2);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.blueprint-covenant p {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ff9c50;
  line-height: 1.5;
}


/* ══════════════════════════════════════════════
   MOBILE BRIDGE — Static Architecture of Trust
   ══════════════════════════════════════════════ */

.m-principles {
  height: auto;
  position: static;
  scroll-margin-top: 56px;
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--card-border);
}

.m-principles-sticky {
  position: static;
  height: auto;
  overflow: visible;
  z-index: auto;
  display: flex;
  flex-direction: column;
  padding: 0 1.25rem;
}

/* ── Hook ── */
.m-gs-panel {
  position: static;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.m-gs-0 {
  text-align: center;
  align-items: center;
  margin-bottom: 2rem;
}

.m-gs-center { width: 100%; text-align: center; }

.m-gs-eyebrow {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(13, 183, 163, 0.35);
  border-radius: 0.75rem;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.25rem;
  white-space: normal;
  text-align: center;
}

.m-gs-headline {
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.m-gs-subtext {
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* ── Principles timeline (mobile) ── */
.m-gs-principles-stack {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 2rem;
  counter-reset: step;
}

/* Steps 1–3: grey dot + vertical connector below */
.m-gs-1, .m-gs-2, .m-gs-3, .m-gs-4 {
  counter-increment: step;
}

.m-gs-1, .m-gs-2, .m-gs-3 {
  position: relative;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0 0 1.75rem 1rem;
}

.m-gs-1::before, .m-gs-2::before, .m-gs-3::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  z-index: 1;
}

/* Vertical connector line running down to next step */
.m-gs-1::after, .m-gs-2::after, .m-gs-3::after {
  content: '';
  position: absolute;
  left: calc(-1.75rem + 3px);
  top: 1rem;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

/* Step 4: same as 1-3 but no connector */
.m-gs-4 {
  position: relative;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0 0 1.75rem 1rem;
}

.m-gs-4::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.m-gs-4::after {
  content: '';
  position: absolute;
  left: calc(-1.75rem + 3px);
  top: 1rem;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

/* Step 5: AI Inference — purple dot, no connector */
.m-gs-5 {
  position: relative;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0 0 0.5rem 1rem;
  counter-increment: step;
}

.m-gs-5::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b48aff;
  box-shadow: 0 0 10px rgba(180, 138, 255, 0.7), 0 0 20px rgba(180, 138, 255, 0.3);
  z-index: 1;
}

.m-gs-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  border: 1px solid;
  white-space: nowrap;
}

.m-gs-tag-det {
  color: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.m-gs-tag-ai {
  color: #b48aff;
  border-color: rgba(180, 138, 255, 0.3);
  background: rgba(180, 138, 255, 0.1);
}

.m-gs-step-h {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

.m-gs-step-h::before {
  content: "0" counter(step) " / ";
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

.m-gs-step-h--ai { color: #b48aff; }

.m-gs-step-h--ai::before {
  color: rgba(180, 138, 255, 0.5);
}

/* Hide ghost numbers — timeline uses dots instead */
.m-gs-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

.m-gs-card-num {
  display: none;
}

.m-gs-card-num--ai {
  display: none;
}

.m-gs-step-micro {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ── Mic drop ── */
.m-gs-micdrop {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding-top: 1.75rem;
}

.m-gmd-line {
  font-size: clamp(1.1rem, 5.5vw, 1.4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.m-gmd-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.25s ease;
}
.m-gmd-cta:hover { gap: 0.85rem; }
