/* ==========================================================================
   TOPM Artist Management — vanilla CSS (mobile-first)
   Breakpoints: 768px (tablet/desktop), 1200px (wide)
   ========================================================================== */

:root {
    --color-bg: #7D8E99;
    --color-bg-dark: #6F808B;
    --color-navy: #1D2443;
    --color-white: #FFFFFF;
    --color-overlay: rgba(0, 0, 0, 0.25);

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --fs-body: 1rem;
    --lh-body: 1.8;

    --gutter: 24px;
    --header-h: 88px;
    --radius: 8px;
    --radius-lg: 12px;
    --max-w: 1320px;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Reset ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg);
    color: var(--color-navy);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

main { flex: 1 0 auto; }

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 8px 14px;
    background: var(--color-navy);
    color: var(--color-white);
    border-radius: 4px;
    text-decoration: none;
    transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

.page-title {
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--color-navy);
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
    position: relative;
    z-index: 100;
    color: var(--color-navy);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    padding: 0 var(--gutter);
}

.site-header__marque {
    display: inline-flex;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.site-header__marque img { width: 40px; height: 40px; }

/* Home page: header floats over hero, text + marque white */
.site-header--light {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: var(--color-white);
}

/* Hamburger ------------------------------------------------------------- */
.nav-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-right: -10px;
    background: none;
    border: 0;
    cursor: pointer;
}
.nav-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-open .nav-toggle { color: var(--color-navy); }
.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel ------------------------------------------------------ */
.site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: var(--color-bg);
    color: var(--color-navy);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
}
.nav-open { overflow: hidden; }

.site-nav__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.site-nav__item { position: relative; }
.site-nav__item--dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.site-nav__link {
    display: inline-block;
    padding: 6px 0;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.site-nav__link:hover { opacity: 0.75; }
.site-nav__link.is-active { border-bottom-color: currentColor; }

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 4px;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 0.875rem;
}
.dropdown-toggle i { transition: transform 0.3s var(--ease); }
.dropdown-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

/* Mobile dropdown = collapsible list */
.dropdown {
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    padding-left: 16px;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.35s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.dropdown.is-open {
    max-height: 600px;
    opacity: 1;
    transform: none;
}

.dropdown__link {
    display: block;
    padding: 6px 0;
    font-size: 1.125rem;
    line-height: 1.4;
    text-decoration: none;
    transition: opacity 0.2s var(--ease);
}
.dropdown__link:hover { opacity: 0.7; }
.dropdown__link.is-active { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    flex-shrink: 0;
    padding: 96px var(--gutter) 48px;
    color: var(--color-navy);
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.site-footer__heading {
    margin-bottom: 20px;
    font-size: 2.25rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.site-footer__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 1.125rem;
    line-height: 1.5;
}
.site-footer__text a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease);
}
.site-footer__text a:hover { border-bottom-color: currentColor; }
.site-footer__legal {
    max-width: var(--max-w);
    margin: 64px auto 0;
    font-size: 0.8125rem;
    opacity: 0.7;
}

/* ==========================================================================
   Home hero
   ========================================================================== */
.page-home { background: #111; }

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: var(--header-h) var(--gutter);
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    text-align: center;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--color-overlay);
}
.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero__title { line-height: 0; }
.hero__logo {
    width: 220px;
}
.hero__tagline {
    margin-top: 18px;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    line-height: 1.4;
}
.hero__credit {
    position: absolute;
    bottom: 24px;
    right: var(--gutter);
    left: var(--gutter);
    text-align: center;         /* mobile: centred */
    margin: 0;
    font-size: 0.8rem;
    font-weight: 300;
}
.hero__credit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s var(--ease);
}
.hero__credit-link:hover { opacity: 1; }
.hero__credit-icon {
    width: 0.8rem;
    height: 0.8rem;
    flex-shrink: 0;
}
/* Desktop: credit sits in the bottom-right corner */
@media (min-width: 768px) {
    .hero__credit {
        left: auto;
        right: var(--gutter);
        text-align: right;
    }
}
/* ==========================================================================
   About
   ========================================================================== */

/* Hero photo ---------------------------------------------------------------- */
.about-hero {
    width: 100%;
    overflow: hidden;
}
.about-hero__img {
    display: block;
    width: 100%;
    height: auto;
}

/* About copy ---------------------------------------------------------------- */
.about {
    padding: 0;
}

/* H1 sits at the very top, same padding rhythm as the Artists page */
.about__header {
    padding: 24px var(--gutter) 0;
}
.about__header .about__title {
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
}

/* Match artists__title: same size, weight, colour */
.about__title {
    font-size: 3.25rem;    /* == artists__title mobile */
    margin-bottom: 32px;
}

/* Body copy centred as a block */
.about__inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px var(--gutter);
    width: 100%;
    box-sizing: border-box;
}
.about__text {
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
    hyphens: auto;
}

/* Photo gallery ------------------------------------------------------------- */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 var(--gutter) 72px;
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.gallery-item {
    margin: 0;
}
.gallery-item__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 4px;
}
.gallery-item__caption {
    margin-top: 8px;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--navy);
    opacity: 0.75;
    text-align: center;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox[hidden] { display: none; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 28, 0.90);
    cursor: pointer;
}

.lightbox__stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 92vw;
    max-height: 92vh;
}

.lightbox__figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox__img {
    display: block;
    max-width: min(88vw, 1200px);
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
}

.lightbox__caption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
    max-width: 640px;
    line-height: 1.5;
}

