/* =====================================================
   Team Studio — صفحه تیم استودیو
   ===================================================== */

/* ==================== فونت وزیرمتن ==================== */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazir/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazir/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazir/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =====================================================
   Reset & Base
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-deep: #050814;
    --bg-mid: #0a0f24;
    --accent-1: #00e0ff;
    --accent-2: #7c3aed;
    --accent-3: #ff2e9a;
    --accent-4: #22c55e;
    --text-main: #e6edf7;
    --text-muted: #8fa3c7;
    --font: 'Vazirmatn', Tahoma, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    background: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font);
    direction: rtl;
}

/* =====================================================
   Canvas
   ===================================================== */
#digital-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 224, 255, 0.08), transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(124, 58, 237, 0.10), transparent 55%),
        radial-gradient(ellipse at 50% 50%, #0a1024 0%, #050814 100%);
}

/* =====================================================
   Tree Stage
   ===================================================== */
.tree-stage {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 40px;
}

.tree-container {
    position: relative;
    width: min(92vw, 1200px);
    height: min(80vh, 780px);
}

.tree-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.tree-svg .branch {
    fill: none;
    stroke: url(#branchGradient);
    stroke-width: 1.5;
    stroke-linecap: round;
    opacity: 0.55;
    stroke-dasharray: 8 6;
    animation: flowDash 12s linear infinite;
}

.tree-svg .branch--main {
    stroke-width: 2.5;
    opacity: 0.75;
    stroke-dasharray: 14 8;
    animation-duration: 18s;
}

.tree-svg .pulse-dot {
    fill: var(--accent-1);
    filter: drop-shadow(0 0 8px var(--accent-1));
    animation: dotTravel 8s linear infinite;
}

@keyframes flowDash {
    to { stroke-dashoffset: -200; }
}

@keyframes dotTravel {
    0%   { offset-distance: 0%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}

/* =====================================================
   Node (عکس اعضا)
   ===================================================== */
.node {
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%) rotate(var(--tilt, 0deg));
    transition: transform 0.15s ease-out;
    will-change: transform;
    z-index: 5;
}

.node__inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(0, 224, 255, 0.45);
    box-shadow:
        0 0 20px rgba(0, 224, 255, 0.25),
        inset 0 0 20px rgba(0, 224, 255, 0.12);
    transition: border-color .3s, box-shadow .3s;
    transform: rotate(calc(-1 * var(--tilt, 0deg)));
}

.node__inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.05);
}

.node::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 224, 255, 0.25);
    animation: rotateOrbit 20s linear infinite;
    pointer-events: none;
}

.node::after {
    content: attr(data-name);
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%) rotate(calc(-1 * var(--tilt, 0deg)));
    white-space: nowrap;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(5, 8, 20, 0.7);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 224, 255, 0.15);
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}

.node:hover::after { opacity: 1; }

.node:hover .node__inner {
    border-color: var(--accent-1);
    box-shadow:
        0 0 40px rgba(0, 224, 255, 0.55),
        inset 0 0 30px rgba(0, 224, 255, 0.25);
}

.node.is-active .node__inner {
    border-color: var(--accent-3);
    box-shadow:
        0 0 50px rgba(255, 46, 154, 0.6),
        inset 0 0 30px rgba(255, 46, 154, 0.25);
}

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

/* =====================================================
   Info Panel
   ===================================================== */
.info-panel {
    position: fixed;
    top: 50%;
    left: 40px;
    transform: translateY(-50%) translateX(-120%);
    width: min(380px, 88vw);
    padding: 32px;
    background: rgba(10, 15, 36, 0.92);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: transform .5s cubic-bezier(.2,.9,.3,1.2), opacity .4s;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.info-panel.is-open {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.info-panel__border {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    pointer-events: none;
    overflow: hidden;
}

.info-panel__border svg { width: 100%; height: 100%; display: block; }

.info-panel__border rect {
    fill: none;
    stroke: url(#panelGradient);
    stroke-width: 2.5;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    filter: drop-shadow(0 0 6px rgba(0, 224, 255, 0.6));
    transition: stroke-dashoffset 1s cubic-bezier(.3,.8,.3,1);
}

.info-panel.is-open .info-panel__border rect {
    stroke-dashoffset: 0;
}

.info-panel__content { position: relative; z-index: 1; }

.info-panel__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-1);
    margin-bottom: 20px;
    box-shadow: 0 0 25px rgba(0, 224, 255, 0.4);
}

.info-panel__avatar img { width: 100%; height: 100%; object-fit: cover; }

.info-panel__name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-panel__role {
    font-size: 13px;
    color: var(--accent-1);
    margin-bottom: 20px;
    letter-spacing: 0.4px;
}

.info-panel__divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,224,255,0.4), transparent);
    margin: 18px 0;
}

