/* ============================================
   HAX SITE — STYLES.CSS
   Aesthetic: Refined editorial / dark scientific
   Fonts: Syne (display) + DM Sans (body) + DM Mono
   Palette: Near-black + warm ivory + Esperia crimson accent (#E72456)
   ============================================ */

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

:root {
  --black: #0D0D0D;
  --near-black: #111111;
  --surface: #161616;
  --surface-2: #1C1C1C;
  --surface-3: #222222;
  --border: rgba(255,255,255,0.08);
  --border-mid: rgba(255,255,255,0.14);
  --border-strong: rgba(255,255,255,0.22);

  --ivory: #F5F0E8;
  --ivory-dim: #C8C3B8;
  --ivory-muted: #8A857A;

  --brand: #E72456;
  --brand-dim: #B01A3E;
  --brand-pale: rgba(231,36,86,0.12);
  --brand-pale-2: rgba(231,36,86,0.06);

  --hx-color: #7BB8E8;
  --ax-color: #E72456;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --container: 1200px;
  --radius: 6px;
  --radius-lg: 12px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--near-black);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ivory);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 20px;
}

.section-intro {
  font-size: 18px;
  color: var(--ivory-dim);
  max-width: 620px;
  margin-bottom: 48px;
  font-weight: 300;
}

.body-text {
  color: var(--ivory-dim);
  margin-bottom: 20px;
  max-width: 680px;
  font-size: 16px;
}

.body-lg { font-size: 19px; line-height: 1.65; }

strong { color: var(--ivory); font-weight: 500; }
em { font-style: italic; color: var(--ivory-dim); }

.text-link {
  color: var(--brand);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--brand-dim);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.text-link:hover { color: #FF8AAA; border-color: #FF8AAA; }

/* --- CONTAINER --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: var(--ivory);
}
.btn-primary:hover { background: #FF3D6E; transform: translateY(-1px); }
.btn-primary { color: var(--ivory) !important; }

.btn-ghost {
  background: transparent;
  color: var(--ivory-dim);
  border: 1px solid var(--border-mid);
}
.btn-ghost:hover { color: var(--ivory); border-color: var(--border-strong); background: rgba(255,255,255,0.04); }

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand-dim);
}
.btn-outline:hover { background: var(--brand-pale); color: #FF3D6E; border-color: var(--brand); }

.btn-large { padding: 16px 36px; font-size: 16px; }

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ivory-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 20px;
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.line-reveal {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
}
.logo-esperia {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
  text-transform: lowercase;
}
.logo-sep {
  color: var(--border-strong);
  font-size: 14px;
  font-weight: 300;
}
.logo-hax {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--ivory-muted);
  letter-spacing: 0.08em;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links li a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ivory-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-links li a:hover, .nav-links li a.active { color: var(--ivory); background: rgba(255,255,255,0.06); }
.nav-cta {
  background: var(--brand) !important;
  color: var(--ivory) !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover { background: #FF3D6E !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ivory);
  transition: all 0.2s;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .logo-sub { display: none; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 12px 16px; border-radius: var(--radius); }
  .nav-inner { padding: 0 24px; }
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 40%, transparent 100%);
}
.hero-accent-line {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--brand) 30%, var(--brand-dim) 70%, transparent);
  left: calc((100vw - var(--container)) / 2 + 48px);
  opacity: 0.4;
}
.hero .container { position: relative; }
.hero-eyebrow { margin-bottom: 32px; }
.hero-headline {
  font-size: clamp(52px, 8vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-accent-word { color: var(--brand); }
.hero-sub {
  font-size: 18px;
  color: var(--ivory-dim);
  max-width: 580px;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stat-strip {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ivory-muted);
  letter-spacing: 0.06em;
}
.stat-div { width: 1px; height: 40px; background: var(--border-mid); }

.hero-scroll-hint {
  position: absolute;
  bottom: 40px; right: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll-hint span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ivory-muted);
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--border-strong);
  animation: scrollLine 2s ease-in-out infinite;
}

/* --- SECTIONS --- */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); }

