:root {
    --bg: #070914;
    --surface: #0d1020;
    --text: #f5f7ff;
    --muted: #9ba3bd;
    --line: rgba(255,255,255,.1);

    --cyan: #63f3ff;
    --violet: #9b7cff;
    --pink: #ff67c7;
    --green: #72f6b5;

    --shadow: 0 25px 80px rgba(0,0,0,.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    overflow-x: hidden;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(99,243,255,.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 18%,
            rgba(155,124,255,.14),
            transparent 30%
        ),
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size:
        auto,
        auto,
        70px 70px,
        70px 70px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 75%
        );

    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin: auto;
}


/* =========================
   NAVIGATION
========================= */

.nav {
    position: fixed;

    top: 18px;
    left: 50%;

    transform: translateX(-50%);

    width: min(
        1100px,
        calc(100% - 28px)
    );

    z-index: 20;

    border: 1px solid var(--line);

    background:
        rgba(7,9,20,.72);

    backdrop-filter: blur(18px);

    border-radius: 18px;

    padding: 10px 14px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    box-shadow:
        0 10px 40px rgba(0,0,0,.25);
}

.brand {
    display: flex;

    gap: 10px;

    align-items: center;

    font-weight: 800;

    letter-spacing: -.03em;
}

.mark {
    width: 34px;
    height: 34px;

    border-radius: 10px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            var(--cyan),
            var(--violet)
        );

    color: #080a15;

    font-weight: 900;
}

.links {
    display: flex;
    gap: 6px;
}

.links a {
    padding: 9px 13px;

    border-radius: 10px;

    color: var(--muted);

    font-size: .9rem;

    transition: .25s;
}

.links a:hover {
    color: var(--text);

    background:
        rgba(255,255,255,.06);
}

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid var(--line);

    border-radius: 12px;

    background:
        rgba(255,255,255,.04);

    color: var(--text);

    font-size: 1.25rem;

    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;

    display: grid;

    align-items: center;

    padding:
        130px
        0
        80px;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        1.15fr
        .85fr;

    gap: 55px;

    align-items: center;
}

.eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        8px
        12px;

    border:
        1px solid
        rgba(99,243,255,.25);

    border-radius: 999px;

    background:
        rgba(99,243,255,.06);

    color: var(--cyan);

    font-size: .78rem;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;
}

.dot {
    width: 7px;
    height: 7px;

    background: var(--green);

    border-radius: 50%;

    box-shadow:
        0 0 16px var(--green);
}

h1 {
    font-size:
        clamp(
            3.3rem,
            8vw,
            7rem
        );

    line-height: .9;

    letter-spacing: -.075em;

    margin: 24px 0;
}

.gradient {
    background:
        linear-gradient(
            100deg,
            #fff 0%,
            #dfe6ff 38%,
            var(--cyan) 70%,
            var(--violet)
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.lead {
    font-size: 1.18rem;

    line-height: 1.7;

    color: var(--muted);

    max-width: 650px;
}

.actions {
    display: flex;

    gap: 12px;

    margin-top: 32px;

    flex-wrap: wrap;
}

.btn {
    border:
        1px solid
        var(--line);

    padding:
        13px
        18px;

    border-radius: 12px;

    font-weight: 800;

    transition: .25s;

    display: inline-flex;

    align-items: center;

    gap: 9px;
}

.btn.primary {
    background: var(--text);

    color: #090b14;

    border-color: transparent;
}

.btn:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(99,243,255,.4);
}

.btn.primary:hover {
    box-shadow:
        0 0 35px
        rgba(99,243,255,.25);
}


/* =========================
   PHOTO
========================= */

.profile-photo {
    position: relative;

    width: min(
        100%,
        360px
    );

    aspect-ratio: 1 / 1;

    margin: auto;

    border-radius: 32px;

    overflow: hidden;

    border:
        1px solid
        rgba(99,243,255,.3);

    background:
        linear-gradient(
            145deg,
            #151b34,
            #080b16
        );

    box-shadow:
        0 0 80px
        rgba(99,243,255,.13),
        var(--shadow);
}

.profile-photo::before {
    content: "";

    position: absolute;

    inset: 12px;

    border:
        1px solid
        rgba(255,255,255,.1);

    border-radius: 24px;

    z-index: 1;

    pointer-events: none;
}

.profile-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.profile-label {
    position: absolute;

    left: 18px;
    bottom: 18px;

    z-index: 2;

    padding:
        9px
        12px;

    border:
        1px solid
        rgba(255,255,255,.14);

    border-radius: 999px;

    background:
        rgba(7,9,20,.72);

    backdrop-filter:
        blur(12px);

    font-size: .78rem;

    font-weight: 800;
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 115px 0;
}

.section-head {
    display: flex;

    justify-content: space-between;

    gap: 30px;

    align-items: end;

    margin-bottom: 40px;
}

.kicker {
    color: var(--cyan);

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .12em;

    font-size: .76rem;
}

.section h2 {
    font-size:
        clamp(
            2.3rem,
            5vw,
            4.5rem
        );

    line-height: 1;

    margin:
        10px
        0
        0;

    letter-spacing: -.06em;
}

.section-intro {
    max-width: 470px;

    color: var(--muted);

    line-height: 1.7;
}


/* =========================
   PROJECTS
========================= */

.projects {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}

.project {
    min-height: 390px;

    padding: 30px;

    border:
        1px solid
        var(--line);

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.015)
        );

    position: relative;

    overflow: hidden;

    transition: .35s;
}

