@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --corner-radius: 12px;
    --border-thick: 6px;
    --frame-gradient: linear-gradient(to bottom, #333 0%, #111 49%, #000 50%, #0a0a0a 100%);
    --glass-gradient: linear-gradient(to bottom, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 49%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.8) 100%);

    /* chrome, remove? */
    --chrome-gradient: linear-gradient(to bottom, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 50%, rgba(0,0,0,0.1) 51%, rgba(0,0,0,0.2) 100%);
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    width: 100%; min-height: 100vh;
    overflow-x: hidden;
    scrollbar-width: none; -ms-overflow-style: none;
}
body::-webkit-scrollbar, html::-webkit-scrollbar { display: none; }

body {
    color: white;
    font-family: 'Open Sans', sans-serif;
    background-color: #000;
    background-image:
    radial-gradient(circle at 30% 20%, rgba(26, 11, 46, 0.8) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(13, 17, 43, 0.6) 0%, transparent 60%);
    background-attachment: fixed;
    cursor: url(/images/cursore.png), default;
    pointer: url(/images/pointer.png), pointer;
    grab: url(/images/dragopen.png), grab;
    grabbing: url(/images/dragclosed.png), grabbing;

} /* todo: fix other custom cursors */

h1, h3 { font-weight: 800; opacity: 0.95; }
h2 {
    font-weight: 300; letter-spacing: 1px;
    text-transform: lowercase; opacity: 0.6;
    margin: 40px 0 20px 0;
    padding-left: 15px; /* Indent */
}
.page-wrapper {
    width: 77.5%;
    max-width: 1600px;
    margin: 50px auto;
    padding-bottom: 100px;
}



.scroll-x {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow-x: auto;
    padding: 15px 5px;
    white-space: nowrap;
    scrollbar-width: none; 
}
.divfade {
  --mask: linear-gradient(90deg, rgb(0 0 0 / var(--l, 1)), #000 5vw calc(100% - 5vw), rgb(0 0 0 / var(--r, 0)));
  -webkit-mask: var(--mask);
  mask: var(--mask);
  overflow-x: auto;
}
.scroll-x::-webkit-scrollbar { display: none; }

.btn-gloss {
    flex: 0 0 auto;
    margin-right: 0;
    padding: 14px 28px; padding-left: 32px;
    font-family: inherit; font-weight: 700; font-size: 0.95rem;
    text-transform: lowercase; text-decoration: none;
    color: #999;
    display: inline-flex; align-items: center; gap: 12px;
    background: linear-gradient(to bottom, #333 0%, #151515 49%, #000 50%, #0a0a0a 100%);
    border: 1px solid #000; border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 5px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-drag: none;
}

.btn-gloss:hover {
    color: #fff; transform: translateY(-3px);
    box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 8px 15px rgba(0,0,0,0.7),
    0 0 15px rgba(188, 19, 254, 0.2);
}
.btn-gloss:active { transform: scale(0.96); background: #000; }

/* --- LINK SEPARATOR --- */
.link-divider {
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    margin: 0;
    flex-shrink: 0;
    box-shadow: 0 0 4px rgba(255,255,255,0.2);
}






/* --- glossy/piano black frame --- */
.piano-frame {
    position: relative;
    background: var(--frame-gradient);
    border-radius: var(--corner-radius);
    padding: var(--border-thick);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* glossy/piano black filler */
.piano-content {
    background: linear-gradient(to bottom, #151515 0%, #080808 49%, #030303 50%, #000 100%);
    border: 1px solid #000;
    overflow: hidden; position: relative;
    border-radius: calc(var(--corner-radius) - var(--border-thick));
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06); /* 1px outline */
}

/* glass reflection overlay */
.gloss-overlay {
    position: absolute; inset: 0;
    background: var(--glass-gradient);
    z-index: 2; pointer-events: none;
}


.project-inner {
    width: 100%; height: 100%; position: relative;
    background: #000;
    border-radius: calc(var(--corner-radius) - 2px);
    overflow: hidden; border: 1px solid #000;
    user-select: none;
    -webkit-user-drag: none;
}




.project-frame {
    width: 100%; aspect-ratio: 16/9;
    padding: var(--border-thick);
    user-select: none;
    -webkit-user-drag: none;
}
.project-card {
    display: inline-block; vertical-align: top;
    margin-right: 25px; text-decoration: none;
    width: 18vw;
    min-width: 260px; max-width: 450px;
    flex: 0 0 auto;
    user-select: none;
    -webkit-user-drag: none;
}

.project-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
    user-select: none;
    -webkit-user-drag: none;
}
.project-card:hover .project-img { transform: scale(1.1); }
.project-overlay-text {
    position: absolute; bottom: 20px; left: 24px; z-index: 5;
    color: white; font-weight: 750; font-size: 1.85rem; 
    text-shadow: 0 2px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.5);
    user-select: none; -webkit-user-drag: none;
}
.project-caption {
    margin-top: 10px; color: #777;
    font-size: 0.85rem; padding-left: 10px;
    transition: color 0.2s;
    user-select: none;
    -webkit-user-drag: none;
}
.project-card:hover .project-caption { color: #fff; }






























/* =========================================
 *  responsive stuff
 *  ========================================= */
@media (max-width: 768px) {
    .page-wrapper { width: 100%; padding: 20px; margin: 0; overflow: hidden; }

    h2 { margin-left: 5px; }

    .scroll-x {
        margin-left: -20px; margin-right: -20px;
        padding-left: 20px; padding-right: 20px;
    }
    .scroll-x::after { content: ""; flex: 0 0 20px; display: block; }

    .project-card { width: 85vw; min-width: auto; max-width: none; }
}