/* --- PAGE HERO (sub pages) --- */
.page-hero {
  padding: 140px 0 64px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.page-hero-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
  opacity: 0.4;
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ivory-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--brand); text-decoration: none; }
.page-hero-title {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 20px;
  max-width: 800px;
}
.page-hero-sub {
  font-size: 19px;
  color: var(--ivory-dim);
  max-width: 640px;
  font-weight: 300;
  line-height: 1.6;
}

/* --- PROBLEM SECTION --- */
.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.tension-card {
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tension-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 28px 32px;
}
.tension-bad { border-left: 3px solid rgba(255,80,60,0.4); }
.tension-good { border-left: 3px solid rgba(100,200,140,0.4); }
.tension-icon { font-size: 20px; margin-top: 2px; }
.tension-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}
.tension-desc { font-size: 14px; color: var(--ivory-dim); }
.tension-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 32px;
}
.tension-divider span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--ivory-muted);
  letter-spacing: 0.1em;
  background: var(--surface-2);
  padding: 0 12px;
}

/* --- FRAMEWORK --- */
.framework-header { text-align: center; margin-bottom: 64px; }
.framework-header .section-intro { margin: 0 auto; }
.framework-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.framework-col {
  padding: 48px;
}
.framework-hx { background: rgba(123,184,232,0.04); border-right: 1px solid var(--border); }
.framework-ax { background: rgba(231,36,86,0.15); }
.framework-col-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.col-badge {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hx-badge { background: rgba(123,184,232,0.15); color: var(--hx-color); border: 1px solid rgba(123,184,232,0.2); }
.ax-badge { background: rgba(231,36,86,0.15); color: var(--brand); border: 1px solid rgba(231,36,86,0.15); }
.col-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}
.col-sub { font-size: 13px; color: var(--ivory-muted); }
.pillar-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.pillar-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.pillar-icon {
  font-size: 16px;
  color: var(--brand);
  margin-top: 1px;
  flex-shrink: 0;
  width: 20px;
}
.framework-hx .pillar-icon { color: var(--hx-color); }
.pillar-item strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}
.pillar-item p { font-size: 13px; color: var(--ivory-muted); line-height: 1.5; }

.framework-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background: var(--surface-2);
}
.divider-line { width: 1px; flex: 1; background: var(--border-mid); }
.divider-plus {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--ivory-muted);
  padding: 16px 0;
}
.framework-cta { text-align: center; margin-top: 48px; }

/* --- CALLOUTS --- */
.callouts-header { text-align: center; margin-bottom: 56px; }
.callouts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border-mid);
}
.callout-card {
  background: var(--surface-2);
  padding: 36px 32px;
  position: relative;
  transition: background 0.2s;
}
.callout-card:hover { background: var(--surface-3); }
.callout-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.callout-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.callout-card p { font-size: 13px; color: var(--ivory-muted); line-height: 1.6; }

/* --- METHODOLOGY TEASER --- */
.section-method-teaser { background: var(--surface); }
.method-header { text-align: center; margin-bottom: 56px; }
.method-header .section-intro { margin: 0 auto; }
.stages-row {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
}
.stage-pill {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s;
  position: relative;
}
.stage-pill:hover { border-color: var(--brand); background: var(--brand-pale-2); transform: translateY(-2px); }
.stage-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--brand);
  letter-spacing: 0.1em;
}
.stage-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ivory);
  line-height: 1.3;
  white-space: nowrap;
}
.stage-connector {
  width: 32px;
  height: 1px;
  background: var(--border-mid);
  flex-shrink: 0;
}
.stage-1 { border-color: rgba(123,184,232,0.3); }
.stage-2 { border-color: rgba(123,184,232,0.25); }
.stage-3 { border-color: rgba(231,36,86,0.15); }
.stage-4 { border-color: rgba(231,36,86,0.15); }
.stage-5 { border-color: rgba(231,36,86,0.2); }
.stage-6 { border-color: rgba(200,80,80,0.2); }
.method-cta { text-align: center; margin-top: 48px; }

