/* ── TOKENS ─────────────────────────────────────── */
:root {
  --bg:        #080d14;
  --bg-card:   #0d1520;
  --bg-card2:  #101a27;
  --navy:      #0a1628;
  --blue:      #1a7fe8;
  --blue-bright:#2e96ff;
  --blue-glow: #1a7fe840;
  --cyan:      #00c8e0;
  --white:     #f0f4ff;
  --muted:     #6b82a8;
  --border:    #1a2d47;
  --font-head: 'Manrope', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── GRID BACKGROUND ────────────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(26,127,232,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,127,232,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
}
.grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% -10%, rgba(26,127,232,0.15), transparent 70%);
}

/* ── LAYOUT ─────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
section { padding: 100px 0; }

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(8,13,20,0.85);
  backdrop-filter: blur(16px);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.nav-logo img {
  height: auto;
  width: 140px;
  object-fit: contain;
  display: block;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--blue-bright) !important; color: var(--white) !important; }

/* ── HERO ────────────────────────────────────────── */
#hero {
  min-height: min(100vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  text-align: center;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,127,232,0.08);
  border: 1px solid rgba(26,127,232,0.28);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.74rem;
  color: var(--blue-bright);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-weight: 500;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--blue-bright);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: normal;
  color: var(--blue-bright);
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 auto 44px;
  max-width: 560px;
  font-weight: 400;
}
/* Inline highlight: just changes color, never weight. */
.hl { color: var(--white); }
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--blue-bright); transform: translateY(-1px); }
.btn-ghost {
  color: var(--muted);
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .2s, color .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--white); }

/* ── PROBLEM SECTION ─────────────────────────────── */
#problema { padding: 80px 0; }
.problem-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.section-title em { font-style: normal; color: var(--blue-bright); }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 56px;
}
.problem-copy { font-size: 1rem; color: var(--muted); line-height: 1.8; }
.problem-copy p + p { margin-top: 16px; }
.pain-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  transition: border-color .2s;
}
.pain-item:hover { border-color: rgba(26,127,232,0.4); }
.pain-x {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.pain-text { font-size: 0.9rem; color: var(--muted); }
.pain-text strong { color: var(--white); font-weight: 500; display: block; margin-bottom: 2px; }

/* ── SERVICES ────────────────────────────────────── */
#servicios { background: linear-gradient(180deg, var(--bg) 0%, rgba(13,21,32,0.5) 100%); }
.services-header { text-align: center; max-width: 620px; margin: 0 auto 60px; }
.services-header p:not(.problem-label) { color: var(--muted); font-size: 1rem; margin-top: 16px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color .25s, transform .2s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.service-card:hover { border-color: rgba(26,127,232,0.4); transform: translateY(-3px); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(26,127,232,0.12);
  border: 1px solid rgba(26,127,232,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.service-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.service-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
.service-features {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sf {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
.sf::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--blue-bright);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── RESULTS / METRICS ───────────────────────────── */
#resultados {
  background: rgba(26,127,232,0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}
.results-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.results-copy .section-title { margin-bottom: 16px; }
.results-copy p { color: var(--muted); line-height: 1.8; font-size: 0.95rem; }
.results-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.results-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}
.results-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(26,127,232,0.12);
  border: 1px solid rgba(26,127,232,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.results-feature-title {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--white);
}
.results-feature-desc {
  color: var(--muted);
  font-size: 0.82rem;
}
.case-card {
  background: var(--blue);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.case-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.case-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.case-client {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
}
.case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.case-metric {
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.case-metric-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  display: block;
}
.case-metric-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-top: 2px;
}
.case-desc {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* ── PROCESS · 3 PHASES ──────────────────────────── */
#proceso { padding: 120px 0 60px; }
.process-header { text-align: center; max-width: 640px; margin: 0 auto 88px; }
.process-header p:not(.problem-label) { color: var(--muted); margin-top: 16px; font-size: 1.02rem; }

.phase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.phase:first-of-type { border-top: 0; }
.phase.reverse .phase-text { order: 2; }
.phase.reverse .phase-visual { order: 1; }

.phase-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(4.5rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--blue-bright);
  opacity: 0.18;
  margin-bottom: 20px;
}
.phase-tag {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  font-weight: 500;
  margin-bottom: 14px;
}
.phase-name {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
}
.phase-body {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 520px;
}
.phase-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.phase-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.96rem;
  color: var(--muted);
  opacity: 0.4;
  transition: opacity .65s ease, color .65s ease, transform .65s ease;
  transform: translateX(-4px);
}
.phase-point::before {
  content: '';
  flex-shrink: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  margin-top: 5px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: background .65s ease, border-color .65s ease, box-shadow .65s ease;
}
.phase-point.lit {
  opacity: 1;
  color: var(--white);
  transform: translateX(0);
}
.phase-point.lit::before {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  box-shadow: 0 0 14px rgba(46,150,255,0.55);
}

/* Diagram shell */
.phase-visual { position: relative; }
.diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 0 60px rgba(26,127,232,0.05);
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .2s;
}
.diagram::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.diagram:hover {
  border-color: rgba(26,127,232,0.4);
  transform: translateY(-3px);
}
.diagram:hover::before { opacity: 1; }
.diagram-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 20px;
}

/* Diagram 1 — flow blueprint */
.flow-blueprint {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.flow-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
  opacity: 0.55;
  transition: border-color .65s ease, background .65s ease, color .65s ease, opacity .65s ease;
}
.flow-node.lit {
  border-color: rgba(46,150,255,0.45);
  background: rgba(26,127,232,0.07);
  color: var(--white);
  opacity: 1;
}
.flow-node-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(26,127,232,0.10);
  border: 1px solid rgba(26,127,232,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue-bright);
  flex-shrink: 0;
  font-family: var(--font-head);
}
.flow-arrow,
.layer-arrow {
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  opacity: 0.5;
  line-height: 1;
  margin: 2px 0;
}

