@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600&display=swap');

html.mf-intro-active,
html.mf-intro-active body {
    background: #06141b;
    overflow: hidden !important;
    overscroll-behavior: none;
}

#mf-team-intro {
    --team-cyan: #8df4e6;
    --team-magenta: #f39bd4;
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    color: #d9f7f1;
    background:
        radial-gradient(ellipse at 50% 49%, rgba(34, 119, 128, .25), transparent 31%),
        radial-gradient(ellipse at 17% 21%, rgba(243, 89, 190, .11), transparent 27%),
        radial-gradient(ellipse at 84% 78%, rgba(65, 205, 202, .12), transparent 29%),
        #06141b;
    font-family: 'DM Mono', monospace;
    opacity: 1;
    visibility: visible;
    transition: opacity 650ms cubic-bezier(.76, 0, .24, 1), visibility 0s linear 650ms;
}
#mf-team-intro::before,
#mf-team-intro::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
}
#mf-team-intro::before {
    opacity: .08;
    background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(190, 255, 246, .16) 4px, transparent 5px);
    mask-image: linear-gradient(transparent, #000 13%, #000 87%, transparent);
}
#mf-team-intro::after {
    inset: -28%;
    z-index: -2;
    opacity: .13;
    background-image:
        radial-gradient(circle, rgba(141, 244, 230, .56) 0 1px, transparent 1.6px),
        radial-gradient(circle, rgba(243, 155, 212, .52) 0 1px, transparent 1.6px);
    background-position: 13px 31px, 76px 103px;
    background-size: 143px 157px, 197px 181px;
    mask-image: radial-gradient(ellipse, #000 8%, transparent 72%);
}
#mf-team-intro.mf-team-intro-leaving { opacity: 0; visibility: hidden; pointer-events: none; }

.mf-team-intro-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .7;
    background:
        radial-gradient(circle at 18% 24%, rgba(141, 244, 230, .8) 0 1px, transparent 2px),
        radial-gradient(circle at 82% 25%, rgba(243, 155, 212, .72) 0 1px, transparent 2px),
        radial-gradient(circle at 76% 79%, rgba(141, 244, 230, .56) 0 1px, transparent 2px),
        radial-gradient(circle at 22% 78%, rgba(243, 155, 212, .5) 0 1px, transparent 2px);
}

/* Open holographic composition: six marks surround a quiet central greeting,
   with light paths held to the outer field. */
