@charset "utf-8";
/* Research page — phase timeline, recolored to the mystic palette */

#research-focus.rf-section {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  margin-bottom: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(212, 174, 105, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #0c0a0b 0%, #060505 55%, #030303 100%);
  color: #f1eee5;
  padding: 4.5rem 0 5rem;
  --rf-gold: #d4ae69;
  --rf-brass: #b99355;
  --rf-emerald: #3f7a5d;
  --rf-oxblood: #a34a41;
  --rf-text-dim: #b7ad9a;
}

.rf-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(241, 238, 229, 0.8), transparent),
    radial-gradient(1px 1px at 28% 42%, rgba(241, 238, 229, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 44% 8%, rgba(212, 174, 105, 0.7), transparent),
    radial-gradient(1px 1px at 62% 30%, rgba(241, 238, 229, 0.6), transparent),
    radial-gradient(1px 1px at 76% 62%, rgba(212, 174, 105, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 89% 22%, rgba(241, 238, 229, 0.7), transparent),
    radial-gradient(1px 1px at 8% 70%, rgba(212, 174, 105, 0.4), transparent),
    radial-gradient(1px 1px at 95% 80%, rgba(241, 238, 229, 0.5), transparent);
  background-repeat: repeat;
  background-size: 340px 340px;
}

.rf-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.rf-inner {
  position: relative;
  z-index: 1;
}

.rf-header {
  max-width: 820px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.rf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rf-gold);
  background: rgba(212, 174, 105, 0.1);
  border: 1px solid rgba(212, 174, 105, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}

.rf-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  background: linear-gradient(90deg, #f5f2e8 20%, var(--rf-gold) 60%, var(--rf-brass) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.rf-lead {
  color: #e4dcc4;
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 1.75rem;
}

.rf-intro {
  text-align: left;
  color: var(--rf-text-dim);
  font-family: "Spectral", Georgia, serif;
  font-size: 0.96rem;
  line-height: 1.75;
}

.rf-intro p {
  margin-bottom: 1.1rem;
}

.rf-intro p:last-child {
  margin-bottom: 0;
}

.rf-intro strong {
  color: #f1eee5;
  font-weight: 700;
}

.rf-timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.rf-rail {
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.rf-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--rf-gold) 0%, var(--rf-oxblood) 100%);
  box-shadow: 0 0 12px 2px rgba(212, 174, 105, 0.55);
  transition: height 0.1s linear;
}

.rf-node {
  position: relative;
  display: flex;
  margin-bottom: 3.5rem;
  outline: none;
}

.rf-node:last-child {
  margin-bottom: 0;
}

.rf-node-left { justify-content: flex-start; }
.rf-node-right { justify-content: flex-end; }
.rf-node-center { justify-content: center; margin-top: 2.25rem; }

.rf-dot {
  position: absolute;
  top: 1.6rem;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #4b463f;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  z-index: 2;
}

.rf-node.rf-active .rf-dot {
  background: var(--rf-gold);
  box-shadow: 0 0 0 4px rgba(212, 174, 105, 0.18), 0 0 18px 4px rgba(212, 174, 105, 0.65);
}

.rf-node-center.rf-active .rf-dot {
  background: var(--rf-oxblood);
  box-shadow: 0 0 0 4px rgba(163, 74, 65, 0.18), 0 0 18px 4px rgba(163, 74, 65, 0.65);
}

.rf-node-center .rf-dot {
  top: -1.15rem;
}

.rf-card {
  width: 100%;
  max-width: 440px;
  border-radius: 16px;
  padding: 1.75rem 1.75rem 2rem;
  opacity: 0.55;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.5s ease;
}

.rf-node-left .rf-card { margin-right: auto; }
.rf-node-right .rf-card { margin-left: auto; }
.rf-node-center .rf-card { max-width: 480px; text-align: center; }

.rf-node.rf-active .rf-card {
  opacity: 1;
  transform: translateY(0);
}

.rf-glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 174, 105, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rf-node.rf-active .rf-glass {
  border-color: rgba(212, 174, 105, 0.4);
  box-shadow: 0 0 30px -8px rgba(212, 174, 105, 0.3);
}

.rf-node-center.rf-active .rf-glass {
  border-color: rgba(163, 74, 65, 0.45);
  box-shadow: 0 0 30px -8px rgba(163, 74, 65, 0.35);
}

