/*
  About 11 — About + Image Collage, 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;
}

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

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

.about11__content {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

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

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

.about11__collage {
  order: 1;
  position: relative;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
}

.about11__back {
  position: absolute;
  inset: 0;
  right: 2.5rem;
  bottom: 2.5rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--color-muted);
}

.about11__front {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 66%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--color-muted);
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.35);
  outline: 4px solid var(--color-background);
  outline-offset: -4px;
}

.about11__back img,
.about11__front img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

  .about11__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }

  .about11__content {
    order: 1;
  }

  .about11__collage {
    order: 2;
    max-width: none;
    margin: 0;
    aspect-ratio: 1 / 1;
  }
}

/* Motion — a single IntersectionObserver in script.js watches the section
   and adds `is-visible` once; the larger back image then fades and scales
   in first, and the smaller, offset front image slides and fades in on
   top of it on a longer `animation-delay`. The `.about11--js` gate means
   the pending/hidden state below only applies once JavaScript has
   actually attached the observer — without JS both images sit at full
   opacity in their final position, so nothing here depends on JS to
   become visible. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-about11-up {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes al-about11-back-in {
    from {
      opacity: 0;
      transform: scale(0.94);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  @keyframes al-about11-front-in {
    from {
      opacity: 0;
      transform: translate(24px, 24px);
    }
    to {
      opacity: 1;
      transform: translate(0, 0);
    }
  }

  .about11--js .about11__reveal {
    opacity: 0;
    transform: translateY(16px);
  }

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

  .about11--js .about11__back {
    opacity: 0;
    transform: scale(0.94);
  }

  .about11--js.is-visible .about11__back {
    animation: al-about11-back-in 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .about11--js .about11__front {
    opacity: 0;
    transform: translate(24px, 24px);
  }

  .about11--js.is-visible .about11__front {
    animation: al-about11-front-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