.lightbox__btn {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.lightbox__btn:hover,
.lightbox__btn:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.lightbox__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}
.lightbox__close:hover,
.lightbox__close:focus-visible {
    color: #fff;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open { overflow: hidden; }

/* ==========================================================================
   Artists grid
   ========================================================================== */
.artists { padding: 24px var(--gutter) 32px; }
.artists__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.artists__title {
    margin-bottom: 48px;
    font-size: 3.25rem;
}
.artist-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px 44px;
}
.artist-card__link {
    display: block;
    text-decoration: none;
}
.artist-card__name {
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.artist-card__media {
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 3 / 2;
    background: rgba(29, 36, 67, 0.12);
    transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}
.artist-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.artist-card__link:hover .artist-card__media,
.artist-card__link:focus-visible .artist-card__media {
    transform: scale(1.02);
    filter: brightness(1.06);
}

/* ==========================================================================
   Individual artist
   ========================================================================== */
.artist {
    display: flex;
    align-items: center;
    padding: 24px var(--gutter) 32px;
}
.artist__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
}
.artist__media {
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 3 / 2;
    background: rgba(29, 36, 67, 0.12);
}
.artist__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.artist__name {
    margin-bottom: 28px;
    font-size: 2.375rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.artist__bio {
    max-width: 520px;
    font-size: 1rem;
    line-height: 1.8;
    text-align: left;
}
.artist__bio p + p { margin-top: 1.1em; }
.artist__bio em { font-style: italic; }

.social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}
.social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1.25rem;
    color: var(--color-navy);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s var(--ease);
}
.social__link:hover,
.social__link:focus-visible { opacity: 1; }

/* ==========================================================================
   >= 768px
   ========================================================================== */
@media (min-width: 768px) {
    :root {
        --gutter: 48px;
        --header-h: 140px;
    }

    /* Desktop nav ------------------------------------------------------- */
    .nav-toggle { display: none; }

    .site-nav {
        position: static;
        display: block;
        padding: 0;
        background: none;
        color: inherit;
        overflow: visible;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }
    .site-nav__list {
        flex-direction: row;
        align-items: center;
        gap: 22px;
    }
    .site-nav__item--dropdown { flex-wrap: nowrap; }
    .site-nav__link {
        padding: 2px 0;
        font-size: 1rem;
        line-height: 1.4;
    }
    .dropdown-toggle {
        width: 20px;
        height: 28px;
        margin-left: 2px;
        font-size: 0.625rem;
    }

    .dropdown {
        position: absolute;
        top: calc(100% + 12px);
        right: -16px;
        min-width: 280px;
        max-height: none;
        padding: 12px 0;
        background: var(--color-bg);
        color: var(--color-navy);
        border-radius: var(--radius);
        box-shadow: 0 14px 40px rgba(29, 36, 67, 0.22);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
    }
    /* invisible hover bridge so the menu doesn't close in the gap */
    .dropdown::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -12px;
        height: 12px;
    }
    .site-nav__item--dropdown:hover .dropdown,
    .site-nav__item--dropdown:focus-within .dropdown,
    .dropdown.is-open {
        max-height: none;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
    }
    .site-nav__item--dropdown:hover .dropdown-toggle i { transform: rotate(180deg); }

    .dropdown__link {
        padding: 8px 22px;
        font-size: 0.9375rem;
        white-space: nowrap;
    }
    .dropdown__link:hover {
        opacity: 1;
        background: rgba(29, 36, 67, 0.08);
    }

    .site-header--light .dropdown {
        background: rgba(29, 36, 67, 0.88);
        color: var(--color-white);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
    .site-header--light .dropdown__link:hover { background: rgba(255, 255, 255, 0.1); }

    /* Footer ----------------------------------------------------------- */
    .site-footer { padding: 160px var(--gutter) 64px; }
    .site-footer__inner {
        grid-template-columns: max-content max-content;
        column-gap: 120px;
        padding-left: 100px;
    }
    .site-footer__legal { padding-left: 100px; }

    /* Hero --------------------------------------------------------------- */
    .hero__logo { width: 320px; }
    .hero__tagline { font-size: 1.125rem; }
    /* About -------------------------------------------------------------- */
    .about__title { font-size: 4.5rem; margin-bottom: 48px; } /* == artists__title desktop */
    .about__inner { padding: 64px var(--gutter); }
    .about-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    /* Artists grid ------------------------------------------------------- */
    .artists__title { font-size: 4.5rem; margin-bottom: 72px; }
    .artist-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 32px;
    }
    .artist-card__name { font-size: 1.625rem; }

    /* Artist page -------------------------------------------------------- */
    .artist {
        min-height: calc(100vh - var(--header-h));
        padding: 0 var(--gutter);
    }
    .artist__inner {
        grid-template-columns: minmax(0, 640px) minmax(0, 520px);
        justify-content: center;
        column-gap: clamp(40px, 5vw, 80px);
        align-items: start;
        max-width: var(--max-w);
        margin: 0 auto;
    }
    .artist__content { padding-top: 12px; }
    .artist__name { font-size: 2.75rem; margin-bottom: 40px; }
    .artist__media { position: sticky; top: 24px; }
    .social { margin-top: 48px; }
}

/* ==========================================================================
   >= 1200px
   ========================================================================== */
@media (min-width: 1200px) {
    .artist__name { font-size: 3rem; }
    .artist__bio { max-width: 520px; }
    .site-footer__inner { column-gap: 180px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
    .site-header,
    .site-nav,
    .nav-toggle,
    .site-footer,
    .skip-link { display: none !important; }

    body { background: #fff; color: #000; }
    .hero { min-height: auto; background: none; color: #000; }
    .hero::before { display: none; }
    .artist-card__media,
    .artist__media { break-inside: avoid; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
