/* ============================================================
   Component: About Us Hero & Trajectory Animation (about-hero.css)
   BEM Notation: block_element--modifier
   Matched to Figma Node 0:5528 (Frames 0:5529, 0:5530, 0:5568)
   Card width: 1416px, Min-height: 840px / Responsive scale
   Stack: Vanilla CSS + BEM + Design Tokens
   ============================================================ */

/* ------------------------------------------------------------
   1. Section & Outer Card Container
   ------------------------------------------------------------ */

.about-hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: var(--z-base, 1);
}

.about-hero_card {
  position: relative;
  width: calc(100% - 8px);
  max-width: var(--hero-card-max-width, 1416px);
  margin: 4px auto 60px;
  min-height: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-radius: 16px;
  border: 1px solid var(--color-card-border);
  background-color: var(--color-surface);
  overflow: hidden;
  padding-block: 0 40px;
  box-sizing: border-box;
  z-index: 2;
}

@media (min-width: 768px) {
  .about-hero_card {
    width: calc(100% - 24px);
    margin: 12px auto 60px;
    border-radius: var(--hero-card-radius, 24px);
  }
}

@media (min-width: 992px) {
  .about-hero_card {
    min-height: 960px;
    margin: 12px auto 80px;
    padding-block: 0 72px;
  }
}

/* Background layers matching index.html hero */
.about-hero_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  pointer-events: none;
  opacity: 0.95;
}

.about-hero_backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.3) 60%, rgba(248, 246, 255, 0.7) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
  pointer-events: none;
}

.about-hero_ellipse {
  position: absolute;
  width: clamp(500px, 85vw, 1200px);
  height: clamp(350px, 50vw, 750px);
  left: 50%;
  bottom: -5%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(131, 74, 224, 0.14) 0%, rgba(225, 71, 161, 0.08) 45%, rgba(255, 255, 255, 0) 70%);
  filter: blur(48px);
  z-index: 2;
  pointer-events: none;
}

/* Header inside the about-hero card — stretches full width, above background layers */
.about-hero_card .header {
  align-self: stretch;
  width: 100%;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .about-hero_card .header {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

/* Inner Container */
.about-hero_container {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  z-index: 3;
}

@media (min-width: 768px) {
  .about-hero_container {
    padding-inline: 40px;
  }
}

@media (min-width: 1200px) {
  .about-hero_container {
    padding-inline: 0;
  }
}

/* ------------------------------------------------------------
   2. Text Block (Figma Frame 0:5557 / 0:5558)
   ------------------------------------------------------------ */

.about-hero_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 990px;
  margin-top: 48px;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .about-hero_content {
    margin-top: 68px;
  }
}

/* Eyebrow / Category Tag */
.about-hero_eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--font-size-eyebrow);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: var(--letter-spacing-eyebrow);
  text-transform: uppercase;
  color: var(--color-eyebrow);
  margin-bottom: 24px;
}

/* Main Heading H1 */
.about-hero_title {
  margin: 0 0 24px 0;
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.8vw, 68px);
  font-weight: var(--font-weight-semibold);
  line-height: 1.08;
  letter-spacing: var(--letter-spacing-tighter);
  color: var(--color-text-primary);
  text-wrap: balance;
}

/* Multi-color Brand Gradient on "behavior" */
.about-hero_gradient-text {
  display: inline-block;
  background-image: var(--gradient-behavior);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Descriptive Body Copy */
.about-hero_description {
  margin: 0 0 32px 0;
  max-width: 886px;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: rgba(2, 1, 1, 0.78);
  text-wrap: pretty;
}

/* CTA Button */
.about-hero_actions {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.about-hero_cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: var(--color-surface);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  box-shadow: 0 10px 24px -4px rgba(131, 74, 224, 0.35);
  transition: transform var(--duration-fast) var(--ease-out-smooth),
    box-shadow var(--duration-fast) var(--ease-out-smooth),
    background-color var(--duration-fast) var(--ease-out-smooth);
}

.about-hero_cta:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(131, 74, 224, 0.45);
}

