/* ============================================
   MARIO APFELBAUM — Minimal
   ============================================ */

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

:root {
    --bg: #0a0a0a;
    --text: #e8e4df;
    --dim: rgba(232, 228, 223, 0.35);
    --accent: #c9a96e;
    --font-heading: 'Anton', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(255,255,255,0.15); }


/* ============================================
   NAV
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 2rem;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav__logo {
    font-family: 'Anton', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0a0a0a;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav__logo:hover { opacity: 1; }

/* Language Switch */
.lang-switch {
    background: none;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 20px;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    transition: border-color 0.3s;
}

.lang-switch:hover {
    border-color: rgba(0,0,0,0.3);
}

.lang-switch__opt {
    color: rgba(0,0,0,0.3);
    transition: color 0.3s;
}

.lang-switch__opt--active {
    color: #0a0a0a;
}

.lang-switch__divider {
    color: rgba(0,0,0,0.15);
    font-size: 0.55rem;
}


/* ============================================
   HERO — video background
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    transition: font-size 2.8s cubic-bezier(0.22, 0.61, 0.36, 1),
                letter-spacing 2.8s cubic-bezier(0.22, 0.61, 0.36, 1),
                line-height 2.8s cubic-bezier(0.22, 0.61, 0.36, 1),
                word-spacing 2.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Shrunk state — after initial animation */
.hero--shrunk .hero__title {
    font-size: clamp(0.9rem, 2vw, 1.4rem);
    letter-spacing: 0.2em;
    line-height: 1.6;
    word-spacing: 0.15em;
}

.hero__word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: heroFade 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hero__word:nth-child(1) { animation-delay: 0.4s; }
.hero__word:nth-child(2) { animation-delay: 0.7s; }
.hero__word:nth-child(3) { animation-delay: 1.0s; }

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

.hero__channels {
    font-family: var(--font-body);
    font-size: clamp(0.6rem, 1vw, 0.8rem);
    font-weight: 300;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-top: 2.5rem;
    color: var(--accent);
    opacity: 0;
    animation: fadeIn 1.2s ease 1.5s forwards;
    transition: margin-top 1.8s ease;
}

.hero--shrunk .hero__channels {
    margin-top: 1rem;
}

@keyframes fadeIn { to { opacity: 0.8; } }

/* Sound Toggle Button */
.hero__sound {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 1.5rem auto 0;
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s, border-color 0.3s, transform 0.3s;
    opacity: 0;
    animation: fadeIn 1.2s ease 2.2s forwards;
}

.hero__sound:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.08);
}

.hero__sound--active {
    color: var(--accent);
    border-color: rgba(201,169,110,0.4);
}

.hero__socials {
    display: flex;
    gap: 1.8rem;
    justify-content: center;
    margin-top: 1.2rem;
    opacity: 0;
    animation: fadeIn 1.2s ease 1.8s forwards;
}

.hero__socials a {
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
}

.hero__socials a:hover {
    color: var(--accent);
}


/* ============================================
   HERO → WORK TRANSITION
   ============================================ */
.hero__fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
    z-index: 2;
    pointer-events: none;
}


/* ============================================
   WORK — 3 columns, YouTube lazy-load
   ============================================ */
.work {
    padding: 5rem 2rem 6rem;
}

.work__header {
    text-align: center;
    margin-bottom: 3rem;
}

.work__section-label {
    font-size: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.8rem;
}

.work__section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.work__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.work__card {
    cursor: pointer;
    overflow: hidden;
    border-radius: 6px;
    background: #111;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.work__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.work__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.work__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

.work__card:hover .work__thumb img {
    transform: scale(1.05);
}

/* Play button */
.work__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 56px;
    height: 56px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
    z-index: 2;
    pointer-events: none;
    backdrop-filter: blur(4px);
    background: rgba(0,0,0,0.2);
}

.work__card:hover .work__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    border-color: var(--accent);
}

/* YouTube iframe replaces thumb on click */
.work__thumb iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.work__meta {
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.work__label {
    font-size: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
}

.work__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* ============================================
   ABOUT — Portrait + Timeline
   ============================================ */
.about {
    padding: 6rem 2rem;
}

.about__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about__portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    aspect-ratio: 3 / 4;
}

.about__label {
    font-size: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
}

.about__heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0.8rem 0 2.5rem;
}

.about__timeline {
    margin-bottom: 3rem;
}

.timeline__item {
    display: flex;
    gap: 1.5rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.timeline__item:first-child {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.timeline__year {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    color: var(--accent);
    min-width: 3.5rem;
}

.timeline__info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.timeline__role {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text);
}

.timeline__place {
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--dim);
}

.about__skills {
    margin-top: 0.5rem;
}

.about__skills .about__label {
    display: block;
    margin-bottom: 1rem;
}

.skills__list {
    list-style: none;
    padding: 0;
}

.skills__list li {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--dim);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.skills__list li:first-child {
    border-top: 1px solid rgba(255,255,255,0.03);
}


/* ============================================
   KONTAKT
   ============================================ */
.kontakt {
    padding: 4rem 2rem 6rem;
}

.kontakt__inner {
    text-align: center;
}

.kontakt__label {
    font-size: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 1.5rem;
}

.kontakt__email {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.3rem;
    transition: border-color 0.3s, color 0.3s;
}

.kontakt__email:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* ============================================
   REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 3rem 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__links {
    display: flex;
    gap: 2.5rem;
}

.footer__links a,
.footer__copy {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--dim);
    transition: color 0.3s;
}

.footer__links a:hover { color: var(--text); }


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .work__grid {
        grid-template-columns: 1fr;
        max-width: 700px;
    }

    .about__inner {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .about__portrait-img {
        max-width: 500px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .hero--shrunk .hero__title {
        font-size: clamp(0.75rem, 3vw, 1rem);
    }

    .work { padding: 3rem 1rem 4rem; }

    .about__portrait-img {
        aspect-ratio: 1 / 1;
        object-position: center 15%;
    }

    .footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer__links {
        flex-direction: column;
        gap: 1rem;
    }

    .hero__sound {
        width: 40px;
        height: 40px;
    }

    .hero__sound svg {
        width: 22px;
        height: 22px;
    }
}
