:root {
    --bg: #f6f4ef;
    --panel: #ffffff;
    --ink: #111111;
    --muted: #565656;
    --soft: #7a7a7a;
    --line: #d9d5cd;
    --line-strong: #bcb7ac;
    --shadow: 0 18px 50px rgba(17, 17, 17, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)),
        linear-gradient(90deg, rgba(17, 17, 17, 0.025) 1px, transparent 1px),
        linear-gradient(rgba(17, 17, 17, 0.025) 1px, transparent 1px),
        var(--bg);
    background-size: auto, 28px 28px, 28px 28px, auto;
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
}

.page-shell {
    min-height: 100vh;
    padding: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.sidebar-column {
    display: grid;
    gap: 18px;
    align-content: start;
    position: sticky;
    top: 120px;
    align-self: start;
}

.card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.profile-card {
    padding: 30px;
}

.status-row,
.card-actions,
.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eyebrow,
.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.74rem;
}

.eyebrow {
    color: var(--soft);
}

.logo {
    width: 180px;
    height: 180px;
    display: block;
    margin: 0 auto 20px;
    filter: grayscale(1) contrast(1.1);
    object-fit: contain;
    padding: 24px;
    border-radius: 50%;
    background: #000;
    box-sizing: border-box;
}

.profile-card h1,
.section-heading h2,
.now-playing-copy h3 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

.profile-card h1 {
    font-size: clamp(2.8rem, 6vw, 4.4rem);
    text-align: center;
    margin-bottom: 14px;
}

.lead {
    margin: 0;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--muted);
    max-width: 24ch;
    margin-inline: auto;
}

.profile-notes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 28px;
}

.note-chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fbfbf9;
    color: var(--muted);
    font-size: 0.82rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.social-btn:hover,
.project-item:hover {
    transform: translateY(-2px);
}

.social-links {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 14px;
}

.social-btn {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-btn:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.content-column {
    display: grid;
    gap: 24px;
}

.content-column .card {
    padding: 30px;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.compact-heading {
    gap: 6px;
    margin-bottom: 14px;
}

.section-kicker {
    width: fit-content;
    color: var(--soft);
}

.section-heading h2 {
    font-size: clamp(2rem, 3vw, 2.7rem);
}

.spotify-card {
    position: relative;
}

.sidebar-spotify {
    padding: 22px 22px 20px;
}

.spotify-actions {
    justify-content: center;
    margin-top: 6px;
}

.now-playing {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding-top: 6px;
}

.album-art {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #f4f2ed);
    color: var(--ink);
    font-size: 2rem;
    font-family: 'Cormorant Garamond', serif;
    overflow: hidden;
}

.album-art-small {
    width: 58px;
    height: 58px;
    border-radius: 18px;
}

.song-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.song-player {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.song-copy {
    min-width: 0;
    flex: 1;
}

.song-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    line-height: 1;
    margin-bottom: 6px;
}

.song-artist {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.song-progress {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.song-time {
    color: var(--soft);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}

.progress-track {
    height: 10px;
    border-radius: 999px;
    background: #efebe3;
    border: 1px solid var(--line);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ink), #444);
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.player-button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.player-button:hover {
    transform: translateY(-2px);
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.player-button i {
    font-size: 0.95rem;
}

.spotify-meta {
    display: grid;
    gap: 10px;
}

.spotify-meta-item {
    display: grid;
    gap: 4px;
}

.meta-label {
    color: var(--soft);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.meta-value {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

.now-playing-copy h3 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    margin-bottom: 10px;
}

.now-playing-copy p,
.contact-card p,
.project-description {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.card-actions {
    flex-wrap: wrap;
    margin-top: 22px;
}

.button {
    padding: 11px 16px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
}

.button-primary {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.button-secondary {
    background: transparent;
}

.sidebar-spotify .spotify-profile-link {
    width: fit-content;
}

.experience-grid,
.project-grid {
    display: grid;
    gap: 18px;
}

.experience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.experience-group h3 {
    margin: 0 0 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
}

.chip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-list li {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: #fff;
    font-size: 0.9rem;
}

.project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-item {
    padding: 18px 18px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-item:hover {
    border-color: var(--line-strong);
}

.project-link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.project-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--ink);
}

.project-arrow {
    color: var(--soft);
    font-size: 0.95rem;
}

.project-description {
    font-size: 0.95rem;
}

.contact-card p strong {
    color: var(--ink);
}

@media (max-width: 1080px) {
    .portfolio-shell {
        grid-template-columns: 1fr;
    }

    .sidebar-column {
        position: relative;
        top: 0;
    }

    .profile-card {
        position: relative;
        top: 0;
    }

    .sidebar-spotify {
        position: relative;
        top: 0;
    }
}

@media (max-width: 760px) {
    .page-shell {
        padding: 18px;
    }

    .profile-card,
    .content-column .card {
        padding: 22px;
        border-radius: 22px;
    }

    .profile-card h1 {
        text-align: left;
        max-width: none;
    }

    .lead {
        text-align: left;
        margin-inline: 0;
        max-width: none;
    }

    .profile-notes,
    .social-links {
        justify-content: flex-start;
    }

    .sidebar-spotify .spotify-profile-link {
        width: 100%;
    }

    .song-player {
        align-items: flex-start;
    }

    .song-progress {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .now-playing {
        grid-template-columns: 1fr;
    }

    .album-art {
        width: 82px;
        height: 82px;
    }

    .experience-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-spotify {
        padding: 20px;
    }

    .song-player {
        align-items: flex-start;
    }

    .song-progress {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
}