.about-hero_cta:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* ------------------------------------------------------------
   3. Trajectory Animation Container (Figma Node 1:5333 / 1:5372)
   ------------------------------------------------------------ */

.about-trajectory {
  position: relative;
  width: 100%;
  aspect-ratio: 1416 / 400;
  margin-top: 8px;
  margin-bottom: 24px;
  z-index: 3;
}

@media (min-width: 992px) {
  .about-trajectory {
    margin-top: 12px;
    margin-bottom: 36px;
  }
}

/* SVG Canvas */
.about-trajectory_svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.about-trajectory_svg--mobile {
  display: none;
}

.about-trajectory_svg--desktop {
  display: block;
}

/* The Curved Ribbon Path — primed for left-to-right drawing animation */
.about-trajectory_path {
  fill: none;
  stroke: url(#about-curve-gradient);
  stroke-opacity: 0.32;
  stroke-width: 35.71px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2150;
  stroke-dashoffset: 2150;
}

.about-trajectory.is-in-view .about-trajectory_path--desktop {
  animation: aboutDrawCurveDesktop 2.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes aboutDrawCurveDesktop {
  0% {
    stroke-dashoffset: 2150;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes aboutDrawCurveMobile {
  0% {
    stroke-dashoffset: 570;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* ------------------------------------------------------------
   4. Milestones (Expert-led, Science-backed, Results-driven)
   ------------------------------------------------------------ */

.about-milestone {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: auto;
}

/* Coordinates in viewBox 165 520 1416 400 */
/* Milestone 1: Expert-led (Curve x=526.3, y=768.3) */
.about-milestone--expert {
  left: 25.52%;
  top: 62.07%;
}

/* Milestone 2: Science-backed (Curve peak x=924.0, y=592.6) */
.about-milestone--science {
  left: 53.60%;
  top: 18.15%;
}

/* Milestone 3: Results-driven (Curve slope x=1366.1, y=733.2) */
.about-milestone--results {
  left: 84.82%;
  top: 53.30%;
}

/* Circular Beacon Marker — primed for scale pop-in */
.about-milestone_beacon {
  position: absolute;
  left: -16px;
  top: -16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 2px solid #FFFFFF;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: scale(0);
  opacity: 0;
}

.about-milestone--expert .about-milestone_beacon {
  background: rgba(224, 210, 252, 0.85);
}

.about-milestone--science .about-milestone_beacon {
  background: rgba(246, 222, 246, 0.85);
}

.about-milestone--results .about-milestone_beacon {
  background: rgba(254, 226, 220, 0.85);
}

.about-trajectory.is-in-view .about-milestone--expert .about-milestone_beacon {
  animation: aboutBeaconPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}

.about-trajectory.is-in-view .about-milestone--science .about-milestone_beacon {
  animation: aboutBeaconPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.42s both;
}

.about-trajectory.is-in-view .about-milestone--results .about-milestone_beacon {
  animation: aboutBeaconPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 2.32s both;
}

@keyframes aboutBeaconPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Beacon Center Core Dot */
.about-milestone_beacon-core {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-out-smooth);
}

.about-milestone--expert .about-milestone_beacon-core {
  background-color: #803BEB;
}

.about-milestone--science .about-milestone_beacon-core {
  background-color: #C448D4;
}

.about-milestone--results .about-milestone_beacon-core {
  background-color: #FA7869;
}

.about-milestone:hover .about-milestone_beacon-core {
  transform: scale(1.2);
}

/* Beacon Pulse Ring Effect (Triggered after curve draw finishes) */
.about-milestone_beacon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-full);
  border: 2px solid currentColor;
  opacity: 0;
  pointer-events: none;
  box-sizing: border-box;
}

.about-milestone--expert .about-milestone_beacon::after {
  border-color: rgba(128, 59, 235, 0.55);
  box-shadow: 0 0 10px rgba(128, 59, 235, 0.35);
}

.about-milestone--science .about-milestone_beacon::after {
  border-color: rgba(196, 72, 212, 0.55);
  box-shadow: 0 0 10px rgba(196, 72, 212, 0.35);
}

.about-milestone--results .about-milestone_beacon::after {
  border-color: rgba(250, 120, 105, 0.55);
  box-shadow: 0 0 10px rgba(250, 120, 105, 0.35);
}

.about-trajectory.is-pulsing .about-milestone_beacon::after {
  animation: about_milestone_pulse 2.6s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.about-trajectory.is-pulsing .about-milestone--expert .about-milestone_beacon::after {
  animation-delay: 0s;
}

.about-trajectory.is-pulsing .about-milestone--science .about-milestone_beacon::after {
  animation-delay: 0.85s;
}

.about-trajectory.is-pulsing .about-milestone--results .about-milestone_beacon::after {
  animation-delay: 1.7s;
}

.about-trajectory.is-pulsing .about-milestone_beacon-core {
  animation: about_core_pulse 2.6s ease-in-out infinite;
}

.about-trajectory.is-pulsing .about-milestone--expert .about-milestone_beacon-core {
  animation-delay: 0s;
}

.about-trajectory.is-pulsing .about-milestone--science .about-milestone_beacon-core {
  animation-delay: 0.85s;
}

.about-trajectory.is-pulsing .about-milestone--results .about-milestone_beacon-core {
  animation-delay: 1.7s;
}

@keyframes about_milestone_pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.85;
  }

  65%,
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes about_core_pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.22);
  }
}

