/*
 * THE MIRROR — threshold, transit, and reading. The user reaches the
 * answer; the Prophet holds the lamp. No tradition plate, no chamber
 * textarea styling of its own beyond what the transit needs — reuses the
 * fissure, the verdict passage/citation/charge, and the button.
 */

.mirror-threshold__line {
  font-family: var(--font-passage);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ash);
  margin: 0 0 2rem;
}

.mirror-threshold__plate {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.875rem 2rem;
  margin-bottom: 1.625rem;
  background: var(--metal);
  border-radius: var(--r-lg);
  box-shadow: var(--elev-raised);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.mirror-threshold__plate:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .mirror-threshold__plate {
    transition: none;
  }
}

.mirror-threshold__plate::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ember-glow), var(--ember), var(--ember-deep));
  box-shadow: 0 0 18px rgba(255, 106, 0, 0.5);
}

.mirror-threshold__framework-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--steel);
  margin: 0 0 0.5rem;
}

.mirror-threshold__purpose {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ash);
  margin: 0;
}

.mirror-threshold__glyph {
  position: relative;
  width: 64px;
  height: 64px;
  flex: none;
}

.mirror-threshold__glyph-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.5), transparent 65%);
  filter: blur(8px);
  animation: emberPulse 4.5s ease-in-out infinite;
}

.mirror-threshold__glyph-sphere {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}

.mirror-threshold__begin {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .mirror-threshold__glyph-glow {
    animation: none;
  }
}

/* THE TRANSIT */

.transit-progress {
  margin-bottom: var(--s-4);
}

.transit-progress__track {
  position: relative;
  height: 2px;
  border-radius: 2px;
  background: var(--edge);
}

.transit-progress__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ember-deep), var(--ember-glow));
  box-shadow: 0 0 16px rgba(255, 106, 0, 0.7);
  transition: width 0.4s ease;
  width: 14%;
}

.transit-progress__fill--step1 { width: 14%; }
.transit-progress__fill--step2 { width: 38%; }
.transit-progress__fill--step3 { width: 62%; }
.transit-progress__fill--step4 { width: 86%; }
.transit-progress__fill--step5 { width: 100%; }

.transit-progress__nodes {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.transit-progress__node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--iron-700);
  box-shadow: inset 0 0 0 1px var(--edge);
}

.transit-progress__node--active {
  width: 11px;
  height: 11px;
  background: var(--ember);
  box-shadow: 0 0 14px 2px var(--ember);
}

.transit-step__prompt {
  font-family: var(--font-passage);
  font-weight: 500;
  font-size: 1.625rem;
  line-height: 1.3;
  color: var(--parchment);
  margin: 0 0 0.75rem;
}

.transit-step__hint {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ash);
  margin: 0 0 1.75rem;
}

.transit-step__textarea {
  width: 100%;
  min-height: 8.125rem;
  padding: 1.25rem 1.375rem;
  background: linear-gradient(180deg, var(--iron-900), #0f1013);
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: var(--well);
  color: var(--parchment);
  font-family: var(--font-passage);
  font-size: 1.05rem;
  line-height: 1.5;
  resize: vertical;
  transition: box-shadow 0.25s ease;
}

.transit-step__textarea:focus {
  outline: none;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 106, 0, 0.55),
    0 0 24px -8px rgba(255, 106, 0, 0.5);
}

.transit-nav {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

.transit-nav__continue,
.transit-nav__reveal {
  flex: 1;
}

@media (min-width: 640px) {
  .transit-step__prompt {
    font-size: 1.875rem;
  }

  .transit-step__textarea {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .transit-progress__fill {
    transition: none;
  }
}

/* THE READING */

.mirror-reading__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0 0 var(--s-3);
}

.mirror-reading__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.75rem;
}

.mirror-said {
  margin: 0 0 1.25rem;
  padding-left: var(--s-2);
  border-left: 2px solid var(--ember);
  font-family: var(--font-passage);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--parchment);
}
