
:root {
    --white: #fff;
    --black: #000;
    --yellow: #FFDE00;
    --green: #1E5122;
    --brown: #705812;
    --brown-dark: #493a0c;
    --brown-2: #5e4b13;
    --peach: #FFC570;
    --green-dark: #0f2a12;
    --green-light: #2a6e2f;
    --cream: #fcf9f2;
    --gray-muted: #7a7268;
    --border-light: #e0d6c0;
    --text-dark: #1a1a18;
    --text-mid: #4a4840;
    --red-500: #c0392b;

    /* semantic aliases */
    --bg: var(--green-dark);
    --surface: #132515;
    --surface-2: #1a3020;
    --accent: var(--yellow);
    --accent-warm: var(--peach);
    --text-primary: var(--cream);
    --text-secondary: #b8c4aa;
    --border: rgba(255, 222, 0, 0.12);
    --border-subtle: rgba(255, 222, 0, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

main {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── texture overlay ── */
main::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 1;
}

/* ── scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--green-dark); }
::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 10px;
    transition: background 0.2s ease;
}

/* ── hero ── */
.team-hero {
    font-family: 'Nunito Sans', Georgia, sans-serif;
    background:
        linear-gradient(160deg, rgba(8,22,8,0.88) 0%, rgba(15,42,18,0.78) 50%, rgba(30,81,34,0.65) 100%),
        url('../imgs/logos/Official Logo.png') center/cover no-repeat;
    padding: 16px 16px 16px;
    border-bottom: 2px solid var(--yellow);
    position: relative;
    overflow: hidden;
}

/* gold corner accent top-right */
.team-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 240px; height: 240px;
    background: radial-gradient(circle at top right, rgba(255,222,0,0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* bottom left green glow */
.team-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 300px; height: 180px;
    background: radial-gradient(circle at bottom left, rgba(30,81,34,0.5) 0%, transparent 70%);
    pointer-events: none;
}

.team-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
}

/* ── Eyebrow ── */
.team-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--yellow);
    background: rgba(255,222,0,0.08);
    border: 0.5px solid rgba(255,222,0,0.3);
    padding: 2px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.team-eyebrow::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--yellow);
    flex-shrink: 0;
    display: inline-block;
}

/* ── Headline ── */
.team-hero h1 {
    font-size: clamp(26px, 4.5vw, 44px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.team-hero h1 em {
    font-style: italic;
    color: var(--yellow);
    text-shadow: 0 0 28px rgba(255,222,0,0.35);
}

/* ── Tagline ── */
.team-tagline {
    font-size: 14px;
    font-weight: 600;
    color: var(--peach);
    line-height: 1.75;
    max-width: 540px;
    margin-bottom: 28px;
    font-weight: 400;
    box-shadow: 0 24px 48px inset rgba(6, 56, 25, 0.4);
    border-color: var(--border);
    border-radius: 12px;
    padding: 8px;
}

/* ── Role badges ── */
.team-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.team-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(255,222,0,0.3);
    background: rgba(15,42,18,0.6);
    color: var(--peach);
    backdrop-filter: blur(4px);
    transition: background 0.18s, border-color 0.18s;
}

.team-role-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--yellow);
    opacity: 0.7;
    flex-shrink: 0;
}

.team-role-badge:hover {
    background: rgba(255,222,0,0.12);
    border-color: rgba(255,222,0,0.55);
}

/* ── Divider ── */
.team-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255,222,0,0.5), transparent);
    margin-bottom: 24px;
    max-width: 300px;
}

/* ── Quote ── */
.team-quote {
    position: relative;
    padding: 14px 18px 12px;
    border-left: 4px solid var(--green);
    border-radius: 0 10px 10px 0;
    max-width: 560px;
    background: linear-gradient(
        to right,
        rgba(30,81,34,0.45),
        rgba(30,81,30,0.35) 40%,
        rgba(255,187,86,0.2)
    );
    box-shadow:
        0 4px 12px rgba(0,0,0,0.3),
        0 12px 24px -8px rgba(255,222,0,0.1);
    backdrop-filter: blur(4px);
}

.team-quote::before {
    content: '\201C';
    position: absolute;
    top: -4px; left: 10px;
    font-size: 44px;
    line-height: 1;
    color: rgba(255,222,0,0.2);
    font-family: Georgia, serif;
    pointer-events: none;
}

.team-quote blockquote {
    font-style: italic;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--cream);
    padding-top: 8px;
    margin: 0;
}

.team-quote figcaption {
    font-size: 12px;
    font-weight: 700;
    color: var(--peach);
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid rgba(255,222,0,0.18);
}

.team-quote cite {
    color: var(--yellow);
}

/* ── divider ── */
.section-divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-divider hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    opacity: 0.2;
}

/* ── section ── */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 40px 48px;
}

.section-header {
    margin-bottom: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 900;
    color: var(--cream);
    letter-spacing: -0.5px;
}

.section-header h2 span {
    color: var(--yellow);
    font-style: italic;
}