.info-panel__label {
    font-size: 11px;
    color: var(--accent-1);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    opacity: 0.8;
}

.info-panel__value {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.9;
    margin-bottom: 16px;
}

.info-panel__skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.info-panel__skills span {
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.4);
    color: #b794f6;
}

.info-panel__close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50% !important;
    border: 1px solid rgba(0, 224, 255, 0.4);
    background: rgba(0, 224, 255, 0.1);
    color: var(--accent-1);
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 2;
    font-family: inherit;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}

.info-panel__close:hover {
    background: rgba(255, 46, 154, 0.2);
    border-color: var(--accent-3);
    color: var(--accent-3);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 46, 154, 0.4);
}

.info-panel__close:active {
    transform: rotate(90deg) scale(0.95);
}

/* =====================================================
   Team Bar
   ===================================================== */
.team-bar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    font-family: var(--font);
}

.team-bar__trigger {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(0, 224, 255, 0.35);
    background: rgba(10, 15, 36, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--text-main);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.2,.9,.3,1.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(0, 224, 255, 0.05);
}

.team-bar__trigger:hover {
    border-color: var(--accent-1);
    box-shadow: 0 6px 30px rgba(0, 224, 255, 0.25), inset 0 0 0 1px rgba(0, 224, 255, 0.15);
    transform: translateY(-1px);
}

.team-bar__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-1);
    box-shadow: 0 0 10px var(--accent-1);
    animation: teamDotPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes teamDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
}

.team-bar__trigger-text {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-3), var(--accent-2));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: teamGradientShift 6s linear infinite;
}

@keyframes teamGradientShift {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.team-bar__chevron { opacity: 0.7; transition: transform 0.3s ease; flex-shrink: 0; }
.team-bar.is-open .team-bar__chevron { transform: rotate(180deg); }

.team-bar__panel {
    pointer-events: auto;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px) scale(0.96);
    margin-top: 12px;
    width: min(920px, 94vw);
    padding: 20px 28px;
    border-radius: 18px;
    background: rgba(10, 15, 36, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 224, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(0, 224, 255, 0.03);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.2,.9,.3,1.2), visibility 0s linear 0.35s;
    overflow: hidden;
}

.team-bar.is-open .team-bar__panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.2,.9,.3,1.2), visibility 0s;
}

.team-bar__panel-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 100% at 20% 0%, rgba(0, 224, 255, 0.12), transparent 60%),
        radial-gradient(ellipse 60% 100% at 80% 100%, rgba(255, 46, 154, 0.10), transparent 60%),
        radial-gradient(ellipse 40% 100% at 50% 50%, rgba(124, 58, 237, 0.08), transparent 60%);
    pointer-events: none;
}

.team-bar__panel-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 224, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 224, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, black, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, black, transparent 80%);
}

.team-bar__row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr auto auto;
    align-items: center;
    gap: 32px;
}

.team-bar__brand { min-width: 0; }

.team-bar__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.team-bar__title-main {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.team-bar__title-accent {
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: teamGradientShift 6s linear infinite;
}

.team-bar__tagline {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 340px;
}

.team-bar__stats {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    background: rgba(0, 224, 255, 0.04);
    border: 1px solid rgba(0, 224, 255, 0.15);
    border-radius: 14px;
}

.team-bar__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 54px;
    position: relative;
}

.team-bar__stat + .team-bar__stat::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 22px;
    background: linear-gradient(180deg, transparent, rgba(0, 224, 255, 0.3), transparent);
}

.team-bar__stat strong {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.team-bar__stat span {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.4px;
}

.team-bar__hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 999px;
    color: #b794f6;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    animation: hintGlow 3s ease-in-out infinite;
}

@keyframes hintGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.2); }
    50%      { box-shadow: 0 0 16px 2px rgba(124, 58, 237, 0.15); }
}

.team-bar__hint-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b794f6;
    box-shadow: 0 0 6px #b794f6;
    flex-shrink: 0;
}

/* =====================================================
   Bio Panel (Typewriter)
   ===================================================== */
/* =====================================================
   Bio Panel — موقعیت بر اساس جایگاه node
   ===================================================== */
