/* --- Responsive base --- */
html {
    font-size: clamp(14px, 2vw, 16px);
}

body {
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Transparent header: brown border only, brown links --- */
.site-header {
    --header-text: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 4vw, 1.5rem);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Hamburger: 0.7‑opacity white (mobile only; hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    padding: 4px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    order: 2;
    margin-left: 1rem;
}

.nav-toggle-bar {
    display: block;
    width: 28px;
    height: 3px;
    background: currentColor;
    border-radius: 1px;
}

.site-header nav {
    display: flex;
    gap: clamp(0.75rem, 3vw, 1.5rem);
    justify-content: flex-end;
    align-items: center;
}

.site-header a {
    color: var(--header-text);
    text-decoration: none;
    font-family: 'Gruppo', sans-serif;
    font-size: clamp(1rem, 3.5vw, 1.3rem);
    opacity: 0.9;
}

.site-header a:hover {
    color: var(--header-text);
    text-decoration: underline;
    opacity: 1;
}

/* Half-transparent divider between nav items */
.site-header nav a + a::before {
    content: "|";
    margin-right: 0.4rem;
    color: var(--header-text);
    opacity: 0.5;
}

/* --- Video + h1 name (video as background for "Frere Remi") --- */
.name-hero {
    position: fixed;
    top: 50%;
    padding-top: 15px;
    right: clamp(1rem, 20vw, 25vw);
    transform: translateY(-50%);
    width: clamp(140px, 28vw, 260px);
    max-width: 90vw;
    z-index: 5;
    overflow: visible;
}

.name-media {
    position: relative;
    z-index: 0;
    container-type: inline-size;
}

.name-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 18px;
}

.name-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: clamp(5rem, 58.5cqw, 9.5rem);
    font-stretch: condensed;
    font-weight: 400;
    color: #89504d;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4), 3px 0 3px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    line-height: 0.5;
    padding-bottom: 17px;
}

.hero-icons {
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-top: 1.75rem;
    padding: 20px 0.25rem 0;
}

.hero-icons a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    color: #89504d;
    text-decoration: none;
}

@media (min-width: 768px) {
    /* Desktop: force a clean 2x4 grid so no single icon drops alone */
    .hero-icons a {
        flex: 0 0 25%;
    }
}

.hero-icon {
    display: block;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.hero-icons a:hover .hero-icon {
    transform: scale(1.2);
}

/* Deezer icon: use Brandfetch SVG as a mask so it follows currentColor like the others */
.hero-icon.deezer-icon {
    background-color: currentColor;
    -webkit-mask-image: url("https://cdn.brandfetch.io/idEUKgCNtu/theme/dark/symbol.svg?c=1dxbfHSJFAPEGdCLU4o5B");
    mask-image: url("https://cdn.brandfetch.io/idEUKgCNtu/theme/dark/symbol.svg?c=1dxbfHSJFAPEGdCLU4o5B");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

@media (min-width: 768px) {
    .hero-icons a:hover {
        color: #f3d3d3;
    }

    /* Let Anghami logo span the width of two icons */
    .hero-icons a.anghami-link {
        flex: 0 0 50%;
    }
}

/* Anghami logo: use Brandfetch image as a mask so it follows currentColor like the others */
.hero-icon.anghami-icon {
    width: 110px;
    height: 55px;
    background-color: currentColor;
    -webkit-mask-image: url("https://cdn.brandfetch.io/id4G4LfCWL/w/697/h/177/theme/dark/logo.png?c=1dxbfHSJFAPEGdCLU4o5B");
    mask-image: url("https://cdn.brandfetch.io/id4G4LfCWL/w/697/h/177/theme/dark/logo.png?c=1dxbfHSJFAPEGdCLU4o5B");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.hero-icon-label {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* --- Smaller than tablet: mobile nav + stacked layout --- */
@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }

    .site-header nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.2s ease;
    }

    .site-header.nav-open nav {
        max-height: 120px;
        opacity: 1;
    }

    .site-header nav a {
        font-size: 1.8rem;
        font-weight: 800;
        color: #1a1a1a;
    }

    .site-header nav a + a::before {
        content: none;
    }

    section.background-image {
        order: 1;
        min-height: auto;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: clamp(1rem, 4vw, 2rem) 0;
    }

    /* Empty container must not take space so name-hero can center */
    section.background-image > .container {
        display: none;
    }

    .hero-icons a {
        color: rgba(255, 255, 255, 0.8);
    }

    .hero-icons a:hover {
        color: #713e3e;
    }

    .name-hero {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin: 0 auto;
        margin-top: 150px;
        width: 246px;
        max-width: 85vw;
    }

    section.background-image {
        background-position: 30% center;
    }
}

/* --- Full-screen artwork --- */
section.background-image {
    /* Fill entire screen, content sits above background video */
    min-height: 100vh;
    width: 100%;
}

@media (max-width: 480px) {
    section.background-image {
        background-position: left center;
    }
    .name-video {
        opacity: 0.8;
    }
}

/* --- Home page background video (bg-video) --- */
.home-bg-video-wrap {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.home-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.home-bg-video.is-fading {
    opacity: 0;
}

@media (max-width: 767px) {
    .home-bg-video {
       object-position: calc(24% - 200px) center;
    }
}

@media (max-width: 480px) {
    .home-bg-video {
        object-position: -220px center;
    }
}

/* --- Bio page (scoped with .bio-page on body) --- */
.bio-page {
    min-height: 100vh;
    position: relative;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    padding-top: 5.5rem;
}

.video-background-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.65);
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.video-background.is-fading {
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Home page fade-up animations --- */
.home-page .site-header {
    opacity: 0;
    animation: fadeUp 0.7s ease-out forwards;
}

.home-page .name-media,
.home-page .hero-icons {
    opacity: 0;
    animation: fadeUp 0.7s ease-out forwards;
    animation-delay: 0.15s;
}

.two-column-layout {
    display: flex;
    align-items: stretch;
    justify-content: center;
    max-width: 1100px;
    max-height: 70vh;
    width: 100%;
    padding: 1.5rem 1.5rem 2rem;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.7s ease-out forwards;
}

.column {
    flex: 1;
    min-width: 0;
    padding: 0 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.column-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.bio-text .bio-scroll {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-left: 0.25rem;
    direction: rtl;
}

.bio-text .bio-scroll p {
    direction: ltr;
    text-align: left;
}

.bio-text .bio-scroll::-webkit-scrollbar {
    width: 6px;
}

.bio-text .bio-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.bio-text .bio-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.bio-text .bio-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.bio-text,
.discography {
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.7;
}

.bio-text h1,
.discography h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    opacity: 0.95;
}

.bio-text p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.bio-text p:last-child {
    margin-bottom: 0;
}

.discography ul {
    list-style: none;
    padding-left: 0;
    padding-top: 56px;
}

.discography li {
    font-size: 0.85rem;
    line-height: 1.85;
    padding: 0.2rem 0;
    opacity: 0.85;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.discography li:last-child {
    border-bottom: none;
}

@media (max-width: 991px) {
    .two-column-layout {
        flex-direction: column;
        max-height: none;
        align-items: center;
    }

    .column {
        width: 100%;
        max-width: 100%;
        padding: 0 1.5rem;
    }

    .column-divider {
        width: 80%;
        max-width: 400px;
        height: 1px;
        align-self: center;
        margin: 1rem 0;
    }

    .bio-text .bio-scroll {
        max-height: 40vh;
    }
}