.project:hover {
    transform:
        translateY(-7px);

    border-color:
        rgba(99,243,255,.35);

    box-shadow:
        var(--shadow);
}

.project::before {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    border-radius: 50%;

    background:
        var(--glow);

    filter:
        blur(45px);

    opacity: .12;

    right: -80px;
    top: -80px;
}

.number {
    color: var(--muted);

    font-size: .8rem;
}

.project h3 {
    font-size: 2rem;

    letter-spacing: -.05em;

    margin:
        70px
        0
        12px;
}

.project p {
    color: var(--muted);

    line-height: 1.65;

    max-width: 520px;
}

.tags {
    display: flex;

    gap: 8px;

    flex-wrap: wrap;

    margin-top: 25px;
}

.tag {
    padding:
        7px
        10px;

    border:
        1px solid
        var(--line);

    border-radius: 999px;

    color: #c8cee0;

    font-size: .78rem;
}

.project .arrow {
    position: absolute;

    right: 28px;
    bottom: 28px;

    width: 42px;
    height: 42px;

    border:
        1px solid
        var(--line);

    border-radius: 50%;

    display: grid;

    place-items: center;
}


/* =========================
   SERVICES
========================= */

.services {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}

.service {
    padding: 28px;

    border:
        1px solid
        var(--line);

    border-radius: 20px;

    background:
        rgba(255,255,255,.025);
}

.icon {
    font-size: 1.6rem;

    margin-bottom: 35px;
}

.service h3 {
    margin:
        0
        0
        10px;
}

.service p {
    color: var(--muted);

    line-height: 1.6;

    margin: 0;
}


/* =========================
   CONTACT
========================= */

.contact {
    border:
        1px solid
        rgba(99,243,255,.2);

    border-radius: 28px;

    padding: 55px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(155,124,255,.16),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            rgba(99,243,255,.08),
            rgba(255,255,255,.02)
        );

    display: flex;

    justify-content: space-between;

    gap: 40px;

    align-items: center;
}

.contact h2 {
    font-size:
        clamp(
            2.2rem,
            5vw,
            4rem
        );

    max-width: 650px;

    margin:
        10px
        0;
}

.contact p {
    color: var(--muted);

    line-height: 1.6;
}

.email {
    font-size: 1.05rem;

    color: var(--cyan);

    word-break: break-all;
}


/* =========================
   FOOTER
========================= */

footer {
    padding:
        35px
        0
        55px;

    color: #737b96;

    border-top:
        1px solid
        var(--line);

    margin-top: 30px;
}

.footer-row {
    display: flex;

    justify-content: space-between;

    gap: 20px;
}


/* =========================
   ANIMATIONS
========================= */

.reveal {
    opacity: 0;

    transform:
        translateY(24px);

    transition:
        .7s ease;
}

.reveal.show {
    opacity: 1;

    transform: none;
}

.cursor {
    display: inline-block;

    width: 3px;

    height: .85em;

    background:
        var(--cyan);

    margin-left: 6px;

    animation:
        blink 1s infinite;
}

@keyframes blink {

    50% {
        opacity: 0;
    }

}


