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

:root {
    --black:    #0a0a0a;
    --deep:     #111111;
    --surface:  #181818;
    --border:   #282828;
    --muted:    #555;
    --text:     #d8d0c4;
    --white:    #f0ebe3;
    --amber:    #e8a020;
    --amber-dim:#7a5010;
    --mono:     'JetBrains Mono', monospace;
    --serif:    'DM Serif Display', serif;
}

html { scroll-behavior: auto; }

body {
    background: var(--black);
    color: var(--text);
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

/* CURSOR */
#cursor {
    position: fixed;
    top: 0; left: 0;
    width: 10px; height: 10px;
    background: var(--amber);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
    mix-blend-mode: difference;
}
#cursor.hovered { width: 36px; height: 36px; opacity: 0.6; }
#cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1px solid var(--amber);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    transition: width 0.25s ease, height 0.25s ease;
}

/* NOISE OVERLAY */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9997;
}

/* GRID LINES */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* NAV */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 48px;
    background: linear-gradient(var(--black), transparent);
}

.nav-logo {
    font-size: 12px;
    color: var(--amber);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

/* HERO */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 48px 80px;
    z-index: 1;
}

.hero-kicker {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(56px, 9vw, 130px);
    line-height: 0.92;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.9s 0.35s forwards;
}

.hero-title em {
    font-style: italic;
    color: var(--amber);
}

.hero-sub {
    max-width: 480px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
    opacity: 0;
    animation: fadeUp 0.9s 0.5s forwards;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    right: 48px;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeIn 1s 1s forwards;
}

.hero-scroll-hint::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--amber-dim);
}

.hero-line {
    position: absolute;
    right: 48px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border) 30%, var(--border) 70%, transparent);
}

/* SECTIONS */
section {
    position: relative;
    z-index: 1;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.section-label {
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 64px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ABOUT */
#about {
    padding: 140px 0;
    border-top: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-heading {
    font-family: var(--serif);
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -0.01em;
}

.about-heading em { font-style: italic; color: var(--amber); }

.about-body { font-size: 13px; color: var(--muted); line-height: 1.9; }
.about-body p + p { margin-top: 16px; }

.skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.skill-tag {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border: 1px solid var(--border);
    color: var(--muted);
    transition: border-color 0.2s, color 0.2s;
}

.skill-tag:hover { border-color: var(--amber); color: var(--amber); }

/* PROJECTS */
#projects {
    padding: 140px 0;
    border-top: 1px solid var(--border);
}

.projects-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 64px;
}

.projects-heading {
    font-family: var(--serif);
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.1;
    color: var(--white);
}

.project-count {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
}

/* PROJECT CARDS */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    bottom: 0;
    width: 100%;
    background: var(--surface);
    transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 0;
}

.project-card:hover::before { left: 0; }

.project-card > * { position: relative; z-index: 1; }

.project-num {
    font-size: 11px;
    color: var(--amber-dim);
    letter-spacing: 0.1em;
}

.project-meta { flex: 1; }

.project-name {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--white);
    margin-bottom: 4px;
    transition: color 0.2s;
}

.project-card:hover .project-name { color: var(--amber); }

.project-desc {
    font-size: 12px;
    color: var(--muted);
    max-width: 560px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tag {
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--border);
    color: var(--muted);
}

.project-arrow {
    font-size: 20px;
    color: var(--border);
    transition: color 0.2s, transform 0.2s;
}

.project-card:hover .project-arrow {
    color: var(--amber);
    transform: translate(4px, -4px);
}

/* FEATURED CARD */
.project-card.featured {
    grid-template-columns: 1fr;
    padding: 48px;
    border: 1px solid var(--border);
    margin-bottom: 2px;
    background: var(--deep);
}

.project-card.featured::before {
    background: var(--surface);
}

.featured-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.featured-badge {
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    border: 1px solid var(--amber-dim);
    padding: 4px 10px;
}

.project-card.featured .project-name {
    font-size: 32px;
    margin-bottom: 12px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
}

/* CONTACT */
#contact {
    padding: 140px 0;
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: end;
}

.contact-heading {
    font-family: var(--serif);
    font-size: clamp(48px, 6vw, 88px);
    line-height: 0.95;
    color: var(--white);
    letter-spacing: -0.02em;
}

.contact-heading em { font-style: italic; color: var(--amber); }

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    letter-spacing: 0.05em;
    transition: color 0.2s;
    group: true;
}

.contact-link:hover { color: var(--amber); }

.contact-link span { color: var(--muted); font-size: 11px; }

/* FOOTER */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer p {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ANIMATIONS */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

/* SCROLLBAR */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--amber-dim); }

/* RESPONSIVE */
@media (max-width: 768px) {
    nav { padding: 20px 24px; }
    .nav-links { display: none; }
    #hero { padding: 0 24px 60px; }
    .section-inner { padding: 0 24px; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .project-card { grid-template-columns: 1fr; gap: 16px; }
    .project-num { display: none; }
    footer { padding: 24px; flex-direction: column; gap: 12px; text-align: center; }
}