/* ========================================= */
/* ROOT VARIABLES */
/* ========================================= */

:root {

    --bg: #050505;

    --bg-secondary: #0d0d0d;

    --card: #111111;

    --card-light: #1a1a1a;

    --text: #ffffff;

    --text-muted: #8f8f8f;

    --border: rgba(255, 255, 255, 0.12);

    --accent: #ffffff;

    --accent-dark: #2a2a2a;

    --gradient-light: linear-gradient(
        135deg,
        #ffffff 0%,
        #a3a3a3 50%,
        #ffffff 100%
    );

    --gradient-dark: linear-gradient(
        135deg,
        #ffffff 0%,
        #6b6b6b 45%,
        #111111 100%
    );

    --container: 1300px;

}


/* ========================================= */
/* RESET */
/* ========================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    background: var(--bg);

    color: var(--text);

    font-family: "Manrope", sans-serif;

    overflow-x: hidden;

}


body.menu-open {

    overflow: hidden;

}


a {

    text-decoration: none;

    color: inherit;

}


button,
input,
textarea,
select {

    font-family: inherit;

}


button {

    cursor: pointer;

}


::selection {

    background: var(--accent);

    color: white;

}


/* ========================================= */
/* CONTAINER */
/* ========================================= */

.container {

    width: min(90%, var(--container));

    margin: auto;

}


.section-space {

    padding: 150px 0;

}


/* ========================================= */
/* CUSTOM CURSOR */
/* ========================================= */

.cursor {

    width: 8px;

    height: 8px;

    background: white;

    position: fixed;

    border-radius: 50%;

    pointer-events: none;

    z-index: 9999;

    transform: translate(-50%, -50%);

}


.cursor-follower {

    width: 35px;

    height: 35px;

    border: 1px solid rgba(255,255,255,0.5);

    position: fixed;

    border-radius: 50%;

    pointer-events: none;

    z-index: 9998;

    transform: translate(-50%, -50%);

    transition: width .2s,
                height .2s,
                background .2s;

}


/* ========================================= */
/* BACKGROUND EFFECTS */
/* ========================================= */

.noise {

    position: fixed;

    inset: 0;

    opacity: 0.035;

    pointer-events: none;

    z-index: 100;

    background-image:
        url("https://grainy-gradients.vercel.app/noise.svg");

}


.gradient-orb {

    position: fixed;

    width: 500px;

    height: 500px;

    filter: blur(150px);

    opacity: 0.08;

    border-radius: 50%;

    pointer-events: none;

}


.orb-1 {

    background: #ffffff;

    top: -200px;

    left: -200px;

}


.orb-2 {

    background: #555555;

    top: 40%;

    right: -250px;

}


.orb-3 {

    background: #888888;

    bottom: -250px;

    left: 20%;

}


/* ========================================= */
/* HEADER */
/* ========================================= */

.header {

    position: fixed;

    width: 100%;

    top: 0;

    z-index: 1000;

    padding: 20px 0;

}


.navbar {

    position: fixed;

    top: 22px;

    left: 50%;

    transform: translateX(-50%);

    width: min(1300px, 90%);

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 14px 20px;

    border: 1px solid var(--border);

    background: rgba(15,15,18,.7);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    border-radius: 18px;

    z-index: 1000;

    /* Smooth hide/show animation */

    transition:
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease;

}


/* Hide navbar when scrolling down */

.navbar.nav-hide {

    transform:
        translateX(-50%)
        translateY(-130px);

    opacity: 0;

    pointer-events: none;

}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 160px;
    height: 50px;
    object-fit: contain;
    object-position: left center;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo:hover img {
    transform: scale(1.03);
    opacity: 0.85;
}


/* Mobile */

@media (max-width: 700px) {

    .logo img {
        width: 125px;
        height: 40px;
    }

}


.nav-links {

    display: flex;

    list-style: none;

    gap: 35px;

}


.nav-links a {

    font-size: 14px;

    color: var(--text-muted);

    transition: .3s;

}


.nav-links a:hover {

    color: white;

}


.nav-button {

    background: white;

    color: black;

    padding: 11px 18px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 700;

}


.nav-button span {

    margin-left: 5px;

}


.menu-toggle {

    display: none;

    background: none;

    border: none;

}


.menu-toggle span {

    display: block;

    width: 25px;

    height: 2px;

    background: white;

    margin: 5px;

}


/* ========================================= */
/* MOBILE MENU */
/* ========================================= */

.mobile-menu {

    display: none;

    position: absolute;

    top: 85px;

    left: 5%;

    right: 5%;

    padding: 30px;

    background: #15151a;

    border: 1px solid var(--border);

    border-radius: 15px;

}


.mobile-menu.active {

    display: flex;

    flex-direction: column;

    gap: 20px;

}


.mobile-menu a {

    font-size: 20px;

}


/* ========================================= */
/* HERO */
/* ========================================= */

.hero {

    min-height: 100vh;

    padding-top: 200px;
    padding-bottom: 70px;

    position: relative;

}


.hero-badge {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 8px 13px;

    border: 1px solid var(--border);

    border-radius: 30px;

    font-family: "DM Mono", monospace;

    font-size: 10px;

    letter-spacing: 1px;

    color: var(--text-muted);

}


.status-dot {

    width: 7px;

    height: 7px;

  background: #ffffff;

    box-shadow: 0 0 12px rgba(255,255,255,.8);

    border-radius: 50%;

}


.hero-title {

    font-size: clamp(55px, 9vw, 145px);

    line-height: .95;

    letter-spacing: -6px;

    max-width: 1200px;

    margin: 45px 0 70px;

}