.mf-team-intro-stage {
    position: relative;
    width: min(100%, 1120px);
    height: min(820px, 100dvh);
    min-height: 0;
    overflow: visible;
}
.mf-team-greeting {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: max-content;
    max-width: 94%;
    margin: 0;
    color: #e5fffb;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6.1vw, 5.5rem);
    font-weight: 500;
    letter-spacing: -.075em;
    line-height: .95;
    text-align: center;
    text-shadow: 0 0 10px rgba(141, 244, 230, .32), 0 0 38px rgba(82, 226, 217, .14);
    transform: translate(-50%, -50%);
    animation: mf-team-heading-etch 1550ms cubic-bezier(.2, .72, .26, 1) both;
}
.mf-team-greeting::after {
    position: absolute;
    right: 6%;
    bottom: -.28em;
    left: 31%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(141, 244, 230, .86), rgba(243, 155, 212, .72), transparent);
    transform-origin: left;
    animation: mf-team-line-etch 1050ms cubic-bezier(.2, .72, .26, 1) 650ms both;
}
.mf-team-roster {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.mf-team-field {
    position: absolute;
    inset: 0;
}
.mf-team-branchwork {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}
.mf-team-branchwork path {
    fill: none;
    stroke: url(#mf-team-spectrum);
    stroke-width: .8;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    opacity: .27;
    vector-effect: non-scaling-stroke;
    animation: mf-team-branch-etch 2050ms cubic-bezier(.32, .02, .24, 1) 620ms both;
}
.mf-team-branchwork circle {
    fill: #9ef7ed;
    filter: drop-shadow(0 0 4px rgba(141, 244, 230, .5));
    opacity: .34;
}
.mf-team-badge-icon {
    --badge-tint: #8df4e6;
    --badge-index: 0;
    position: absolute;
    display: grid;
    width: clamp(50px, 6.2vw, 72px);
    aspect-ratio: 1;
    place-items: center;
    color: var(--badge-tint);
    filter: drop-shadow(0 0 9px color-mix(in srgb, var(--badge-tint) 27%, transparent));
    opacity: 0;
    transform: translate(-50%, 4px);
    animation: mf-team-badge-settle 850ms cubic-bezier(.2, .72, .26, 1) calc(1450ms + var(--badge-index) * 105ms) both;
}
.mf-team-badge-icon:nth-child(1) { left: 17%; top: 16%; }
.mf-team-badge-icon:nth-child(2) { left: 50%; top: 16%; }
.mf-team-badge-icon:nth-child(3) { left: 83%; top: 16%; }
.mf-team-badge-icon:nth-child(4) { left: 17%; top: 82%; }
.mf-team-badge-icon:nth-child(5) { left: 50%; top: 82%; }
.mf-team-badge-icon:nth-child(6) { left: 83%; top: 82%; }
.mf-team-badge-icon svg {
    width: clamp(34px, 3.8vw, 46px);
    height: clamp(34px, 3.8vw, 46px);
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.3;
    filter: drop-shadow(0 0 4px color-mix(in srgb, currentColor 34%, transparent));
}
.mf-team-wire { opacity: .12; }
.mf-team-etch {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: mf-team-etch 1420ms cubic-bezier(.32, .02, .24, 1) calc(1450ms + var(--badge-index) * 105ms) both;
}
.mf-team-state {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    min-width: min(280px, 85vw);
    min-height: 64px;
    place-items: center;
    padding: 18px;
    color: rgba(210, 243, 238, .88);
    font-size: 10px;
    letter-spacing: .16em;
    text-align: center;
    text-shadow: 0 0 18px rgba(141, 244, 230, .45);
    transform: translate(-50%, -50%);
}
.mf-team-state-error { color: #f2b4d9; text-shadow: 0 0 18px rgba(243, 155, 212, .5); }

@keyframes mf-team-etch { to { stroke-dashoffset: 0; } }
@keyframes mf-team-branch-etch { to { stroke-dashoffset: 0; } }
@keyframes mf-team-heading-etch {
    from { opacity: .18; clip-path: inset(0 100% 0 0); transform: translate(-50%, calc(-50% + 5px)); }
    to { opacity: 1; clip-path: inset(0 0 0 0); transform: translate(-50%, -50%); }
}
@keyframes mf-team-line-etch {
    from { opacity: 0; transform: scaleX(.04); }
    to { opacity: .62; transform: scaleX(1); }
}
@keyframes mf-team-badge-settle {
    from { opacity: 0; transform: translate(-50%, 4px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 700px) {
    .mf-team-intro-stage { width: 100%; height: 100dvh; }
    .mf-team-greeting {
        top: 50%;
        max-width: 96%;
        font-size: clamp(2.25rem, 9.6vw, 3.15rem);
        letter-spacing: -.08em;
    }
    .mf-team-badge-icon { width: 54px; }
    .mf-team-badge-icon svg { width: 36px; height: 36px; }
    .mf-team-badge-icon:nth-child(1),
    .mf-team-badge-icon:nth-child(2),
    .mf-team-badge-icon:nth-child(3) { top: 16%; }
    .mf-team-badge-icon:nth-child(4),
    .mf-team-badge-icon:nth-child(5),
    .mf-team-badge-icon:nth-child(6) { top: 82%; }
}
@media (max-width: 360px) {
    .mf-team-badge-icon { width: 50px; }
    .mf-team-badge-icon svg { width: 33px; height: 33px; }
    .mf-team-greeting { font-size: 2rem; }
}
@media (max-height: 730px) {
    .mf-team-badge-icon:nth-child(1),
    .mf-team-badge-icon:nth-child(2),
    .mf-team-badge-icon:nth-child(3) { top: 12%; }
    .mf-team-badge-icon:nth-child(4),
    .mf-team-badge-icon:nth-child(5),
    .mf-team-badge-icon:nth-child(6) { top: 84%; }
}
@media (prefers-reduced-motion: reduce) {
    .mf-team-branchwork path, .mf-team-etch, .mf-team-greeting::after, .mf-team-greeting, .mf-team-badge-icon {
        animation: none !important;
        clip-path: none;
    }
    .mf-team-etch, .mf-team-branchwork path { stroke-dashoffset: 0; }
    .mf-team-badge-icon { opacity: 1; transform: translateX(-50%); }
    #mf-team-intro.mf-team-intro-leaving { opacity: 1; visibility: visible; }
    #mf-team-intro { transition: none; }
}