.section-header .sub {
    color: var(--gray-muted);
    font-size: 14px;
}

/* ── founder cards ── */
.founder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.founder-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 28px 18px 22px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.founder-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brown), var(--yellow), var(--peach));
    opacity: 0;
    transition: opacity 0.3s;
}

.founder-card:hover::before { opacity: 1; }

.founder-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
    border-color: var(--border);
}

.founder-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
    border: 3px solid rgba(255,222,0,0.15);
    transition: border-color 0.3s;
}

.founder-card:hover .founder-avatar {
    border-color: rgba(255,222,0,0.4);
}

.founder-name {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--cream);
}

.founder-title {
    font-size: 13px;
    color: var(--yellow);
    font-weight: 600;
    margin-top: 3px;
    opacity: 0.85;
}

.founder-desc {
    font-size: 13px;
    color: var(--gray-muted);
    margin-top: 10px;
    line-height: 1.55;
}

.founder-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
}

.founder-social a {
    color: rgba(252,249,242,0.35);
    font-size: 15px;
    transition: color 0.2s, transform 0.2s;
}

.founder-social a:hover {
    color: var(--yellow);
    transform: translateY(-2px);
}

/* ── 3D card ── */
.card-3d-wrapper {
    perspective: 600px;
    width: 100%;
    height: 100%;
}

.card-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
    border-radius: 20px;
    background: var(--surface);
    padding: 12px;
    border: 1px solid rgba(255,222,0,0.1);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: default;
}

.card-3d::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: conic-gradient(from 0deg at 50% 50%,
        rgba(255,222,0,0.3),
        rgba(255,197,112,0.12),
        rgba(30,81,34,0.2),
        rgba(255,222,0,0.25),
        rgba(255,197,112,0.1),
        rgba(255,222,0,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: borderSpin 8s linear infinite;
    opacity: 0.5;
}

@keyframes borderSpin { to { transform: rotate(360deg); } }

.card-3d .image-wrap {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 14px;
    overflow: hidden;
    transform-style: preserve-3d;
    flex-shrink: 0;
}

.card-3d .image-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease-out;
    will-change: transform;
}

.card-3d .hover-shadow {
    position: absolute;
    bottom: 6px; left: 50%;
    transform: translateX(-50%);
    width: 70%; height: 22px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.65) 0%, transparent 70%);
    filter: blur(14px);
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

.card-3d .overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top,
        rgba(8,20,9,0.92) 0%,
        rgba(12,30,13,0.6) 55%,
        transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 16px;
    padding-left: 10px;
    padding-right: 10px;
    transform: translateZ(20px);
    pointer-events: none;
}

.card-3d .tag-sm {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--yellow);
    opacity: 0.65;
    margin-bottom: 4px;
}

.card-3d .member-name {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--cream);
    text-align: center;
    margin-bottom: 2px;
}

.card-3d .member-role {
    font-size: 12px;
    font-weight: 600;
    color: var(--yellow);
    opacity: 0.85;
    margin-bottom: 10px;
    text-align: center;
}

.card-3d .divider-sm {
    width: 28px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--yellow), transparent);
    opacity: 0.5;
    margin-bottom: 10px;
}

.card-3d .social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    transform: translateZ(25px);
    pointer-events: auto;
}

.card-3d .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    color: rgba(252,249,242,0.45);
    background: rgba(30,81,34,0.35);
    border: 1px solid rgba(255,222,0,0.12);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    backdrop-filter: blur(4px);
}

.card-3d .social-links a:hover {
    color: var(--green-dark);
    background: var(--yellow);
    border-color: var(--yellow);
    transform: translateY(-3px) scale(1.1);
}

/* ── grids ── */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ── advisor cards ── */
.advisor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.advisor-card {
    background: var(--surface);
    border-radius: 18px;
    padding: 20px 14px 16px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}

.advisor-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--peach), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.advisor-card:hover::after { opacity: 1; }

.advisor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.35);
    border-color: var(--border);
}

.advisor-card .avatar {
    width: 76px; height: 76px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
    border: 2px solid rgba(255,222,0,0.12);
}

.advisor-card .name {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--cream);
}

.advisor-card .role {
    font-size: 12px;
    color: var(--peach);
    font-weight: 500;
    opacity: 0.85;
    margin-top: 2px;
}

.advisor-card .social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.advisor-card .social a {
    color: rgba(252,249,242,0.3);
    font-size: 13px;
    transition: color 0.2s;
}

.advisor-card .social a:hover { color: var(--yellow); }

/* ── partners strip ── */
.partners-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px 52px;
    padding: 36px 24px;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-muted);
    font-weight: 600;
    font-size: 15px;
    opacity: 0.6;
    transition: opacity 0.25s, transform 0.25s;
}

.partner-item:hover {
    opacity: 1;
    transform: scale(1.04);
    color: var(--text-secondary);
}

.partner-item i { font-size: 24px; color: rgba(255,222,0,0.4); }