.gradient-text {

    background: linear-gradient(
        90deg,
        #ffffff,
        #777777,
        #ffffff
    );

    background-clip: text;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-size: 200% auto;

    animation: shineText 6s linear infinite;

}


@keyframes shineText {

    0% {

        background-position: 0% center;

    }

    100% {

        background-position: 200% center;

    }

}

.hero-bottom {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 50px;

}


.hero-description {

    max-width: 430px;

    color: var(--text-muted);

    font-size: 17px;

    line-height: 1.8;

    margin: 0;

}


.hero-actions {

    display: flex;

    align-items: center;

    gap: 30px;

}


.btn-primary {

    display: flex;

    align-items: center;

    gap: 25px;

    background: white;

    color: black;

    padding: 8px 8px 8px 20px;

    border-radius: 50px;

    font-size: 14px;

    font-weight: 700;

}


.btn-icon {

    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

    background: black;

    color: white;

    border-radius: 50%;

}


.btn-text {

    font-size: 14px;

    color: var(--text-muted);

}


.btn-text span {

    margin-left: 8px;

}


.scroll-indicator {

    position: relative;

    display: flex;

    align-items: center;

    width: fit-content;

    gap: 15px;

    margin-top: 32px;

    font-family: "DM Mono", monospace;

    font-size: 9px;

    font-weight: 500;

    color: var(--text-muted);

    letter-spacing: 3px;

    text-transform: uppercase;

    z-index: 5;

}


.scroll-line {

    width: 70px;

    height: 1px;

    background: rgba(255, 255, 255, 0.22);

    position: relative;

    overflow: hidden;

}


.scroll-line::after {

    content: "";

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: #ffffff;

    animation: scrollLineMove 2.2s ease-in-out infinite;

}


@keyframes scrollLineMove {

    0% {
        left: -100%;
    }

    50% {
        left: 0;
    }

    100% {
        left: 100%;
    }

}


/* ========================================= */
/* MARQUEE */
/* ========================================= */

.marquee-section {

    padding: 30px 0;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

    overflow: hidden;

}


.marquee {

    white-space: nowrap;

}


.marquee-content {

    display: inline-flex;

    align-items: center;

    gap: 35px;

    animation: marquee 25s linear infinite;

}


.marquee-content span {

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 2px;

}


.star {

     color: #ffffff;

    opacity: .5;
}


@keyframes marquee {

    from {

        transform: translateX(0);

    }

    to {

        transform: translateX(-50%);

    }

}


/* ========================================= */
/* SECTION LABEL */
/* ========================================= */

.section-label {

    display: flex;

    align-items: center;

    gap: 15px;

    font-family: "DM Mono";

    font-size: 10px;

    color: var(--text-muted);

    letter-spacing: 2px;

}


.section-label span {

    color: #ffffff;

    opacity: .6;
}


.light-label {

    color: rgba(255,255,255,.6);

}


/* ========================================= */
/* INTRO */
/* ========================================= */

.intro-grid {

    display: grid;

    grid-template-columns: .7fr 2fr;

    gap: 80px;

}


.intro-content h2 {

    font-size: clamp(35px, 5vw, 70px);

    line-height: 1.1;

    letter-spacing: -3px;

    max-width: 850px;

}


.intro-content h2 span {

    color: var(--text-muted);

}


.intro-content p {

    max-width: 550px;

    margin-top: 40px;

    color: var(--text-muted);

    line-height: 1.8;

}


.stats-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    margin-top: 120px;

    border-top: 1px solid var(--border);

}


.stat-card {

    padding: 35px 25px;

    border-right: 1px solid var(--border);

}


.stat-card:last-child {

    border: none;

}


.stat-card h3 {

    font-size: 55px;

    letter-spacing: -3px;

}


.stat-card h3 span {

 color: #777777;

}


.stat-card p {

    color: var(--text-muted);

    font-size: 13px;

}


/* ========================================= */
/* SECTION HEADER */
/* ========================================= */

.section-header {

    display: flex;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 70px;

}


.section-header h2 {

    margin-top: 25px;

    font-size: clamp(38px, 5vw, 70px);

    letter-spacing: -3px;

    line-height: 1.05;

    max-width: 850px;

}


.section-header h2 span {

    color: var(--text-muted);

}


/* ========================================= */
/* TEAM PORTFOLIO */
/* ========================================= */

.team {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.team::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    left: -220px;
    top: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.055), transparent 68%);
    filter: blur(8px);
    pointer-events: none;
}

.team-header {
    align-items: flex-end;
    border-bottom: 1px solid var(--border);
    padding-bottom: 55px;
}

.team-intro {
    max-width: 420px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

/*
   The desktop portfolio uses an animating CSS grid instead of flex-grow.
   This prevents the little width "snap" that happens while flex items are
   recalculated and makes the motion much closer to the supplied reference.
*/
.team-grid {
    --team-motion: 980ms;
    --team-ease: cubic-bezier(.16, 1, .3, 1);

    display: grid;
    grid-template-columns: 2.65fr 1fr;
    align-items: stretch;
    gap: 14px;
    margin-top: 55px;
    min-height: 570px;

    transition:
        grid-template-columns var(--team-motion) var(--team-ease),
        gap 650ms var(--team-ease);
    will-change: grid-template-columns;
}

.team-card {
    position: relative;
    min-width: 0;
    height: 570px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #101114;
    cursor: pointer;
    isolation: isolate;
    transform: translateZ(0);
    backface-visibility: hidden;

    transition:
        border-color 420ms ease,
        box-shadow 760ms var(--team-ease),
        transform 760ms var(--team-ease),
        filter 760ms var(--team-ease);
}

.team-card.active {
    border-color: rgba(255,255,255,.28);
    box-shadow: 0 28px 90px rgba(0,0,0,.34);
    z-index: 2;
}

.team-card:hover,
.team-card:focus-visible {
    border-color: rgba(255,255,255,.34);
}

.team-card:focus-visible {
    outline: 2px solid rgba(255,255,255,.72);
    outline-offset: 3px;
}

.team-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(4,4,6,.96) 0%,
        rgba(4,4,6,.62) 28%,
        rgba(4,4,6,.10) 58%,
        transparent 76%
    );
    opacity: .52;
    transition: opacity 820ms var(--team-ease);
}

