/* =============================================
   TEAM PAGE — STANDALONE STYLESHEET
   Magnify Vision Media
   ============================================= */

/* --- FONT FACES --- */
@font-face {
    font-family: 'Altone';
    src: url('fonts/Altone-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Altone';
    src: url('fonts/Altone-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueMedium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #FFFFFF;
    font-family: 'Altone Trial', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
    background-color: #FFFFFF;
    color: #000000;
}

/* --- UTILITY --- */
.text-center {
    text-align: center;
}

.justify-center {
    justify-content: center;
}

.hidden-top {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.hidden-bottom {
    transform: translateY(40px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.show-nav {
    transform: none;
    opacity: 1;
}

.show-element {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 80px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-color: transparent;
    z-index: -1;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.navbar .logo img {
    height: 50px;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Dual logo: full ↔ icon */
.logo {
    position: relative;
    display: flex;
    align-items: center;
}

.logo .logo-full {
    height: 50px;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.45s ease, transform 0.45s ease, height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.logo .logo-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    height: 38px;
    width: 38px;
    object-fit: contain;
    object-position: left center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.navbar.scrolled-nav .logo .logo-full {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
}

.navbar.scrolled-nav .logo .logo-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}

body.light-mode .navbar.scrolled-nav .logo .logo-icon {
    content: url('img/MVMLogoBlack.png');
}

.navbar.scrolled-nav {
    top: 20px;
    width: 80%;
    left: 10%;
    padding: 15px 40px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.navbar.scrolled-nav::before {
    background-color: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navbar.scrolled-nav .logo img {
    height: 35px;
}

body.light-mode .navbar.scrolled-nav {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body.light-mode .navbar.scrolled-nav::before {
    background-color: rgba(255, 255, 255, 0.85);
}

/* Nav links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    transition: opacity 0.3s ease;
}

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Altone Trial', sans-serif;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

body.light-mode .nav-links a {
    color: #000000;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #F46B2F;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-links a:hover::after {
    bottom: 0;
    opacity: 1;
}

/* CTA button */
.btn-outline {
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid #F46B2F;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: 'Altone Trial', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.btn-outline::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: #F46B2F;
    transition: height 0.3s ease;
    z-index: -1;
}

.btn-outline:hover::before {
    height: 100%;
}

.btn-outline:hover {
    color: #FFFFFF;
}

body.light-mode .btn-outline {
    color: #000000;
}

body.light-mode .btn-outline:hover {
    color: #FFFFFF;
}

.navbar.scrolled-nav .btn-outline {
    background-color: #F46B2F;
    color: #FFFFFF;
}

body.light-mode .navbar.scrolled-nav .btn-outline {
    color: #FFFFFF;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 32px;
    height: 2px;
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.hamburger span:nth-child(1) {
    background-color: #F46B2F;
}

.hamburger span:nth-child(2) {
    background-color: #FFFFFF;
}

body.light-mode .hamburger span:nth-child(2) {
    background-color: #000000;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
}

/* --- SECTION LABEL & DOT --- */
.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: clamp(14px, 1.5vw, 17px);
    font-weight: 300;
    color: #FFFFFF;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

body.light-mode .section-label {
    color: #000000;
}

.section-label .dot {
    width: 12px;
    height: 12px;
    background-color: #F46B2F;
    border-radius: 50%;
    display: inline-block;
}

/* --- TEAM INTRO SECTION --- */
.team-section {
    padding: 80px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

/* --- TEAM CARDS SECTION HEADER --- */
.team-main-title {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
    text-align: center;
    transition: color 0.3s ease;
}

body.light-mode .team-main-title {
    color: #000000;
}

.team-sub-title {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 300;
    color: #585858;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.4s;
}

.team-section.show-element .team-sub-title {
    opacity: 1;
    transform: translateY(0);
}

/* --- TEAM GRID & CARDS --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-section.show-element .team-card {
    opacity: 1;
    transform: translateY(0);
}

.team-section.show-element .team-card:nth-child(1) {
    transition-delay: 0.4s, 0.4s, 0s, 0s;
}

.team-section.show-element .team-card:nth-child(2) {
    transition-delay: 0.6s, 0.6s, 0s, 0s;
}

.team-section.show-element .team-card:nth-child(3) {
    transition-delay: 0.8s, 0.8s, 0s, 0s;
}

.team-section.show-element .team-card:hover {
    transition-delay: 0s, 0s, 0s, 0s;
}

body.light-mode .team-card {
    background: #FFFFFF;
    border: 2px solid rgba(0, 0, 0, 0.226);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(244, 106, 47, 0.733);
    box-shadow: 0 12px 30px rgba(244, 107, 47, 0.1);
}

body.light-mode .team-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(244, 106, 47, 0.733);
}

.team-img-container {
    width: 100%;
    aspect-ratio: 1.5 / 1;
    overflow: hidden;
    background-color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-img-container img {
    width: 30%;
    height: auto;
    object-fit: contain;
    opacity: 0.4;
    transition: transform 0.5s ease, filter 0.3s ease, opacity 0.3s ease;
}

body.light-mode .team-img-container {
    background-color: #bbbbbb;
}

body.light-mode .team-img-container img {
    filter: brightness(1);
}

.team-card:hover .team-img-container img {
    opacity: 1;
}

.team-info {
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.team-separator {
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

body.light-mode .team-separator {
    background-color: #E0E0E0;
}

body.light-mode .team-separator::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 6px;
    background-color: #FFFFFF;
    border-radius: 0 0 15px 15px;
}

.team-role {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #F46B2F;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.team-name {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

body.light-mode .team-name {
    color: #000000;
}

.team-desc {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

body.light-mode .team-desc {
    color: rgba(0, 0, 0, 0.7);
}

/* --- ARC ANIMATION WRAPPER --- */
.team-arc-wrapper {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    z-index: 1;
}

.team-arc-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

body.light-mode .arc-outer {
    stroke: rgba(0, 0, 0, 0.15) !important;
}

/* Arc visibility by screen size */
.desktop-arcs {
    display: block;
}

.mobile-arcs {
    display: none;
}

.team-grid-2 {
    position: relative;
    z-index: 10;
    width: 100%;
}

.team-arc-wrapper .team-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    background-color: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .team-arc-wrapper .team-card {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.team-grid.team-grid-2 {
    display: flex !important;
    justify-content: center;
    gap: 100px !important;
    max-width: 1000px;
    margin: 0 auto;
}

.team-grid-2 .team-card {
    flex: 1 1 400px;
    max-width: 450px;
}

/* Arc draw animation — dasharray/dashoffset set per-path via inline style */
.animated-arc {
    animation: none;
}

.team-arc-wrapper.show-arcs .animated-arc {
    animation: drawBaldArcs 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* All 3 groups fire simultaneously — stagger only by color tier */
.team-arc-wrapper.show-arcs .animated-arc:nth-child(1),
.team-arc-wrapper.show-arcs .animated-arc:nth-child(4),
.team-arc-wrapper.show-arcs .animated-arc:nth-child(7) {
    animation-delay: 0s;
}

.team-arc-wrapper.show-arcs .animated-arc:nth-child(2),
.team-arc-wrapper.show-arcs .animated-arc:nth-child(5),
.team-arc-wrapper.show-arcs .animated-arc:nth-child(8) {
    animation-delay: 0.25s;
}

.team-arc-wrapper.show-arcs .animated-arc:nth-child(3),
.team-arc-wrapper.show-arcs .animated-arc:nth-child(6),
.team-arc-wrapper.show-arcs .animated-arc:nth-child(9) {
    animation-delay: 0.5s;
}

@keyframes drawBaldArcs {
    to {
        stroke-dashoffset: 0;
    }
}

/* Team section header: force visible */
#team-title,
#team-title .letter {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
}

#team .team-sub-title {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#team .section-label,
#team .team-main-title,
#team .team-sub-title {
    position: relative;
    z-index: 20 !important;
}

#team .team-sub-title {
    margin-bottom: 20px !important;
}

/* --- FOUNDER ICONS --- */
.founder-icons {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 28px;
}

.founder-icons .material-icons {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.3s ease;
}

body.light-mode .founder-icons .material-icons {
    color: rgba(0, 0, 0, 0.25);
}

/* --- CONNECT WITH US SECTION --- */
.connect-title {
    color: #F46B2F !important;
}

.connect-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.connect-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.connect-item-title {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

body.light-mode .connect-item-title {
    color: #000000;
}

.connect-item-desc {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    transition: color 0.3s ease;
}

body.light-mode .connect-item-desc {
    color: rgba(0, 0, 0, 0.55);
}

.connect-email {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #F46B2F;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.connect-email:hover {
    opacity: 0.7;
}

/* --- THEME TOGGLE BUTTON --- */
.theme-btn {
    position: fixed;
    bottom: 40px;
    left: 40px;
    background: transparent;
    color: #FFFFFF;
    border: none;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 1000;
    padding: 0;
}

.theme-btn:hover {
    transform: scale(1.1);
}

body.light-mode .theme-btn {
    color: #000000;
}

/* --- FOOTER --- */
.site-footer {
    background-color: #FFFFFF;
    border-radius: 40px;
    padding: 100px 80px 0;
    color: #000000;
    width: calc(100% - 40px);
    margin: 0px auto 20px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease,
        transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;

}

body.light-mode .site-footer {
    background-color: #000000;
    color: #FFFFFF;
}

.footer-content-wrapper {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.footer-logo-row {
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    transition: opacity 0.3s ease;
}

.footer-tagline {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.footer-main-row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 80px;
}

.footer-links-container {
    display: flex;
    gap: 120px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-heading {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #888888;
    margin-bottom: 5px;
}

.footer-col a,
.footer-contact p,
.footer-contact-link,
.footer-copyright p {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s ease;
}

body.light-mode .footer-col a,
body.light-mode .footer-contact p,
body.light-mode .footer-contact-link,
body.light-mode .footer-copyright p {
    color: #FFFFFF;
}

.footer-col a:hover,
.footer-contact-link:hover {
    color: #F46B2F;
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.newsletter-title {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.newsletter-desc {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    background-color: #000000;
    border-radius: 50px;
    padding: 6px;
    width: 100%;
    transition: background-color 0.3s ease;
}

body.light-mode .newsletter-form {
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-form input {
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: #FFFFFF;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 14px;
    flex-grow: 1;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    background-color: #FFFFFF;
    color: #000000;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

body.light-mode .newsletter-form button {
    background-color: #F46B2F;
    color: #FFFFFF;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 60px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- RESPONSIVE --- */
@media (min-width: 1440px) {
    .navbar {
        padding: 50px 120px;
    }

    .navbar.scrolled-nav {
        padding: 15px 60px;
        width: 70%;
        left: 15%;
    }
}

@media (max-width: 1366px) {
    .navbar {
        padding: 40px 60px;
    }

    .navbar.scrolled-nav {
        width: 85%;
        left: 7.5%;
    }
}

@media (max-width: 1024px) {
    .navbar {
        flex-direction: row;
        padding: 30px 40px;
    }

    .navbar.scrolled-nav {
        flex-direction: row;
        padding: 15px 30px;
        width: 90%;
        left: 5%;
    }

    .hamburger {
        display: flex;
    }

    .nav-content {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 50px 20px 80px;
        border-radius: 30px 30px 0 0;
        transform: translateY(100%);
        visibility: hidden;
        opacity: 0;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, visibility 0.6s;
        z-index: -1;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    }

    .nav-content.active {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }

    body.light-mode .nav-content {
        background-color: rgba(255, 255, 255, 0.95);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .nav-links a {
        font-size: 20px;
    }

    .team-section {
        padding: 80px 40px;
    }

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

    .team-grid.team-grid-2 {
        gap: 50px !important;
    }

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

    /* Hide arcs on tablet — 2×2 grid stands alone */
    .desktop-arcs {
        display: none;
    }

    .mobile-arcs {
        display: none;
    }

    .team-arc-wrapper {
        min-height: auto;
        padding: 0;
    }

    .site-footer {
        padding: 80px 40px 0;
        border-radius: 30px;
        width: calc(100% - 20px);
        margin: 0 auto 20px;
    }

    .footer-main-row {
        flex-direction: column;
        gap: 60px;
    }

    .footer-links-container {
        flex-wrap: wrap;
        gap: 50px;
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .team-grid.team-grid-2 {
        flex-direction: column;
        align-items: center;
        gap: 30px !important;
    }

    .team-grid-2 .team-card {
        width: 100%;
    }

    /* team-intro section responsive */
    #team-intro {
        grid-template-columns: 1fr !important;
        padding: 100px 30px 60px !important;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 20px;
    }

    .navbar.scrolled-nav {
        padding: 15px 20px;
        top: 10px;
        width: 95%;
        left: 2.5%;
    }

    .team-section {
        padding: 60px 20px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .team-info {
        padding: 20px;
    }

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

    /* Mobile connect section — 2x2 Grid, NO ARCS */
    .mobile-arcs {
        display: none !important;
    }

    .team-arc-wrapper {
        min-height: auto;
        align-items: center;
        padding: 0;
    }

    .connect-grid {
        grid-template-columns: 1fr 1fr;
        /* Forces the perfect 4-box 2x2 grid */
        gap: 50px 20px;
        height: auto;
        padding: 0;
    }

    .site-footer {
        padding: 60px 20px 0;
        border-radius: 20px;
    }

    .footer-links-container {
        flex-direction: column;
        gap: 30px;
    }

    .newsletter-title {
        font-size: 20px;
    }
}

/* ══════════════════════
   480px — Force 1-Column Stack for ALL Phones
   ══════════════════════ */
@media (max-width: 480px) {
    .connect-grid {
        grid-template-columns: 1fr !important;
        /* Forces 1 straight column */
        gap: 40px !important;
        padding-left: 10px !important;
    }
}