/* =========================================================
   ARTIST INTRO ROOM
   - Full viewport room
   - White wall background (image + white fallback)
   - Header banner anchored at top (no overlap)
   - Autobiography text flows under header
   - Fineprint anchored at bottom
   ========================================================= */

/* Room fallback */
.artist-intro {
    background: #ffffff; /* white wall fallback */
}

.artist-intro-link {
    color: #01289c;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 2px;
}

.artist-intro-link:hover {
    border-bottom-width: 3px;
}

/* Main layout container */
.artist-intro-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;

    /* Vertical flow layout prevents overlap */
    display: flex;
    flex-direction: column;
}

/* =========================================================
   BACKGROUND WALL
   ========================================================= */

.artist-intro-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background-image: url("../assets/img/artist-intro/backgrounds/white-wall.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* =========================================================
   HEADER BANNER — FIXED ASPECT RATIO
   ========================================================= */

.artist-intro-header {
    position: relative;
    z-index: 2;

    /* Scale by width, height follows image ratio */
    width: min(100vw, 1400px);
    min-height: 120px;
    margin: 0 auto;

    /* IMPORTANT: lock to header image proportions */
    aspect-ratio: 2048 / 360; /* adjust if your header.png ratio differs */

    background-image: url("../assets/img/artist-intro/backgrounds/header.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    /* Safety */
    overflow: hidden;
}

/* Center headline within the RIGHT HALF of the banner */
.artist-intro-headline {
    position: absolute;
    top: 60%;
    left: 65%; /* center of right half */

    transform: translate(-50%, -50%);
    margin: 0;

    color: #ffffff;
    font-family: "Montserrat", system-ui, sans-serif;
    font-weight: 900;

    font-size: clamp(36px, 6.2vw, 92px);
    line-height: 1;
    letter-spacing: -0.02em;

    white-space: nowrap;
    text-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

/* Make the "I" bigger and cursive */
.ai-i {
    display: inline-block;

    font-family: "Permanent Marker", cursive;

    /* bigger + expressive */
    font-size: 1.35em;
    font-weight: 400;

    /* handwritten vibe like the reference */
    transform: translateY(0.08em) rotate(-4deg);
    transform-origin: center;

    margin: 0 0.1em;
}

/* Optional tiny spacing tweaks */
.ai-whois {
    display: inline-block;
}

.ai-q {
    display: inline-block;
    margin-left: 0.06em;
}


/* =========================================================
   AUTOBIOGRAPHY TEXT
   ========================================================= */

.artist-intro-text {
    position: relative;
    z-index: 2;

    margin-top: clamp(18px, 3vh, 34px);

    padding-left: clamp(36px, 6vw, 90px);
    padding-right: clamp(36px, 14vw, 220px);

    color: var(--bg); /* museum blue */
    font-size: clamp(20px, 2.4vw, 38px);
    line-height: 1.38;
    font-weight: 500;
    letter-spacing: 0.012em;

    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* =========================================================
   FINEPRINT
   ========================================================= */

.artist-intro-fineprint {
    position: relative;
    z-index: 2;

    margin-top: auto; /* push to bottom */

    padding-left: clamp(36px, 6vw, 90px);
    padding-right: clamp(36px, 10vw, 180px);
    padding-bottom: clamp(26px, 6vh, 56px);

    color: rgba(1, 40, 156, 0.85);

    /* SLIGHTLY INCREASED */
    font-size: clamp(14px, 1.25vw, 18px);

    line-height: 1.3;
    letter-spacing: 0.012em;
}

/* =========================================================
   ARTIST INTRO — MOBILE TYPOGRAPHY (100vh fixed)
   We'll auto-fit via JS, but these are good starting values.
   ========================================================= */
@media (max-width: 768px) {
    .artist-intro-inner {
        height: 100vh; /* hard constraint */
        padding-top:0;
    }

    .artist-intro-text {
        /* start a bit smaller on mobile */
        margin-top: calc(clamp(96px, 16vh, 130px) + clamp(10px, 2vh, 18px));
        font-size: clamp(16px, 2.6vh, 20px);
        line-height: 1.45;

        padding-left: 18px;
        padding-right: 18px;
    }

    .artist-intro-fineprint {
        font-size: clamp(13px, 1.9vh, 15px);
        line-height: 1.35;

        padding-left: 18px;
        padding-right: 18px;
        padding-bottom: 18px;
    }


    .room.artist-intro,
    .artist-intro-inner {
        height: 100vh;
    }

    /* full-bleed header pinned to top */
    .artist-intro-header {
        margin: 0;           /* remove auto-centering gaps */
        width: 100vw;        /* full viewport width */
        max-width: none;

        /* pin it */
        position: absolute;
        top: 0;
        left: 0;

        /* fixed height on small screens (prevents “floating”) */
        height: clamp(96px, 16vh, 130px);
        aspect-ratio: auto;  /* override desktop ratio for tiny screens */

        /* background should visually fill the header area */
        background-size: cover;
        background-position: center;
    }

    /* keep headline centered in right half */
    .artist-intro-headline {
        top: 56%;
        left: 66%;
        transform: translate(-50%, -50%);
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