.team-card:not(.active)::after {
    opacity: .90;
}

.team-card-top {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
}

.team-number,
.team-status {
    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: 1.4px;
    color: rgba(255,255,255,.68);
    text-shadow: 0 1px 10px rgba(0,0,0,.45);
}

.team-status {
    max-width: 150px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: .75;
    transform: translateY(0);
    transition:
        opacity 360ms ease 300ms,
        transform 620ms var(--team-ease) 240ms;
}

.team-card:not(.active) .team-status {
    opacity: 0;
    transform: translateY(-7px);
    transition-delay: 0ms;
}

.team-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    background: #111214;
}

.team-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) brightness(.78);
    transform: scale(1.025) translateZ(0);
    transform-origin: center center;
    backface-visibility: hidden;

    transition:
        transform 1250ms var(--team-ease),
        filter 900ms var(--team-ease);
}

.team-card.active .team-photo img {
    transform: scale(1.065) translateZ(0);
    filter: grayscale(0%) brightness(1);
}

/* Two-person team portrait framing */
.team-card[data-name="Burhan Zafar"] .team-photo img {
    object-position: 50% 34%;
}

.team-card[data-name="Sayyed Zain ul Abidin Shah"] .team-photo img {
    object-position: 50% 30%;
}

.team-role span {
    display: inline-block;
    margin: 0 5px;
    color: rgba(255,255,255,.32);
}

.team-photo-placeholder {
    display: grid;
    place-items: center;
    border: none;
    background:
        radial-gradient(circle at 50% 35%, rgba(255,255,255,.08), transparent 22%),
        linear-gradient(145deg, #191a1e, #0d0e10 72%);
}

.team-photo-placeholder::before {
    content: "";
    position: absolute;
    width: min(210px, 58%);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow:
        0 0 0 38px rgba(255,255,255,.018),
        0 0 0 78px rgba(255,255,255,.009);
    transform: scale(.94);
    transition: transform 1100ms var(--team-ease);
}

.team-card.active .team-photo-placeholder::before {
    transform: scale(1.06);
}

.team-photo-placeholder span {
    position: relative;
    z-index: 1;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 3px;
    color: #656771;
}

.team-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 28px;
    transform: translate3d(0,0,0);
    transition:
        padding 800ms var(--team-ease),
        transform 800ms var(--team-ease);
}

.team-name-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.team-name-row h3 {
    font-size: clamp(19px, 1.8vw, 29px);
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.05;
    white-space: normal;
    text-wrap: balance;
    transform: translate3d(0,0,0);
    opacity: 1;
    transition:
        font-size 760ms var(--team-ease),
        transform 760ms var(--team-ease),
        opacity 360ms ease;
}

.team-role {
    margin-top: 7px;
    color: rgba(255,255,255,.64);
    font-size: 12px;
    white-space: nowrap;
    opacity: 1;
    transform: translate3d(0,0,0);
    transition:
        opacity 380ms ease 220ms,
        transform 720ms var(--team-ease) 180ms;
}

.team-arrow {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    color: rgba(255,255,255,.78);
    background: rgba(0,0,0,.22);
    backdrop-filter: blur(10px);
    opacity: 1;
    transform: rotate(0deg) scale(1);
    transition:
        background 500ms ease,
        color 500ms ease,
        transform 760ms var(--team-ease),
        opacity 320ms ease;
}

.team-card.active .team-arrow {
    background: #fff;
    color: #050505;
    transform: rotate(7deg) scale(1.02);
}

.team-bio {
    max-width: 560px;
    margin-top: 18px;
    color: rgba(255,255,255,.65);
    font-size: 13px;
    line-height: 1.7;
    opacity: 1;
    transform: translate3d(0,0,0);
    transition:
        opacity 420ms ease 300ms,
        transform 760ms var(--team-ease) 240ms;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
    opacity: 1;
    transform: translate3d(0,0,0);
    transition:
        opacity 420ms ease 370ms,
        transform 760ms var(--team-ease) 300ms;
}

.team-skills span {
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: rgba(255,255,255,.72);
    background: rgba(0,0,0,.18);
    backdrop-filter: blur(9px);
    font-size: 9px;
    letter-spacing: .5px;
}

/* Collapsed cards fade their details before the width finishes closing. */
.team-card:not(.active) .team-card-content {
    padding: 24px 18px;
}

.team-card:not(.active) .team-role,
.team-card:not(.active) .team-bio,
.team-card:not(.active) .team-skills,
.team-card:not(.active) .team-arrow {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0,16px,0);
    transition-delay: 0ms;
}

.team-card:not(.active) .team-name-row h3 {
    font-size: 18px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translate3d(0,-2px,0);
}

/* Tablet retains the same smooth column interpolation. */
@media (max-width: 1100px) and (min-width: 761px) {
    .team-grid {
        min-height: 520px;
        grid-template-columns: 3.2fr .82fr .82fr .82fr;
    }

    .team-card {
        height: 520px;
    }
}