/* Diagram 2 — layers */
.layer-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.layer {
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  opacity: 0.55;
  transition: border-color .65s ease, background .65s ease, opacity .65s ease;
}
.layer.lit {
  border-color: rgba(46,150,255,0.45);
  background: rgba(26,127,232,0.07);
  opacity: 1;
}
.layer-tier {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-bright);
  font-weight: 600;
  margin-bottom: 6px;
}
.layer-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.layer-desc {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

/* Diagram 3 — continuous loop (2x2 grid) */
.loop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.loop-cell {
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0.55;
  transition: border-color .65s ease, background .65s ease, opacity .65s ease;
}
.loop-cell.lit {
  border-color: rgba(46,150,255,0.45);
  background: rgba(26,127,232,0.07);
  opacity: 1;
}
.loop-cell-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(26,127,232,0.12);
  border: 1px solid rgba(26,127,232,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--blue-bright);
  margin-bottom: 8px;
}
.loop-cell-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.loop-cell-desc {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── POR QUÉ ELEGIRNOS ───────────────────────────── */
#porque { padding: 100px 0; }
.why-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color .25s, transform .2s;
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.why-card:hover {
  border-color: rgba(26,127,232,0.4);
  transform: translateY(-3px);
}
.why-card:hover::before { opacity: 1; }
.why-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.why-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── FAQ ─────────────────────────────────────────── */
#faq { padding: 100px 0; }
.faq-header { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.faq-header p:not(.problem-label) { color: var(--muted); margin-top: 16px; }
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(26,127,232,0.4); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-bright); }
.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-bright);
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform .25s, border-color .2s;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); border-color: var(--blue-bright); }
.faq-body {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── CTA FINAL ───────────────────────────────────── */
#contacto {
  padding: 120px 0;
  text-align: center;
  position: relative;
}
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(26,127,232,0.12), transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-inner .section-title { margin-bottom: 20px; }
.cta-inner p:not(.problem-label) { color: var(--muted); margin-bottom: 24px; font-size: 1rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.cta-note { margin-top: 20px; font-size: 0.8rem; color: var(--muted); }
.whatsapp-btn {
  background: #25d366;
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.whatsapp-btn:hover { background: #22c55e; }

/* ── FOOTER ─────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--white); }
.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-logo img {
  height: auto;
  width: 140px;
  object-fit: contain;
  display: block;
}
.footer-line { margin-bottom: 12px; }

/* ── DIVIDER ─────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-dot { width: 4px; height: 4px; background: var(--blue-bright); border-radius: 50%; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .problem-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .results-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .case-metrics { grid-template-columns: 1fr 1fr; }
  .faq-item summary { font-size: 0.92rem; padding: 18px 20px; }
  .faq-body { padding: 0 20px 20px; font-size: 0.88rem; }

  /* Phases collapse to single column */
  .phase {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0;
  }
  .phase.reverse .phase-text { order: 1; }
  .phase.reverse .phase-visual { order: 2; }
  .phase-num { font-size: 4rem; margin-bottom: 16px; }
  .loop { grid-template-columns: 1fr; }
}

/* ── FADE IN ─────────────────────────────────────── */
/* Default: content is visible. JS adds .pre-fade to enable
   the entrance animation, then .visible to play it. This keeps
   the page legible for users without JS, screen readers, print,
   and SEO crawlers. */
.fade-up.pre-fade:not(.visible) {
  opacity: 0;
  transform: translateY(24px);
}
.fade-up.pre-fade {
  transition: opacity .6s ease, transform .6s ease;
}

/* Print / no-scroll fallback: force everything to its visible/lit state. */
@media print {
  .fade-up,
  .fade-up.pre-fade,
  .fade-up.pre-fade:not(.visible) {
    opacity: 1 !important;
    transform: none !important;
  }
  .phase-point,
  .flow-node,
  .layer,
  .loop-cell {
    opacity: 1 !important;
    color: var(--white) !important;
  }
  .phase-point::before {
    background: var(--blue-bright) !important;
    border-color: var(--blue-bright) !important;
  }
}
