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

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

:root {
    --bg:        #000035;
    --bg-card:   #00003f;
    --bg-hover:  #000048;
    --border:    rgba(255, 255, 255, 0.07);
    --text:      #eeeaf4;
    --muted:     rgba(200, 195, 220, 0.5);
    --accent:    #7b9cff;
    --accent-dim: rgba(123, 156, 255, 0.12);
    --live:      #4ade80;
    --live-bg:   rgba(74, 222, 128, 0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Grain + subtle glow ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(123, 156, 255, 0.08) 0%, transparent 70%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ── Grid background ── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 80%);
}

/* ── Container ── */
.container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Nav ── */
nav {
    padding: 2.2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    animation: fadeUp .6s ease .1s forwards;
}

.nav-logo {
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -.01em;
}
.nav-dot { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    font-size: .78rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Hero ── */
.hero { padding: 7rem 0 5rem; }

.hero-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: 1.8rem;
    opacity: 0;
    animation: fadeUp .6s ease .2s forwards;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 9vw, 6rem);
    font-weight: 300;
    line-height: 1.0;
    letter-spacing: -.02em;
    color: var(--text);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp .7s ease .3s forwards;
}
.hero-title em {
    font-style: italic;
    color: var(--accent);
}

.hero-desc {
    font-size: .95rem;
    line-height: 1.85;
    color: var(--muted);
    max-width: 440px;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp .7s ease .4s forwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp .7s ease .5s forwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--accent);
    color: var(--bg);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 500;
    padding: .75rem 1.5rem;
    border-radius: 99px;
    letter-spacing: .02em;
    transition: opacity .2s, transform .15s;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: transparent;
    color: var(--muted);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 400;
    padding: .75rem 1.5rem;
    border-radius: 99px;
    border: 1px solid var(--border);
    letter-spacing: .02em;
    transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.15); }

/* ── Divider ── */
.divider {
    height: 1px;
    background: var(--border);
    margin: 4rem 0;
    opacity: 0;
    animation: fadeIn .6s ease .6s forwards;
}

/* ── Projects ── */
.section-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp .6s ease .7s forwards;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    animation: fadeUp .7s ease .8s forwards;
}

.project-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem;
    background: var(--bg-card);
    text-decoration: none;
    transition: background .2s;
    gap: 1.5rem;
    cursor: pointer;
}
.project-card:hover { background: var(--bg-hover); }
.project-card:hover .project-arrow { transform: translate(3px, -3px); color: var(--accent); }
.project-card--wip { cursor: default; }
.project-card--wip:hover { background: var(--bg-card); }

.project-left { flex: 1; }

.project-num {
    font-size: .68rem;
    color: var(--muted);
    letter-spacing: .08em;
    margin-bottom: .6rem;
    font-family: 'DM Sans', monospace;
}

.project-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -.01em;
    margin-bottom: .5rem;
    line-height: 1.1;
}

.project-desc {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1rem;
    font-weight: 300;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.project-tags span {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(123, 156, 255, 0.2);
    border-radius: 99px;
    padding: .2rem .6rem;
}

.project-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .8rem;
    flex-shrink: 0;
    padding-top: .2rem;
}

.project-status {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-radius: 99px;
    padding: .25rem .7rem;
    font-weight: 500;
}
.project-status--live {
    background: var(--live-bg);
    color: var(--live);
    border: 1px solid rgba(74, 222, 128, 0.2);
}
.project-status--wip {
    background: rgba(255,255,255,.04);
    color: var(--muted);
    border: 1px solid var(--border);
}

.project-arrow {
    font-size: 1.1rem;
    color: var(--muted);
    transition: transform .2s, color .2s;
}

/* ── Footer ── */
footer {
    padding: 4rem 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    animation: fadeUp .6s ease 1s forwards;
}

.footer-text {
    font-size: .75rem;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-links a {
    font-size: .75rem;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}
.footer-links a:hover { color: var(--text); }

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Mobile ── */
@media (max-width: 540px) {
    .hero { padding: 5rem 0 3.5rem; }
    .project-card { flex-direction: column; padding: 1.5rem; }
    .project-right { flex-direction: row; width: 100%; justify-content: space-between; }
    footer { flex-direction: column; gap: 1rem; text-align: center; }
    .nav-links { gap: 1.2rem; }
}