/* Phones use native horizontal scrolling because it feels more natural on touch. */
@media (max-width: 760px) {
    .team-header {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 35px;
    }

    .team-intro {
        max-width: 100%;
    }

    .team-grid {
        display: flex;
        min-height: 0;
        gap: 14px;
        margin-top: 35px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 5%;
        padding: 2px 5% 14px;
        margin-left: -5%;
        margin-right: -5%;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        transition: none;
    }

    .team-grid::-webkit-scrollbar {
        display: none;
    }

    .team-card,
    .team-card.active {
        flex: 0 0 min(84vw, 390px);
        height: 510px;
        scroll-snap-align: center;
        border-radius: 20px;
    }

    .team-card:not(.active) .team-card-content,
    .team-card.active .team-card-content {
        padding: 24px;
    }

    .team-card:not(.active) .team-role,
    .team-card:not(.active) .team-bio,
    .team-card:not(.active) .team-skills,
    .team-card:not(.active) .team-arrow {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .team-card:not(.active) .team-name-row h3 {
        font-size: 24px;
        overflow: visible;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-grid,
    .team-card,
    .team-photo img,
    .team-photo-placeholder::before,
    .team-status,
    .team-name-row h3,
    .team-role,
    .team-arrow,
    .team-bio,
    .team-skills {
        transition: none !important;
    }
}

.team-note {
    margin-top: 24px;
    padding: 22px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid var(--border);
}

.team-note > span {
    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: #666870;
}

.team-note p {
    max-width: 570px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.7;
    text-align: right;
}

@media (max-width: 700px) {
    .team-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .team-note p {
        max-width: 100%;
        text-align: left;
    }
}


/* ========================================= */
/* WORK */
/* ========================================= */

.work-header {

    align-items: flex-end;

}


.btn-outline {

    padding: 15px 20px;

    border: 1px solid var(--border);

    border-radius: 50px;

    font-size: 13px;

    white-space: nowrap;

}


.btn-outline span {

    margin-left: 10px;

}


.project {

    margin-bottom: 80px;

}


.project-image {

    height: 650px;

    border-radius: 20px;

    overflow: hidden;

    position: relative;

}


.gradient-project-1 {

     background:
        radial-gradient(
            circle at top,
            #333333,
            #050505 70%
        );

}


.gradient-project-2 {

   
    background:
        linear-gradient(
            135deg,
            #1a1a1a,
            #050505
        );

}


.gradient-project-3 {

    background:
        radial-gradient(
            circle at center,
            #404040,
            #080808 70%
        );


}


/* Project UI */

.project-ui {

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

}


.phone {

    width: 280px;

    height: 520px;

    background: #111;

    border: 8px solid #111;

    border-radius: 40px;

    box-shadow: 0 30px 80px rgba(0,0,0,.4);

}


.phone-screen {

    height: 100%;

    background: #fff5ef;

    border-radius: 32px;

    color: #222;

    padding: 25px;

}


.food-header {

    display: flex;

    justify-content: space-between;

    font-weight: 800;

}


.food-avatar {

    width: 25px;

    height: 25px;

    background: #ff5e62;

    border-radius: 50%;

}


.food-banner {

    margin-top: 35px;

    padding: 25px;

    border-radius: 20px;

    background: #ff6b4a;

    color: white;

    font-size: 24px;

    font-weight: 700;

}


.food-items {

    display: flex;

    gap: 10px;

    margin-top: 25px;

}


.food-items div {

    flex: 1;

    height: 100px;

    border-radius: 15px;

    background: #ffd6c8;

}


/* Shop */

.shop-ui {

    padding: 35px;

    color: white;

    height: 100%;

}


.shop-nav {

    display: flex;

    justify-content: space-between;

    font-weight: 800;

}


.shop-product {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    height: 90%;

}


.product-circle {

    width: 250px;

    height: 250px;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #f8fafc,
        #94a3b8
    );

}


.shop-product h4 {

    font-size: 32px;

    margin: 20px;

}


.shop-product button {

    border: none;

    padding: 12px 25px;

    border-radius: 30px;

}


/* Healthcare */

.health-ui {

    padding: 35px;

    height: 100%;

    color: white;

}


.health-nav {

    display: flex;

    justify-content: space-between;

}


.health-content {

    height: 90%;

    display: flex;

    flex-direction: column;

    justify-content: center;

}


.health-content h4 {

    font-size: 45px;

    max-width: 400px;

}


.health-content button {

    width: fit-content;

    margin-top: 25px;

    padding: 13px 25px;

    border-radius: 30px;

    border: none;

}


/* Overlay */

.project-overlay {

    position: absolute;

    inset: 0;

    background: rgba(0,0,0,.5);

    display: grid;

    place-items: center;

    opacity: 0;

    transition: .4s;

}


.project-image:hover .project-overlay {

    opacity: 1;

}


.project-overlay span {

    background: white;

    color: black;

    padding: 15px 25px;

    border-radius: 40px;

    font-size: 12px;

    font-weight: 700;

}


/* Project Info */

.project-info {

    display: flex;

    justify-content: space-between;

    padding-top: 25px;

}


.project-category {

    font-family: "DM Mono";

    font-size: 10px;

    color: var(--text-muted);

    letter-spacing: 1px;

}


.project-info h3 {

    font-size: 38px;

    margin-top: 8px;

}


.project-description {

    max-width: 350px;

    color: var(--text-muted);

}


.projects-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;

}


.projects-grid .project-image {

    height: 550px;

}


.vertical {

    display: block;

}



/* ========================================= */
/* CUSTOM PROJECT IMAGES */
/* ========================================= */

.project-custom-image {
    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(255,255,255,.08),
            transparent 45%
        ),
        #0b0b0d;
    border: 1px solid var(--border);
}