/* =========================
   TABLETTE
========================= */

@media (max-width: 1024px) {

    .wrap {
        width:
            min(
                900px,
                calc(100% - 36px)
            );
    }

    .nav {
        width:
            calc(100% - 32px);
    }

    .hero-grid {
        grid-template-columns:
            1fr 320px;

        gap: 35px;
    }

    .projects {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .services {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .section {
        padding: 95px 0;
    }

    .contact {
        padding: 42px;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

    .wrap {
        width:
            min(
                680px,
                calc(100% - 28px)
            );
    }

    .nav {
        top: 10px;

        width:
            calc(100% - 20px);

        padding:
            8px
            10px;
    }

    .brand {
        font-size: .9rem;
    }

    .mark {
        width: 32px;
        height: 32px;
    }

    .menu-toggle {
        display: grid;

        place-items: center;
    }

    .links {
        position: absolute;

        top:
            calc(100% + 8px);

        left: 0;
        right: 0;

        display: flex;

        flex-direction: column;

        gap: 4px;

        padding: 8px;

        border:
            1px solid
            var(--line);

        border-radius: 16px;

        background:
            rgba(7,9,20,.94);

        backdrop-filter:
            blur(18px);

        opacity: 0;

        visibility: hidden;

        transform:
            translateY(-8px);

        transition: .2s ease;
    }

    .nav.open .links {
        opacity: 1;

        visibility: visible;

        transform: none;
    }

    .links a {
        display: block;

        padding:
            13px
            14px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .projects,
    .services {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;

        padding:
            135px
            0
            70px;
    }

    .hero-grid {
        gap: 25px;
    }

    .hero-grid > div:first-child {
        order: 2;
    }

    .profile-photo {
        order: 1;

        width:
            min(
                100%,
                310px
            );
    }

    h1 {
        font-size:
            clamp(
                3rem,
                14vw,
                5rem
            );

        line-height: .92;
    }

    .lead {
        font-size: 1rem;
    }

    .actions {
        display: grid;

        grid-template-columns: 1fr;
    }

    .btn {
        justify-content: center;

        width: 100%;

        min-height: 48px;
    }

    .section-head,
    .contact,
    .footer-row {
        flex-direction: column;

        align-items: flex-start;
    }

    .section {
        padding: 75px 0;
    }

    .section h2 {
        font-size:
            clamp(
                2.2rem,
                11vw,
                3.5rem
            );
    }

    .section-intro {
        font-size: .95rem;
    }

    .project {
        min-height: 330px;

        padding: 24px;
    }

    .project h3 {
        font-size: 1.7rem;

        margin-top: 55px;
    }

    .service {
        padding: 24px;
    }

    .contact {
        padding:
            30px
            24px;
    }

    .contact h2 {
        font-size:
            clamp(
                2rem,
                10vw,
                3.2rem
            );
    }

    footer {
        font-size: .78rem;
    }

}


/* =========================
   PETITS TELEPHONES
========================= */

@media (max-width: 480px) {

    .wrap {
        width:
            calc(100% - 22px);
    }

    .nav {
        border-radius: 14px;
    }

    .brand span:last-child {
        display: none;
    }

    .hero {
        padding-top: 120px;
    }

    .profile-photo {
        width:
            min(
                100%,
                270px
            );

        border-radius: 26px;
    }

    .profile-label {
        left: 12px;
        bottom: 12px;

        font-size: .68rem;
    }

    .eyebrow {
        font-size: .65rem;

        max-width: 100%;

        white-space: normal;
    }

    .project {
        min-height: 350px;
    }

    .project .arrow {
        right: 20px;
        bottom: 20px;
    }

    .tag {
        font-size: .7rem;
    }

    .contact {
        border-radius: 22px;
    }

    .email {
        font-size: .9rem;

        max-width: 100%;
    }

    .footer-row {
        gap: 8px;
    }

}


/* =========================
   GRANDS ECRANS
========================= */

@media (min-width: 1600px) {

    .wrap {
        width:
            min(
                1320px,
                calc(100% - 80px)
            );
    }

    .hero-grid {
        gap: 100px;
    }

    .section {
        padding: 140px 0;
    }

}


/* =========================
   ACCESSIBILITE
========================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;

        transform: none;

        transition: none;
    }

    .cursor {
        animation: none;
    }

}