/* --- ADOPT SECTION --- */
.adopt-header { text-align: center; margin-bottom: 48px; }
.adopt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.adopt-card {
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.adopt-card-featured {
  border-color: var(--brand-dim);
  background: rgba(231,36,86,0.15);
}
.adopt-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ivory-muted);
  margin-bottom: 4px;
}
.adopt-badge-featured { color: var(--brand); }
.adopt-card h3 {
  font-size: 22px;
  margin-bottom: 4px;
}
.adopt-card p { font-size: 15px; color: var(--ivory-dim); }
.adopt-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.adopt-list li {
  font-size: 14px;
  color: var(--ivory-dim);
  padding-left: 16px;
  position: relative;
}
.adopt-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--brand-dim);
  font-size: 12px;
}
.adopt-card .btn { align-self: flex-start; margin-top: 8px; }

/* --- CLOSING SECTION --- */
.section-closing {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing-quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--brand);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: -20px;
}
.closing-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  font-style: normal;
  line-height: 1.4;
  color: var(--ivory);
  margin-bottom: 32px;
}
.closing-attribution {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ivory-muted);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}
.closing-tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}
.hx-text { color: var(--hx-color); }
.ax-text { color: var(--brand); }
.closing-sep { color: var(--ivory-dim); }
.closing-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- FOOTER --- */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  gap: 80px;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer-logo {
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.footer-logo-esperia {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
  text-transform: lowercase;
}
.footer-logo-sep { color: var(--border-strong); font-size: 18px; }
.footer-logo-hax {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ivory-muted);
  letter-spacing: 0.08em;
}
.footer-tagline { font-size: 14px; color: var(--ivory-muted); margin-bottom: 8px; }
.footer-by { font-size: 13px; color: var(--ivory-muted); }
.footer-by strong { color: var(--ivory-dim); font-weight: 500; }
.footer-nav { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ivory-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--ivory-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--ivory); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ivory-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ====================================
   SUB PAGE SPECIFIC STYLES
   ==================================== */

/* --- TWO-COL STICKY --- */
.two-col {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}
.two-col-sticky {
  position: sticky;
  top: 100px;
}
.two-col-sticky .section-title { font-size: 28px; }
.two-col-content .body-text { max-width: 100%; }

.pull-quote {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--brand);
  border-left: 2px solid var(--brand-dim);
  padding: 16px 24px;
  margin: 32px 0;
  line-height: 1.5;
}

/* --- HAX EQUATION --- */
.hax-equation {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 56px 0;
  flex-wrap: wrap;
  justify-content: center;
}
.eq-part {
  flex: 1;
  min-width: 200px;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border-mid);
}
.eq-hx { background: rgba(123,184,232,0.06); border-color: rgba(123,184,232,0.2); }
.eq-ax { background: rgba(231,36,86,0.06); border-color: rgba(231,36,86,0.15); }
.eq-hax { background: rgba(255,255,255,0.03); border-color: var(--border-strong); }
.eq-label {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
}
.eq-hx .eq-label { color: var(--hx-color); }
.eq-ax .eq-label { color: var(--brand); }
.eq-hax .eq-label { color: var(--ivory); }
.eq-desc { font-size: 14px; color: var(--ivory-dim); line-height: 1.5; }
.eq-desc em { color: var(--brand); font-style: normal; }
.eq-op {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--ivory-muted);
  flex-shrink: 0;
}

.boundary-block {
  display: flex;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}