/* Dotted Connector Stems — SVG vector dotted pattern for bulletproof WebKit/iOS Safari & Retina rendering */
.about-milestone_stem {
  position: absolute;
  left: 0;
  width: 2px;
  margin-left: -1px;
  background-repeat: repeat-y;
  background-size: 2px 6px;
  transform: scaleY(0);
  will-change: transform;
}

/* Milestone 1: Stem extends upward from beacon */
.about-milestone--expert .about-milestone_stem {
  bottom: 16px;
  height: 109px;
  transform-origin: bottom center;
  background-position: center bottom;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='6' viewBox='0 0 2 6'%3E%3Ccircle cx='1' cy='1' r='1' fill='%239C6FE6'/%3E%3C/svg%3E");
}

/* Milestone 2: Stem extends downward from beacon at peak */
.about-milestone--science .about-milestone_stem {
  top: 16px;
  height: 124px;
  transform-origin: top center;
  background-position: center top;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='6' viewBox='0 0 2 6'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23D66CE2'/%3E%3C/svg%3E");
}

/* Milestone 3: Stem extends upward from beacon */
.about-milestone--results .about-milestone_stem {
  bottom: 16px;
  height: 109px;
  transform-origin: bottom center;
  background-position: center bottom;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='6' viewBox='0 0 2 6'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23F78E80'/%3E%3C/svg%3E");
}

.about-trajectory.is-in-view .about-milestone--expert .about-milestone_stem {
  animation: aboutStemGrow 0.35s ease-out 0.96s both;
}

.about-trajectory.is-in-view .about-milestone--science .about-milestone_stem {
  animation: aboutStemGrow 0.35s ease-out 1.58s both;
}

.about-trajectory.is-in-view .about-milestone--results .about-milestone_stem {
  animation: aboutStemGrow 0.35s ease-out 2.48s both;
}

@keyframes aboutStemGrow {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}

