/* casting.style.css
   Page-specific styles for the public casting call.
   Mobile-first. Shared tokens live in style.css.
   Last updated: 2026-08-27
*/

.cast-page {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    padding: 36px 18px 80px;
    padding-top: calc(36px + env(safe-area-inset-top));
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

.cast-header {
    text-align: center;
    margin-bottom: 36px;
}

.cast-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.7;
    margin: 0 0 10px;
}

.cast-header h1 {
    font-size: clamp(2.1rem, 9vw, 3.2rem);
    letter-spacing: 0.1em;
    margin: 0 0 8px;
}

.cast-subtitle {
    font-size: 1rem;
    letter-spacing: 0.12em;
    opacity: 0.88;
    margin: 0;
}

.cast-intro p,
.cast-block p,
.cast-lead {
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: none;
    margin: 0 0 16px;
    text-align: left;
}

.meta-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.meta-list li {
    font-size: 0.98rem;
    margin-bottom: 10px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.78);
    border-left: 3px solid var(--accent);
}

.meta-list span {
    display: block;
    color: var(--accent);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cast-block {
    margin: 36px 0 0;
    padding-top: 28px;
    border-top: 1px solid rgba(201, 166, 107, 0.22);
}

.cast-block h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin: 0 0 16px;
    text-shadow: none;
}

.cast-block ul,
.apply-steps {
    margin: 0 0 18px;
    padding-left: 1.2em;
}

.cast-block li,
.apply-steps li {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.cast-block li::marker,
.apply-steps li::marker {
    color: var(--accent);
}

.cast-note {
    font-size: 0.95rem;
    opacity: 0.78;
    font-style: italic;
    margin: 8px 0 0;
}

/* ---- Vertical role list ---- */

.role-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.role-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 0 18px;
    background: rgba(0, 0, 0, 0.78);
    border: 1px solid var(--hairline, rgba(201, 166, 107, 0.22));
}

.role-card--priority {
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(201, 166, 107, 0.1);
}

.role-copy {
    padding: 0 16px;
}

.role-card--text .role-copy {
    padding-top: 18px;
}

.role-badge {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111;
    background: var(--accent);
    padding: 4px 8px;
    margin: 0 0 10px;
}

.role-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.28rem;
    letter-spacing: 0.04em;
    margin: 0 0 6px;
    color: #f0f0f0;
    text-shadow: none;
}

.role-ref {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
    color: var(--accent);
}

.role-card p {
    font-size: 0.95rem;
    margin: 0 0 10px;
}

.role-note {
    opacity: 0.8;
    font-size: 0.88rem;
    margin: 0;
}

.role-placeholder {
    margin: 0;
    width: 100%;
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 1px dashed rgba(201, 166, 107, 0.35);
    background:
        linear-gradient(180deg, rgba(20, 16, 12, 0.4), rgba(0, 0, 0, 0.55)),
        url('./images/pv-bg-800.jpg') center/cover;
}

.ph-label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.7;
}

.ph-code {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    letter-spacing: 0.18em;
    color: var(--accent);
}

/* ---- Lila media carousel (mobile) / three-up (desktop) ---- */

.lila-carousel {
    position: relative;
    width: 100%;
}

.lila-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.lila-track::-webkit-scrollbar {
    display: none;
}

.lila-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    margin: 0;
    position: relative;
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background:
        linear-gradient(180deg, rgba(20, 16, 12, 0.4), rgba(0, 0, 0, 0.55)),
        url('./images/pv-bg-800.jpg') center/cover;
    border-bottom: 1px dashed rgba(201, 166, 107, 0.35);
}

.lila-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
}

.lila-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 8px 4px;
    background: rgba(0, 0, 0, 0.82);
}

.lila-btn {
    position: absolute;
    top: 42%;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    background: rgba(10, 10, 10, 0.75);
    color: var(--accent);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.lila-btn--prev { left: 8px; }
.lila-btn--next { right: 8px; }

.lila-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 10px 0 0;
}

.lila-dots button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.lila-dots button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: transparent;
}

.lila-dots button.is-active::after,
.lila-dots button[aria-current="true"]::after {
    background: var(--accent);
}

.cast-block .cta {
    margin: 8px 0 22px;
    width: 100%;
    text-align: center;
}

.cast-home {
    text-align: center;
    margin: 36px 0 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 700px) {
    .cast-page {
        padding: 60px 28px 100px;
    }

    .cast-header {
        margin-bottom: 48px;
    }

    .cast-block h2 {
        font-size: 1.6rem;
    }

    .role-list {
        gap: 22px;
    }

    .role-card {
        gap: 16px;
    }

    /* Desktop: Lila three-up, no carousel chrome */
    .lila-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
        overflow: visible;
        scroll-snap-type: none;
    }

    .lila-slide {
        flex: none;
        width: auto;
        aspect-ratio: 3 / 5;
    }

    .lila-btn,
    .lila-dots {
        display: none;
    }

    .cast-block .cta {
        width: auto;
    }

    .meta-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .meta-list li {
        margin-bottom: 0;
    }
}



@media (min-width: 1100px) {
    .cast-page {
        max-width: 980px;
        padding: 72px 36px 120px;
    }

    .role-list {
        gap: 28px;
    }

    .lila-track {
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lila-track {
        scroll-behavior: auto;
    }
}