.boundary-item { flex: 1; padding: 28px 36px; text-align: center; }
.boundary-div { width: 1px; background: var(--border-mid); }
.boundary-who {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ivory-muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.boundary-what { font-size: 17px; color: var(--ivory-dim); }
.boundary-what strong { color: var(--ivory); }
.center-block { text-align: center; }
.center-block .section-intro { margin: 0 auto 48px; }

/* --- PILLARS DEEP --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border-mid);
  margin-bottom: 40px;
}
.pillar-deep {
  background: var(--surface-2);
  padding: 36px 32px;
  transition: background 0.2s;
}
.pillar-deep:hover { background: var(--surface-3); }
.hx-deep { border-top: 2px solid rgba(123,184,232,0.3); }
.ax-deep { border-top: 2px solid rgba(231,36,86,0.15); }
.pillar-deep-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.hx-deep .pillar-deep-num { color: var(--hx-color); }
.pillar-deep h3 { font-size: 18px; margin-bottom: 12px; }
.pillar-deep p { font-size: 14px; color: var(--ivory-muted); line-height: 1.6; }
.pillar-summary {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  text-align: center;
  padding: 28px 40px;
  border-radius: var(--radius);
  max-width: 700px;
  margin: 0 auto;
}
.hx-summary { background: rgba(123,184,232,0.06); color: var(--hx-color); border: 1px solid rgba(123,184,232,0.15); }
.ax-summary { background: var(--brand-pale); color: var(--brand); border: 1px solid rgba(231,36,86,0.15); }

/* --- PRINCIPLES LIST --- */
.principles-list { display: flex; flex-direction: column; gap: 0; }
.principle-row {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.principle-row:last-child { border-bottom: none; }
.principle-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  width: 40px;
  padding-top: 4px;
}
.principle-content h3 { font-size: 20px; margin-bottom: 12px; }
.principle-content p { font-size: 15px; color: var(--ivory-dim); line-height: 1.65; max-width: 680px; }

/* --- METHODOLOGY PAGE --- */
.method-rhythm {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.rhythm-phase {
  text-align: center;
  padding: 20px 32px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.rhythm-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.rhythm-stages {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.08em;
}
.rhythm-arrow { font-size: 20px; color: var(--ivory-muted); }
.method-legend {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ivory-dim); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-human { background: var(--hx-color); }
.legend-ai { background: var(--brand); }

.stage-section { }
.stage-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.stage-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.stage-badge-1, .stage-badge-2 { background: rgba(123,184,232,0.1); color: var(--hx-color); border: 1px solid rgba(123,184,232,0.2); }
.stage-badge-3, .stage-badge-4 { background: rgba(231,36,86,0.15); color: #E72456; border: 1px solid rgba(231,36,86,0.15); }
.stage-badge-5, .stage-badge-6 { background: var(--brand-pale); color: var(--brand); border: 1px solid rgba(231,36,86,0.15); }
.stage-title { font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 8px; }
.stage-phase-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ivory-muted);
  letter-spacing: 0.1em;
}
.stage-intro { font-size: 17px; color: var(--ivory-dim); margin-bottom: 32px; line-height: 1.6; }
.stage-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.stage-col {
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 24px;
}
.human-col { border-color: rgba(123,184,232,0.2); background: rgba(123,184,232,0.03); }
.ai-col { border-color: rgba(231,36,86,0.15); background: var(--brand-pale-2); }
.stage-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--ivory-dim);
}
.stage-col-header span { font-weight: 300; font-family: var(--font-body); }
.stage-col-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.human-dot { background: var(--hx-color); }
.ai-dot { background: var(--brand); }
.stage-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.stage-list li {
  font-size: 14px;
  color: var(--ivory-dim);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.stage-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border-strong);
  font-size: 12px;
}
.stage-output {
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.output-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--brand);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.stage-output p { font-size: 14px; color: var(--ivory-dim); }

.method-summary { max-width: 760px; }
.summary-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.summary-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  border: 1px solid var(--brand-dim);
  border-radius: 20px;
  color: var(--brand);
  background: var(--brand-pale-2);
}