.node-bio {
    position: absolute;
    width: 220px;
    padding: 14px 16px;
    background: rgba(10, 15, 36, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 224, 255, 0.35);
    border-radius: 12px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 224, 255, 0.12);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        transform 0.3s cubic-bezier(.2,.9,.3,1.2),
        visibility 0s linear 0.3s;
    z-index: 1000;   /* ← بالاتر از عکس‌های دیگر */
    direction: rtl;
    text-align: right;
}

.node:hover .node-bio {
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.3s ease,
        transform 0.3s cubic-bezier(.2,.9,.3,1.2),
        visibility 0s;
}

/* -------------- حالت راست: پنل سمت راست node -------------- */
.node.bio-right .node-bio {
    top: 50%;
    left: calc(100% + 18px);
    right: auto;
    bottom: auto;
    transform: translateY(-50%) translateX(-8px);
}
.node.bio-right:hover .node-bio {
    transform: translateY(-50%) translateX(0);
}

/* فلش سمت چپ پنل (چون پنل سمت راست node است) */
.node.bio-right .node-bio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -7px;
    right: auto;
    bottom: auto;
    transform: translateY(-50%) rotate(-45deg);
    width: 12px;
    height: 12px;
    background: rgba(10, 15, 36, 0.95);
    border-left: 1px solid rgba(0, 224, 255, 0.35);
    border-bottom: 1px solid rgba(0, 224, 255, 0.35);
    border-radius: 0 0 0 2px;
}

/* -------------- حالت چپ: پنل سمت چپ node -------------- */
.node.bio-left .node-bio {
    top: 50%;
    right: calc(100% + 18px);
    left: auto;
    bottom: auto;
    transform: translateY(-50%) translateX(8px);
}
.node.bio-left:hover .node-bio {
    transform: translateY(-50%) translateX(0);
}

/* فلش سمت راست پنل (چون پنل سمت چپ node است) */
.node.bio-left .node-bio::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -7px;
    left: auto;
    bottom: auto;
    transform: translateY(-50%) rotate(135deg);
    width: 12px;
    height: 12px;
    background: rgba(10, 15, 36, 0.95);
    border-left: 1px solid rgba(0, 224, 255, 0.35);
    border-bottom: 1px solid rgba(0, 224, 255, 0.35);
    border-radius: 0 2px 0 0;
}

/* -------------- حالت وسط: پنل بالای node -------------- */
.node.bio-center .node-bio {
    bottom: calc(100% + 18px);
    top: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(8px);
}
.node.bio-center:hover .node-bio {
    transform: translateX(-50%) translateY(0);
}

/* فلش پایین پنل (چون پنل بالای node است) */
.node.bio-center .node-bio::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(10, 15, 36, 0.95);
    border-right: 1px solid rgba(0, 224, 255, 0.35);
    border-bottom: 1px solid rgba(0, 224, 255, 0.35);
    border-radius: 0 0 2px 0;
}

.node-bio::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(10, 15, 36, 0.95);
    border-right: 1px solid rgba(0, 224, 255, 0.35);
    border-bottom: 1px solid rgba(0, 224, 255, 0.35);
    border-radius: 0 0 2px 0;
}

.node-bio__inner { position: relative; }

