/*
  About 07 — About + Experience Cards, 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-card: #ffffff;
  --color-card-foreground: #252525;
  --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;
}

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

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

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

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

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

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

.about07__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  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);
}

.about07__badge-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

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

.about07__role {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-brand-foreground);
  color: color-mix(in srgb, var(--color-brand) 70%, black);
}

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

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

.about07__card {
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  padding: 1.5rem;
}

.about07__card-years {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.about07__card-role {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-card-foreground);
}

.about07__card-studio {
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--color-brand) 70%, black);
}

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

@media (min-width: 640px) {
  .about07__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

  .about07__photo-wrap {
    margin: 0;
  }

  .about07__grid {
    margin-top: 5rem;
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Motion — a single IntersectionObserver in script.js watches the section
   and adds `is-visible` once; every element's own timing comes from a
   plain `animation-delay` inline style, never a JS loop. The
   `.about07--js` gate means the pending/hidden state below only applies
   once JavaScript has actually attached the observer — without JS,
   `.about07__reveal` / `.about07__card` fall back to their normal, fully
   visible flow, so nothing here depends on JS to become visible. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-about07-up {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes al-about07-in-left {
    from {
      opacity: 0;
      transform: translateX(-32px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes al-about07-in-right {
    from {
      opacity: 0;
      transform: translateX(32px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .about07--js .about07__reveal {
    opacity: 0;
    transform: translateY(16px);
  }

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

  .about07--js .about07__card {
    opacity: 0;
  }

  .about07--js .about07__card--left {
    transform: translateX(-32px);
  }

  .about07--js .about07__card--right {
    transform: translateX(32px);
  }

  .about07--js.is-visible .about07__card--left {
    animation: al-about07-in-left 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .about07--js.is-visible .about07__card--right {
    animation: al-about07-in-right 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