/* Milestone Pill Badges matching Figma — static by default (progressive enhancement fallback) */
.about-milestone_badge {
  position: absolute;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: rgba(238, 236, 242, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.01em;
  white-space: nowrap;
  user-select: none;
  cursor: default;
  opacity: 0;
}

@media (min-width: 992px) {
  .about-milestone_badge {
    padding: 11px 24px;
    font-size: 16px;
  }
}

/* Milestones 1 & 3: Badge is above stem (static final position) */
.about-milestone--expert .about-milestone_badge,
.about-milestone--results .about-milestone_badge {
  bottom: 125px;
  transform: translateX(-50%) translateY(8px);
}

/* Milestone 2: Badge is below stem (static final position) */
.about-milestone--science .about-milestone_badge {
  top: 140px;
  transform: translateX(-50%) translateY(-8px);
}

.about-trajectory.is-in-view .about-milestone--expert .about-milestone_badge {
  animation: aboutBadgeFadeUp 0.35s ease-out 1.16s both;
}

.about-trajectory.is-in-view .about-milestone--science .about-milestone_badge {
  animation: aboutBadgeFadeDown 0.35s ease-out 1.78s both;
}

.about-trajectory.is-in-view .about-milestone--results .about-milestone_badge {
  animation: aboutBadgeFadeUp 0.35s ease-out 2.68s both;
}

@keyframes aboutBadgeFadeUp {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes aboutBadgeFadeDown {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ------------------------------------------------------------
   5. Mobile Responsiveness & Fallback Adjustments
   ------------------------------------------------------------ */

@media (max-width: 767px) {
  .about-hero_content {
    margin-top: 40px;
  }

  .about-hero_eyebrow {
    display: inline-block;
    font-size: 14px;
    margin-bottom: 16px;
  }

  .about-hero_title {
    font-size: 52px;
    line-height: 1.06;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
  }

  .about-hero_description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 28px;
    padding-inline: 4px;
  }

  .about-hero_actions {
    display: none;
  }

  .about-trajectory {
    aspect-ratio: 382 / 276;
    width: 100%;
    height: auto;
    max-height: 290px;
    display: block;
    margin-top: 16px;
    margin-bottom: 24px;
    padding-inline: 0;
    overflow: visible;
  }

  .about-trajectory_svg--desktop {
    display: none;
  }

  .about-trajectory_svg--mobile {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    opacity: 1;
  }

  .about-trajectory_path--mobile {
    fill: none;
    stroke: url(#about-curve-gradient-mobile);
    stroke-width: 14px;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-opacity: 1;
    stroke-dasharray: 570;
    stroke-dashoffset: 570;
  }

  .about-trajectory.is-in-view .about-trajectory_path--mobile {
    animation: aboutDrawCurveMobile 2.8s cubic-bezier(0.4, 0, 0.2, 1) both;
  }

  /* Milestones precisely attached to mobile curve */
  .about-milestone--expert {
    left: 28.12%;
    top: 41.33%;
  }

  .about-milestone--science {
    left: 53.32%;
    top: 59.08%;
  }

  .about-milestone--results {
    left: 76.00%;
    top: 34.50%;
  }

  .about-milestone_beacon {
    width: 24px;
    height: 24px;
    left: -12px;
    top: -12px;
    border-width: 2px;
  }

  .about-milestone_beacon-core {
    width: 8px;
    height: 8px;
  }

  .about-milestone--expert .about-milestone_stem,
  .about-milestone--results .about-milestone_stem {
    bottom: 12px;
    height: 50px;
  }

  .about-milestone--science .about-milestone_stem {
    top: 12px;
    height: 50px;
  }

  .about-milestone_badge {
    padding: 7px 15px;
    font-size: 13px;
    font-weight: 500;
  }

  .about-milestone--expert .about-milestone_badge,
  .about-milestone--results .about-milestone_badge {
    bottom: 62px;
  }

  .about-milestone--science .about-milestone_badge {
    top: 62px;
  }
}

/* ------------------------------------------------------------
   6. Accessibility & Reduced Motion
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .about-trajectory_path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    transition: none;
  }

  .about-milestone_beacon {
    transform: scale(1);
    opacity: 1;
    transition: none;
  }

  .about-milestone_beacon::after {
    display: none;
    animation: none;
  }

  .about-milestone_beacon-core {
    animation: none;
  }

  .about-milestone_stem {
    transform: scaleY(1);
    transition: none;
  }

  .about-milestone_badge {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition: none;
  }
}