:root {
    --ink: #17131f;
    --muted: #706b7a;
    --paper: #f4f1eb;
    --line: rgba(23, 19, 31, 0.13);
    --purple: #7c3aed;
    --pink: #ec4899;
    --lime: #b8f000;
    --green: #0b1813;
    --mango: #ff6a1a;
    --font-display: "Bricolage Grotesque", Georgia, serif;
    --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        linear-gradient(rgba(23, 19, 31, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 19, 31, 0.035) 1px, transparent 1px),
        var(--paper);
    background-size: 42px 42px;
    font-family: var(--font-body);
}

a {
    color: inherit;
}

.ambient {
    position: fixed;
    z-index: -1;
    width: 32rem;
    height: 32rem;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.ambient-one {
    top: -17rem;
    left: -10rem;
    background: rgba(236, 72, 153, 0.12);
}

.ambient-two {
    right: -12rem;
    bottom: -18rem;
    background: rgba(184, 240, 0, 0.1);
}

.ambient-kiff {
    top: 8%;
    left: 40%;
    width: 40rem;
    height: 40rem;
    background: rgba(255, 106, 26, 0.18);
    animation: ambientDrift 16s ease-in-out infinite alternate;
}

@keyframes ambientDrift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-40px, 30px) scale(1.08); }
}

.hub-header,
main,
footer {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.hub-header {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.hub-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    margin-right: 8px;
}

.hub-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: color 180ms ease;
}

.hub-nav a:hover {
    color: var(--ink);
}

.hub-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 11px;
    background: var(--ink);
    font-size: 0.9rem;
    letter-spacing: 0;
    transform: rotate(-5deg);
}

.brand-dot {
    color: var(--mango);
}

.header-note {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

main {
    padding: clamp(56px, 8vw, 96px) 0 110px;
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    align-items: end;
    gap: 40px;
    margin-bottom: 48px;
}

.eyebrow {
    grid-column: 1 / -1;
    margin: 0 0 -24px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 24px;
    height: 2px;
    background: var(--mango);
}

h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6.5vw, 5.4rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

h1 em {
    font-style: normal;
    color: var(--mango);
}

.intro-copy {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.7;
}

.intro-copy strong {
    color: var(--ink);
    font-weight: 800;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    position: relative;
    min-height: 520px;
    padding: 24px;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 30px;
    text-decoration: none;
    isolation: isolate;
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card:focus-visible {
    outline: 4px solid rgba(255, 106, 26, 0.4);
    outline-offset: 4px;
}

.project-card.is-featured {
    grid-column: 1 / -1;
    min-height: 380px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-rows: auto 1fr;
    gap: 0 32px;
    padding: 28px 32px;
    animation: featuredIn 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes featuredIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card.is-featured .project-topline {
    grid-column: 1 / -1;
}

.project-card.is-featured .kiff-preview {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 220px;
    align-self: center;
}

.project-card.is-featured .project-content {
    align-self: end;
    padding-bottom: 8px;
}

.project-card.is-featured .project-content h2 {
    font-size: clamp(3.2rem, 7vw, 5.5rem);
}

.ngl-project {
    background:
        radial-gradient(circle at 90% 5%, rgba(255, 255, 255, 0.9), transparent 22rem),
        linear-gradient(145deg, #fbcfe8, #ddd6fe 58%, #fed7aa);
}

.ngl-project:hover {
    box-shadow: 0 28px 70px rgba(117, 54, 125, 0.2);
}

.devid-project {
    color: #edf9f3;
    border-color: rgba(184, 240, 0, 0.2);
    background:
        radial-gradient(circle at 85% 15%, rgba(184, 240, 0, 0.13), transparent 20rem),
        linear-gradient(145deg, #07110e, #102119);
}

.devid-project:hover {
    box-shadow: 0 28px 70px rgba(8, 24, 17, 0.28);
}

.kiff-project {
    color: #fff6ee;
    border-color: rgba(255, 106, 26, 0.35);
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 106, 26, 0.4), transparent 18rem),
        linear-gradient(155deg, #1a120c, #2a1810 45%, #ff6a1a);
    box-shadow: 0 20px 50px rgba(176, 70, 18, 0.22);
}

.kiff-project:hover {
    box-shadow: 0 32px 80px rgba(176, 70, 18, 0.4);
}

.kiff-project .project-status i {
    background: #ffb347;
    box-shadow: 0 0 0 5px rgba(255, 179, 71, 0.18);
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 246, 238, 0.16);
    border: 1px solid rgba(255, 246, 238, 0.28);
    color: #ffb347;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-topline {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-number {
    opacity: 0.55;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.project-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.12);
}

.devid-project .project-status i {
    background: var(--lime);
    box-shadow: 0 0 0 5px rgba(184, 240, 0, 0.12);
}

.ngl-preview,
.devid-preview,
.kiff-preview {
    position: absolute;
    z-index: -1;
    inset: 60px 20px auto;
    height: 280px;
}

.ngl-orb {
    position: absolute;
    top: 12px;
    right: 35px;
    width: 180px;
    height: 180px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 45px rgba(255, 255, 255, 0.45);
    font-size: 6rem;
    font-weight: 900;
    transform: rotate(8deg);
}

.message-bubble {
    position: absolute;
    z-index: 1;
    padding: 14px 18px;
    border-radius: 17px;
    background: white;
    box-shadow: 0 16px 35px rgba(70, 42, 82, 0.14);
    font-size: 0.8rem;
    font-weight: 800;
}

.bubble-one {
    top: 120px;
    left: 20px;
    transform: rotate(-4deg);
}

.bubble-two {
    top: 58px;
    right: 4px;
    color: var(--purple);
    transform: rotate(5deg);
}

.devid-preview {
    display: grid;
    place-items: center;
}

.mini-id {
    position: relative;
    width: 215px;
    height: 270px;
    padding: 32px 20px 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: #e8f5ef;
    border: 1px solid rgba(184, 240, 0, 0.45);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(184, 240, 0, 0.09), transparent),
        #111d18;
    box-shadow: 18px 20px 0 rgba(184, 240, 0, 0.1);
    transform: rotate(5deg);
}

.mini-rarity {
    position: absolute;
    top: 12px;
    right: 13px;
    color: var(--lime);
    font-family: ui-monospace, monospace;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
}

.mini-avatar {
    width: 104px;
    height: 104px;
    margin: 16px 0;
    display: grid;
    place-items: center;
    color: #101712;
    border-radius: 16px;
    background: var(--lime);
    font-weight: 1000;
}

.mini-id strong {
    font-size: 0.95rem;
}

.mini-id small {
    margin-top: 8px;
    color: #9caf9f;
    font-family: ui-monospace, monospace;
    font-size: 0.55rem;
}

.code-fragment {
    position: absolute;
    right: 16px;
    bottom: 15px;
    color: rgba(184, 240, 0, 0.16);
    font-family: ui-monospace, monospace;
    font-size: 4rem;
    font-weight: 900;
}

.kiff-preview {
    display: grid;
    place-items: center;
}

.mini-kiff {
    width: 230px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #1a120c;
    border-radius: 22px;
    background: #fff6ee;
    box-shadow: 14px 18px 0 rgba(0, 0, 0, 0.18);
    transform: rotate(-4deg);
    animation: kiffFloat 5s ease-in-out infinite;
}

@keyframes kiffFloat {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(-8px); }
}

