/*
  About 08 — About + Signature, 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;
}

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

.about08__inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
}

.about08__photo-wrap {
  position: relative;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--color-muted);
}

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

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

.about08__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);
}

.about08__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);
}

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

.about08__statement {
  margin: 1rem 0 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 500;
  font-style: italic;
  color: var(--color-foreground);
}

.about08__signature-wrap {
  margin-top: 2rem;
}

.about08__signature {
  display: block;
  height: 4rem;
  width: auto;
  color: var(--color-foreground);
}

.about08__caption {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.about08__caption-name {
  font-weight: 600;
  color: var(--color-foreground);
}

@media (min-width: 640px) {
  .about08__signature {
    height: 5rem;
  }
}

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

  .about08__inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 4rem;
  }

  .about08__photo-wrap {
    margin: 0;
  }
}

/* Motion — a single IntersectionObserver in script.js watches the section
   and adds `is-visible` once; the signature's stroke draw runs on a long
   delay so it only inks in after the text above has settled. The
   `.about08--js` gate means the pending/hidden state below only applies
   once JavaScript has actually attached the observer — without JS the
   signature renders as a normal, fully drawn stroke and the text sits at
   full opacity, so nothing here depends on JS to become visible. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-about08-up {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes al-about08-draw {
    from {
      stroke-dashoffset: 1;
    }
    to {
      stroke-dashoffset: 0;
    }
  }

  .about08--js .about08__reveal {
    opacity: 0;
    transform: translateY(16px);
  }

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

  .about08--js .about08__signature-wrap {
    opacity: 0;
  }

  .about08--js.is-visible .about08__signature-wrap {
    animation: al-about08-up 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .about08--js .about08__signature-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }

  .about08--js.is-visible .about08__signature-path {
    stroke-dasharray: 1;
    animation: al-about08-draw 1400ms cubic-bezier(0.65, 0, 0.35, 1) 700ms both;
  }

  .about08--js .about08__caption {
    opacity: 0;
  }

  .about08--js.is-visible .about08__caption {
    animation: al-about08-up 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
