/* Teo Multi Media: styles shared by every page (film, music, design).
   Type, colour, the header and the brandmark live here so the pages can't
   drift apart. Each page keeps only its own layout in its own <style>. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --rule: rgba(255, 255, 255, 0.16);
    --rule-soft: rgba(255, 255, 255, 0.08);
    --rule-mid: rgba(255, 255, 255, 0.4);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --radius: 10px;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
/* Anything marked hidden stays hidden, whatever its layout says */
[hidden] {
    display: none !important;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 3px;
}

/* ---------- type ---------- */
/* Small spaced capitals: labels, section markers, credit headings */
.eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}
/* Big titles, like the TEO MULTI MEDIA logo: first word bold, the rest medium */
.display-title {
    font-size: clamp(1.9rem, 2.6vw, 2.6rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.title-lead {
    font-weight: 700;
}
.title-rest {
    font-weight: 500;
}
/* Quiet uppercase links (artist socials, section jumps) */
.caps-link {
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    padding: 0.2rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease, opacity 200ms ease;
}
a.caps-link:hover {
    border-bottom-color: #fff;
}
/* Rounded outline button with an arrow (Spotify, Apple Music, Watch on Vimeo) */
.link-pill {
    display: inline-flex;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: none;
    cursor: pointer;
    transition: background 200ms ease;
}
.link-pill:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ---------- header ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000;
    padding: 1.5rem 0;
    z-index: 100;
}
.nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}
.nav-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 300ms ease-in-out;
    position: relative;
    cursor: pointer;
}
.nav-icon:hover,
.nav-icon.active {
    opacity: 1;
}
.nav-icon img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: lighten;
}

/* Brandmark: back to the home page. Top left on desktop */
.brandmark {
    position: absolute;
    top: 50%;
    left: 28px;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: opacity 250ms ease, transform 250ms ease;
}
.brandmark:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.06);
}
.brandmark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Phones and tablets: the three discipline icons float at the bottom centre,
   with the brandmark as a round button beside them */
@media (max-width: 900px) {
    .navbar {
        top: auto;
        bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
        left: 0;
        right: 0;
        padding: 0;
        background: transparent;
        pointer-events: none;
    }
    .navbar .nav-content {
        width: max-content;
        height: 56px;
        margin: 0 auto;
        gap: 1rem;
    }
    /* The pages you're not on: still white, just fainter */
    .navbar .nav-icon {
        pointer-events: auto;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        opacity: 0.55;
        isolation: isolate;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
    }
    .navbar .nav-icon.active {
        opacity: 1;
    }
    .brandmark {
        position: fixed;
        top: auto;
        left: auto;
        right: 1.25rem;
        bottom: calc(1.25rem + 6px + env(safe-area-inset-bottom, 0px));
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        background: none;
        border: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
        transform: none;
        opacity: 1;
        z-index: 110;
        pointer-events: auto;
    }
    .brandmark:hover {
        transform: none;
    }
    body {
        padding-bottom: 6rem;
    }
}
/* Two brandmark images: the plain mark top left on desktop, the round button on phones */
.brandmark .bm-btn {
    display: none;
}
@media (max-width: 900px) {
    .brandmark .bm-desk {
        display: none;
    }
    .brandmark .bm-btn {
        display: block;
    }
}
/* Out of the way of the design page's layout editor */
body.tmm-editing .brandmark {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