.project-custom-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition:
        transform .8s cubic-bezier(.2,.8,.2,1),
        filter .5s ease;
}

.project-custom-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.24),
            transparent 45%
        );
    opacity: 0;
    transition: opacity .4s ease;
}

.project-custom-image:hover img {
    transform: scale(1.035);
}

.project-custom-image:hover::after {
    opacity: 1;
}

.project-custom-image .project-overlay {
    z-index: 2;
}

/* Optional: add class `project-fit-contain` to a project-image
   when using transparent UI mockups that should not be cropped. */
.project-custom-image.project-fit-contain {
    padding: 30px;
}

.project-custom-image.project-fit-contain img {
    object-fit: contain;
}

@media (max-width: 700px) {

    .project-custom-image.project-fit-contain {
        padding: 16px;
    }

}

/* ========================================= */
/* ABOUT */
/* ========================================= */

.about {

    background: #0d0d10;

}


.about-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

}


.about-left h2 {

    margin-top: 30px;

    font-size: clamp(40px, 5vw, 70px);

    line-height: 1.05;

}


.about-left h2 span {

    background: linear-gradient(
        90deg,
        #ffffff,
        #777777
    );

    -webkit-background-clip: text;

    background-clip: text;

    -webkit-text-fill-color: transparent;

}


.large-text {

    font-size: 28px;

    line-height: 1.5;

}


.about-right > p:last-of-type {

    margin-top: 30px;

    color: var(--text-muted);

    line-height: 1.8;

}


.text-link {

    display: inline-block;

    margin-top: 40px;

    border-bottom: 1px solid white;

    padding-bottom: 8px;

}


.animated-text-wrapper {

    width: 100%;

    overflow: hidden;

    margin-top: 130px;

    padding: 35px 0;

    background: #080808;

    border-top: 1px solid rgba(255,255,255,0.1);

    border-bottom: 1px solid rgba(255,255,255,0.1);

}


.animated-text-track {

    display: flex;

    width: max-content;

    animation: premiumScroll 30s linear infinite;

}


.animated-text {

    display: flex;

    align-items: center;

    gap: 40px;

    white-space: nowrap;

    padding-right: 40px;

    font-size: clamp(40px, 6vw, 100px);

    font-weight: 800;

    letter-spacing: -4px;

}


.filled {

    color: #ffffff;

}


.outline {

    color: #7777;


}


.separator {

    font-size: 30px;

    color: transparent;
        -webkit-text-stroke: 1px #777777;


}


/* Infinite Animation */

@keyframes premiumScroll {

    0% {

        transform: translateX(0);

    }

    100% {

        transform: translateX(-50%);

    }

}


/* Pause on Hover */

.animated-text-wrapper:hover .animated-text-track {

    animation-play-state: paused;

}


/* Mobile */

@media (max-width: 700px) {

    .animated-text-wrapper {

        margin-top: 80px;

        padding: 25px 0;

    }


    .animated-text {

        gap: 25px;

        padding-right: 25px;

        letter-spacing: -2px;

    }


    .separator {

        font-size: 18px;

    }

}


/* ========================================= */
/* EXPERIENCE */
/* ========================================= */

.experience-list {

    border-top: 1px solid var(--border);

}


.experience-item {

    display: grid;

    grid-template-columns: 1fr 1.5fr 1.5fr 50px;

    gap: 30px;

    align-items: center;

    padding: 35px 0;

    border-bottom: 1px solid var(--border);

    transition: .3s;

}


.experience-item:hover {

    padding-left: 15px;

    background: rgba(255,255,255,.02);

}


.experience-year {

    font-family: "DM Mono";

    font-size: 11px;

    color: #888888;

}


.experience-role h3 {

    font-size: 20px;

}


.experience-role p {

    color: var(--text-muted);

    font-size: 14px;

}


.experience-description {

    color: var(--text-muted);

    font-size: 14px;

}


.experience-arrow {

    font-size: 25px;

}


/* ========================================= */
/* ACADEMY */
/* ========================================= */

.academy {

    background:
        radial-gradient(
            circle at 20% 20%,
            #252525,
            transparent 40%
        ),
        radial-gradient(
            circle at 80% 80%,
            #1a1a1a,
            transparent 40%
        ),
        #050505;

    position: relative;

    overflow: hidden;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);


}


.academy-bg-text {

     color: white;

    opacity: .025;

}


.academy-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    position: relative;

}


.academy-content h2 {

    font-size: clamp(45px, 6vw, 85px);

    line-height: 1;

    margin: 30px 0;

    letter-spacing: -4px;

}


.academy-content h2 span {

    display: block;

    opacity: .65;

}


.academy-content p {

    max-width: 500px;

    line-height: 1.8;

    color: rgba(255,255,255,.8);

}


.btn-light {

    display: inline-flex;

    margin-top: 35px;

    gap: 20px;

    background: white;

    color: black;

    padding: 15px 20px;

    border-radius: 40px;

    font-size: 13px;

    font-weight: 700;

}


.academy-courses {

    display: flex;

    flex-direction: column;

    gap: 15px;

}


.course-card {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 25px;

    border: 1px solid rgba(255,255,255,.25);

    border-radius: 15px;

      background: rgba(255,255,255,.04);

      border: 1px solid rgba(255,255,255,.12);

    backdrop-filter: blur(10px);

    transition: .3s;

}


.course-card:hover {

   background: rgba(255,255,255,.09);

    border-color: rgba(255,255,255,.3);


}


.course-card > span {

    font-family: "DM Mono";

    font-size: 11px;

    opacity: .6;

}