/* --- EXPERTISE PAGE --- */
.expertise-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.expertise-half { padding: 56px 48px; }
.expertise-engineering { border-right: 1px solid var(--border); background: rgba(123,184,232,0.03); }
.expertise-design { background: rgba(231,36,86,0.15); }
.expertise-icon-large {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--brand);
  margin-bottom: 20px;
}
.expertise-engineering .expertise-icon-large { color: var(--hx-color); }
.expertise-half h2 { font-size: 28px; margin-bottom: 16px; }
.expertise-summary { font-size: 15px; color: var(--ivory-dim); margin-bottom: 32px; line-height: 1.6; }
.expertise-caps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.cap-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.cap-item:last-child { border-bottom: none; }
.cap-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.cap-detail { font-size: 13px; color: var(--ivory-muted); }
.expertise-note {
  font-size: 13px;
  color: var(--ivory-dim);
  background: var(--surface-2);
  border-left: 2px solid var(--border-mid);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.6;
}
.expertise-engineering .expertise-note { border-left-color: rgba(123,184,232,0.4); }
.expertise-design .expertise-note { border-left-color: rgba(231,36,86,0.15); }
.expertise-div-v { width: 1px; background: var(--border-mid); }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border-mid);
}
.diff-card {
  background: var(--surface-2);
  padding: 36px 32px;
  transition: background 0.2s;
}
.diff-card:hover { background: var(--surface-3); }
.diff-stat {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.diff-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}
.diff-desc { font-size: 13px; color: var(--ivory-muted); line-height: 1.6; }

.philosophy-block { max-width: 960px; }
.philosophy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.philosophy-item h3 { font-size: 17px; margin-bottom: 12px; }
.philosophy-item p { font-size: 14px; color: var(--ivory-muted); line-height: 1.6; }

/* --- ADOPT PAGE --- */
.prereq-list { display: flex; flex-direction: column; gap: 20px; margin: 28px 0; }
.prereq-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.prereq-icon { color: var(--brand); font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.prereq-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.prereq-item p { font-size: 14px; color: var(--ivory-muted); }

.workflow-table { border: 1px solid var(--border-mid); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.wf-row { display: grid; grid-template-columns: 1.2fr 2fr 2fr; border-bottom: 1px solid var(--border); }
.wf-row:last-child { border-bottom: none; }
.wf-ritual, .wf-hx, .wf-ax { padding: 20px 24px; font-size: 14px; }
.wf-ritual { color: var(--ivory); background: var(--surface-2); border-right: 1px solid var(--border); }
.wf-hx { color: var(--hx-color); background: rgba(123,184,232,0.03); border-right: 1px solid var(--border); font-size: 13px; }
.wf-ax { color: var(--brand-dim); background: var(--brand-pale-2); font-size: 13px; }
.wf-header { background: var(--surface-3) !important; }
.wf-header .wf-ritual, .wf-header .wf-hx, .wf-header .wf-ax {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ivory-muted) !important;
  background: var(--surface-3);
  padding: 14px 24px;
}
.workflow-note { font-size: 14px; color: var(--ivory-muted); font-style: italic; }

.path-header { margin-bottom: 40px; }
.path-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.path-badge-1 { background: rgba(255,255,255,0.06); color: var(--ivory-muted); border: 1px solid var(--border-mid); }
.path-badge-2 { background: var(--brand-pale); color: var(--brand); border: 1px solid rgba(231,36,86,0.15); }

.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.checklist-block {
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hx-checklist { border-color: rgba(123,184,232,0.2); }
.ax-checklist { border-color: rgba(231,36,86,0.15); }
.checklist-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  background: var(--surface-2);
}
.chk-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
}
.hx-checklist .chk-badge { background: rgba(123,184,232,0.15); color: var(--hx-color); }
.ax-checklist .chk-badge { background: var(--brand-pale); color: var(--brand); }
.check-list { list-style: none; }
.check-list li { padding: 18px 24px; border-bottom: 1px solid var(--border); }
.check-list li:last-child { border-bottom: none; }
.chk-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.hx-checklist .chk-label { color: var(--hx-color); }
.ax-checklist .chk-label { color: var(--brand); }
.check-list p { font-size: 13px; color: var(--ivory-muted); line-height: 1.5; }