.rf-card-kicker {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rf-gold);
  margin-bottom: 0.5rem;
}

.rf-node-center .rf-card-kicker { color: var(--rf-oxblood); }

.rf-card-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.65rem;
}

.rf-card-body {
  color: var(--rf-text-dim);
  font-family: "Spectral", Georgia, serif;
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.rf-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.5rem;
  padding: 0;
  margin: 0 0 1.1rem;
  text-align: left;
}

.rf-tags-center {
  justify-content: center;
}

.rf-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: #d8cfba;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 174, 105, 0.2);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.rf-node.rf-active .rf-tag {
  border-color: rgba(212, 174, 105, 0.45);
  color: #f1eee5;
  background: rgba(212, 174, 105, 0.09);
}

.rf-node-right.rf-active .rf-tag {
  border-color: rgba(63, 122, 93, 0.5);
  background: rgba(63, 122, 93, 0.12);
}

.rf-node-center.rf-active .rf-tag {
  border-color: rgba(163, 74, 65, 0.5);
  background: rgba(163, 74, 65, 0.12);
}

.rf-quote {
  font-family: "Spectral", Georgia, serif;
  font-style: italic;
  color: #c9bfa8;
  font-size: 0.92rem;
  border-left: 2px solid rgba(212, 174, 105, 0.25);
  padding-left: 0.85rem;
  margin-bottom: 1rem;
}

.rf-node-center .rf-quote {
  border-left: none;
  padding-left: 0;
  text-align: center;
}

.rf-quote-typewriter::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--rf-gold);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: rf-caret 0.9s steps(1) infinite;
}

@keyframes rf-caret {
  50% { opacity: 0; }
}

.rf-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-family: "Cinzel", serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  color: #1a1310;
  background: linear-gradient(90deg, var(--rf-gold), var(--rf-brass));
  box-shadow: 0 0 20px -2px rgba(212, 174, 105, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.rf-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px 0 rgba(212, 174, 105, 0.75);
  color: #1a1310;
  text-decoration: none;
}

/* ---- Visual: scan reveal (Phase 1) ---- */
.rf-visual { margin-bottom: 1.2rem; }

.rf-scan-frame {
  position: relative;
  height: 130px;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 35%, rgba(241, 238, 229, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 65% 65%, rgba(241, 238, 229, 0.1) 0%, transparent 50%),
    #0e0c0a;
  border: 1px solid rgba(212, 174, 105, 0.14);
}

.rf-scan-noise {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px,
    transparent 1px, transparent 3px
  );
  filter: blur(1.5px) grayscale(1);
  opacity: 0.7;
}

.rf-scribble-path {
  fill: none;
  stroke: #f1eee5;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  opacity: 0.85;
  transition: stroke-dashoffset 1.1s ease 0.3s;
}

.rf-scribble-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.rf-node.rf-active .rf-scribble-path { stroke-dashoffset: 0; }

.rf-heatmap {
  position: absolute;
  width: 90px;
  height: 90px;
  left: 55%;
  top: 40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163, 74, 65, 0.75) 0%, rgba(163, 74, 65, 0.15) 55%, transparent 75%);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s;
}

.rf-node.rf-active .rf-heatmap {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: rf-heatmap-pulse 2.6s ease-in-out 1.7s infinite;
}

@keyframes rf-heatmap-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.rf-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 0;
  background: linear-gradient(90deg, transparent, var(--rf-gold), transparent);
  box-shadow: 0 0 10px 2px rgba(212, 174, 105, 0.8);
  opacity: 0;
}

.rf-node.rf-active .rf-scanline {
  opacity: 1;
  animation: rf-scan-sweep 2.8s ease-in-out infinite;
}

@keyframes rf-scan-sweep {
  0% { top: 0%; }
  50% { top: 96%; }
  100% { top: 0%; }
}

/* ---- Visual: dialogue (Phase 2) ---- */
.rf-visual-dialogue {
  position: relative;
  height: 150px;
}

