/* =========================================================
   larsgoldbach.com  Branch site-awesome v3 (09.11.2026)
   Mehrseitig: index.html (Reel + Work), about.html.
   Baut auf site.css auf (Farben, Schrift, Cursor, Lightbox,
   LET'S COLLAB, Footer bleiben im Look der aktuellen Seite).
   ========================================================= */

body { overflow-x: clip; }
body { animation: pageIn 0.6s var(--ease-soft) both; }
@keyframes pageIn { from { opacity: 0; } }

/* ---------- Topbar ---------- */
.topbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 72px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
}
.topbar::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gold-a20);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.topbar.scrolled::before { opacity: 1; }
.topbar a { text-decoration: none; color: #fff; }
.brand { opacity: 0.9; }
.nav { display: flex; gap: 32px; }
.nav a { position: relative; opacity: 0.5; transition: opacity 0.4s ease; }
.nav a:hover, .nav a[aria-current] { opacity: 1; }
.nav a::after {
    content: ''; position: absolute; left: 0; right: 0.3em; bottom: -8px; height: 1px;
    background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.6s var(--ease-out);
}
.nav a[aria-current]::after, .nav a:hover::after { transform: scaleX(1); }

/* ---------- Hero: nur das Reel ---------- */
.hero {
    position: relative;
    width: 100%;
    height: min(calc(min(41.84vw, 82vh) * 1.38), 100vh);   /* +15 % (Intro) und +20 % (Snap, 10.11.2026), max. Bildschirmhöhe */
    min-height: min(580px, 100vh);
    overflow: hidden;
    background: #000;
}
.hero-video, .hero-poster {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}
.hero-video { opacity: 0; transition: opacity 1s ease; }
.hero.is-playing .hero-video { opacity: 1; }
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0, transparent 140px, transparent 70%, #000 100%);
    pointer-events: none;
}
.hero-down {
    position: absolute; left: 50%; bottom: 32px; z-index: 2;
    width: 44px; height: 44px; margin-left: -22px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; opacity: 0.6;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero-down svg { width: 20px; height: 20px; }
.hero-down:hover { opacity: 1; transform: translateY(4px); }

/* ---------- Work: Liste, Still als Vollbild dahinter ---------- */
.work {
    position: relative; z-index: 1;
    width: calc(100% - 400px); max-width: 1600px;
    padding: 96px 0 80px;
}
.work-head {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-bottom: 24px;
}
.work-head .project-title { font-size: 18px; margin: 0; }

.work-list {
    list-style: none; margin: 0; padding: 0;
    transition: transform 0.8s var(--ease-soft), filter 0.8s ease;
}
/* Trennstriche zwischen den Projekten entfernt (10.11.2026) */

.work-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    padding: 26px 0;
    text-decoration: none;
    transition: opacity 0.5s ease;
}
.w-no { font-size: 11px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.85); font-variant-numeric: tabular-nums; align-self: start; padding-top: 2px; }
.w-no i { font-style: normal; color: rgba(255, 255, 255, 0.4); }
.w-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.w-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold); }
.w-title {
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.2;
    transition: transform 0.6s var(--ease-out);
}
.w-side { display: flex; flex-direction: column; text-align: right; font-size: 15px; letter-spacing: 0.03em; line-height: 1.5; color: rgba(255, 255, 255, 0.9); align-self: center; }
.w-side .info-label { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; }
.w-side .info-label { margin-bottom: 4px; }
.w-thumb { display: none; }

/* Hover: Zeile hell, Rest dunkel, Still füllt den Screen dahinter */
@media (hover: hover) {
    .work-list:has(.work-item:hover) .work-item { opacity: 0.45; }
    .work-list:has(.work-item:hover) .work-item:hover { opacity: 1; }
    .work-item:hover .w-title { transform: translateX(12px); }
    .work-item .w-main, .work-item .w-side { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 0, 0, 0.6); }
}

/* LET'S COLLAB gehovert: Liste weich, dunkel, 30 px nach links (wie bisher) */
.work-list.shift-left { transform: translateX(-30px); filter: blur(4px) grayscale(30%) brightness(0.45); }

