/* ===========================
   TEAM GRID
   =========================== */

.team-grid {
      container-type: inline-size;
      container-name: team-grid;
    }

    /* Header */
    .team-grid__header {
      text-align: center;
      max-width: 700px;
      margin: 0 auto var(--space-4xl);
    }

    .team-grid__label {
      display: inline-block;
      font-family: var(--font-primary);
      font-size: var(--text-xs);
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--primary);
      margin-bottom: var(--space-m);
    }

    .team-grid__title {
      font-family: var(--font-primary);
      font-size: var(--text-3xl);
      font-weight: 300;
      line-height: 1.15;
      color: var(--text-title);
      margin: 0 0 var(--space-l);
    }

    .team-grid__title em {
      font-style: normal;
      font-weight: 500;
    }

    .team-grid__description {
      font-family: var(--font-secondary);
      font-size: var(--text-m);
      line-height: 1.7;
      color: var(--text-body);
      margin: 0;
    }

    /* Grid Container */
    .team-grid__container {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: var(--space-xl);
    }

    /* Card */
    .team-grid__card {
      background: var(--bg-surface);
      border: 1px solid var(--border-primary);
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .team-grid__card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-l);
    }

    .team-grid__card-image {
      position: relative;
      aspect-ratio: 4 / 5;
      overflow: hidden;
    }

    .team-grid__card-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: grayscale(20%);
      transition: filter 0.3s ease, transform 0.4s ease;
    }

    .team-grid__card:hover .team-grid__card-image img {
      filter: grayscale(0%);
      transform: scale(1.03);
    }

    .team-grid__card-content {
      padding: var(--space-l);
    }

    .team-grid__card-name {
      font-family: var(--font-primary);
      font-size: var(--text-l);
      font-weight: 500;
      color: var(--text-title);
      margin: 0 0 var(--space-3xs);
    }

    .team-grid__card-role {
      display: block;
      font-family: var(--font-secondary);
      font-size: var(--text-s);
      color: var(--primary);
      margin-bottom: var(--space-m);
    }

    .team-grid__card-bio {
      font-family: var(--font-secondary);
      font-size: var(--text-s);
      line-height: 1.6;
      color: var(--text-body);
      margin: 0 0 var(--space-m);
    }

    .team-grid__card-links {
      display: flex;
      gap: var(--space-s);
    }

    .team-grid__card-link {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      background: var(--primary-10);
      color: var(--primary);
      border-radius: 50%;
      transition: background 0.3s ease, color 0.3s ease;
    }

    .team-grid__card-link:hover {
      background: var(--primary);
      color: oklch(1 0 0);
    }

    .team-grid__card-link i {
      width: 18px;
      height: 18px;
    }

    /* Container Queries */
    @container team-grid (max-width: 1100px) {
      .team-grid__container {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    @container team-grid (max-width: 768px) {
      .team-grid__container {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-l);
      }

      .team-grid__header {
        margin-bottom: var(--space-3xl);
      }

      .team-grid__title {
        font-size: var(--text-2xl);
      }

      .team-grid__card-content {
        padding: var(--space-m);
      }

      .team-grid__card-name {
        font-size: var(--text-ml);
      }
    }

    @container team-grid (max-width: 480px) {
      .team-grid__container {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
      }

      .team-grid__title {
        font-size: var(--text-xl);
      }

      .team-grid__title br {
        display: none;
      }

      .team-grid__description {
        font-size: var(--text-s);
      }

      .team-grid__card-bio {
        display: none;
      }
    }

/* ===========================
   TEAM FOUNDER
   =========================== */

.team-founder {
      container-type: inline-size;
      container-name: team-founder;
    }

    .team-founder__grid {
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      gap: var(--space-4xl);
      align-items: center;
    }

    /* Visual */
    .team-founder__visual {
      position: relative;
    }

    .team-founder__image-wrapper {
      position: relative;
      aspect-ratio: 3 / 4;
      overflow: hidden;
    }

    .team-founder__image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: grayscale(20%);
    }

    /* Content */
    .team-founder__content {
      padding: var(--space-xl) 0;
    }

    .team-founder__label {
      display: inline-block;
      font-family: var(--font-primary);
      font-size: var(--text-xs);
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--primary);
      margin-bottom: var(--space-m);
    }

    .team-founder__title {
      font-family: var(--font-primary);
      font-size: var(--text-3xl);
      font-weight: 300;
      line-height: 1.15;
      color: var(--text-title);
      margin: 0 0 var(--space-2xl);
    }

    .team-founder__title em {
      font-style: normal;
      font-weight: 500;
    }

    /* Person */
    .team-founder__person {
      margin-bottom: var(--space-l);
      padding-bottom: var(--space-l);
      border-bottom: 1px solid var(--border-primary);
    }

    .team-founder__name {
      font-family: var(--font-primary);
      font-size: var(--text-xl);
      font-weight: 500;
      color: var(--text-title);
      margin: 0 0 var(--space-3xs);
    }

    .team-founder__role {
      font-family: var(--font-secondary);
      font-size: var(--text-s);
      color: var(--primary);
    }

    /* Bio */
    .team-founder__bio {
      margin-bottom: var(--space-xl);
    }

    .team-founder__bio p {
      font-family: var(--font-secondary);
      font-size: var(--text-m);
      line-height: 1.8;
      color: var(--text-body);
      margin: 0 0 var(--space-m);
    }

    .team-founder__bio p:last-child {
      margin-bottom: 0;
    }

    /* Credentials */
    .team-founder__credentials {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-m);
      margin-bottom: var(--space-xl);
    }

    .team-founder__credential {
      display: inline-flex;
      align-items: center;
      gap: var(--space-2xs);
      font-family: var(--font-primary);
      font-size: var(--text-xs);
      font-weight: 500;
      color: var(--text-body);
      padding: var(--space-xs) var(--space-m);
      background: var(--bg-surface);
      border: 1px solid var(--border-primary);
    }

    .team-founder__credential i {
      width: 16px;
      height: 16px;
      color: var(--primary);
    }

    /* CTA */
    .team-founder__cta {
      display: flex;
      flex-direction: column;
      gap: var(--space-s);
    }

    .team-founder__contact {
      display: inline-flex;
      align-items: center;
      gap: var(--space-s);
      font-family: var(--font-secondary);
      font-size: var(--text-m);
      color: var(--text-title);
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .team-founder__contact:hover {
      color: var(--primary);
    }

    .team-founder__contact i {
      width: 20px;
      height: 20px;
      color: var(--primary);
    }

    /* Container Queries */
    @container team-founder (max-width: 968px) {
      .team-founder__grid {
        gap: var(--space-3xl);
      }

      .team-founder__title {
        font-size: var(--text-2xl);
      }
    }

    @container team-founder (max-width: 768px) {
      .team-founder__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
      }

      .team-founder__visual {
        max-width: 400px;
        margin: 0 auto;
      }

      .team-founder__image-wrapper {
        aspect-ratio: 1 / 1;
        border-radius: 50%;
      }

      .team-founder__content {
        padding: 0;
        text-align: center;
      }

      .team-founder__credentials {
        justify-content: center;
      }

      .team-founder__cta {
        align-items: center;
      }
    }

    @container team-founder (max-width: 480px) {
      .team-founder__title {
        font-size: var(--text-xl);
      }

      .team-founder__title br {
        display: none;
      }

      .team-founder__visual {
        max-width: 280px;
      }

      .team-founder__credentials {
        flex-direction: column;
        align-items: center;
      }

      .team-founder__bio p {
        font-size: var(--text-s);
      }
    }