.elangeni-icon {
    color: #137bac; /* solar gold */
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.2em;
    letter-spacing: -0.02em;
}

.elangeni-icon sup {
    color: #F5A623; /* solar gold */
    font-size: 0.6em;
    vertical-align: super;
    opacity: 0.85;
}

/* ── responsive ── */
@media (max-width: 1024px) {
    .founder-grid { grid-template-columns: repeat(2, 1fr); }
    .advisor-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 930px) {
    .section { padding: 48px 20px 32px; }
    .section-header h2 { font-size: 30px; }
    .founder-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .advisor-grid  { grid-template-columns: 1fr 1fr; gap: 14px; }
}

@media (max-width: 630px) {
    .grid-2col { grid-template-columns: 1fr; }
    .founder-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    /* ── hero ── */
    .team-hero {
        padding: 12px 12px 12px;
    }

    /* gold corner accent top-right */
    .team-hero::before {
        width: 240px;
        height: 240px;
    }

    /* bottom left green glow */
    .team-hero::after {
        width: 300px; height: 180px;
    }

    .team-hero-inner {
        max-width: 860px;
    }

    /* ── Eyebrow ── */
    .team-eyebrow {
        font-size: 10px;
        margin-bottom: 10px;
    }

    /* ── Headline ── */
    .team-hero h1 {
        font-size: clamp(16px, 4.5vw, 24px);
        line-height: 1;
        margin-bottom: 8px;
    }

    /* ── Tagline ── */
    .team-tagline {
        font-size: 10px;
        line-height: 1.5;
        margin-bottom: 14px;
        border-radius: 12px;
        padding: 8px;
    }

    /* ── Role badges ── */
    .team-roles {
        gap: 4px;
        margin-bottom: 16px;
    }

    .team-role-badge {
        gap: 6px;
        padding: 4px 8px;
        font-size: 8px;
    }

    .team-role-badge::before {
        width: 6px; height: 6px;
    }

    /* ── Divider ── */
    .team-divider {
        margin-bottom: 16px;
    }

    /* ── Quote ── */
    .team-quote {
        max-width: 320px;
        padding: 8px 14px 8px;
    }

    .team-quote::before {
        top: 0px; left: 10px;
        font-size: 24px;
    }

    .team-quote blockquote {
        font-size: 10px;
        line-height: 1.1;
    }

    .team-quote figcaption {
        font-size: 8px;
        margin-top: 6px;
    }

    /* ── divider ── */
    .section-divider {
        padding: 0 40px;
    }

    /* ── section ── */
    .section {
        padding: 64px 40px 48px;
    }

    .section-header {
        margin-bottom: 20px;
        gap: 12px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header .sub {
        font-size: 10px;
    }

    /* ── founder cards ── */
    .founder-grid {
        gap: 8px;
    }

    .founder-card {
        border-radius: 20px;
        padding: 16px 16px 16px;
    }

    .founder-avatar {
        width: 76px;
        height: 76px;
    }

    .founder-name {
        font-size: 14px;
    }

    .founder-title {
        font-size: 12px;
        margin-top: 3px;
    }

    .founder-desc {
        font-size: 10px;
        margin-top: 10px;
        line-height: 1.1;
    }

    .founder-social {
        gap: 14px;
        margin-top: 14px;
    }

    .founder-social a {
        font-size: 14px;
    }

    /* ── 3D card ── */
    .card-3d-wrapper {
        perspective: 300px;
    }

    .card-3d {
        padding: 12px;
    }

    @keyframes borderSpin { to { transform: rotate(360deg); } }

    .card-3d .hover-shadow {
        width: 70%; height: 22px;
    }

    .card-3d .overlay {
        padding-bottom: 16px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .card-3d .tag-sm {
        font-size: 8px;
        letter-spacing: 1.5px;
        margin-bottom: 2px;
    }

    .card-3d .member-name {
        font-size: 14px;
    }

    .card-3d .member-role {
        font-size: 10px;
    }

    .card-3d .social-links a {
        width: 24px; height: 24px;
        font-size: 12px;
    }

    /* ── grids ── */
    .grid-2col {
        gap: 16px;
    }

    /* ── advisor cards ── */
    .advisor-card {
        padding: 20px 14px 16px;
    }

    .advisor-card .avatar {
        width: 76px; height: 76px;
    }

    .advisor-card .name {
        font-size: 14px;
    }

    .advisor-card .role {
        font-size: 10px;
        margin-top: 2px;
    }

    .advisor-card .social a {
        font-size: 12px;
    }

    /* ── partners strip ── */
    .partners-strip {
        gap: 16px 32px;
        padding: 24px 16px;
    }

    .partner-item {
        font-size: 12px;
    }

    .partner-item i { font-size: 16px; }

    .elangeni-icon {
        font-size: 14px;
    }

    .elangeni-icon sup {
        font-size: 0.4em;
    }
}

.anchor { scroll-margin-top: 80px; }
