* {
    box-sizing:border-box
}
body {
    margin:0;
    background:#111412;
    color:#e5e0d4;
    font:16px/1.6 system-ui
}
header {
    position:absolute;
    z-index:2;
    top:0;
    left:0;
    padding:clamp(20px,4vw,65px);
    pointer-events:none
}
h1,h2 {
    font-family:Georgia,serif;
    font-weight:400;
    line-height:1.1
}
h1 {
    font-size:clamp(25px,4vw,55px);
    margin:0;
    text-shadow:0 2px 15px #000
}
small,.eyebrow {
    letter-spacing:.24em;
    text-transform:uppercase;
    font-size:11px;
    color:#c7b998
}
main {
    min-height:100svh;
    display:grid;
    place-items:center;
    position:relative;
    overflow:hidden;
    background:radial-gradient(ellipse,#383f3d,#111412 75%)
}
.scene {
    position:relative;
    width:min(100vw,75svh);
    aspect-ratio:3/4
}
.scene img {
    width:100%;
    height:100%;
    display:block;
    filter:brightness(.65) saturate(.53);
    mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent)
}
.hot {
    position:absolute;
    left:var(--x);
    top:var(--y);
    transform:translate(-50%,-50%);
    border:1px solid #d5c8a8;
    background:#131916b8;
    color:#f5ead2;
    border-radius:50%;
    width:40px;
    height:40px;
    cursor:pointer;
    font-size:23px;
    box-shadow:0 0 25px #e4d3a542
}
.hot:hover,.hot:focus-visible {
    background:#e5d6b7;
    color:#111;
    outline:2px solid white;
    outline-offset:4px
}
.hot span {
    position:absolute;
    left:49px;
    top:50%;
    transform:translateY(-50%);
    white-space:nowrap;
    font:15px Georgia;
    background:#111b;
    padding:7px 10px;
    letter-spacing:.05em
}
.hint {
    position:absolute;
    bottom:15px;
    text-align:center;
    font-size:12px;
    letter-spacing:.12em;
    color:#d4cbb8
}
dialog {
    margin:0 0 0 auto;
    height:100dvh;
    max-height:100dvh;
    width:min(620px,100%);
    max-width:100%;
    border:0;
    border-left:1px solid #756d59;
    background:#171c1a;
    color:#eee9dd;
    padding:clamp(22px,5vw,55px);
    overflow:auto
}
dialog::backdrop {
    background:#0007;
    backdrop-filter:blur(2px)
}
dialog h2 {
    font-size:45px;
    margin:15px 0
}
dialog img {
    width:100%;
    display:block;
    margin:18px 0;
    border-radius:2px
}
dialog button {
    background:transparent;
    color:inherit;
    border:1px solid #9a907a;
    padding:8px 14px;
    cursor:pointer;
    float:right
}
article {
    display:none
}
article.active {
    display:block
}
.role {
    border-top:1px solid #514f46;
    padding:16px 0
}
.role strong {
    display:block;
    font:24px Georgia
}
footer {
    margin-top:30px;
    color:#b1ad9f;
    font-size:13px
}
@media(max-width:600px) {
    header {
        position:absolute
    }
    .scene {
        width:100vw
    }
    .hot span {
        font-size:12px;
        left:37px;
        padding:4px 6px
    }
    .hot {
        width:32px;
        height:32px;
        font-size:19px
    }
    .hint {
        bottom:8px
    }
    main {
        min-height:100svh
    }
}
@media(prefers-reduced-motion:no-preference) {
    dialog[open] {
        animation:appear .25s ease-out
    }
    @keyframes appear {
        from {
            opacity:0;
            transform:translateX(20px)
        }
        to {
            opacity:1;
            transform:none
        }
    }
}
.role a {
    color:#d8c6a2;
    text-underline-offset:4px
}
.role a:focus-visible {
    outline:2px solid #fff;
    outline-offset:4px
}
.cast-pair {
    margin:0;
    padding:16px 0;
    border-top:1px solid #514f46
}
.cast-pair img {
    margin:0 0 14px
}
.pair-labels {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px
}
.pair-labels div {
    min-width:0
}
.pair-labels strong,.pair-labels span,.pair-labels a {
    display:block
}
.pair-labels strong {
    font:clamp(17px,3vw,23px) Georgia,serif
}
.pair-labels span {
    color:#c7b998;
    font-size:13px
}
.pair-labels a,.stay-link {
    color:#d8c6a2;
    text-underline-offset:4px
}
.stay-facts {
    display:flex;
    flex-wrap:wrap;
    gap:8px
}
.stay-facts span {
    border:1px solid #514f46;
    padding:6px 10px;
    font-size:13px
}
.stay-gallery figure {
    margin:24px 0
}
.stay-gallery img {
    margin:0 0 7px
}
.stay-gallery figcaption {
    font-size:13px;
    color:#c7b998
}
#stay h3 {
    font:28px Georgia,serif;
    margin:12px 0
}
.hot[data-panel="stay"] span {
    left:auto;
    right:49px
}
@media(max-width:600px) {
    .hot[data-panel="stay"] span {
        right:37px
    }
}
header .film-logo {
    display:block;
    width:clamp(125px,20vw,270px);
    height:auto;
    margin-top:22px;
    filter:drop-shadow(0 2px 6px #0008)
}
@media(max-width:600px) {
    header .film-logo {
        width:125px;
        margin-top:10px
    }
}
header .band-logo {
    display:block;
    width:clamp(170px,25vw,340px);
    height:auto;
    mix-blend-mode:screen
}
header h1 {
    margin-top:8px
}
.crew-profile {
    padding:24px 0;
    margin:0
}
.crew-profile img {
    margin:0 0 16px;
    width:100%;
    height:auto
}
.crew-profile h3,.location-profile h3 {
    font:26px/1.2 Georgia,serif;
    margin:0 0 6px
}
.crew-profile .crew-job {
    color:#c7b998;
    margin:0 0 8px;
    font-size:14px
}
.crew-profile a,.location-profile a {
    color:#d8c6a2;
    text-underline-offset:4px;
    font-size:14px
}
.location-profile {
    border-top:1px solid #514f46;
    padding:24px 0
}
.location-profile p {
    margin:12px 0 18px
}
.location-profile figure img {
    margin-bottom:6px
}
@media(max-width:600px) {
    header .band-logo {
        width:160px
    }
}
header h1 {
    margin:0
}
header .film-logo {
    margin-top:12px
}
header .film-credit {
    font:clamp(11px,1.05vw,15px)/1.5 Georgia,serif;
    color:#d8cbb1;
    max-width:270px;
    margin:12px 0 0;
    text-shadow:0 2px 6px #000
}
.crew-profile {
    text-align:center
}
.crew-photo {
    position:relative;
    overflow:hidden;
    aspect-ratio:5/4;
    background:#101311;
    border-radius:2px
}
.crew-profile .crew-photo img {
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top;
    margin:0;
    display:block
}
.crew-profile:first-of-type .crew-photo img {
    object-position:center 38%
}
.crew-credit {
    position:absolute;
    inset:auto 0 0;
    padding:55px 10px 20px;
    background:linear-gradient(transparent,#101311e8 65%,#101311);
    text-align:center
}
.crew-profile .crew-credit h3 {
    font:clamp(20px,4vw,30px)/1.15 Georgia,serif;
    color:#e3cda5;
    margin:0 0 5px;
    text-shadow:0 2px 5px #000
}
.crew-profile .crew-credit .crew-job {
    font:italic 16px Georgia,serif;
    color:#c7b998;
    margin:0
}
.crew-credit:after {
    content:'◆';
    display:block;
    color:#a38b63;
    font-size:10px;
    margin-top:8px
}
.crew-profile>a {
    display:inline-block;
    margin-top:12px
}
@media(max-width:600px) {
    header .film-credit {
        max-width:155px
    }
    .crew-credit {
        padding-bottom:12px
    }
}
.countdown-wrap {
    display:grid;
    gap:14px;
    margin:18px 0 6px
}
.countdown-card {
    position:relative;
    overflow:hidden;
    border:1px solid #6e624a;
    border-radius:4px;
    background:radial-gradient(circle at 20% 20%,#2a2319 0,#161814 45%,#0d0f0d 100%);
    padding:18px 18px 20px;
    box-shadow:0 0 0 1px #000 inset,0 0 30px #0006
}
.countdown-card:before {
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(120deg,transparent 0 30%,#ffffff08 45%,transparent 60%);
    transform:translateX(-120%);
    animation:sheen 5s linear infinite
}
.countdown-label {
    font:12px/1.4 Georgia,serif;
    letter-spacing:.28em;
    text-transform:uppercase;
    color:#baa98a
}
.countdown-number {
    font:clamp(42px,9vw,78px)/1 Georgia,serif;
    color:#ecd8af;
    text-align:center;
    text-shadow:0 0 18px #d29c3b33;
    margin:8px 0 4px;
    animation:pulse 2s ease-in-out infinite
}
.countdown-copy {
    font:italic 19px/1.4 Georgia,serif;
    color:#ddd1bb;
    text-align:center
}
.countdown-sub {
    font:14px/1.5 system-ui;
    color:#b4ab96;
    text-align:center
}
.countdown-units {
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
    margin-top:8px
}
.unit {
    min-width:78px;
    padding:10px 8px;
    border:1px solid #544c3d;
    background:#0d100ecc;
    border-radius:3px;
    text-align:center
}
.unit strong {
    display:block;
    font:28px/1 Georgia,serif;
    color:#f1dfb9
}
.unit span {
    display:block;
    font-size:11px;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:#bcae90;
    margin-top:5px
}
.release-done .countdown-number {
    font-size:clamp(28px,6vw,42px)
}
@keyframes pulse {
    0%,100% {
        transform:scale(1);
        opacity:.9
    }
    50% {
        transform:scale(1.03);
        opacity:1
    }
}
@keyframes sheen {
    to {
        transform:translateX(120%)
    }
}
/* Centered title and understated production credit */
main > header {
    left:50%;
    top:0;
    transform:translateX(-50%);
    padding:clamp(16px,3vh,32px) 12px 0;
    text-align:center;
    width:min(100%,360px)
}
main > header small {
    display:block;
    font-size:10px;
    letter-spacing:.23em
}
main > header h1 {
    margin:0
}
main > header .film-logo {
    width:clamp(170px,25vh,260px);
    margin:10px auto 0;
    height:auto
}
.scene-footer {
    position:absolute;
    z-index:1;
    bottom:15px;
    left:0;
    right:0;
    text-align:center;
    pointer-events:none;
    padding:0 12px;
    text-shadow:0 2px 6px #000
}
.scene-footer .hint {
    position:static;
    font-size:11px;
    letter-spacing:.15em;
    margin:0 0 7px
}
.scene-footer .film-credit {
    margin:0;
    color:#b9b09e;
    font:12px/1.5 Georgia,serif;
    letter-spacing:.035em
}
.scene-footer .film-credit:before {
    content:'';
    display:block;
    width:42px;
    height:1px;
    background:#a3916b66;
    margin:0 auto 8px
}
.band-lineup {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 20px;
    margin:18px 0 0
}
.band-lineup > div {
    display:flex;
    flex-wrap:wrap;
    align-items:baseline;
    gap:4px 8px;
    padding:10px 0;
    border-bottom:1px solid #514f46
}
.band-lineup dt {
    color:#e3cda5;
    font:19px/1.3 Georgia,serif
}
.band-lineup dd {
    margin:0;
    color:#c7b998;
    font-size:13px
}
.band-lineup dd:before {
    content:'– ';
    color:#9e9075
}
@media(max-width:600px) {
    main {
        display:flex;
        flex-direction:column;
        justify-content:center;
        min-height:100svh
    }
    main > header {
        position:relative;
        left:auto;
        top:auto;
        transform:none;
        padding:18px 12px 8px;
        flex-shrink:0
    }
    main > header .film-logo {
        width:150px;
        margin:8px auto 0
    }
    .scene {
        width:min(100vw,75svh);
        flex-shrink:0
    }
    .scene-footer {
        position:relative;
        bottom:auto;
        padding:8px 12px 18px
    }
    .scene-footer .hint {
        font-size:10px
    }
    .band-lineup {
        gap:0 12px
    }
    .band-lineup > div {
        gap:3px 5px
    }
}
/* Responsive editorial panels */
dialog {
    width:min(1040px,94vw);
    padding:clamp(24px,4vw,48px)
}
dialog:has(#video.active) {
    width:min(620px,100%)
}
.location-gallery {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    align-items:start;
    margin:18px 0
}
.location-gallery figure {
    margin:0!important;
    min-width:0
}
.location-gallery figure img,.stay-gallery figure img {
    margin:0 0 7px;
    width:100%;
    height:auto;
    display:block
}
.location-gallery figure:only-child {
    grid-column:1/-1
}
.location-gallery figure:nth-child(3) {
    grid-column:1/-1;
    max-width:100%;
    width:100%
}
.location-gallery figcaption {
    font-size:13px;
    color:#c7b998
}
.crew-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
    align-items:start
}
.crew-grid .crew-profile {
    border-top:0;
    padding:0 0 12px;
    min-width:0
}
.crew-grid .crew-profile:first-child {
    grid-column:1/-1;
    width:min(100%,460px);
    justify-self:center
}
#band .band-lineup {
    grid-template-columns:repeat(2,minmax(0,1fr))
}
.band-lineup .not-pictured {
    letter-spacing:normal;
    text-transform:none;
    font-size:11px;
    display:inline;
    color:#b9b09e
}
#band>figure:nth-of-type(2) {
    max-width:460px;
    margin-left:auto!important;
    margin-right:auto!important
}
@media(max-width:680px) {
    dialog {
        width:100%;
        padding:22px
    }
    .location-gallery,.crew-grid {
        grid-template-columns:1fr;
        gap:14px
    }
    .crew-grid .crew-profile:first-child {
        width:100%
    }
    .location-gallery figure:nth-child(3) {
        grid-column:auto
    }
}
main {
    --landscape:url("../img/pray-to-the-lord/landscape.webp")
}
/* Widescreen cinematic landing */
main {
    isolation:isolate;
    background:#252d2b;
    min-height:100svh
}
main::before {
    content:"";
    position:absolute;
    inset:-25px;
    z-index:-3;
    background:var(--landscape) center 63% / cover no-repeat;
    filter:blur(19px) brightness(.53) saturate(.55);
    transform:scale(1.035)
}
main::after {
    content:"";
    position:absolute;
    inset:0;
    z-index:-2;
    pointer-events:none;
    background:linear-gradient(90deg,#10161488,transparent 36%,transparent 68%,#10161455),linear-gradient(0deg,#101611bd,transparent 24%,transparent 80%,#10161450)
}
.scene {
    width:min(100vw,75svh);
    z-index:0
}
.scene>img {
    filter:brightness(.77) saturate(.60);
    mask-image:linear-gradient(90deg,transparent 0%,#000 20%,#000 80%,transparent 100%)
}
main>header {
    left:clamp(24px,6vw,120px);
    top:25%;
    transform:none;
    width:min(27vw,400px);
    padding:0;
    text-align:center
}
main>header .film-logo {
    width:100%;
    max-width:340px;
    margin:18px auto 0
}
main>header small {
    font-size:clamp(9px,1vw,12px);
    color:#e0d1b3;
    text-shadow:0 2px 6px #000
}
main>header .release-date {
    font:12px Georgia,serif;
    letter-spacing:.24em;
    color:#d8cbb1;
    margin:20px auto 0;
    text-shadow:0 2px 6px #000
}
main>header .release-date::before {
    content:"";
    display:block;
    width:60px;
    height:1px;
    background:#b8a47a;
    margin:0 auto 15px
}
.scene-footer {
    z-index:2;
    bottom:22px
}
.scene-footer .film-credit {
    color:#e0d6c3
}
.hot span {
    background:#121916d9;
    border:1px solid #c5b28a38;
    border-radius:2px
}
/* Individual panels, natural image proportions */
dialog {
    width:min(760px,100%)
}
dialog:has(#locations.active) {
    width:min(900px,100%)
}
dialog:has(#video.active) {
    width:min(620px,100%)
}
.crew-grid {
    display:block;
    max-width:560px;
    margin:auto
}
.crew-grid .crew-profile,.crew-grid .crew-profile:first-child {
    width:100%;
    padding:20px 0;
    border-top:1px solid #514f46
}
#band>figure {
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important
}
#band>figure:nth-of-type(2) {
    max-width:480px!important;
    margin:28px auto 0!important
}
#band>figure img {
    height:auto;
    object-fit:contain
}
.location-gallery figure:nth-child(3) {
    max-width:640px;
    justify-self:center
}
@media(max-width:900px) {
    main>header {
        left:50%;
        top:0;
        transform:translateX(-50%);
        width:min(42vw,250px);
        padding:15px 10px 0
    }
    main>header .film-logo {
        width:100%;
        max-width:180px;
        margin:6px auto 0
    }
    main>header .release-date {
        display:none
    }
}
@media(max-width:600px) {
    main>header {
        position:relative;
        left:auto;
        top:auto;
        transform:none;
        width:100%;
        padding:18px 12px 8px
    }
    main>header .film-logo {
        max-width:150px
    }
    .scene-footer {
        bottom:auto
    }
    .scene>img {
        mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)
    }
    dialog {
        width:100%
    }
    .location-gallery figure:nth-child(3) {
        grid-column:auto
    }
}
@media(prefers-reduced-motion:reduce) {
    .countdown-number,.countdown-card:before {
        animation:none
    }
}
.project-nav {
    position:absolute;
    z-index:3;
    right:clamp(20px,4vw,70px);
    top:50%;
    transform:translateY(-50%);
    width:clamp(150px,17vw,235px);
    display:grid;
    gap:14px
}
.project-nav h2 {
    font:11px system-ui;
    letter-spacing:.2em;
    text-transform:uppercase;
    color:#e0d1b3;
    margin:0 0 2px;
    text-align:center;
    text-shadow:0 2px 6px #000
}
.project-link {
    display:grid;
    grid-template-columns:58px 1fr;
    align-items:center;
    gap:12px;
    padding:8px;
    background:#111713d9;
    border:1px solid #bba67c55;
    color:#e6d9bf;
    text-decoration:none;
    border-radius:3px;
    box-shadow:0 4px 18px #0003
}
.project-link:hover,.project-link:focus-visible {
    border-color:#e0cba3;
    background:#252b24;
    outline-offset:3px
}
.project-cover {
    width:58px;
    aspect-ratio:1;
    object-fit:cover;
    background:#292d24;
    display:block
}
.project-link strong {
    font:16px/1.2 Georgia,serif;
    display:block
}
.project-link small {
    font-size:9px;
    letter-spacing:.12em;
    display:block;
    margin-top:6px
}
.scene-footer {
    pointer-events:none
}
.legal-open {
    pointer-events:auto;
    background:transparent;
    color:#e0d6c3;
    border:0;
    text-decoration:underline;
    text-underline-offset:3px;
    font:11px system-ui;
    cursor:pointer;
    margin-top:7px;
    padding:5px 12px
}
.legal-open:focus-visible {
    outline:2px solid #e0d6c3
}
#imprint h3 {
    font:24px Georgia,serif;
    margin-top:28px
}
#imprint a {
    color:#e0cba3
}
#imprint address {
    font-style:normal
}
dialog:has(#imprint.active) {
    width:min(620px,100%)
}
@media(max-width:1100px) {
    .project-nav {
        right:12px;
        width:175px
    }
    .project-link {
        grid-template-columns:42px 1fr;
        gap:8px
    }
    .project-cover {
        width:42px
    }
    .project-link strong {
        font-size:14px
    }
}
@media(max-width:900px) {
    main {
        display:flex;
        flex-direction:column;
        justify-content:center;
        overflow:hidden
    }
    main>header {
        position:relative;
        left:auto;
        top:auto;
        transform:none;
        width:100%;
        padding:18px 12px 8px
    }
    main>header .film-logo {
        max-width:180px
    }
    .scene {
        flex-shrink:0;
        width:min(100vw,75svh)
    }
    .project-nav {
        position:relative;
        right:auto;
        top:auto;
        transform:none;
        width:min(94%,560px);
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
        margin:12px auto
    }
    .project-nav h2 {
        grid-column:1/-1
    }
    .scene-footer {
        position:relative;
        bottom:auto;
        padding:12px 12px 20px
    }
    .project-link {
        min-width:0
    }
}
@media(max-height:650px) and (min-width:901px) {
    .scene-footer {
        bottom:4px
    }
    .scene-footer .hint {
        display:none
    }
}
/* Footer link also works without JavaScript. */
.scene-footer .legal-open {
    display:inline-block
}