.mini-kiff-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #ffe0c8;
    color: #1a120c;
}

.mini-kiff-icon svg {
    display: block;
}

.mini-kiff strong {
    font-size: 1.05rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.mini-kiff small {
    color: #8a6a55;
    font-size: 0.75rem;
    font-weight: 700;
}

.kiff-spark {
    position: absolute;
    right: 20px;
    bottom: 18px;
    color: rgba(255, 246, 238, 0.22);
    line-height: 0;
    animation: sparkPulse 3.5s ease-in-out infinite;
}

@keyframes sparkPulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.08); }
}

.project-card.is-featured .kiff-spark {
    right: 8%;
    bottom: 12%;
}

.project-content {
    position: relative;
    z-index: 2;
    padding: 0 8px 7px;
}

.project-kind {
    margin: 0 0 10px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    opacity: 0.62;
    text-transform: uppercase;
}

.project-content h2 {
    margin: 0 0 13px;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.project-content h2 small {
    font-size: 0.38em;
    letter-spacing: -0.02em;
}

.ngl-project h2 span {
    color: var(--pink);
}

.devid-project h2 {
    color: var(--lime);
    font-family: ui-monospace, monospace;
    letter-spacing: -0.08em;
}

.kiff-project h2 {
    letter-spacing: -0.07em;
}

.kiff-project h2 span {
    color: #ffb347;
}

.project-content > p:not(.project-kind) {
    max-width: 410px;
    margin: 0 0 25px;
    color: rgba(23, 19, 31, 0.68);
    line-height: 1.55;
}

.devid-project .project-content > p:not(.project-kind) {
    color: rgba(232, 245, 239, 0.67);
}

.kiff-project .project-content > p:not(.project-kind) {
    color: rgba(255, 246, 238, 0.72);
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(23, 19, 31, 0.15);
    font-size: 0.85rem;
    font-weight: 900;
}

.devid-project .project-link {
    border-color: rgba(184, 240, 0, 0.18);
}

.kiff-project .project-link {
    border-color: rgba(255, 246, 238, 0.22);
}

.project-link b {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 50%;
    background: var(--ink);
    font-size: 1.1rem;
    transition: transform 220ms ease;
}

.devid-project .project-link b {
    color: var(--green);
    background: var(--lime);
}

.kiff-project .project-link b {
    color: #1a120c;
    background: #ffb347;
}

.project-card:hover .project-link b {
    transform: rotate(45deg);
}

/* ——— Sections contenu ——— */
.section-eyebrow {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.story {
    margin-top: clamp(72px, 10vw, 120px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.story-copy h2 {
    margin: 0 0 22px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.story-copy p {
    margin: 0 0 16px;
    max-width: 38rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.story-aside {
    padding: 28px 26px;
    border-top: 3px solid var(--mango);
    background: rgba(255, 255, 255, 0.45);
}

.story-aside h3 {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.story-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 20px;
    counter-reset: step;
}

.story-steps li {
    display: grid;
    gap: 4px;
    padding-left: 2.4rem;
    position: relative;
    counter-increment: step;
}

.story-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.7rem;
    height: 1.7rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--ink);
    color: #fff6ee;
    font-size: 0.75rem;
    font-weight: 800;
}

.story-steps strong {
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.story-steps span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.vibe {
    margin-top: clamp(72px, 10vw, 120px);
    padding-top: clamp(48px, 6vw, 72px);
    border-top: 1px solid var(--line);
}

.vibe h2 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.vibe-lede {
    margin: 0 0 36px;
    max-width: 32rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.vibe-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
}

.vibe-list article {
    padding: 28px 24px 8px 0;
    border-right: 1px solid var(--line);
}

.vibe-list article:last-child {
    border-right: 0;
    padding-right: 0;
}

.vibe-list article:not(:first-child) {
    padding-left: 28px;
}

.vibe-list h3 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.vibe-list p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.next {
    margin-top: clamp(72px, 10vw, 120px);
}

.next-inner {
    padding: clamp(36px, 5vw, 56px);
    color: #fff6ee;
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(255, 106, 26, 0.55), transparent 55%),
        linear-gradient(135deg, #1a120c 0%, #2a1810 50%, #ff6a1a 140%);
    border-radius: 28px;
}

.next-inner .section-eyebrow {
    color: rgba(255, 246, 238, 0.65);
}

.next-inner h2 {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.next-inner p {
    margin: 0 0 28px;
    max-width: 36rem;
    color: rgba(255, 246, 238, 0.78);
    font-size: 1.05rem;
    line-height: 1.65;
}

.next-inner strong {
    color: #ffb347;
}

.next-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    background: #fff6ee;
    color: #1a120c;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    transition: transform 220ms ease, background 220ms ease;
}

.next-cta:hover {
    transform: translateY(-2px);
    background: #ffb347;
}

.next-cta span {
    font-size: 1.15rem;
}

.suggest {
    margin-top: clamp(56px, 8vw, 88px);
    padding: clamp(32px, 4vw, 48px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    gap: clamp(28px, 4vw, 48px);
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(37, 211, 102, 0.08), transparent 45%),
        rgba(255, 255, 255, 0.5);
}

.suggest-copy h2 {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.8vw, 2.8rem);
    letter-spacing: -0.05em;
    line-height: 1.08;
}

.suggest-copy p {
    margin: 0;
    max-width: 34rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.suggest-action {
    display: grid;
    gap: 14px;
    justify-items: start;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 999px;
    background: #25d366;
    color: #062814;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    transition: transform 220ms ease, filter 220ms ease;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.whatsapp-icon {
    flex-shrink: 0;
}

.suggest-number {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
}

.suggest-number a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(23, 19, 31, 0.25);
}

.suggest-number a:hover {
    border-bottom-color: var(--ink);
}

footer {
    padding: 32px 0 40px;
    margin-top: 48px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 0.75rem;
    font-weight: 700;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.footer-note {
    margin: 14px 0 0;
    color: rgba(112, 107, 122, 0.85);
    font-weight: 600;
}

@media (max-width: 900px) {
    .hub-nav {
        display: none;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card.is-featured {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 8px;
    }

    .project-card.is-featured .kiff-preview {
        order: -1;
        min-height: 200px;
        margin: 12px 0;
    }

    .story {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .vibe-list {
        grid-template-columns: 1fr;
        border-top: 0;
    }

    .vibe-list article {
        padding: 22px 0;
        border-right: 0;
        border-top: 1px solid var(--line);
    }

    .vibe-list article:not(:first-child) {
        padding-left: 0;
    }

    .suggest {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 780px) {
    .intro {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .eyebrow {
        margin-bottom: 0;
    }

    .project-card {
        min-height: 520px;
    }

    .project-card.is-featured {
        min-height: auto;
        padding: 22px;
    }
}

@media (max-width: 520px) {
    .hub-header,
    main,
    footer {
        width: min(100% - 28px, 1180px);
    }

    .hub-header {
        min-height: 72px;
    }

    .header-note {
        display: none;
    }

    main {
        padding: 48px 0 70px;
    }

    .intro {
        margin-bottom: 36px;
    }

    .intro-copy {
        font-size: 0.95rem;
    }

    .project-card {
        min-height: 500px;
        padding: 19px;
        border-radius: 23px;
    }

    .ngl-preview,
    .devid-preview,
    .kiff-preview {
        transform: scale(0.88);
    }

    .project-card.is-featured .kiff-preview {
        transform: none;
    }

    .next-inner {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .footer-main {
        flex-direction: column;
        text-align: center;
        gap: 7px;
    }

    .footer-note {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .project-card,
    .project-link b,
    .mini-kiff,
    .kiff-spark,
    .ambient-kiff,
    .next-cta {
        animation: none;
        transition: none;
    }
}
