@layer components {
  /* ==========================================================================
     About Page Overrides
     Only page-specific styles — shared classes come from home.css
     ========================================================================== */

  /* ==========================================================================
     Parallax Utilities
     ========================================================================== */
  .parallax-wrapper {
    overflow: hidden;
    position: relative;
  }

  .parallax-image {
    display: block;
    width: 100%;
    height: 120%;
    object-fit: cover;
    will-change: transform;
  }

  /* ==========================================================================
     About Hero — background image with dark overlay
     ========================================================================== */
  .about-hero {
    position: relative;
    overflow: hidden;
    animation: none;
    text-align: center;

    &::before,
    &::after {
      display: none;
    }

    & h1 {
      font-size: clamp(2rem, 4vw, 3.5rem);
      color: var(--color-white);
      position: relative;
      z-index: 1;

      & em {
        font-style: normal;
        background: var(--gradient-text-accent);
        background-size: 200% 200%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
      }
    }

    & .hero-subtitle {
      color: rgba(255, 255, 255, 0.85);
      position: relative;
      z-index: 1;
    }

    & .container {
      position: relative;
      z-index: 1;
    }
  }

  /* Hero background image layer */
  .about-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;

    &::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      z-index: 1;
    }

    & .parallax-wrapper {
      height: 100%;
    }

    & .parallax-image {
      height: 130%;
      margin-top: -15%;
    }
  }

  /* Override desktop left-align for about hero (keep centered) */
  @media (min-width: 48rem) {
    .about-hero {
      text-align: center;

      & h1 {
        margin-inline: auto;
      }
    }

    .about-hero .hero-subtitle {
      margin-inline: auto;
    }
  }

  /* ==========================================================================
     Story Section — two-column layout with image
     ========================================================================== */
  .about-story-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-block-start: var(--spacing-lg);
  }

  @media (min-width: 48rem) {
    .about-story-grid {
      grid-template-columns: 1fr 1fr;
      align-items: start;
      gap: var(--spacing-xl);
    }
  }

  /* Story section: readable narrative typography */
  .about-story-content {
    line-height: 1.75;

    & p {
      color: var(--color-gray-700);
      margin-block-end: var(--spacing-md);
    }
  }

  /* Story image: aspect ratio for the parallax wrapper */
  .about-story-grid .section-image {
    margin-block-end: 0;

    & .parallax-wrapper {
      aspect-ratio: 16 / 9;
    }
  }

  /* ==========================================================================
     Section Image — reuse pattern from services.css
     Grayscale filter, hover desaturate, scroll-reveal
     ========================================================================== */
  .about-story .section-image,
  .about-team .section-image {
    margin-block-end: var(--spacing-lg);

    & img {
      filter: grayscale(20%) contrast(1.05);
      transition: filter var(--transition-base);
    }

    &:hover img {
      filter: grayscale(0%) contrast(1.05);
    }
  }

  .about-story-grid .section-image {
    margin-block-end: 0;
  }

  /* Scroll-reveal for section images */
  [data-controller="scroll-reveal"] .section-image {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity var(--duration-reveal) var(--ease-out-expo),
      transform var(--duration-reveal) var(--ease-out-expo);
  }

  [data-controller="scroll-reveal"].is-visible .section-image {
    opacity: 1;
    transform: translateY(0);
  }

  /* ==========================================================================
     Values Section
     ========================================================================== */
  .about-values {
    background: var(--color-gray-50);
  }

  /* Staggered scroll-reveal for value cards (reuses .service-card from services.css) */
  .about-values [data-controller="scroll-reveal"] .service-card {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity var(--duration-reveal) var(--ease-out-expo),
      transform var(--duration-reveal) var(--ease-out-expo),
      border-color var(--transition-base);
  }

  .about-values .is-visible .service-card {
    opacity: 1;
    transform: translateY(0);
  }

  .about-values .is-visible .service-card:nth-child(1) { transition-delay: 0ms; }
  .about-values .is-visible .service-card:nth-child(2) { transition-delay: 100ms; }
  .about-values .is-visible .service-card:nth-child(3) { transition-delay: 200ms; }
  .about-values .is-visible .service-card:nth-child(4) { transition-delay: 300ms; }

  /* ==========================================================================
     Team Section
     ========================================================================== */
  .about-team-content {
    max-width: 42rem;
    margin-inline: auto;
    line-height: 1.75;

    & p {
      color: var(--color-gray-700);
      font-size: var(--font-size-lg);
    }
  }

  /* ==========================================================================
     Reduced Motion — disable all parallax and transitions
     ========================================================================== */
  @media (prefers-reduced-motion: reduce) {
    .parallax-image {
      height: 100%;
      will-change: auto;
    }

    .about-story .section-image img,
    .about-team .section-image img {
      transition: none;
    }

    [data-controller="scroll-reveal"] .section-image {
      opacity: 1;
      transform: none;
      transition: none;
    }

    .about-values [data-controller="scroll-reveal"] .service-card {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }
}