/* Accommodation: compact single-column photo story. */
dialog:has(> #stay.active) { width: min(620px, 100%); }
#stay .stay-gallery { display: block; margin: 24px 0; }
#stay .stay-gallery > figure { width: 100%; max-width: none; margin: 0 0 24px; }
#stay .stay-gallery > figure:last-child { margin-bottom: 0; }
#stay .stay-gallery img { width: 100%; height: auto; object-fit: contain; }

/* Unified single-column information panels. */
dialog, dialog:has(article.active), dialog:has(#locations.active),
dialog:has(#video.active), dialog:has(#imprint.active), dialog:has(> #stay.active) {
    width: min(620px, 100%);
}
dialog .location-gallery, dialog .stay-gallery, dialog .crew-grid {
    display: block;
    max-width: none;
    margin: 24px 0;
}
dialog .location-gallery > figure, dialog .stay-gallery > figure {
    width: 100%; max-width: none; margin: 0 0 24px !important;
}
dialog .location-gallery > figure:last-child, dialog .stay-gallery > figure:last-child { margin-bottom: 0 !important; }
dialog .crew-grid .crew-profile, dialog .crew-grid .crew-profile:first-child { width: 100%; }
dialog .crew-photo { aspect-ratio: auto; }
dialog .crew-profile .crew-photo img { height: auto; object-fit: contain; }
dialog article img { width: 100%; height: auto; object-fit: contain; }
#band > figure:nth-of-type(2) { max-width: none !important; margin: 28px 0 0 !important; }

/* Credit is rendered only in HTML, never in the photograph. */
#cast .crew-credit { position:relative; inset:auto; margin-top:-24px; padding:24px 10px 20px; background:linear-gradient(transparent,#101311 24px); }

/* Project thumbnails: override intrinsic HTML image dimensions. */
.project-link { grid-template-columns:58px minmax(0,1fr); }
.project-cover { width:58px; height:58px; aspect-ratio:1 / 1; object-fit:cover; }
@media (max-width:1100px) {
    .project-link { grid-template-columns:42px minmax(0,1fr); }
    .project-cover { width:42px; height:42px; }
}