.node-bio__name {
    font-size: 13px;
    font-weight: 700;
    color: #e6edf7;
    margin-bottom: 3px;
    background: linear-gradient(90deg, #00e0ff, #ff2e9a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.node-bio__role {
    font-size: 10px;
    color: #00e0ff;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.node-bio__text {
    font-size: 11.5px;
    line-height: 1.7;
    color: #c9d4e5;
    min-height: 20px;
    white-space: pre-line;
    word-break: break-word;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.node-bio__text::after {
    content: '|';
    color: #00e0ff;
    animation: bioCursorBlink 0.9s step-end infinite;
    margin-right: 1px;
    opacity: 0;
}

.node:hover .node-bio__text::after { opacity: 1; }

@keyframes bioCursorBlink {
    0%, 50%   { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 900px) {
    .tree-stage { padding-top: 80px; }
    .info-panel {
        top: auto;
        left: 50%;
        bottom: 20px;
        transform: translateX(-50%) translateY(120%);
        width: calc(100% - 32px);
        max-height: 60vh;
        overflow-y: auto;
    }
    .info-panel.is-open { transform: translateX(-50%) translateY(0); }
}

@media (max-width: 780px) {
    .team-bar { top: 12px; }
    .team-bar__trigger { padding: 8px 16px; font-size: 11px; }
    .team-bar__trigger-text { font-size: 11px; }
    .team-bar__panel { padding: 16px; border-radius: 14px; }
    .team-bar__row { grid-template-columns: 1fr; gap: 16px; text-align: center; }
    .team-bar__title { justify-content: center; }
    .team-bar__title-main { font-size: 15px; }
    .team-bar__title-accent { font-size: 17px; }
    .team-bar__tagline { max-width: none; font-size: 11px; }
    .team-bar__stats { justify-content: center; padding: 8px 16px; gap: 14px; }
    .team-bar__stat strong { font-size: 17px; }
    .team-bar__hint { justify-self: center; }

    .tree-stage { padding-top: 90px; padding-bottom: 20px; }
    .tree-container { width: 100vw; height: calc(100vh - 110px); max-width: 100vw; max-height: none; }
    .node::before { inset: -4px; animation-duration: 30s; }
    .node::after { font-size: 9px; padding: 2px 7px; top: calc(100% + 5px); }
    .node__inner { border-width: 1.5px; }
    .tree-svg .branch { stroke-width: 1.2; }
    .tree-svg .branch--main { stroke-width: 1.8; }

    .info-panel {
        top: auto;
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-height: 60vh;
        overflow-y: auto;
        padding: 22px 18px;
        transform: translateY(120%);
        border-radius: 18px;
    }
    .info-panel.is-open { transform: translateY(0); }
    .info-panel__avatar { width: 56px; height: 56px; margin-bottom: 14px; }
    .info-panel__name { font-size: 18px; margin-bottom: 4px; }
    .info-panel__role { font-size: 12px; margin-bottom: 14px; }
    .info-panel__divider { margin: 12px 0; }
    .info-panel__label { font-size: 10px; margin-bottom: 4px; }
    .info-panel__value { font-size: 12.5px; line-height: 1.8; margin-bottom: 12px; }
    .info-panel__skills span { font-size: 10px; padding: 3px 9px; }
    .info-panel__close { top: 12px; left: 12px; width: 28px; height: 28px; font-size: 18px; }

    .node-bio { display: none; }
}

@media (max-width: 480px) {
    .tree-stage { padding-top: 80px; padding-bottom: 10px; }
    .tree-container { height: calc(100vh - 90px); }
    .node::before { inset: -4px; }
    .node::after { font-size: 9px; padding: 2px 6px; }
    .info-panel { left: 8px; right: 8px; bottom: 8px; padding: 20px 16px; max-height: 70vh; }
    .info-panel__name { font-size: 16px; }
}

@media (max-width: 900px) and (orientation: landscape) {
    .tree-stage { padding-top: 60px; padding-bottom: 10px; }
    .tree-container { height: calc(100vh - 70px); max-width: 90vw; }
    .node { width: 44px !important; height: 44px !important; }
    .info-panel {
        top: 50%;
        bottom: auto;
        left: 10px;
        right: auto;
        width: 300px;
        max-height: 80vh;
        transform: translateY(-50%) translateX(-120%);
    }
    .info-panel.is-open { transform: translateY(-50%) translateX(0); }
}
/* =====================================================
   مخفی کردن عناصر قالب در صفحه تیم استودیو
   ===================================================== */

/* هدر سایت */
body.page-template-page-team-studio header.site-header,
body.page-template-page-team-studio .site-header,
body.page-template-page-team-studio header#masthead,
body.page-template-page-team-studio #masthead,
body.page-template-page-team-studio .main-header,
body.page-template-page-team-studio #header,
body.page-template-page-team-studio .header {
    display: none !important;
}

/* فوتر سایت */
body.page-template-page-team-studio footer.site-footer,
body.page-template-page-team-studio .site-footer,
body.page-template-page-team-studio footer#colophon,
body.page-template-page-team-studio #colophon,
body.page-template-page-team-studio .main-footer,
body.page-template-page-team-studio #footer,
body.page-template-page-team-studio .footer {
    display: none !important;
}

/* نوار وردپرس (اگر با فیلتر مخفی نشد) */
body.page-template-page-team-studio.admin-bar #wpadminbar,
body.page-template-page-team-studio #wpadminbar {
    display: none !important;
}

body.page-template-page-team-studio.admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

html.page-template-page-team-studio {
    margin-top: 0 !important;
}

/* حذف فضای خالی بالای صفحه که نوار وردپرس اشغال می‌کرد */
body.page-template-page-team-studio {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
/* node در حال هاور، بالاتر از بقیه */
.node:hover,
.node.is-active {
    z-index: 100 !important;
}

/* node معمولی */
.node {
    z-index: 5;
}