.course-card div {

    flex: 2;

    margin-left: 25px;

}


.course-card h3 {

    font-size: 20px;

}


.course-card p {

    font-size: 12px;

    opacity: .7;

    margin-top: 5px;

}


/* ========================================= */
/* TESTIMONIAL */
/* ========================================= */

.testimonial-slider {

    max-width: 1000px;

    margin-top: 70px;

}


.testimonial {

    display: none;

}


.testimonial.active {

    display: block;

}


.quote-symbol {

    font-size: 100px;

    color: #ffffff;

    opacity: .2;

    line-height: .5;

}


.testimonial blockquote {

    font-size: clamp(30px, 4vw, 58px);

    line-height: 1.3;

    letter-spacing: -2px;

    margin: 20px 0 50px;

}


.testimonial-author {

    display: flex;

    align-items: center;

    gap: 15px;

}


.author-avatar {

    width: 50px;

    height: 50px;

    border-radius: 50%;

    display: grid;

    place-items: center;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #555555
        );

    color: black;

}


.testimonial-author p {

    font-size: 13px;

    color: var(--text-muted);

}


.slider-controls {

    display: flex;

    align-items: center;

    gap: 20px;

    margin-top: 60px;

}


.slider-controls button {

    width: 45px;

    height: 45px;

    border-radius: 50%;

    background: transparent;

    border: 1px solid var(--border);

    color: white;

}


.slider-dots {

    display: flex;

    gap: 8px;

}


.dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #444;

}


.active-dot {

    background: white;

}


/* ========================================= */
/* FAQ */
/* ========================================= */

.faq {

    background: var(--bg-secondary);

}


.faq-grid {

    display: grid;

    grid-template-columns: .8fr 1.2fr;

    gap: 100px;

}


.faq-left h2 {

    margin: 30px 0;

    font-size: 60px;

    letter-spacing: -3px;

}


.faq-left h2 span {

    color: var(--text-muted);

}


.faq-left p {

    color: var(--text-muted);

}


.faq-list {

    border-top: 1px solid var(--border);

}


.faq-item {

    border-bottom: 1px solid var(--border);

}


.faq-question {

    width: 100%;

    padding: 25px 0;

    display: flex;

    justify-content: space-between;

    background: none;

    border: none;

    color: white;

    text-align: left;

    font-size: 16px;

    font-weight: 600;

}


.faq-icon {

    font-size: 24px;

    transition: .3s;

}


.faq-answer {

    max-height: 0;

    overflow: hidden;

    transition: .4s;

}


.faq-answer p {

    color: var(--text-muted);

    line-height: 1.8;

    padding-bottom: 25px;

}


.faq-item.active .faq-answer {

    max-height: 200px;

}


.faq-item.active .faq-icon {

    transform: rotate(45deg);

}


/* ========================================= */
/* CONTACT */
/* ========================================= */

.contact {

    padding: 150px 0;

    background: white;

    color: black;

}


.contact-wrapper {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

}


.contact .section-label {

    color: #666;

}


.contact-content h2 {

    font-size: clamp(45px, 6vw, 80px);

    letter-spacing: -4px;

    line-height: 1;

    margin: 30px 0;

}


.contact-content h2 span {

    display: block;

    color: #888;

}


.contact-content > p {

    max-width: 450px;

    color: #666;

    line-height: 1.8;

}


.contact-email {
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-email:hover {
    color: #ea0e0e;
    border-color: #f00a57;
}

.contact-email span {
    margin-left: 10px;
}


/* Form */

.contact-form {

    display: flex;

    flex-direction: column;

    gap: 25px;

}


.form-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

}