.work-bg {
    position: fixed; inset: 0;
    z-index: 0;
    pointer-events: none;
    display: none;
}
html.has-cursor .work-bg { display: block; }
.work-bg img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    filter: brightness(0.42);
    transition: opacity 0.7s ease, transform 1.6s var(--ease-out);
}
.work-bg img.show { opacity: 1; transform: none; }
html.lb-open .work-bg img { opacity: 0; }
/* Reel bleibt immer frei: Still beginnt an der Unterkante des Reels (--bgtop, per JS) und blendet nach unten ein */
.work-bg {
    -webkit-mask-image: linear-gradient(to bottom, transparent var(--bgtop, 0px), #000 calc(var(--bgtop, 0px) + 220px));
    mask-image: linear-gradient(to bottom, transparent var(--bgtop, 0px), #000 calc(var(--bgtop, 0px) + 220px));
}
/* LET'S COLLAB gehovert: letztes Still bleibt, unscharf und dunkler (wie die Liste) */
.work-bg img { transition: opacity 0.7s ease, transform 1.6s var(--ease-out), filter 0.8s ease; }
.work-bg.bg-collab img.show { filter: blur(4px) grayscale(30%) brightness(0.32); transform: scale(1.03); }
footer { position: relative; z-index: 1; }

/* ---------- About-Seite: geteilter Screen ---------- */
.about-split {
    width: 100%;
    min-height: 100vh; min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.about-visual {
    position: sticky; top: 0;
    height: 100vh; height: 100svh;
    margin: 0;
    overflow: hidden;
}
.about-visual img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: 35% 40%;
    filter: grayscale(15%) brightness(0.85);
    -webkit-mask-image: linear-gradient(to right, #000 60%, transparent 100%);
    mask-image: linear-gradient(to right, #000 60%, transparent 100%);
    animation: aboutIn 1.6s var(--ease-out) both;
}
@keyframes aboutIn { from { transform: scale(1.06); opacity: 0; } }
.about-copy {
    align-self: center;
    max-width: 520px;
    padding: 120px 200px 120px 40px;
    box-sizing: content-box;
    display: flex; flex-direction: column; gap: 20px;
}
.about-title {
    margin: 4px 0 12px;
    font-size: clamp(26px, 2.6vw, 40px);
    font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.12;
}
.about-title span { color: var(--gold); }
.about-credits { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--gold-a20); }
.about-credits .info-value { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.page-about footer { padding-top: 60px; }

/* Collab auf About immer sichtbar (Desktop). Auf Work erst im Listenbereich (awesome.js setzt .visible) */
@media (min-width: 1025px) {
    .page-about .collab { opacity: 1; visibility: visible; }
    .page-work .collab { transition: opacity 0.25s ease, visibility 0.25s; }            /* nach oben: schnell weg */
    .page-work .collab.visible { transition: opacity 0.8s ease, visibility 0.8s; }      /* in die Liste: weich ein */
}

/* Reveal: wie bisher, etwas ruhiger */
html.js .reveal { transform: translateY(24px); }

/* ---------- Cursor: REEL über dem Hero ---------- */
.cursor[data-state="reel"] .cursor-dot { opacity: 1; transform: scale(1); transition: transform 0.75s cubic-bezier(0.34, 1.45, 0.64, 1), opacity 0.25s ease; }
.cursor[data-state="reel"] .cursor-dot span { opacity: 1; letter-spacing: 0.15em; filter: blur(0); transition: opacity 0.5s 0.12s, letter-spacing 0.8s 0.08s var(--ease-out), filter 0.5s 0.12s; }
.cursor[data-state="reel"] .cursor-ring { opacity: 1; transform: none; transition: opacity 0.4s 0.05s, transform 1s 0.05s var(--ease-out); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .work-item { grid-template-columns: minmax(0, 1fr) 220px; }
}

@media (max-width: 1024px) {
    .topbar { height: 60px; padding: 0 20px; }
    .nav { gap: 24px; }
    .work { width: 100%; padding: 64px 15px 40px; }
    .work-list { border-top: 0; transform: none !important; filter: none !important; }
    .work-list > li { border-bottom: 0; margin-bottom: 48px; }
    .work-item { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; padding: 0; }
    .w-thumb { display: block; grid-column: 1 / -1; order: -1; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 4px; filter: grayscale(10%) brightness(0.9); }
    .w-main { grid-column: 1 / -1; grid-row: 2; }
    .w-side { grid-column: 1 / -1; grid-row: 3; text-align: left; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
    .w-side .info-label { display: none; }
    .w-title { font-size: 20px; }
    .w-label { font-size: 10px; }
    .about-split { grid-template-columns: 1fr; min-height: 0; }
    .about-visual { position: relative; height: 70vh; height: 70svh; }
    .about-visual img { -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%); mask-image: linear-gradient(to bottom, #000 65%, transparent 100%); }
    .about-copy { max-width: 560px; padding: 0 15px 40px; margin-top: -40px; position: relative; }
}

@media (max-width: 1024px) {
    .hero { height: 56vh; height: 56svh; min-height: 320px; }
}

@media (max-width: 480px) {
    .topbar { letter-spacing: 0.2em; }
    .nav { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    body { animation: none; }
    .work-bg { display: none !important; }
}

/* ---------- Intro "Lamellen v2" (nur erster Besuch pro Sitzung, js/intro.js) ---------- */
#intro { display: none; }
html.intro #intro { display: block; position: fixed; inset: 0; z-index: 990; background: #000; overflow: hidden; cursor: default; }
html.intro #intro.see-through { background: transparent; }
#intro canvas { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; }
#intro .intro-rows { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
#intro .intro-row .w-title { transition: none; }
html.intro body, html.intro-done body { animation: none; }   /* sonst startet der Seiten-Fade nach dem Intro neu (schwarzer Blitz) */
html.intro footer, html.intro .work-bg { visibility: hidden; }
html.intro .cursor, html.intro .cursor-mini, html.intro .page-up { opacity: 0 !important; }
html.intro .topbar { transition: opacity 0.7s ease; }
html.intro-ui .topbar, html.intro-ui .collab { opacity: 0 !important; }
html.intro .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
html.intro .work-item { transition: none !important; }
html.intro-list .work-list .work-item { opacity: 0 !important; }
html.intro .work-list { transition: border-color 0.5s ease, transform 0.8s var(--ease-soft), filter 0.8s ease; }
html.intro .work-list > li { transition: border-color 0.5s ease; }
html.intro-lines .work-list, html.intro-lines .work-list > li { border-color: transparent !important; }

/* ---------- Lightbox: Instagram-Links und 4K-Link (10.11.2026) ---------- */
.lb-caption a.ig { color: inherit; text-decoration: none; transition: color 0.3s ease; }
.lb-caption a.ig:hover, .lb-caption a.ig:focus-visible { color: var(--gold); }
.lb-4k { margin-top: 4px; }
.lb-4k a {
    font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3em;
    color: var(--gold); text-decoration: none; transition: color 0.3s ease;
}
.lb-4k a:hover, .lb-4k a:focus-visible { color: #fff; }

