/* ============================================================
       TEAM PAGE — Dedicated Styles
       ============================================================ */

    /* ── PAGE HERO ── */
    #team-hero {
      min-height: 52vh;
      background: var(--slate);
      position: relative;
      display: flex;
      align-items: flex-end;
      padding: 11rem 5% 6rem;
      overflow: hidden;
    }

    /* Subtle arc rings — decorative like V2 */
    .team-arc {
      position: absolute;
      right: -80px;
      top: 50%;
      transform: translateY(-50%);
      width: 520px;
      height: 520px;
      pointer-events: none;
      opacity: 0.055;
    }
    .team-arc circle {
      fill: none;
      stroke: var(--brass);
    }

    /* Amber corner accent */
    #team-hero::after {
      content: '';
      position: absolute;
      bottom: 0; left: 5%;
      width: 60px;
      height: 3px;
      background: var(--brass);
    }

    .team-hero-inner {
      position: relative;
      z-index: 2;
      max-width: 700px;
    }

    .team-hero-inner h1 {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(3rem, 6vw, 5.5rem);
      font-weight: 300;
      line-height: 1.0;
      color: var(--white);
      letter-spacing: -0.02em;
      margin-bottom: 1.6rem;
    }
    .team-hero-inner h1 em {
      font-style: italic;
      color: var(--brass);
      font-weight: 300;
    }

    .team-hero-inner p {
      font-size: 1rem;
      color: var(--muted);
      line-height: 1.85;
      font-weight: 300;
      max-width: 520px;
    }


    /* ── TEAM SECTION ── */
    #team {
      background: var(--slate2);
      padding: 8rem 5%;
    }

    .team-header {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6rem;
      align-items: end;
      margin-bottom: 6rem;
    }

    .team-header p {
      font-size: 0.97rem;
      color: var(--muted);
      line-height: 1.9;
      font-weight: 300;
    }

    /* ── MEMBER GRID ── */
    .team-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2px;
      background: rgba(255, 255, 255, 0.04);
    }


    /* ── MEMBER CARD ── */
    .member-card {
      background: var(--slate);
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: background 0.35s;
    }
    .member-card:hover { background: #0d1e2d; }

    /* Amber top bar on hover */
    .member-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: var(--brass);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.4s ease;
      z-index: 10;
    }
    .member-card:hover::before { transform: scaleX(1); }

    /* Ghost number — top-right watermark */
    .member-ghost-num {
      position: absolute;
      top: 1.2rem;
      right: 1.5rem;
      font-family: 'Cormorant Garamond', serif;
      font-size: 5rem;
      font-weight: 300;
      line-height: 1;
      color: rgba(240, 165, 0, 0.07);
      pointer-events: none;
      z-index: 1;
      transition: color 0.4s;
    }
    .member-card:hover .member-ghost-num {
      color: rgba(240, 165, 0, 0.13);
    }


    /* ── PHOTO SLOT ── */
    .member-photo-static {
      position: relative;
      width: 100%;
      aspect-ratio: 4/5;
      overflow: hidden;
      background: #0a1a27;
    }

    /* The actual photo */
    .member-photo {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      display: block;
      filter: brightness(0.75) saturate(0.85);
      transition: transform 0.65s ease, filter 0.65s ease;
    }
    
    /* Zooms the image gracefully when hovering anywhere on the card */
    .member-card:hover .member-photo {
      transform: scale(1.04);
      filter: brightness(0.88) saturate(1);
    }

    /* Gradient overlay on photo */
    .member-photo-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to top,
        rgba(15, 35, 51, 0.96) 0%,
        rgba(15, 35, 51, 0.35) 55%,
        transparent 100%
      );
      z-index: 2;
      pointer-events: none;
    }
    /* Placeholder shown before upload */
    .member-placeholder {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      z-index: 3;
      transition: opacity 0.3s;
    }
    .member-placeholder .placeholder-icon {
      width: 56px;
      height: 56px;
      border: 1.5px solid rgba(240, 165, 0, 0.25);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(240, 165, 0, 0.4);
      transition: border-color 0.3s, color 0.3s;
    }
    .member-card:hover .placeholder-icon {
      border-color: rgba(240, 165, 0, 0.6);
      color: var(--brass);
    }
    .member-placeholder span {
      font-size: 0.68rem;
      font-weight: 600;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: rgba(240, 165, 0, 0.4);
      transition: color 0.3s;
    }
    .member-card:hover .member-placeholder span {
      color: var(--brass);
    }

    /* When photo is loaded, hide placeholder */
    .member-photo-wrap.has-photo .member-placeholder { opacity: 0; }
    .member-photo-wrap.has-photo .member-photo { display: block; }

    /* Upload change hint — appears on hover after photo is set */
    .member-photo-change {
      position: absolute;
      bottom: 1.2rem;
      right: 1.2rem;
      z-index: 5;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.65rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--brass);
      background: rgba(15, 35, 51, 0.85);
      border: 1px solid rgba(240, 165, 0, 0.25);
      padding: 0.45rem 0.8rem;
      opacity: 0;
      transform: translateY(4px);
      transition: opacity 0.3s, transform 0.3s;
    }
    .member-photo-wrap.has-photo:hover .member-photo-change {
      opacity: 1;
      transform: translateY(0);
    }

    /* Hidden file input */
    .photo-input {
      display: none;
    }


    /* ── MEMBER INFO ── */
    .member-info {
      padding: 2rem 2.2rem 2.5rem;
      position: relative;
      z-index: 2;
      flex: 1;
    }

    /* Coral section-label style role tag */
    .member-role {
      font-size: 0.65rem;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--coral);
      display: flex;
      align-items: center;
      gap: 0.8rem;
      margin-bottom: 0.7rem;
    }
    .member-role::before {
      content: '';
      display: block;
      width: 24px;
      height: 1.5px;
      background: var(--coral);
      flex-shrink: 0;
    }

    .member-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.85rem;
      font-weight: 300;
      color: var(--white);
      line-height: 1.1;
      letter-spacing: -0.01em;
      margin-bottom: 0.3rem;
    }
    .member-name em {
      font-style: italic;
      color: var(--brass);
    }

    /* Divider line under name */
    .member-divider {
      width: 32px;
      height: 1px;
      background: rgba(240, 165, 0, 0.3);
      margin: 1rem 0;
      transition: width 0.4s ease, background 0.4s ease;
    }
    .member-card:hover .member-divider {
      width: 52px;
      background: var(--brass);
    }

    .member-desc {
      font-size: 0.8rem;
      color: var(--muted);
      line-height: 1.8;
      font-weight: 300;
    }

    /* Amber tag badges */
    .member-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 1.4rem;
    }
    .member-tag {
      font-size: 0.62rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      border: 1px solid rgba(255, 255, 255, 0.08);
      padding: 0.3rem 0.7rem;
      transition: border-color 0.3s, color 0.3s;
    }
    .member-card:hover .member-tag {
      border-color: rgba(240, 165, 0, 0.2);
      color: rgba(240, 165, 0, 0.7);
    }


    /* ── VALUES STRIP ── */
    #team-values {
      background: var(--slate);
      padding: 6rem 5%;
      border-top: 1px solid rgba(255, 255, 255, 0.04);
    }

    .values-inner {
      display: grid;
      grid-template-columns: 1fr 3fr;
      gap: 8rem;
      align-items: center;
    }

    .values-intro p {
      font-size: 0.97rem;
      color: var(--muted);
      line-height: 1.9;
      font-weight: 300;
      margin-top: 1.5rem;
    }

    .values-list {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: rgba(255, 255, 255, 0.04);
    }

    .value-item {
      background: var(--slate2);
      padding: 2.5rem 2rem;
      position: relative;
      overflow: hidden;
      transition: background 0.3s;
    }
    .value-item:hover { background: #14293a; }

    .value-item::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 2px;
      background: var(--brass);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.4s;
    }
    .value-item:hover::after { transform: scaleX(1); }

    .value-num {
      font-family: 'Cormorant Garamond', serif;
      font-size: 0.8rem;
      color: var(--coral);
      letter-spacing: 0.14em;
      display: block;
      margin-bottom: 1rem;
    }

    .value-item h4 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.3rem;
      font-weight: 600;
      color: var(--white);
      margin-bottom: 0.7rem;
    }

    .value-item p {
      font-size: 0.8rem;
      color: var(--muted);
      line-height: 1.8;
      font-weight: 300;
    }


    /* ── JOIN CTA ── */
    #join {
      background: var(--slate2);
      padding: 8rem 5%;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    /* Big decorative circle behind */
    #join::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 600px;
      height: 600px;
      border-radius: 50%;
      border: 1px solid rgba(240, 165, 0, 0.05);
      pointer-events: none;
    }
    #join::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 400px;
      height: 400px;
      border-radius: 50%;
      border: 1px solid rgba(240, 165, 0, 0.07);
      pointer-events: none;
    }

    .join-inner {
      position: relative;
      z-index: 2;
      max-width: 640px;
      margin: 0 auto;
    }

    .join-inner h2 {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(2.4rem, 5vw, 4rem);
      font-weight: 300;
      color: var(--white);
      line-height: 1.1;
      letter-spacing: -0.02em;
      margin-top: 1rem;
      margin-bottom: 1.5rem;
    }
    .join-inner h2 em {
      font-style: italic;
      color: var(--brass);
    }

    .join-inner p {
      font-size: 0.97rem;
      color: var(--muted);
      line-height: 1.9;
      font-weight: 300;
      margin-bottom: 3rem;
    }

    .join-btns {
      display: flex;
      gap: 1.2rem;
      justify-content: center;
      flex-wrap: wrap;
    }


    /* ── RESPONSIVE ── */
    @media (max-width: 960px) {
      .team-header,
      .values-inner { grid-template-columns: 1fr; gap: 3rem; }
      .team-grid     { grid-template-columns: 1fr 1fr; }
      .values-list   { grid-template-columns: 1fr; }
    }

    @media (max-width: 600px) {
      .team-grid     { grid-template-columns: 1fr; }
      .team-header   { gap: 2rem; }
    }
