/* ============================================================
   BrainFusion V2 About Page
   ============================================================
   "Candid Editorial" -- story-driven layout that reads like a
   magazine profile. Vertical timeline for origin story, large
   pull quotes, asymmetric layouts. Warm and human.
   ============================================================ */

/* ---- Scroll-Triggered Reveals ---- */
.v2-about-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.v2-about-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children within a container (desktop only) */
@media (min-width: 640px) {
  .v2-about-stagger > .v2-about-reveal:nth-child(1) { transition-delay: 0ms; }
  .v2-about-stagger > .v2-about-reveal:nth-child(2) { transition-delay: 120ms; }
  .v2-about-stagger > .v2-about-reveal:nth-child(3) { transition-delay: 240ms; }
  .v2-about-stagger > .v2-about-reveal:nth-child(4) { transition-delay: 360ms; }
  .v2-about-stagger > .v2-about-reveal:nth-child(5) { transition-delay: 480ms; }
  .v2-about-stagger > .v2-about-reveal:nth-child(6) { transition-delay: 600ms; }
}

/* ---- Hero Entry Animation ---- */
.v2-about-hero-enter {
  opacity: 0;
  transform: translateY(24px);
  animation: aboutHeroFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.v2-about-hero-enter:nth-child(1) { animation-delay: 0.15s; }
.v2-about-hero-enter:nth-child(2) { animation-delay: 0.3s; }
.v2-about-hero-enter:nth-child(3) { animation-delay: 0.45s; }

@keyframes aboutHeroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Hero Background Atmosphere ---- */
.v2-about-atmosphere {
  position: relative;
  overflow: hidden;
}

.v2-about-atmosphere::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    var(--v2-atmosphere-brand) 0%,
    var(--v2-atmosphere-brand-subtle) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.v2-about-atmosphere::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    var(--v2-atmosphere-accent) 0%,
    transparent 65%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* ---- Pull Quote ---- */
.v2-about-pullquote {
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--v2-brand-primary);
  font-family: var(--v2-font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  line-height: 1.5;
  color: var(--v2-text-primary);
}

.v2-about-pullquote cite {
  display: block;
  font-family: var(--v2-font-body);
  font-weight: 400;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--v2-text-muted);
  margin-top: 0.75rem;
}

/* ---- Timeline ---- */
.v2-about-timeline {
  position: relative;
  padding-left: 2.5rem;
}

.v2-about-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0.75rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--v2-brand-primary),
    var(--v2-border-default) 70%,
    transparent
  );
}

[data-theme="dark"] .v2-about-timeline::before {
  background: linear-gradient(
    to bottom,
    var(--v2-brand-primary),
    var(--v2-border-strong) 70%,
    transparent
  );
}

.v2-about-timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.v2-about-timeline-item:last-child {
  padding-bottom: 0;
}

.v2-about-timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  transform: translateX(calc(-50% + 0.75rem + 1px));
  border-radius: 50%;
  background: var(--v2-brand-primary);
  border: 3px solid var(--v2-surface-page);
  box-shadow: 0 0 0 2px var(--v2-brand-primary);
  flex-shrink: 0;
  z-index: 1;
}

[data-theme="dark"] .v2-about-timeline-dot {
  border-color: var(--v2-surface-page);
}

.v2-about-timeline-label {
  font-family: var(--v2-font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--v2-brand-primary);
  margin-bottom: 0.375rem;
}

/* ---- Differentiator Cards ---- */
.v2-about-diff-card {
  border-radius: 0.875rem;
  border: 1px solid var(--v2-border-default);
  background: var(--v2-surface-card);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

/* No hover lift on non-interactive cards */

.v2-about-diff-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ---- Audience Cards ---- */
.v2-about-audience-card {
  border-radius: 0.875rem;
  border: 1px solid var(--v2-border-default);
  background: var(--v2-surface-card);
  padding: 1.75rem;
}

/* No hover lift on non-interactive cards */

.v2-about-audience-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---- CTA Section ---- */
.v2-about-cta {
  background: linear-gradient(135deg, var(--v2-cta-gradient-start) 0%, var(--v2-cta-gradient-end) 100%);
  color: var(--v2-cta-section-text);
  position: relative;
  overflow: hidden;
}

.v2-about-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--v2-cta-orb) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

/* ---- Demo Dialog ---- */
.v2-about-demo-dialog wa-textarea {
  --border-radius: 0.5rem;
  --border-color: var(--v2-border-strong);
  --focus-ring-color: var(--v2-brand-primary);
  --wa-input-color: var(--v2-text-primary);
  --wa-input-placeholder-color: var(--v2-text-muted);
}

.v2-about-demo-dialog wa-textarea::part(base) {
  background: transparent;
}

.v2-about-demo-dialog wa-textarea::part(textarea) {
  color: var(--v2-text-primary);
  -webkit-text-fill-color: var(--v2-text-primary);
  caret-color: var(--v2-text-primary);
}

/* ---- Focus Visible ---- */
.v2-about-demo-dialog wa-input:focus-visible,
.v2-about-demo-dialog wa-textarea:focus-visible {
  outline: 2px solid var(--v2-brand-primary);
  outline-offset: 2px;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  .v2-about-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .v2-about-hero-enter {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
