/* ══════════════════════════════════════════
   TEAM PAGE
   ══════════════════════════════════════════ */

/* ── Founders ── */
.founders {
    padding: 0 0 120px;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
}

/* Card container — holds both states */
.founder-card {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background: #1F1D1D;
}

/* Photo fills the card */
.founder-photo {
    position: absolute;
    inset: 0;
    background: #1F1D1D;
    transition: opacity 0.4s ease;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient overlay on photo for default name legibility */
.founder-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    pointer-events: none;
}

/* Default name/role overlay (bottom-left) */
.founder-info {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.founder-name {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 2px;
}

.founder-role {
    font-size: 14px;
    color: #BFBFBF;
}

/* Expanded hover state — slides up over the photo */
.founder-expanded {
    position: absolute;
    inset: 0;
    padding: 0 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 3;
    background: linear-gradient(to top, #141212 55%, rgba(20, 18, 18, 0.85) 75%, transparent 100%);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.founder-expanded-name {
    font-family: 'Forum', Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 4px;
}

.founder-expanded-role {
    font-size: 14px;
    color: #BFBFBF;
    margin-bottom: 16px;
}

.founder-bio {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.founder-socials {
    display: flex;
    gap: 10px;
}

.founder-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    transition: background-color 0.2s;
}

.founder-social:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Hover / tap-active: show expanded, hide default info */
.founder-card:hover .founder-expanded,
.founder-card.card-active .founder-expanded {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.founder-card:hover .founder-info,
.founder-card.card-active .founder-info {
    opacity: 0;
}

/* Friedrich icon card */
#card-friedrich {
    background: #000;
}

.founder-photo--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.founder-owl {
    width: 60px;
    height: 60px;
    opacity: 0.85;
    object-fit: contain;
}

/* ── Advisors ── */
.advisors {
    padding: 96px 0;
}

.advisors-headline {
    font-family: 'Forum', Georgia, serif;
    font-weight: 400;
    font-size: clamp(40px, 5vw, 64px);
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: -1.5px;
}

.advisors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.advisor-card {
    position: relative;
    background: #1F1D1D;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    min-height: 280px;
}

.advisor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.advisor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#card-ryon .advisor-avatar img {
    object-position: center 30%;
}

#card-jack .advisor-avatar img {
    object-position: center 20%;
}

#card-roland .advisor-avatar img {
    object-position: center 20%;
}

.advisor-info {
    transition: opacity 0.3s ease;
}

.advisor-name {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 20px;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 6px;
}

.advisor-domain {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
}

.advisor-role {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
}

/* Expanded hover state */
.advisor-expanded {
    position: absolute;
    inset: 0;
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 3;
    background: #1F1D1D;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    text-align: left;
    overflow-y: auto;
}

.advisor-expanded .advisor-name {
    font-family: 'Forum', Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 2px;
}

.advisor-expanded-role {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 13px;
    color: #BFBFBF;
    margin-bottom: 12px;
}

.advisor-bio {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 16px;
}

.advisor-socials {
    display: flex;
    gap: 10px;
}

.advisor-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    transition: background-color 0.2s;
}

.advisor-social:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Hover / tap-active: show expanded, hide default info */
.advisor-card:hover .advisor-expanded,
.advisor-card.card-active .advisor-expanded {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.advisor-card:hover .advisor-info,
.advisor-card.card-active .advisor-info {
    opacity: 0;
}

.advisor-card:hover .advisor-avatar,
.advisor-card.card-active .advisor-avatar {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ── Orbital Diagram ── */
.orbital {
    padding: 0 0 96px;
}

.orbital-diagram {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.orbital-diagram svg {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.orbital-diagram canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Advisor card cross-hover highlight */
.advisor-card {
    transition: border-color 0.3s ease, background 0.3s ease;
}

.advisor-card.orbital-highlight {
    border-color: rgba(232, 224, 212, 0.25);
    background: #252220;
}

/* ── Zone Highlighting ── */

.orbital-domain-labels text,
.orbital-ring-labels text {
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.orbital-domain-labels text.label-dimmed,
.orbital-ring-labels text.label-dimmed {
    opacity: 0.08;
    filter: none;
}

.orbital-domain-labels text.label-active,
.orbital-ring-labels text.label-active {
    opacity: 0.95;
    filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 12px currentColor);
}

/* ── Node System ── */

/* Sonar rings */
.node-sonar {
    transform-box: fill-box;
    transform-origin: center;
    pointer-events: none;
    opacity: 0;
    animation: node-sonar 6s ease-out infinite;
}

.node-sonar--0 { animation-delay: 0s; }
.node-sonar--1 { animation-delay: -2s; }
.node-sonar--2 { animation-delay: -4s; }

@keyframes node-sonar {
    0% {
        transform: scale(1);
        opacity: 0.3;
        stroke-width: 1px;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
        stroke-width: 0.3px;
    }
}

/* Active node — slightly faster sonar */
.orbital-node.node-active .node-sonar {
    animation-duration: 4s;
}

/* Outer ring (static) */
.node-ring {
    pointer-events: none;
}

/* Node initials glow */
.node-initials {
    filter: drop-shadow(0 0 3px currentColor);
}

/* Institution items */
.inst-item {
    transition: opacity 0.4s ease;
}

.inst-item.inst-dimmed {
    opacity: 0.12 !important;
}

/* Tooltip */
.orbital-tooltip {
    position: absolute;
    z-index: 10;
    background: rgba(20, 18, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    max-width: 260px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
}

.orbital-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.orbital-tooltip-name {
    font-family: 'Forum', Georgia, serif;
    font-size: 17px;
    color: #fff;
    margin-bottom: 1px;
}

.orbital-tooltip-role {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.orbital-tooltip-bio {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.orbital-tooltip-affiliations {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.orbital-tooltip-affil-tag {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 8px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 991px) {
    .founders {
        padding: 0 0 80px;
    }

    .founders-grid {
        gap: 20px;
    }

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

    .founder-info {
        padding: 16px;
    }

    .founder-expanded-name {
        font-size: 26px;
    }

    .founder-bio {
        font-size: 13px;
    }

    .orbital {
        padding: 0 0 48px;
    }

    .orbital-legend {
        gap: 32px;
    }

    .advisors {
        padding: 64px 0;
    }

    .advisors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .advisors-headline {
        margin-bottom: 40px;
    }

    .advisor-card {
        padding: 28px 20px;
    }

    .advisor-expanded {
        padding: 0 16px 20px;
    }

    .advisor-expanded .advisor-name {
        font-size: 20px;
    }

    .advisor-bio {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .orbital-tooltip-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9;
    }

    .orbital-tooltip-backdrop.visible {
        display: block;
    }

    .orbital-tooltip {
        position: fixed;
        left: 50%;
        top: auto;
        bottom: 24px;
        transform: translateX(-50%);
        width: calc(100% - 32px);
        max-width: 360px;
        z-index: 10;
        pointer-events: auto;
    }

    .orbital-tooltip.visible {
        transform: translateX(-50%);
    }
}

@media (max-width: 767.98px) {
    .founders-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .founder-card {
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 600px) {
    .orbital-diagram {
        max-width: 500px;
    }

    .orbital-legend {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .advisors-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .founder-expanded-name { font-size: 22px; }
    .founder-expanded { padding: 0 16px 20px; }
    .founder-bio { font-size: 12px; }

    .advisor-avatar { width: 64px; height: 64px; margin-bottom: 14px; }
    .advisor-card { padding: 24px 16px; min-height: 240px; }
}
