@import url("./fonts.css?v=202609081607");

* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #000000;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    cursor: none;
}

* { cursor: none !important; }

::-webkit-scrollbar { display: none; width: 0; }

#webgl {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    outline: none;
}

/* ---- Reticle cursor: dot, slow-spinning ticks, HUD readout, blend for contrast ---- */
.cursor-inner {
    position: fixed; top: 0; left: 0;
    width: 4px; height: 4px; background: #ffffff; border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; z-index: 9999; mix-blend-mode: difference;
    transition: width 0.25s, height 0.25s, border-radius 0.25s, opacity 0.3s;
}
.cursor-outer {
    position: fixed; top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; z-index: 9998; mix-blend-mode: difference;
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1), height 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.35s, opacity 0.3s;
}
.cursor-ticks { position: absolute; inset: -7px; animation: cursor-spin 16s linear infinite; }
.cursor-ticks span { position: absolute; background: #ffffff; }
.cursor-ticks span:nth-child(1) { left: 50%; top: 0; width: 1px; height: 6px; margin-left: -0.5px; }
.cursor-ticks span:nth-child(2) { left: 50%; bottom: 0; width: 1px; height: 6px; margin-left: -0.5px; }
.cursor-ticks span:nth-child(3) { top: 50%; left: 0; width: 6px; height: 1px; margin-top: -0.5px; }
.cursor-ticks span:nth-child(4) { top: 50%; right: 0; width: 6px; height: 1px; margin-top: -0.5px; }
@keyframes cursor-spin { to { transform: rotate(360deg); } }
.cursor-label {
    position: fixed; top: 0; left: 0; transform: translate(26px, 14px);
    font: 500 9px/1 'Space Grotesk', sans-serif; letter-spacing: 2px; white-space: nowrap;
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none; z-index: 9997; mix-blend-mode: difference; transition: opacity 0.3s;
}
body.cursor-hover .cursor-outer { width: 58px; height: 58px; border-color: #ffffff; }
body.cursor-hover .cursor-ticks { animation-duration: 3s; }
body.cursor-hover .cursor-inner { width: 6px; height: 6px; }
body.cursor-text .cursor-inner { width: 1px; height: 18px; border-radius: 0; }
body.cursor-text .cursor-outer { opacity: 0.35; }
body.cursor-hidden .cursor-inner, body.cursor-hidden .cursor-outer, body.cursor-hidden .cursor-label { opacity: 0; }
@media (hover: none), (pointer: coarse) {
    .cursor-inner, .cursor-outer, .cursor-label { display: none; }
    * { cursor: auto !important; }
}

.cinematic-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    pointer-events: none;          /* clicks pass through to canvas */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 60px 40px 60px;
    box-sizing: border-box;
}

/* ---- Header: quiet, editorial, one typeface ---- */
.main-header {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; height: 70px; z-index: 20;
    pointer-events: auto;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: #ffffff; text-decoration: none; }
.brand-mark { display: block; width: 22px; height: 22px; flex: 0 0 22px; color: #a8e231; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-text { font-size: 15px; font-weight: 700; letter-spacing: 0.03em; }
.brand-text::after { content: '.'; color: #a8e231; }
.header-nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
    position: relative; padding: 6px 0;
    font-size: 12px; font-weight: 400; letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color 0.4s;
}
.nav-link::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
    background: #ffffff; transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover, .nav-link.is-active { color: #ffffff; }
.nav-link.is-active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 26px; }
.header-counter {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 400; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.45);
}
.header-counter #brand-chapter { color: #ffffff; }
.counter-sep { width: 14px; height: 1px; background: rgba(255, 255, 255, 0.3); }
.contact-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 16px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
    color: #ffffff; text-decoration: none; background: transparent;
    font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
    transition: border-color 0.4s, background 0.4s;
}
.btn-arrow { font-size: 13px; line-height: 1; transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.contact-btn:hover { border-color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.06); }
.contact-btn:hover .btn-arrow { transform: translate(2px, -2px); }
.header-progress { position: fixed; top: 70px; left: 0; right: 0; height: 1px; z-index: 6; pointer-events: none; }
.header-progress span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.15));
}

.slide { position: absolute; bottom: 12%; pointer-events: none; }

.slide-title { font-size: clamp(38px, 4.1vw, 62px); margin-bottom: 16px; }
.slide-dense .slide-desc { font-size: 15px; line-height: 1.6; max-width: 58ch; margin: 0 0 22px; }

