:root {
    --bg: #000000;
    --panel: rgba(20, 20, 20, 0.72);
    --border: rgba(255, 255, 255, 0.10);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.70);
    --accent: #9ec1ff;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.45;
    cursor: none;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}


body {
    cursor: none;
}

.cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    transform: translate3d(-9999px, -9999px, 0);
    pointer-events: none;
    z-index: 2000;

    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35),
        0 0 18px rgba(158, 193, 255, 0.16);

    opacity: 0.95;
}

html {
    scroll-behavior: smooth;
}

/* Soft ring */
.cursor::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
    border-radius: 999px;

    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 0 30px rgba(158, 193, 255, 0.10);

    opacity: 0.9;
    animation: cursorPulse 1.8s ease-in-out infinite;
}

@keyframes cursorPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.85;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.10);
        opacity: 0.65;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.85;
    }
}

/* When hovering interactive things, tighten the ring and brighten */
.cursor.is-active {
    background: rgba(255, 255, 255, 1);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(158, 193, 255, 0.22);
}

.cursor.is-active::after {
    width: 26px;
    height: 26px;
    border-color: rgba(255, 255, 255, 0.32);
    animation-duration: 1.2s;
}

/* When the cursor is over bright text areas, add a darker outline for contrast */
.cursor.contrast {
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.65),
        0 0 18px rgba(158, 193, 255, 0.12);
}

a,
button,
input,
textarea,
select,
label {
    cursor: none !important;
}

.stars {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.65;
}

.invert-zone {
    position: relative;
    z-index: 3;
}

.navlink.active {
    color: rgba(255, 255, 255, 0.95);
}

.navlink.active::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(158, 193, 255, 0.70);
}

section,
.hero,
footer {
    transform: translateY(8px);
    opacity: 0;
    animation: fadeUp 600ms ease forwards;
}

section {
    animation-delay: 80ms;
}

.hero {
    animation-delay: 40ms;
}

footer {
    animation-delay: 120ms;
}

@keyframes fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.invert-zone {
    position: relative;
    z-index: 3;
}

.card.projectCard {
    cursor: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}

.modal.show {
    display: block;
}

.modalBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

.modalCard {
    position: relative;
    width: min(720px, calc(100% - 28px));
    margin: 70px auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 18, 18, 0.92);
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.70);
    padding: 16px;
}

.modalTop {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.modalKicker {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.modalTitle {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.2px;
}

.modalBody {
    margin: 10px 0 0 0;
    color: var(--muted);
}

.modalTags {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.modalActions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modalClose {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: none !important;
}

.modalClose:hover {
    border-color: rgba(158, 193, 255, 0.35);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.logo img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    display: block;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


.brand-title {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-title strong {
    font-size: 14px;
    letter-spacing: 0.3px;
}

.brand-title span {
    font-size: 12px;
    color: var(--muted);
}

nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.navlink {
    font-size: 13px;
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}

.navlink:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(20, 20, 20, 0.55);
    color: var(--text);
    font-size: 13px;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(158, 193, 255, 0.42);
    background: rgba(20, 20, 20, 0.80);
}

.heroLogo {
    position: relative;
    width: 100%;
    height: 130px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: #000;
    display: grid;
    place-items: center;
    overflow: hidden;
}

/* remove the flashlight look */
.heroLogo::before,
.heroLogo::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}

/* subtle hover glow */
.heroLogo::before {
    background: radial-gradient(380px 160px at 50% 55%, rgba(158, 193, 255, 0.18), transparent 62%);
    filter: blur(10px);
}

.heroLogo::after {
    background: radial-gradient(280px 120px at 50% 55%, rgba(255, 255, 255, 0.08), transparent 65%);
}

.heroLogo:hover::before,
.heroLogo:hover::after {
    opacity: 1;
}

.heroLogo img {
    position: relative;
    z-index: 1;
    height: 72px;
    width: auto;
    display: block;
    opacity: 0.95;
    transform: translate3d(0, 0, 0);
    animation: logoFloat 3.6s ease-in-out infinite;
    transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.heroLogo:hover img {
    transform: translate3d(0, -2px, 0) rotate(-0.6deg) scale(1.02);
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
    opacity: 1;
}

@keyframes logoFloat {
    0% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -4px, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes logoGlow {
    0% {
        transform: scale(1);
        opacity: 0.45;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.70;
    }

    100% {
        transform: scale(1);
        opacity: 0.45;
    }
}

@media (prefers-reduced-motion: reduce) {

    .heroLogo::before,
    .heroLogo img {
        animation: none;
    }
}

.heroLogo img {
    height: 72px;
    width: auto;
    display: block;
    opacity: 0.95;
}

/* Sections */
main {
    position: relative;
    z-index: 5;
}


.hero {
    padding: 78px 0 38px 0;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 18px;
    align-items: start;
}

.hero h1 {
    margin: 0;
    font-size: 52px;
    letter-spacing: -0.6px;
    line-height: 1.05;
}

.hero p {
    margin: 14px 0 0 0;
    max-width: 62ch;
    color: var(--muted);
    font-size: 16px;
}

.hero-actions {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    user-select: none;
}

.sidecard {
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--shadow);
    border-radius: 18px;
    padding: 16px;
    height: fit-content;
}

.sidecard h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.85);
}

.sidecard ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
    padding: 18px 0 58px 0;
}

section {
    border: 1px solid var(--border);
    background: rgba(16, 16, 16, 0.55);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-title h2 {
    margin: 0;
    font-size: 16px;
    letter-spacing: 0.25px;
}

.section-title span {
    color: var(--muted);
    font-size: 12px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(20, 20, 20, 0.55);
    border-radius: 16px;
    padding: 14px;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.card:hover {
    transform: translateY(-1px);
    border-color: rgba(158, 193, 255, 0.35);
    background: rgba(22, 22, 22, 0.85);
}

.card h3 {
    margin: 0 0 6px 0;
    font-size: 14px;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.tags {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.70);
    background: rgba(255, 255, 255, 0.03);
}

.cols-8 {
    grid-column: span 8;
}

.cols-4 {
    grid-column: span 4;
}

.cols-12 {
    grid-column: span 12;
}

footer {
    padding: 22px 0 46px 0;
    color: rgba(255, 255, 255, 0.50);
    font-size: 12px;
    position: relative;
    z-index: 5;
}

/* Make the cursor invert text on hover zones */
.invert-on-hover {
    transition: filter 120ms ease;
}



@media (max-width: 940px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .brand {
        min-width: auto;
    }

    .hero h1 {
        font-size: 44px;
    }
}