:root {
  --sol-gold: #ffca2f;
  --deep-navy: #004987;
  --maroon: #8b1526;
  --charcoal: #1f2128;
  --white: #ffffff;
  --mid: #4b4f58;
  --light: #ffffff;
}
      /* TEAM */
      #team {
        background: var(--white);
      }
      .team-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2.5rem;
      }
      .member {
        text-align: center;
      }
      .member-photo {
        width: 160px;
        height: 160px;
        margin: 0 auto 1.5rem;
        overflow: hidden;
        border-bottom: 4px solid var(--maroon);
        background: var(--light);
        position: relative;
      }
      .member-photo::after {
        content: "";
        position: absolute;
        inset: 0;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
      }
      .member-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
      .member h3 {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0.3rem;
      }
      .member-role {
        font-family: "Roboto Mono", monospace;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--deep-navy);
      }
      .member-dept {
        font-size: 0.85rem;
        color: var(--mid);
        margin-top: 0.3rem;
      }


      /* Team Page Styling */
      *, *::before, *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }
      
      /* ── Team page ────────────────────────────────────────────── */
      .team-page {
        max-width: 1200px;
        margin: 0 auto;
        padding: 5rem 2rem 6rem;
      }
      
      .team-heading {
        text-align: center;
        margin-top: 2rem;
        margin-bottom: 4rem;
      }
      
      .team-heading h1 {
        font-size: clamp(2.6rem, 5vw, 4rem);
        font-weight: 800;
        letter-spacing: -0.02em;
        text-transform: uppercase;
        color: #1a1a1a;
        line-height: 1;
      }
      
      .team-heading h1 .accent {
        color: #f5c518;
      }
      
      /* ── University sections ──────────────────────────────────── */
      .uni-section {
        margin-bottom: 4.5rem;
      }
      
      .uni-title {
        font-size: clamp(1.1rem, 2.2vw, 1.4rem);
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #1a1a1a;
        margin-bottom: 1.6rem;
        padding-bottom: 0.6rem;
        border-bottom: 1px solid #e8e8e8;
      }
      
      /* ── Grid ─────────────────────────────────────────────────── */
      .team-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 2.4rem;
        row-gap: 1.5rem;
      }
      
      /* ── Card ─────────────────────────────────────────────────── */
      .team-card {
        background: #ffffff;
        margin: 1rem;
        border: 3px solid #e8e8e8;
        border-radius: 4px;
        overflow: hidden;
        transition: border-color 0.25s, transform 0.25s;
        cursor: pointer;
      }
      
      .team-card:hover {
        transform: translateY(-3px);
      }
      
      .uni-belgium:hover    { border-color: #f5c518; }
      .uni-ctu:hover        { border-color: #800020; }
      .uni-openwindow:hover { border-color: #e86c1a; }
      .uni-imm:hover        { border-color: #89c4e1; }
      
      .card-img-wrap {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        background: #f0f0f0;
      }
      
      .card-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
      
      .card-info {
        padding: 0.75rem 1rem 0.85rem;
        border-top: 3px solid transparent;
        transition: border-color 0.25s;
      }
      
      .uni-belgium:hover    .card-info { border-top-color: #f5c518; }
      .uni-ctu:hover        .card-info { border-top-color: #800020; }
      .uni-openwindow:hover .card-info { border-top-color: #e86c1a; }
      .uni-imm:hover        .card-info { border-top-color: #89c4e1; }
      
      .card-name {
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #1a1a1a;
        margin-bottom: 0.2rem;
      }
      
      .card-role {
        font-size: 0.75rem;
        font-weight: 500;
        color: #444;
        margin-bottom: 0.12rem;
      }
      
      .card-dept {
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #888;
      }
      
      /* ── Responsive ───────────────────────────────────────────── */
      @media (max-width: 900px) {
        .team-grid {
          grid-template-columns: repeat(2, 1fr);
        }
      }
      
      @media (max-width: 560px) {
        .team-grid {
          grid-template-columns: 1fr;
        }
      
      }