:root {
    --ground: #061C24;
    --ground-2: #0A2C37;
    --line: #12404D;
    --line-strong: #2A6B7C;
    --text: #E9F6F9;
    --text-soft: #B2E1E9;
    --text-body: #CFE6EB;
    --ice: #B2E1E9;
    --teal: #0E6A82;
    --orange: #E08A45;
    --violet: #9627B7;
    --gold: #D99E51;
    --display: 'Bricolage Grotesque', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    overflow-x: clip;
    background: var(--ground);
    color: var(--text);
    font-family: 'Figtree', sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--orange); }
img { display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.alt { background: var(--ground-2); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1.5px solid var(--line-strong);
    background: transparent;
    color: var(--text);
    font: 600 17px 'Figtree', sans-serif;
    cursor: pointer;
}
.btn:hover { color: var(--orange); }
.btn-primary { border: 0; background: var(--orange); color: var(--ground); }
.btn-primary:hover { color: var(--ground); background: #EDA066; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }

.eyebrow {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--orange);
    font-weight: 600;
}
h2 {
    margin: 0;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(40px, 6vw, 56px);
    line-height: 1;
}
.credit a { color: var(--orange); font-weight: 600; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
}
.site-header nav {
    padding-top: 16px;
    padding-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--display);
    font-weight: 800;
    font-size: 22px;
}
.brand img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; border: 2px solid var(--ice); }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nav-links a { padding: 10px 16px; border-radius: 999px; font-weight: 500; }
.nav-links .btn { min-height: 44px; padding: 0 18px; font-weight: 500; }

/* Hero */
.hero {
    padding-top: 72px;
    padding-bottom: 96px;
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    align-items: center;
}
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 {
    margin: 0;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(72px, 12vw, 168px);
    line-height: 0.86;
    letter-spacing: -0.04em;
    display: flex;
    flex-direction: column;
}
.hero h1 span:nth-child(2) { color: var(--teal); }
.hero h1 span:nth-child(3) { color: var(--orange); }
.tagline { margin: 0; font-size: 22px; color: var(--text-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art {
    flex: 1 1 380px;
    min-width: 0;
    margin: 0;
    border-radius: 32px;
    border: 3px solid var(--ice);
    overflow: hidden;
    background: var(--ground-2);
}
.hero-art img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hero-art figcaption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 20px;
    color: var(--text-soft);
    border-top: 3px solid var(--ice);
}
.hero-art .credit { font-size: 15px; }
.hero-art figcaption em { font-style: italic; }

/* Gallery */
.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 32px; }
.art-strip {
    overflow: hidden;
    margin: 0 calc(50% - 50vw);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.art-track {
    display: flex;
    width: max-content;
}
.art-track.animate { transition: transform 0.9s cubic-bezier(0.34, 1.5, 0.5, 1); }
.art-card { transition: opacity 0.6s ease, transform 0.6s ease; }
.art-strip.jumping .art-card { transition: none; }
.art-strip.stepping .art-card:not(.active) { opacity: 0.5; transform: scale(0.94); }
@media (prefers-reduced-motion: reduce) {
    .art-strip { overflow-x: auto; }
}
.art-card {
    flex: 0 0 auto;
    margin: 0 16px 0 0;
    background: var(--ground);
    border: 1.5px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
}
.art-card img { height: 300px; width: auto; }
.art-card figcaption { padding: 12px 16px; font-size: 15px; color: var(--text-soft); border-top: 1.5px solid var(--line); }

.gallery h3 { margin: 32px 0 0; font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.1; }
.albums { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; }
.album {
    display: flex;
    align-items: flex-end;
    min-height: 400px;
    padding: 20px;
    border-radius: 28px;
    overflow: hidden;
    background-color: var(--line);
    background-size: cover;
    border: 1.5px solid var(--line-strong);
}
.album span {
    padding: 18px 22px;
    border-radius: 20px;
    background: rgba(6, 28, 36, 0.85);
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(32px, 3.6vw, 48px);
    line-height: 1;
    white-space: nowrap;
}
.album-cesfur { background-image: url(pictures/albums/web/cesfur2026.jpg); background-position: 75% 35%; }
.album-furrstein { background-image: url(pictures/albums/web/furrstein2026.jpg); background-position: 70% 25%; }

/* Socials */
.socials { gap: 40px; }
.socials-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.socials-head img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--orange);
    box-shadow: 0 0 0 8px var(--ground-2);
}
.socials-head div { display: flex; flex-direction: column; gap: 4px; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.social {
    --c: var(--ice);
    --c-text: var(--ice);
    --c-glow: rgba(178, 225, 233, 0.5);
    --c-on: var(--ground);
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 28px;
    background: var(--ground-2);
    border: 1.5px solid var(--c);
    box-shadow: 0 18px 48px -18px var(--c-glow);
    transition: transform 0.15s ease;
}
.social:hover { color: var(--text); transform: translateY(-3px); }
.social .icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--c);
    color: var(--c-on);
    display: flex;
    align-items: center;
    justify-content: center;
}
.social .label { grid-column: 1 / -1; order: 1; display: flex; flex-direction: column; gap: 2px; }
.social .label small { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text); font-weight: 600; }
.social .label strong { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.social .arrow { justify-self: end; color: var(--c-text); }
.s-mastodon { --c: var(--violet); --c-text: #D9A6EC; --c-glow: rgba(150, 39, 183, 0.65); --c-on: #FFFFFF; }
.s-gitlab { --c: var(--orange); --c-text: #F0B07E; --c-glow: rgba(224, 138, 69, 0.6); }
.s-github { --c: var(--gold); --c-text: #E8C48E; --c-glow: rgba(217, 158, 81, 0.6); }

/* Projects */
.projects { gap: 40px; }
.projects-head { display: flex; flex-direction: column; gap: 4px; }
.project-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.project {
    flex: 1 1 340px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    min-height: 220px;
    padding: 28px;
    border-radius: 28px;
    background: var(--ground);
    border: 1.5px solid var(--line);
}
.project:hover { color: var(--text); border-color: var(--line-strong); }
.project div { display: flex; flex-direction: column; gap: 10px; }
.project strong { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.1; }
.project p { margin: 0; color: var(--text-body); }
.project small { font-size: 14px; color: var(--orange); font-weight: 600; overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
    padding-top: 40px;
    padding-bottom: 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-soft);
    font-size: 15px;
}
.dots { display: flex; gap: 8px; align-items: center; }
.dots span { width: 10px; height: 10px; border-radius: 50%; }

/* Ref sheet dialog */
.ref-dialog {
    width: calc(100% - 48px);
    max-width: 1100px;
    max-height: calc(100% - 48px);
    padding: 16px;
    border-radius: 28px;
    background: var(--ground-2);
    border: 1.5px solid var(--line-strong);
    color: var(--text);
}
.ref-dialog::backdrop { background: rgba(3, 12, 16, 0.9); }
.ref-dialog[open] { display: flex; flex-direction: column; gap: 14px; }
.ref-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 0 4px 0 8px; }
.ref-head > span { display: flex; flex-direction: column; }
.ref-head strong { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.2; }
.ref-head .credit { font-size: 15px; color: var(--text-soft); }
.ref-tools { display: flex; gap: 8px; align-items: center; }
.close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--orange);
    color: var(--ground);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.ref-dialog img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 18px; background: #B5A0D0; }