/* Hero calls to action */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.store-btn {
    display: inline-flex; flex-direction: column; gap: 4px; padding: 10px 18px; border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.04); color: #ffffff;
    text-decoration: none; font: 600 15px/1 'Space Grotesk', sans-serif; transition: border-color 0.3s, background 0.3s;
}
.store-btn small { font: 400 9px/1 'Space Grotesk', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #aeb6c4; }
.store-btn:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.demo-btn {
    display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px; border-radius: 999px;
    background: #a8e231; color: #0a0f05; text-decoration: none; font: 600 13px/1.2 'Space Grotesk', sans-serif;
    box-shadow: 0 10px 30px rgba(168, 226, 49, 0.22); transition: transform 0.3s, box-shadow 0.3s;
}
.demo-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(168, 226, 49, 0.4); }

/* Cards: categories, modules, values */
.cards { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    padding: 16px 16px 15px; border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.card h3 { margin: 10px 0 6px; font-size: 14px; font-weight: 600; letter-spacing: 0.01em; color: #f2f7ff; }
.card p { margin: 0; font-size: 12.5px; line-height: 1.5; font-weight: 300; color: #c3cad6; }
.card-icon {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
    color: #a8e231; border: 1px solid rgba(168, 226, 49, 0.45); background: rgba(168, 226, 49, 0.08);
}
.card-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card.is-mairie .card-icon { color: #ff5a5f; border-color: rgba(255, 90, 95, 0.45); background: rgba(255, 90, 95, 0.08); }
.module-tag {
    display: inline-block; padding: 5px 9px; border-radius: 999px;
    font: 600 10px/1 'Space Grotesk', sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
    color: #cfd6e6; border: 1px solid rgba(255, 255, 255, 0.25);
}
.module-tag.is-live { color: #0a0f05; background: #a8e231; border-color: #a8e231; }
.module h3 { font-size: 15px; }

/* How it works: two four-step flows */
.flow + .flow { margin-top: 24px; }
.flow-label {
    display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
    font: 600 11px/1 'Space Grotesk', sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: #a8e231;
}
.flow-label::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.flow-mairie .flow-label, .audience-mairie .flow-label { color: #ff5a5f; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step { position: relative; }
.step-num {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid rgba(168, 226, 49, 0.6); color: #a8e231; background: rgba(168, 226, 49, 0.08);
    font: 500 13px/1 'Space Grotesk', sans-serif; box-shadow: 0 0 18px rgba(168, 226, 49, 0.18);
}
.flow-mairie .step-num { border-color: rgba(255, 90, 95, 0.6); color: #ff5a5f; background: rgba(255, 90, 95, 0.08); box-shadow: 0 0 18px rgba(255, 90, 95, 0.18); }
.step:not(:last-child)::after {
    content: ''; position: absolute; top: 15px; left: 40px; right: -8px; height: 1px;
    background: linear-gradient(90deg, rgba(168, 226, 49, 0.55), rgba(168, 226, 49, 0));
}
.flow-mairie .step:not(:last-child)::after { background: linear-gradient(90deg, rgba(255, 90, 95, 0.55), rgba(255, 90, 95, 0)); }
.step h3 { margin: 11px 0 5px; font-size: 13.5px; font-weight: 600; color: #f2f7ff; }
.step p { margin: 0; font-size: 12px; line-height: 1.45; font-weight: 300; color: #c3cad6; }

/* Who it is for */
.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.audience {
    padding: 20px 20px 22px; border-radius: 18px;
    border: 1px solid rgba(168, 226, 49, 0.28);
    background: linear-gradient(160deg, rgba(168, 226, 49, 0.09), rgba(168, 226, 49, 0.01));
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.audience-mairie { border-color: rgba(255, 90, 95, 0.3); background: linear-gradient(160deg, rgba(255, 90, 95, 0.09), rgba(255, 90, 95, 0.01)); }
.audience .flow-label { opacity: 1; transform: none; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.45; font-weight: 300; color: #dde2ea; }
.checks li::before {
    content: ''; position: absolute; left: 2px; top: 5px; width: 10px; height: 6px;
    border-left: 1.6px solid #a8e231; border-bottom: 1.6px solid #a8e231; transform: rotate(-45deg);
}
.audience-mairie .checks li::before { border-color: #ff5a5f; }

.slide-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(44px, 5.4vw, 80px);
    line-height: 1.0;
    font-weight: 400;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
    color: #f2f7ff;
}
.slide-desc {
    font-size: 16px; line-height: 1.7; font-weight: 300;
    color: #d1d5db; letter-spacing: 0.3px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.3s;
}
.slide.active .slide-desc { opacity: 1; transform: translateY(0); }

/* Title reveal: each line rises out of its own mask with a long exponential ease.
   Transform and opacity only, so it stays on the compositor and silky. */
.slide-title .line, .contact-title .line {
    display: block; overflow: hidden; white-space: nowrap;   /* two lines, never three: see fitTitles() */
    padding: 0.06em 0 0.16em; margin: -0.06em 0 -0.16em;
}
.line-inner {
    display: block; transform: translateY(112%); opacity: 0; filter: blur(12px);
    transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease-out,
                filter 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}
.line.muted .line-inner { transition-delay: 0.09s; }
.slide.active .slide-title .line-inner, .contact.is-visible .contact-title .line-inner {
    transform: none; opacity: 1; filter: blur(0);
}
.slide-title .line.muted, .contact-title .line.muted { color: #b9c1d1; }
.slide.active { pointer-events: auto; }

.grid-horizontal-line {
    position: fixed; top: 70px; left: 0; right: 0;
    width: 100%; height: 1px;
    background: rgba(255, 255, 255, 0.065);
    z-index: 5; pointer-events: none;
}

/* ---- Contact chapter: a real section that rises over the fixed 3D stage ---- */
.scroll-stage { position: relative; height: 700vh; pointer-events: none; }
.grid-horizontal-line { transition: opacity 0.6s; }
body.contact-open .grid-horizontal-line { opacity: 0; }

.contact-mail {
    display: inline-flex; align-items: center; gap: 30px; padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff; text-decoration: none; font-size: 18px; font-weight: 400; transition: gap 0.35s, border-color 0.35s;
}
.contact-mail:hover { gap: 44px; border-color: #ffffff; }
.arrow { font-size: 1.15em; line-height: 1; }

/* The card. By default a CSS glass; when the 3D slab is active (body.has-glass-card)
   the CSS body turns transparent and the WebGL glass shows through behind the fields. */
.contact-card {
    position: relative; width: 100%; max-width: 600px; justify-self: end;
    border-radius: 30px; padding: 40px 44px 38px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
body.has-glass-card .contact-card {
    border-color: transparent; background: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: none;
}
/* Specular rim on top of the 3D glass: a bright hairline that fades along the edge. */
body.has-glass-card .contact-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    padding: 1px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.08) 28%,
                                rgba(255, 255, 255, 0.04) 60%, rgba(255, 255, 255, 0.35) 100%);
}
body.has-glass-card .contact-card::after {
    content: ''; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none;
    background: radial-gradient(120% 80% at 18% 0%, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 55%);
}
.contact-card > * { position: relative; z-index: 1; }
.card-head {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px;
    font: 500 11px/1 'Space Grotesk', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: #d7deea;
}
.card-head .arrow { font-size: 20px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field-wide { grid-column: 1 / -1; }
.field-label { font: 500 12px/1 'Space Grotesk', sans-serif; letter-spacing: 0.04em; color: #dfe6f3; }
.field-label em { font-style: normal; color: #a8e231; }
.field-label small { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: #8d97ab; margin-left: 8px; }
.field input, .field textarea {
    width: 100%; background: transparent; border: 0; border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.20);
    padding: 6px 0 12px; color: #ffffff; outline: none; -webkit-appearance: none; appearance: none;
    font: 300 16px/1.4 'Space Grotesk', sans-serif; transition: border-color 0.3s;
    user-select: text; -webkit-user-select: text;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8b94a6; }
.field input:focus, .field textarea:focus { border-bottom-color: #ffffff; }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #0b0b10 inset; -webkit-text-fill-color: #ffffff; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 34px; }
.card-note { font-size: 10.5px; line-height: 1.7; color: #b3bccb; letter-spacing: 0.3px; }
.pill-btn {
    display: inline-flex; align-items: center; gap: 18px; padding: 16px 26px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.04); color: #ffffff;
    font: 500 13px/1 'Space Grotesk', sans-serif; letter-spacing: 0.2px;
    transition: background 0.3s, color 0.3s, transform 0.3s, border-color 0.3s;
}
.pill-btn .arrow { font-size: 16px; }
.pill-btn:hover { background: #ffffff; color: #000000; border-color: #ffffff; transform: translateY(-2px); }
@media (max-width: 1000px) {
    .contact-card { justify-self: stretch; max-width: none; }
    .card-foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
    .contact-card { padding: 28px 20px; }
    .field-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ---- Preloader ---- */
.loader {
    position: fixed; inset: 0; z-index: 9990; background: #000000;
    display: grid; place-items: center;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: grid; justify-items: center; text-align: center; gap: 20px; width: min(320px, 70vw); }
.loader-value {
    font-size: clamp(56px, 8vw, 96px); font-weight: 400; line-height: 1; letter-spacing: -0.04em;
    color: #ffffff; font-variant-numeric: tabular-nums;
}
.loader-unit { font-size: 0.35em; letter-spacing: 0; margin-left: 0.1em; color: rgba(255, 255, 255, 0.5); }
.loader-bar { width: 100%; height: 1px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.loader-bar span { display: block; width: 100%; height: 100%; background: #ffffff; transform: scaleX(0); transform-origin: left center; }
.loader-hint { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.35); }
body.is-loading { overflow: hidden; }