.form-group {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.form-group label {

    font-family: "DM Mono";

    font-size: 9px;

    letter-spacing: 1px;

    color: #777;

}


.form-group input,
.form-group select,
.form-group textarea {

    border: none;

    border-bottom: 1px solid #ddd;

    padding: 15px 0;

    background: transparent;

    outline: none;

    font-size: 15px;

}


.form-group textarea {

    min-height: 130px;

    resize: vertical;

}


.submit-btn {

    display: flex;

    justify-content: space-between;

    background: black;

    color: white;

    border: none;

    padding: 20px;

    border-radius: 8px;

    font-weight: 700;

}


/* ========================================= */
/* FOOTER */
/* ========================================= */

.footer {

    padding: 70px 0 30px;

}


.footer-top {

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.footer-logo {

    font-size: 40px;

    font-weight: 800;

}


.footer-logo span {

    color: #777777;

}




.footer-links {

    display: flex;

    gap: 25px;

}


.footer-links a {

    color: var(--text-muted);

    font-size: 13px;

}


.footer-middle {

    font-size: clamp(45px, 9vw, 130px);

    font-weight: 800;

    letter-spacing: -5px;

    margin: 100px 0;

    line-height: .9;

}


.footer-middle span {

    display: block;

    color: #29292f;

}


.footer-bottom {

    display: flex;

    justify-content: space-between;

    border-top: 1px solid var(--border);

    padding-top: 25px;

    color: var(--text-muted);

    font-family: "DM Mono";

    font-size: 10px;

}


/* ========================================= */
/* REVEAL ANIMATION */
/* ========================================= */

.reveal {

    opacity: 0;

    transform: translateY(40px);

    transition:
        opacity .8s ease,
        transform .8s ease;

}


.reveal.show {

    opacity: 1;

    transform: translateY(0);

}


/* ========================================= */
/* MAGNETIC */
/* ========================================= */

.magnetic {

    transition: transform .2s ease;

}


/* ========================================= */
/* RESPONSIVE */
/* ========================================= */

@media(max-width: 1000px) {


    .nav-links,
    .nav-button {

        display: none;

    }


    .menu-toggle {

        display: block;

    }


    .hero-bottom {

        flex-direction: column;

        align-items: flex-start;

    }


    .intro-grid,
    .about-grid,
    .academy-grid,
    .faq-grid,
    .contact-wrapper {

        grid-template-columns: 1fr;

    }


    .stats-grid {

        grid-template-columns: repeat(2, 1fr);

    }


    .experience-item {

        grid-template-columns: 1fr 1fr;

    }


    .experience-description,
    .experience-arrow {

        display: none;

    }


}


@media(max-width: 700px) {


    .section-space {

        padding: 90px 0;

    }


    .hero {

        padding-top: 150px;

    }


    .hero-title {

        letter-spacing: -3px;

    }


    .bento-grid {

        grid-template-columns: 1fr;

    }


    .large-card,
    .wide-card {

        grid-column: auto;

        grid-row: auto;

        min-height: 450px;

    }


    .wide-card {

        min-height: 350px;

    }


    .projects-grid {

        grid-template-columns: 1fr;

    }


    .project-image {

        height: 500px;

    }


    .project-info {

        flex-direction: column;

        gap: 20px;

    }


    .stats-grid {

        grid-template-columns: 1fr 1fr;

    }


    .stat-card {

        border-bottom: 1px solid var(--border);

    }


    .design-system-visual {

        right: 20px;

        grid-template-columns: repeat(3, 45px);

    }


    .design-system-visual div {

        height: 45px;

    }


    .form-row {

        grid-template-columns: 1fr;

    }


    .footer-top,
    .footer-bottom {

        flex-direction: column;

        align-items: flex-start;

        gap: 25px;

    }


    .footer-links {

        flex-wrap: wrap;

    }


    .cursor,
    .cursor-follower {

        display: none;

    }


}
/* =========================================
   CTA / BUTTON PROMINENCE SYSTEM
   Adds a clear animated underline to every major action.
========================================= */

:where(
    .nav-button,
    .btn-primary,
    .btn-text,
    .btn-outline,
    .btn-light,
    .academy-btn,
    .text-link,
    .contact-email,
    .submit-btn,
    .project-overlay span
) {
    position: relative;
    cursor: pointer;
}

:where(
    .nav-button,
    .btn-primary,
    .btn-text,
    .btn-outline,
    .btn-light,
    .academy-btn,
    .text-link,
    .contact-email,
    .submit-btn,
    .project-overlay span
)::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 7px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    opacity: .5;
    transform: scaleX(.45);
    transform-origin: center;
    transition:
        transform .28s ease,
        opacity .28s ease,
        left .28s ease,
        right .28s ease;
    pointer-events: none;
}

:where(
    .nav-button,
    .btn-primary,
    .btn-text,
    .btn-outline,
    .btn-light,
    .academy-btn,
    .text-link,
    .contact-email,
    .submit-btn,
    .project-overlay span
):hover::after,
:where(
    .nav-button,
    .btn-primary,
    .btn-text,
    .btn-outline,
    .btn-light,
    .academy-btn,
    .text-link,
    .contact-email,
    .submit-btn,
    .project-overlay span
):focus-visible::after {
    left: 10%;
    right: 10%;
    opacity: 1;
    transform: scaleX(1);
}

/* Text-only CTAs look cleaner with the underline directly below the label. */
.btn-text::after,
.text-link::after,
.contact-email::after {
    left: 0;
    right: 45%;
    bottom: -7px;
    transform-origin: left;
}

.btn-text:hover::after,
.text-link:hover::after,
.contact-email:hover::after,
.btn-text:focus-visible::after,
.text-link:focus-visible::after,
.contact-email:focus-visible::after {
    left: 0;
    right: 0;
}

/* Remove the older static line so the new animated underline stays clean. */
.text-link {
    border-bottom: none;
}

/* Academy homepage CTA was previously mostly unstyled. */
.academy-btn {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 35px;
    padding: 15px 22px;
    border-radius: 999px;
    background: #fff;
    color: #080808;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,.85);
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        background .28s ease;
}

.academy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(255,255,255,.08);
    background: #f3f3f3;
}

/* Keyboard accessibility and stronger click affordance. */
:where(
    .nav-button,
    .btn-primary,
    .btn-text,
    .btn-outline,
    .btn-light,
    .academy-btn,
    .text-link,
    .contact-email,
    .submit-btn
):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* Keep the underline balanced on smaller screens. */
@media (max-width: 700px) {
    :where(
        .nav-button,
        .btn-primary,
        .btn-outline,
        .btn-light,
        .academy-btn,
        .submit-btn,
        .project-overlay span
    )::after {
        bottom: 6px;
        left: 20%;
        right: 20%;
    }
}

/* =========================================
   FOOTER BRAND LOGO
========================================= */

.footer-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.footer-logo img {
    width: 170px;
    height: 52px;
    display: block;
    object-fit: contain;
    object-position: left center;
    transition: opacity .3s ease, transform .3s ease;
}

.footer-logo:hover img {
    opacity: .82;
    transform: translateY(-2px);
}

@media (max-width: 700px) {
    .footer-logo img {
        width: 145px;
        height: 44px;
    }
}

/* ========================================= */
/* PROJECT MOCKUP GALLERIES */
/* ========================================= */

.project-gallery {
    width: 100%;
}

.project-gallery-main {
    border-radius: 20px;
}

.project-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.project-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #0b0b0d;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .4s ease;
}

.project-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.12), transparent 55%);
    opacity: 0;
    transition: opacity .35s ease;
}

.project-thumb:hover img {
    transform: scale(1.045);
}