.antipattern-block {
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
}
.antipattern-block h3 { font-size: 20px; margin-bottom: 28px; }
.antipattern-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.antipattern-item { display: flex; gap: 14px; align-items: flex-start; }
.anti-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,80,60,0.1);
  color: rgba(255,80,60,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}
.antipattern-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.antipattern-item p { font-size: 13px; color: var(--ivory-muted); line-height: 1.5; }

.path-outcome {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.path-outcome-featured { border-color: rgba(231,36,86,0.15); background: var(--brand-pale-2); }
.outcome-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.path-outcome p { font-size: 15px; color: var(--ivory-dim); }
.outcome-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.outcome-item { font-size: 14px; color: var(--ivory-dim); }

.artifact-what { margin: 32px 0 40px; }
.artifact-what h3 { font-size: 22px; margin-bottom: 16px; }
.artifact-what > p { font-size: 15px; color: var(--ivory-dim); margin-bottom: 20px; }
.artifact-examples { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.artifact-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 7px 16px;
  border: 1px solid var(--brand-dim);
  border-radius: 20px;
  color: var(--brand);
  background: var(--brand-pale-2);
  letter-spacing: 0.03em;
}

.artifact-stages { margin-bottom: 40px; }
.artifact-stages h3 { font-size: 22px; margin-bottom: 24px; }
.artifact-stage-list { display: flex; flex-direction: column; gap: 0; }
.artifact-stage {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.artifact-stage:last-child { border-bottom: none; }
.as-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding-top: 3px;
}
.as-content strong { display: block; font-size: 15px; font-family: var(--font-display); font-weight: 600; margin-bottom: 4px; }
.as-content p { font-size: 14px; color: var(--ivory-muted); }

.workflow-block { margin-bottom: 40px; }
.workflow-block h3 { font-size: 22px; margin-bottom: 12px; }
.workflow-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.wf-step { display: flex; gap: 16px; align-items: flex-start; }
.wf-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-pale);
  border: 1px solid rgba(231,36,86,0.15);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.wf-step-text { font-size: 15px; color: var(--ivory-dim); line-height: 1.55; padding-top: 3px; }

.governance-block {
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
}
.governance-block h3 { font-size: 20px; margin-bottom: 8px; }
.governance-block > p { font-size: 14px; color: var(--ivory-muted); margin-bottom: 28px; }
.gov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.gov-item { }
.gov-item strong { display: block; font-size: 14px; font-family: var(--font-display); margin-bottom: 6px; }
.gov-item p { font-size: 13px; color: var(--ivory-muted); line-height: 1.5; }

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .callouts-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .philosophy-grid { grid-template-columns: 1fr 1fr; }
  .expertise-split { grid-template-columns: 1fr; }
  .expertise-div-v { display: none; }
  .expertise-engineering { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 900px) {
  .problem-layout { grid-template-columns: 1fr; }
  .framework-grid { grid-template-columns: 1fr; }
  .framework-divider { flex-direction: row; padding: 20px 48px; }
  .divider-line { width: auto; flex: 1; height: 1px; }
  .framework-hx { border-right: none; border-bottom: 1px solid var(--border); }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col-sticky { position: static; }
  .hax-equation { flex-direction: column; }
  .checklist-grid { grid-template-columns: 1fr; }
  .workflow-table { overflow-x: auto; }
  .adopt-grid { grid-template-columns: 1fr; }
  .stage-layout { grid-template-columns: 1fr; gap: 24px; }
  .stage-columns { grid-template-columns: 1fr; }
  .stages-row { justify-content: flex-start; }
  .hero-stat-strip { gap: 24px; }
  .stat-div { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .callouts-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .hero-scroll-hint { display: none; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-nav { flex-direction: column; gap: 32px; }
  .hax-equation .eq-op { display: none; }
}
