/* ═══════════════════════════════════
   ELIPTE.ai — Main Stylesheet
   ═══════════════════════════════════ */

/* ── Fonts ── */
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/syne-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/syne-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/syne-greek.woff2') format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/syne-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/syne-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/syne-greek.woff2') format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Base ── */
body {
    background: #000;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    cursor: default;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Three.js Canvas ── */
canvas#c {
    position: fixed;
    inset: 0;
    display: block;
}

/* ── Overlays ── */
.vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.8) 100%);
    pointer-events: none;
    z-index: 2;
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .025;
    z-index: 3;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ── UI ── */
#ui {
    position: fixed;
    bottom: 4.5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 1.5s ease 4s forwards;
    text-align: center;
}

/* ── Brand top-left ── */
.brand-top {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    pointer-events: none;
    font-family: 'Syne', sans-serif;
    font-size: clamp(9px, 1vw, 10px);
    font-weight: 700;
    color: rgba(255,255,255,.55);
    letter-spacing: .55em;
    text-transform: lowercase;
    opacity: 0;
    animation: fadeInSimple 1.5s ease 4s forwards;
}

.brand-top b {
    color: #ff4d4d;
    font-weight: 700;
}

.sub {
    font-family: 'Syne', sans-serif;
    font-size: clamp(12px, 1.4vw, 15px);
    color: rgba(255,255,255,.15);
    letter-spacing: .3em;
    text-transform: uppercase;
}

/* ── Animations ── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ── Loading State ── */
.loading {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .8s ease, visibility .8s;
}

.loading.done {
    opacity: 0;
    visibility: hidden;
}

.loading-bar {
    width: 160px;
    height: 1px;
    background: rgba(255,255,255,.06);
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #ff4d4d, transparent);
    animation: slide 1s ease-in-out infinite;
}

@keyframes slide {
    0%   { left: -40%; }
    100% { left: 100%; }
}

/* ── Copyright ── */
.copyright {
    position: fixed;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    animation: fadeInSimple 1.5s ease 4.5s forwards;
}

.copyright a {
    font-family: 'Syne', sans-serif;
    font-size: clamp(8px, .65vw, 10px);
    color: rgba(255,255,255,.18);
    text-decoration: none;
    letter-spacing: .12em;
    pointer-events: all;
    transition: color .3s;
}

.copyright a:hover {
    color: rgba(255,77,77,.5);
}

@keyframes fadeInSimple {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Selection ── */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}