.rf-dialogue-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rf-dialogue-link {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.rf-node.rf-active .rf-dialogue-link { stroke: rgba(212, 174, 105, 0.5); }

.rf-dialogue-dot { opacity: 0; }
.rf-node.rf-active .rf-dialogue-dot { opacity: 1; }
.rf-dot-to-clinician { fill: var(--rf-gold); }
.rf-dot-to-ai { fill: var(--rf-emerald); }

.rf-uncertainty-ring {
  position: absolute;
  top: 90px;
  width: 74px;
  height: 74px;
  margin-left: -37px;
  margin-top: -37px;
  border-radius: 50%;
  border: 1.5px dashed rgba(212, 174, 105, 0.45);
  opacity: 0;
}

.rf-node.rf-active .rf-uncertainty-ring {
  opacity: 1;
  animation: rf-ring-spin 6s linear infinite, rf-ring-pulse 2.6s ease-in-out infinite;
}

@keyframes rf-ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes rf-ring-pulse {
  0%, 100% { border-color: rgba(212, 174, 105, 0.45); }
  45% { border-color: rgba(212, 174, 105, 0.85); }
  55% { border-color: rgba(63, 122, 93, 0.85); }
}

.rf-agent {
  position: absolute;
  top: 90px;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  margin-top: -28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  font-weight: 700;
  color: #1a1310;
  text-align: center;
  line-height: 1.1;
}

.rf-agent-gold { background: radial-gradient(circle at 35% 30%, #f0d9a4, var(--rf-gold)); }
.rf-agent-emerald {
  background: radial-gradient(circle at 35% 30%, #7ab897, var(--rf-emerald));
  color: #f1eee5;
}

.rf-node.rf-active .rf-agent-emerald {
  animation: rf-emerald-pulse 3.2s ease-in-out 1.3s infinite;
}

@keyframes rf-emerald-pulse {
  0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(63, 122, 93, 0); }
  80% { box-shadow: 0 0 0 10px rgba(63, 122, 93, 0.25); }
  90% { box-shadow: 0 0 0 3px rgba(63, 122, 93, 0.45); }
}

/* ---- Visual: infinity loop (Phase 3) ---- */
.rf-visual-loop {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rf-loop-svg {
  position: absolute;
  width: 100%;
  height: 100%;
}

.rf-loop-path-base {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 3;
}

.rf-loop-path-glow {
  fill: none;
  stroke: var(--rf-gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 40 400;
  stroke-dashoffset: 0;
  opacity: 0;
}

.rf-node.rf-active .rf-loop-path-glow {
  opacity: 1;
  animation: rf-loop-flow 3.6s linear infinite;
}

@keyframes rf-loop-flow {
  to { stroke-dashoffset: -440; }
}

.rf-loop-core {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--rf-gold) 55%, transparent 75%);
  opacity: 0.35;
  transform: scale(0.9);
}

.rf-node.rf-active .rf-loop-core {
  animation: rf-heartbeat 1.8s ease-in-out infinite;
}

@keyframes rf-heartbeat {
  0%, 100% { transform: scale(0.9); opacity: 0.55; }
  30% { transform: scale(1.25); opacity: 1; }
  50% { transform: scale(0.95); opacity: 0.7; }
}

.rf-chip {
  position: absolute;
  font-family: "Cinzel", serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 174, 105, 0.2);
  color: #f1eee5;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rf-chip-1 { top: 6px; left: 10px; }
.rf-chip-2 { bottom: 6px; right: 6px; }

.rf-node.rf-active .rf-chip {
  opacity: 1;
  transform: translateY(0);
  animation: rf-float 4s ease-in-out infinite;
}

.rf-node.rf-active .rf-chip-1 { transition-delay: 0.5s; animation-delay: 0.5s; }
.rf-node.rf-active .rf-chip-2 { transition-delay: 0.8s; animation-delay: 0.8s; }

@keyframes rf-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .rf-title { font-size: 1.6rem; }
  .rf-rail { left: 1.4rem; margin-left: 0; }
  .rf-node, .rf-node-left, .rf-node-right, .rf-node-center {
    justify-content: flex-start;
    padding-left: 2.6rem;
  }
  .rf-dot { left: 1.4rem; margin-left: -7px; }
  .rf-card, .rf-node-left .rf-card, .rf-node-right .rf-card, .rf-node-center .rf-card {
    max-width: 100%;
    margin: 0;
    text-align: left;
  }
  .rf-node-center .rf-quote { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .rf-scanline,
  .rf-heatmap,
  .rf-loop-path-glow,
  .rf-loop-core,
  .rf-agent-emerald,
  .rf-uncertainty-ring,
  .rf-chip,
  .rf-quote-typewriter::after {
    animation: none !important;
  }
  .rf-card, .rf-dot, .rf-scribble-path, .rf-heatmap, .rf-chip {
    transition: none !important;
  }
}
