/*
  About 09 — About + Mini Timeline, standalone HTML/CSS/JS implementation.
  No build step, no framework, no external dependency: copy this file,
  index.html, and script.js into any project and open it as-is.
*/

:root {
  --color-brand: #39ff14;
  --color-brand-foreground: #252525;
  --color-foreground: #252525;
  --color-background: #ffffff;
  --color-border: #e4e4e4;
  --color-muted: #f7f7f7;
  --color-muted-foreground: #8d8d8d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-foreground);
  background: var(--color-background);
  line-height: 1.5;
}

.about09 {
  background: var(--color-background);
  padding: 4rem 1rem;
}

.about09__inner {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
}

.about09__intro {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
}

.about09__photo-wrap,
.about09__photo2-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--color-muted);
}

.about09__photo-wrap {
  max-width: 22rem;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
}

.about09__photo2-wrap {
  max-width: 20rem;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
}

.about09__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about09__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about09__badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  background: var(--color-background);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.about09__heading {
  margin: 1.25rem 0 0;
  font-size: clamp(2rem, 1.6rem + 1.8vw, 2.75rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-foreground);
}

.about09__bio {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-muted-foreground);
}

.about09__grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.about09__timeline-wrap {
  position: relative;
}

.about09__line {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 6px;
  width: 2px;
  background: var(--color-border);
}

.about09__timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.about09__item {
  position: relative;
  padding-left: 2.5rem;
}

.about09__dot {
  position: absolute;
  top: 0.25rem;
  left: 0;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  border: 2px solid var(--color-brand);
  background: var(--color-background);
}

.about09__item-year {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-brand) 70%, black);
}

.about09__item-title {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-foreground);
}

.about09__item-desc {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-muted-foreground);
}

@media (min-width: 1024px) {
  .about09 {
    padding: 6rem 2rem;
  }

  .about09__intro {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
  }

  .about09__photo-wrap {
    margin: 0;
  }

  .about09__grid {
    margin-top: 5rem;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 3.5rem;
  }

  .about09__photo2-wrap {
    max-width: none;
    aspect-ratio: 3 / 4;
    margin: 0;
  }
}

/* Motion — a single IntersectionObserver in script.js watches the section
   and adds `is-visible` once; the connecting line then grows downward
   (scaleY 0 → 1) while each milestone fades in on its own
   `animation-delay`. The `.about09--js` gate means the pending/hidden
   state below only applies once JavaScript has actually attached the
   observer — without JS the line renders at full height and every
   milestone sits at full opacity, so nothing here depends on JS to
   become visible. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-about09-up {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes al-about09-item {
    from {
      opacity: 0;
      transform: translateX(-10px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes al-about09-grow {
    from {
      transform: scaleY(0);
    }
    to {
      transform: scaleY(1);
    }
  }

  .about09--js .about09__reveal {
    opacity: 0;
    transform: translateY(16px);
  }

  .about09--js.is-visible .about09__reveal {
    animation: al-about09-up 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .about09--js .about09__item {
    opacity: 0;
  }

  .about09--js.is-visible .about09__item {
    animation: al-about09-item 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .about09--js .about09__line {
    transform: scaleY(0);
    transform-origin: top;
  }

  .about09--js.is-visible .about09__line {
    animation: al-about09-grow 950ms cubic-bezier(0.65, 0, 0.35, 1) 150ms both;
  }
}
