/*
  About 02 — Elena Marchetti, standalone HTML/CSS implementation.
  No build step, no framework, no external dependency: copy this file and
  index.html into any project and open it as-is.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #475569;
  --border: #e2e8f0;
  --brand: #39ff14;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.5;
}

a {
  color: inherit;
}

/* Motion — disabled entirely under reduced motion; every element already
   renders at its final, fully visible state outside this media query. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-up {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes al-photo {
    from {
      opacity: 0;
      transform: scale(0.97);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .about__eyebrow,
  .about__name,
  .about__bio,
  .about__cta {
    animation: al-up 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .about__eyebrow {
    animation-delay: 80ms;
  }
  .about__name {
    animation-delay: 180ms;
  }
  .about__bio {
    animation-delay: 280ms;
  }
  .about__cta {
    animation-delay: 380ms;
  }

  .about__photo {
    animation: al-photo 900ms cubic-bezier(0.16, 1, 0.3, 1) 160ms both;
  }
}

.about {
  background-color: var(--background);
  padding: clamp(4rem, 3rem + 3vw, 7rem) clamp(1rem, 0.3rem + 3vw, 2rem);
}

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

.about__photo {
  order: 1;
  margin: 0 auto;
  width: 100%;
  max-width: 28rem;
}

.about__frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background-color: var(--muted);
  box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.2);
}

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

.about__content {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.about__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}

.about__name {
  margin: 1rem 0 0;
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

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

.about__cta {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(15, 23, 42, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 150ms ease;
}

.about__cta:hover {
  text-decoration-color: rgba(15, 23, 42, 0.9);
}

.about__cta:hover svg {
  transform: translateX(4px);
}

.about__cta:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.about__cta svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 200ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .about__cta svg {
    transition: none;
  }
}

@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  .about__photo {
    order: 2;
    margin: 0;
    max-width: none;
  }

  .about__content {
    order: 1;
  }
}
