:root {
    --bg: #000000;
    --text: #ffffff;
    --muted: #a3a3a3;
    --panel: #0a0a0a;
    --border: #232323;
    --border-hover: #3a3a3a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

.page {
    min-height: 100vh;
}

.section {
    padding: 5rem 1.5rem;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
}

.center {
    text-align: center;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.logo3d-wrap {
    position: relative;
    width: 10rem;
    height: 10rem;
    margin: 0 auto 2.5rem;
    transform-style: preserve-3d;
    transition: transform 0.12s ease-out;
}

.logo-glow {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.06);
    filter: blur(20px);
    border-radius: 1.5rem;
}

.logo3d-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-tagline {
    font-size: clamp(1.2rem, 2vw, 2rem);
    color: var(--muted);
    margin: 0 auto 1.5rem;
    max-width: 680px;
    line-height: 1.5;
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.social-link {
    width: 3.4rem;
    height: 3.4rem;
    border: 1px solid transparent;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.25s ease;
}

.social-link:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.social-link svg {
    width: 1.7rem;
    height: 1.7rem;
}

.email {
    margin: 0;
    color: #d4d4d4;
}

.project-card {
    border: 1px solid transparent;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.25s ease;
}

.project-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42);
}

.project-cover {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 0.55rem;
}

.logo-scroll {
    margin: 1.5rem 0 2.2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.logo-scroll::-webkit-scrollbar {
    display: none;
}

.logo-track {
    min-width: max-content;
    display: flex;
    gap: 1.2rem;
    padding: 0 0.7rem;
}

.logo-track img {
    width: 82px;
    height: auto;
    opacity: 0.75;
    filter: grayscale(1);
    transition: all 0.3s ease;
}

.logo-track img:hover {
    opacity: 1;
    filter: grayscale(0);
}

.masonry {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    grid-auto-rows: 120px;
    margin-bottom: 2rem;
}

.tile {
    overflow: hidden;
    border-radius: 0.55rem;
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.tile:hover img {
    transform: scale(1.08);
    filter: brightness(1.08);
}

.tile-large {
    grid-column: span 4;
    grid-row: span 3;
}

.tile-wide {
    grid-column: span 2;
}

.tile-medium {
    grid-column: span 2;
    grid-row: span 2;
}

.tile-tall {
    grid-row: span 2;
}

.project-title {
    margin: 0 0 0.8rem;
    font-size: 1.7rem;
}

.project-description {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.6;
}

.updates-toggle {
    margin-top: 0.25rem;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    cursor: pointer;
    padding: 0.25rem 0;
}

.updates-toggle:hover {
    color: #d6d6d6;
}

.chevron {
    transition: transform 0.2s ease;
}

.updates-toggle[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.updates-panel {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    gap: 0.9rem;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 1.28rem;
    top: 2.6rem;
    bottom: -1.2rem;
    width: 2px;
    background: #333;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-content {
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    padding: 1rem 1rem 1.1rem;
    transition: border-color 0.2s ease;
}

.timeline-content:hover {
    border-color: var(--border-hover);
}

.timeline-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.timeline-heading h3 {
    margin: 0;
    font-size: 1.05rem;
}

.timeline-heading span {
    color: #9f9f9f;
    font-size: 0.88rem;
}

.timeline-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.timeline-content li {
    display: flex;
    gap: 0.45rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.timeline-content .bullet {
    color: #fff;
}

.donation-header {
    text-align: center;
    margin-bottom: 2.4rem;
}

.donation-header h2 {
    margin: 0 0 0.7rem;
    font-size: clamp(2rem, 5vw, 3.7rem);
}

.donation-header p {
    margin: 0 auto;
    max-width: 680px;
    color: var(--muted);
    font-size: 1.15rem;
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.wallet-card {
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 1.35rem;
    transition: border-color 0.2s ease;
}

.wallet-card:hover {
    border-color: var(--border-hover);
}

.wallet-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.wallet-head h3 {
    margin: 0;
    font-size: 1.4rem;
}

.wallet-head span {
    font-size: 0.82rem;
    font-family: Consolas, "Courier New", monospace;
    background: #fff;
    color: #000;
    border-radius: 999px;
    padding: 0.3rem 0.62rem;
}

.wallet-address {
    margin: 0 0 1rem;
    background: #0f0f0f;
    border: 1px solid var(--border);
    border-radius: 0.55rem;
    padding: 0.75rem;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9rem;
    color: var(--muted);
    word-break: break-all;
}

.copy-btn {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 0.55rem;
    background: #101010;
    color: var(--text);
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #171717;
}

.copy-btn.is-copied {
    background: #fff;
    border-color: #fff;
    color: #000;
}

.footer {
    border-top: 1px solid #141414;
    text-align: center;
    padding: 2.6rem 1rem;
    color: #808080;
    font-size: 0.85rem;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (max-width: 1024px) {
    .masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tile-large,
    .tile-wide,
    .tile-medium {
        grid-column: span 2;
    }

    .tile-medium {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3.2rem 1rem;
    }

    .project-card {
        padding: 1.1rem;
    }

    .donation-grid {
        grid-template-columns: 1fr;
    }

    .timeline-heading {
        flex-direction: column;
        gap: 0.25rem;
    }
}