.project-thumb:hover::after {
    opacity: 1;
}

/* Keep the main mockup clean now that the case-study button is removed. */
.project-gallery .project-custom-image::after {
    background: linear-gradient(to top, rgba(0,0,0,.10), transparent 45%);
}

/* Featured Nom Nom project gets a wider editorial presentation. */
.project-gallery-featured .project-gallery-main {
    height: 650px;
}

.project-gallery-featured .project-gallery-thumbs {
    gap: 18px;
    margin-top: 18px;
}

/* Compact project cards keep the main image almost square. */
.project-gallery-compact .project-gallery-main {
    height: 500px;
}

.project-gallery-compact .project-gallery-thumbs {
    gap: 10px;
    margin-top: 10px;
}

.project-gallery-compact .project-thumb {
    border-radius: 12px;
}

@media (max-width: 1000px) {
    .project-gallery-featured .project-gallery-main {
        height: 560px;
    }

    .project-gallery-compact .project-gallery-main {
        height: 430px;
    }
}

@media (max-width: 700px) {
    .project-gallery-featured .project-gallery-main,
    .project-gallery-compact .project-gallery-main {
        height: 440px;
    }

    .project-gallery-thumbs {
        gap: 8px;
        margin-top: 8px;
    }

    .project-thumb {
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .project-gallery-featured .project-gallery-main,
    .project-gallery-compact .project-gallery-main {
        height: 340px;
    }

    .project-gallery-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
}

/* ========================================= */
/* TEAM PORTFOLIO — COMPACT VIDEO-STYLE LAYOUT */
/* ========================================= */

/*
   Desktop layout inspired by the supplied reference video:
   the headline sits beside a smaller expanding portrait strip instead of
   placing oversized cards below the section heading.
*/
@media (min-width: 981px) {
    .team {
        padding-top: 115px;
        padding-bottom: 115px;
    }

    .team > .container {
        display: grid;
        grid-template-columns: minmax(310px, .72fr) minmax(560px, 1.28fr);
        grid-template-areas:
            "team-heading team-cards"
            "team-note team-note";
        align-items: center;
        column-gap: clamp(48px, 6vw, 90px);
        row-gap: 42px;
    }

    .team-header {
        grid-area: team-heading;
        display: block;
        margin: 0;
        padding: 0;
        border-bottom: 0;
        align-self: center;
    }

    .team-header .section-label {
        margin-bottom: 22px;
    }

    .team-header h2 {
        max-width: 470px;
        margin: 0;
        font-size: clamp(44px, 4.6vw, 68px);
        line-height: 1.02;
        letter-spacing: -3.2px;
    }

    .team-intro {
        max-width: 390px;
        margin-top: 28px;
        font-size: 14px;
        line-height: 1.75;
    }

    .team-grid {
        grid-area: team-cards;
        width: 100%;
        max-width: 760px;
        min-height: 0;
        height: 420px;
        margin: 0;
        justify-self: end;
        align-self: center;
        gap: 12px;
        border-radius: 22px;
    }

    .team-card {
        height: 420px;
        border-radius: 20px;
    }

    .team-card.active {
        box-shadow: 0 24px 68px rgba(0,0,0,.32);
    }

    .team-card-top {
        top: 15px;
        left: 15px;
        right: 15px;
    }

    .team-number,
    .team-status {
        font-size: 8px;
        letter-spacing: 1.2px;
    }

    .team-card-content {
        padding: 22px;
    }

    .team-name-row h3 {
        font-size: clamp(20px, 1.65vw, 25px);
        letter-spacing: -.8px;
    }

    .team-role {
        margin-top: 6px;
        font-size: 10.5px;
    }

    .team-arrow {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .team-bio {
        max-width: 490px;
        margin-top: 11px;
        font-size: 11.5px;
        line-height: 1.55;
    }

    .team-skills {
        gap: 6px;
        margin-top: 11px;
    }

    .team-skills span {
        padding: 6px 9px;
        font-size: 8px;
    }

    /* The closed portrait behaves like the slim cards in the reference. */
    .team-card:not(.active) .team-card-content {
        padding: 18px 14px;
    }

    .team-card:not(.active) .team-name-row {
        display: block;
    }

    .team-card:not(.active) .team-name-row h3 {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.05;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .team-card:not(.active) .team-photo img {
        transform: scale(1.01) translateZ(0);
        filter: grayscale(78%) brightness(.58);
    }

    .team-card:not(.active)::after {
        opacity: .78;
    }

    .team-note {
        grid-area: team-note;
        margin-top: 0;
        padding-top: 20px;
    }
}

/* On medium screens keep the cards compact, but return the heading above them. */
@media (max-width: 980px) and (min-width: 761px) {
    .team {
        padding-top: 105px;
        padding-bottom: 105px;
    }

    .team-header {
        padding-bottom: 38px;
    }

    .team-grid {
        max-width: 760px;
        height: 440px;
        min-height: 440px;
        margin: 38px auto 0;
    }

    .team-card {
        height: 440px;
    }

    .team-card-content {
        padding: 22px;
    }
}

/* Keep the touch version compact as well. */
@media (max-width: 760px) {
    .team-card,
    .team-card.active {
        flex-basis: min(78vw, 350px);
        height: 470px;
    }

    .team-grid {
        margin-top: 30px;
    }
}


/* =========================================
   HERO SCROLL INDICATOR — MOBILE FIX
========================================= */

@media (max-width: 700px) {

    .hero {
        padding-bottom: 50px;
    }

    .scroll-indicator {
        margin-top: 28px;
        font-size: 8px;
        gap: 12px;
    }

    .scroll-line {
        width: 50px;
    }

}
