﻿/* ── Clients ─────────────────────────────────────────────── */
.clients {
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.06);
}

.clients-h { color: var(--black); }

.clients-text {
    font-size: 18px;
    color: #4a4a4e;
    line-height: 1.75;
    max-width: 680px;
    margin-bottom: 64px;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.logo-cell {
    background: transparent;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.logo-cell:hover {
    background: var(--black);
    border-color: var(--black);
}

.logo-cell:hover .logo-placeholder { color: rgba(255,255,255,0.82); }

.logo-placeholder {
    font-size: 11px;
    font-weight: 600;
    color: rgba(0,0,0,0.22);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'SF Mono', 'Fira Code', monospace;
    transition: color 0.25s ease;
}

.nda-note {
    font-size: 12px;
    color: #aeaeb2;
    letter-spacing: 0.04em;
}

/* ── Portfolio ───────────────────────────────────────────── */
.portfolio {
    background: var(--black);
    border-top: 1px solid var(--border);
}

/* ── iOS / macOS-style Folders ──────────────────────────── */
.folders-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding-top: 40px;
    align-items: start;
}

.folder {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    min-height: auto;
    overflow: visible;
}

.folder::after { display: none; }

/* ── Folder ear (iOS tab) ── */
.folder-tab {
    position: relative;
    top: auto; left: auto;
    width: 52%;
    min-height: 28px;
    padding: 0 18px;
    border-radius: 11px 11px 0 0;
    margin-left: 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    z-index: 2;
    flex-shrink: 0;
    font-family: 'SF Mono', 'Fira Code', monospace;
    border-bottom: none !important;
    transition: transform 0.42s cubic-bezier(0.34, 1.3, 0.64, 1);
    transform-origin: bottom left;
}

.folder:hover .folder-tab {
    transform: rotate(-14deg) translateY(-6px);
}

/* ── Folder body ── */
.folder-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px 26px;
    border-radius: 4px 18px 18px 18px;
    min-height: 224px;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
    transition: transform 0.42s cubic-bezier(0.34, 1.2, 0.64, 1),
                box-shadow 0.4s ease;
}

.folder-body::before {
    content: '';
    position: absolute;
    top: 0; left: 14px; right: 14px;
    height: 1px;
    background: rgba(255,255,255,0.14);
    border-radius: 2px;
    pointer-events: none;
}

.folder:hover .folder-body {
    transform: translateY(-16px);
}

/* ── Typography ── */
.folder-count {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 6px;
}

.folder-body p {
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.72;
}

.folder-tag {
    font-size: 11px;
    letter-spacing: 0.08em;
    opacity: 0.45;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.folder-icons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.folder-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.88);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ── Folder color variants ── */
.folder-1 .folder-tab { background: #2a2a2d; color: #aeaeb2; }
.folder-1 .folder-body {
    background: linear-gradient(145deg, #252528, #1a1a1c);
    color: var(--white);
    box-shadow: 0 20px 52px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.06);
}
.folder-1:hover .folder-body { box-shadow: 0 36px 80px rgba(0,0,0,0.56); }

.folder-2 .folder-tab { background: #e4e4e8; color: #444; }
.folder-2 .folder-body {
    background: linear-gradient(145deg, #f5f5f7, #e8e8ea);
    color: var(--black);
    box-shadow: 0 20px 52px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.9);
}
.folder-2:hover .folder-body { box-shadow: 0 36px 80px rgba(0,0,0,0.24); }
.folder-2 .folder-chip { background: rgba(0,0,0,0.07); color: rgba(0,0,0,0.65); }
.folder-2 .folder-body::before { background: rgba(255,255,255,0.9); }

.folder-3 .folder-tab { background: #e01f68; color: #fff; }
.folder-3 .folder-body {
    background: linear-gradient(145deg, #FF2D78, #c51d5c);
    color: var(--white);
    box-shadow: 0 20px 52px rgba(255,45,120,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.folder-3:hover .folder-body { box-shadow: 0 36px 80px rgba(255,45,120,0.52); }
.folder-3 .folder-chip { background: rgba(0,0,0,0.14); color: rgba(255,255,255,0.9); }

.folder-4 .folder-tab { background: #2c2c30; color: #aeaeb2; }
.folder-4 .folder-body {
    background: linear-gradient(145deg, #1d1d20, #131315);
    color: var(--white);
    box-shadow: 0 20px 52px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.folder-4:hover .folder-body { box-shadow: 0 36px 80px rgba(0,0,0,0.54); }

/* -- Footer ------------------------------------------------ */
.footer {
    background: #080808;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 48px 80px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 64px;
}
.fc-logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 20px;
}
.fc-desc {
    font-size: 14px;
    color: #8e8e93;
    line-height: 1.75;
    margin-bottom: 14px;
    max-width: 300px;
}
.fc-note {
    font-size: 13px;
    color: #636366;
    line-height: 1.65;
    max-width: 300px;
}
.fc-heading {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}
.fc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fc-list a {
    font-size: 14px;
    color: #8e8e93;
    transition: color 0.18s;
    text-decoration: none;
}
.fc-list a:hover { color: var(--white); }
.fc-socials {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.fc-soc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.09);
    color: #8e8e93;
    text-decoration: none;
    transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.fc-soc:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.06);
}
.footer-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 48px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 12px;
    color: #48484a;
    line-height: 1.55;
}
.footer-bar-link {
    color: #48484a;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.18s;
}
.footer-bar-link:hover { color: #8e8e93; }
.footer-bar-offer {
    max-width: 580px;
    color: #3a3a3c;
    font-size: 11px;
    line-height: 1.6;
}
.btn-lg { padding: 20px 52px; font-size: 17px; }

/* ── Custom cursor ──────────────────────────────────────── */
.cursor {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--pink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease,
                border-color 0.2s ease, border-width 0.2s ease;
    will-change: left, top;
}

.cursor-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--pink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease;
}

.cursor.hovered {
    width: 60px;
    height: 60px;
    border-color: var(--white);
    border-width: 1px;
}

.cursor.clicking {
    transform: translate(-50%, -50%) scale(0.85);
}

/* ── Flashlight cursor in dark sections ───────────────── */
body.in-dark .cursor {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at center,
        rgba(255,255,255,0.07) 0%,
        rgba(255,255,255,0.02) 45%,
        transparent 70%);
    border: none;
    backdrop-filter: blur(0px);
}

body.in-dark .cursor-dot { background: rgba(255,255,255,0.75); }
