:root {
    --bg:              #060609;
    --surface:         rgba(255, 255, 255, 0.04);
    --surface-hover:   rgba(255, 255, 255, 0.07);
    --text:            #e2e4ec;
    --text-strong:     #f5f6f9;
    --muted:           #6e7385;
    --muted-light:     #9ea4b8;
    --gold:            #c9944a;
    --gold-light:      #e8bc78;
    --gold-glow:       rgba(201, 148, 74, 0.18);
    --green:           #4ade80;
    --green-glow:      rgba(74, 222, 128, 0.65);
    --border:          rgba(255, 255, 255, 0.07);
    --border-mid:      rgba(255, 255, 255, 0.11);
    --radius:          1.25rem;
    --shadow:          0 1px 2px rgba(0,0,0,0.6), 0 8px 40px rgba(0,0,0,0.45);
    --shadow-hover:    0 2px 4px rgba(0,0,0,0.6), 0 20px 56px rgba(0,0,0,0.55);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    min-height: 100dvh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ─── Noise overlay ────────────────────────────────────────── */

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

/* ─── Ambient glows ────────────────────────────────────────── */

.glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
}

.glow-a {
    top: -20vh;
    left: -12vw;
    width: 65vw;
    height: 65vw;
    max-width: 720px;
    max-height: 720px;
    background: radial-gradient(circle, rgba(201, 148, 74, 0.14) 0%, transparent 70%);
}

.glow-b {
    bottom: -20vh;
    right: -12vw;
    width: 55vw;
    height: 55vw;
    max-width: 640px;
    max-height: 640px;
    background: radial-gradient(circle, rgba(88, 78, 210, 0.16) 0%, transparent 70%);
}

/* ─── Page wrapper ─────────────────────────────────────────── */

.page-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    width: min(660px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 2.75rem 0 2.25rem;
}

/* ─── Entrance animations ──────────────────────────────────── */

@keyframes fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.site-header { animation: fade-up 0.55s ease both; }
.hero        { animation: fade-up 0.55s 0.08s ease both; }
.projects    { animation: fade-up 0.55s 0.17s ease both; }
.site-footer { animation: fade-up 0.55s 0.25s ease both; }

/* ─── Header ───────────────────────────────────────────────── */

.site-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 5rem;
}

.monogram {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-mid);
    background: var(--surface);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--gold-light);
    flex-shrink: 0;
}

.site-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted-light);
    letter-spacing: 0.025em;
}

/* ─── Hero ─────────────────────────────────────────────────── */

.main {
    flex: 1;
}

.hero {
    margin-bottom: 4.5rem;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.kicker::before {
    content: '';
    display: block;
    width: 1.1rem;
    height: 1px;
    background: var(--gold);
    opacity: 0.55;
    flex-shrink: 0;
}

h1 {
    display: flex;
    flex-direction: column;
    gap: 0.02em;
    font-size: clamp(3.75rem, 12vw, 7.5rem);
    font-weight: 900;
    line-height: 0.93;
    letter-spacing: -0.045em;
    margin-bottom: 1.6rem;
}

.title-line {
    color: var(--text-strong);
}

.title-accent {
    color: var(--gold-light);
    text-shadow: 0 0 48px rgba(232, 188, 120, 0.28);
}

.intro {
    font-size: 1.05rem;
    color: var(--muted-light);
    line-height: 1.75;
    max-width: 36ch;
}

/* ─── Projects ─────────────────────────────────────────────── */

.section-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    margin-bottom: 0.85rem;
}

.project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-mid);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.project-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.live-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green-glow);
    flex-shrink: 0;
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

.live-text {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
}

.project-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.2;
}

.project-desc {
    font-size: 0.88rem;
    color: var(--muted-light);
    line-height: 1.5;
}

.project-url {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

.project-arrow {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--gold-glow);
    color: var(--gold-light);
    transition: background 0.2s ease, transform 0.22s ease;
}

.project-card:hover .project-arrow {
    background: rgba(201, 148, 74, 0.3);
    transform: translateX(4px);
}

.project-card:hover .project-url {
    color: var(--muted-light);
}

/* ─── Footer ───────────────────────────────────────────────── */

.site-footer {
    margin-top: 4.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--muted);
}

/* ─── Responsive ───────────────────────────────────────────── */

@media (max-width: 600px) {
    .page-wrap {
        width: calc(100% - 2.5rem);
        padding: 2rem 0 1.75rem;
    }

    .site-header {
        margin-bottom: 3.5rem;
    }

    .hero {
        margin-bottom: 3.5rem;
    }

    .project-card {
        padding: 1.25rem;
    }
}
