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

:root {
    --bg: #0b1020;
    --panel: rgba(15, 23, 42, 0.74);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --line: rgba(148, 163, 184, 0.22);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #22c55e;
    --accent-strong: #38bdf8;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 18%, rgba(34, 197, 94, 0.18), transparent 30%),
        radial-gradient(circle at 84% 12%, rgba(56, 189, 248, 0.14), transparent 28%),
        radial-gradient(circle at 72% 82%, rgba(168, 85, 247, 0.12), transparent 30%),
        var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

.build-log {
    width: min(1080px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(48px, 8vw, 92px) 0;
}

.page-header {
    max-width: 760px;
    animation: riseIn 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
    color: var(--accent);
    font-family: monospace;
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1 {
    margin-top: 14px;
    font-family: monospace;
    font-size: clamp(2.5rem, 7vw, 5.6rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.header-copy {
    max-width: 680px;
    margin-top: 22px;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.75;
}

.project-list {
    position: relative;
    display: grid;
    gap: 22px;
    margin-top: clamp(38px, 7vw, 74px);
}

.project-list::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 35px;
    width: 1px;
    background: linear-gradient(transparent, var(--accent), var(--accent-strong), transparent);
    opacity: 0.75;
}

.project-entry {
    position: relative;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 22px;
    animation: riseIn 780ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.project-entry:nth-child(1) {
    animation-delay: 120ms;
}

.project-entry:nth-child(2) {
    animation-delay: 240ms;
}

.project-entry:nth-child(3) {
    animation-delay: 360ms;
}

.project-meta {
    position: sticky;
    top: 28px;
    align-self: start;
    display: grid;
    gap: 10px;
    justify-items: center;
    padding-top: 18px;
    color: var(--muted);
    font-family: monospace;
    font-size: 0.82rem;
    text-align: center;
}

.project-meta span:first-child {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border: 1px solid rgba(34, 197, 94, 0.38);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    color: #bbf7d0;
    font-size: 1.25rem;
    box-shadow: 0 0 32px rgba(34, 197, 94, 0.13);
}

details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 20px 58px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

details:hover {
    border-color: rgba(56, 189, 248, 0.36);
    transform: translateY(-4px);
    box-shadow: 0 26px 68px rgba(0, 0, 0, 0.34);
}

details[open] {
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.08), transparent 34%),
        var(--panel-strong);
}

summary {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 24px 60px 24px 26px;
    cursor: pointer;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    position: absolute;
    top: 24px;
    right: 26px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--accent);
    font-family: monospace;
    font-size: 1.25rem;
    transition: transform 220ms ease, color 220ms ease, border-color 220ms ease;
}

details[open] summary::after {
    content: "-";
    color: var(--accent-strong);
    border-color: rgba(56, 189, 248, 0.42);
    transform: rotate(180deg);
}

.project-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: max-content;
}

summary span {
    font-family: monospace;
    font-size: clamp(1.4rem, 3vw, 2.25rem);
    font-weight: 800;
}

.project-title-row > span {
    font-size: inherit;
}

.github-link {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 1.35rem;
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.github-link:hover {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.08);
    transform: translateY(-2px);
}

.huggingface-link {
    flex: 0 0 36px;
}

.huggingface-icon {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}

summary small {
    max-width: 720px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.project-content {
    display: grid;
    gap: 18px;
    padding: 0 26px 28px;
    color: #cbd5e1;
    line-height: 1.8;
    animation: contentReveal 360ms ease both;
}

.project-content p,
.project-content ul {
    max-width: 78ch;
}

.project-content p {
    padding-left: 14px;
    border-left: 2px solid rgba(34, 197, 94, 0.28);
}

.project-content p:last-child {
    color: #dbeafe;
    border-left-color: rgba(56, 189, 248, 0.42);
    font-family: monospace;
}

.project-content ul {
    display: grid;
    gap: 8px;
    padding-left: 22px;
}

.project-content li::marker {
    color: var(--accent);
}

.project-content a {
    color: var(--accent-strong);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.project-content a:hover {
    color: #bbf7d0;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(26px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contentReveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .build-log {
        width: min(100% - 28px, 1080px);
        padding: 42px 0;
    }

    .project-list::before {
        left: 18px;
    }

    .project-entry {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 14px;
    }

    .project-meta {
        top: 18px;
        font-size: 0;
    }

    .project-meta span:first-child {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    summary {
        padding: 20px 54px 20px 18px;
    }

    summary::after {
        top: 20px;
        right: 18px;
    }

    .project-content {
        padding: 0 18px 22px;
    }
}
