/* ------------------------------
   Junker Jorg — Ash & Ember Theme
-------------------------------- */

:root {
    --bg: #080707;
    --bg2: #0f0b0b;
    --card: #0f0b0bcc;
    --stroke: #2a1c1c;
    --text: #f2e8de;
    --muted: #b9a79b;
    --ember: #ff5a2a;
    --gold: #d2b36f;
    --glass: #6dd6ff;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --radius: 18px;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: radial-gradient(1100px 700px at 30% 10%, #1a0f0f 0%, var(--bg) 55%, #000 100%);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(var(--max), calc(100% - 2.2rem));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* FX layers */
.fx {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.fx-vignette {
    background: radial-gradient(circle at 50% 30%, transparent 0%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .75) 100%);
}

.fx-grain {
    opacity: .15;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(10, 6, 6, .85), rgba(10, 6, 6, .45));
    border-bottom: 1px solid rgba(210, 179, 111, .15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1.1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.brand__logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55));
}

.brand__name {
    letter-spacing: .2em;
    text-transform: uppercase;
    font-size: .9rem;
    color: var(--muted);
}

.nav {
    display: flex;
    gap: 1.1rem;
    align-items: center;
}

.nav a {
    font-size: .95rem;
    color: rgba(242, 232, 222, .85);
    padding: .35rem .2rem;
    border-bottom: 1px solid transparent;
}

.nav a:hover {
    color: var(--text);
    border-bottom-color: rgba(255, 90, 42, .55);
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: .4rem;
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 26px;
    height: 2px;
    margin: 5px 0;
    background: rgba(242, 232, 222, .8);
}

/* Hero */
.hero {
    position: relative;
    min-height: 86vh;
    display: grid;
    place-items: center;
    isolation: isolate;
    z-index: 1;
}

.hero__bg {
    position: absolute;
    inset: -12vh -8vw;
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    filter: saturate(1.02) contrast(1.05);
}

.hero__bg--church {
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, .15), rgba(0, 0, 0, .85)),
        url("../images/hero-burned-church.jpg");
    opacity: .85;
}

.hero__bg--pulpit {
    background-image:
        radial-gradient(900px 600px at 65% 45%, rgba(255, 90, 42, .16), rgba(0, 0, 0, .0) 60%),
        linear-gradient(to bottom, rgba(0, 0, 0, .25), rgba(0, 0, 0, .92)),
        url("../images/pulpit-interior.jpg");
    mix-blend-mode: screen;
    opacity: .55;
    mask-image: radial-gradient(circle at 55% 50%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .9) 35%, rgba(0, 0, 0, 0) 70%);
}

.hero__content {
    padding: 6.5rem 0 5.5rem;
    text-align: left;
}

.kicker {
    color: rgba(210, 179, 111, .9);
    letter-spacing: .25em;
    text-transform: uppercase;
    font-size: .85rem;
    margin: 0 0 1rem;
}

.title {
    font-size: clamp(2.2rem, 4.8vw, 4rem);
    line-height: 1.05;
    margin: 0 0 1rem;
    text-shadow: 0 12px 38px rgba(0, 0, 0, .6);
}

.title__glow {
    color: var(--text);
    text-shadow: 0 0 22px rgba(255, 90, 42, .25), 0 0 60px rgba(109, 214, 255, .12);
}

.subtitle {
    max-width: 52ch;
    color: rgba(242, 232, 222, .82);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 1.8rem;
}

.hero__cta {
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
}

.hero__meta {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: 1.9rem;
}

/* ------------------------------
   Logo Hero — Reformation Focus
-------------------------------- */

.logo-hero {
    position: relative;
    min-height: 88vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
}

/* The image itself */
.logo-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    object-fit: contain;
    /* KEY CHANGE */
    object-position: center;

    background-color: #000;
    z-index: 0;
}

/* Darken for contrast */
.logo-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, .35),
            rgba(0, 0, 0, .75));
    z-index: 1;
}

/* Centered logo */
.logo-hero__content {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    padding: 6rem 0;

    transform: translateY(-10vh);
    /* ⬅ move logo UP */
}

/* Logo sizing (no pixelation) */
.logo-hero__logo {
    max-height: 300px;
    max-width: 90vw;
    width: auto;
    height: auto;

    filter:
        drop-shadow(0 14px 32px rgba(0, 0, 0, .65)) drop-shadow(0 0 18px rgba(255, 90, 42, .15));
}

@media (max-width: 720px) {
    .logo-hero__logo {
        max-height: 240px;
    }
}

/* Subtle stained-glass / ember glow */
.logo-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 380px at 50% 48%,
            rgba(210, 179, 111, .18),
            rgba(255, 90, 42, .12),
            rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

/* Mobile tuning */
@media (max-width: 720px) {
    .logo-hero {
        min-height: 80vh;
    }

    .logo-hero__content {
        padding: 5.5rem 0 4.5rem;
    }
}

/* Music Player */

.music-player {
    display: grid;
    gap: 1.2rem;
}

.music-player__now {
    display: grid;
    gap: .6rem;
}

.music-player__title {
    font-weight: 700;
    letter-spacing: .04em;
    color: rgba(242, 232, 222, .95);
}

audio {
    width: 100%;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45));
}

.playlist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .4rem;
}

.playlist li {
    padding: .6rem .8rem;
    border-radius: 10px;
    border: 1px solid rgba(210, 179, 111, .14);
    background: rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.playlist li:hover {
    background: rgba(255, 90, 42, .08);
    border-color: rgba(255, 90, 42, .45);
}

.playlist li.is-active {
    background: rgba(255, 90, 42, .18);
    border-color: rgba(255, 90, 42, .65);
    color: var(--text);
}

/* Constrain music section width */
.music-wrap {
    width: min(640px, 100%);
    margin-inline: auto;
}

.music-player__note {
    margin-top: .4rem;
}

/* Buttons / tags */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .8rem 1.1rem;
    border: 1px solid rgba(210, 179, 111, .22);
    background: rgba(15, 11, 11, .45);
    box-shadow: var(--shadow);
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 90, 42, .45);
}

.btn--primary {
    background: linear-gradient(135deg, rgba(255, 90, 42, .95), rgba(210, 179, 111, .85));
    color: #140b0b;
    border-color: transparent;
}

.btn--ghost {
    background: rgba(15, 11, 11, .22);
}

.btn--small {
    padding: .55rem .9rem;
    font-size: .95rem;
    box-shadow: none;
}

.tag {
    padding: .35rem .65rem;
    border-radius: 999px;
    border: 1px solid rgba(210, 179, 111, .18);
    background: rgba(15, 11, 11, .35);
    color: rgba(242, 232, 222, .8);
    font-size: .9rem;
}

/* Album art block: wide image + two covers */
.album-art {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.album-art img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 14px;
    object-fit: cover;
}

/* Wide image spans both columns */
.album-art__wide {
    grid-column: 1 / -1;
    padding: .8rem;
}

/* Wide feature image — reduced height */
.album-art__wide img {
    max-height: 360px;
    object-fit: cover;
}

/* Covers: consistent sizing */
.album-art__cover {
    padding: .8rem;
    aspect-ratio: 1 / 1;
    max-width: 320px;
    /* prevents oversized covers */
    margin-inline: auto;
    /* centers them */
    overflow: hidden;
}

.album-art__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile: stack */
@media (max-width: 720px) {
    .album-art {
        grid-template-columns: 1fr;
    }

    .album-art__wide {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .album-art__wide img {
        max-height: 180px;
    }

    .album-art__cover {
        max-width: 260px;
    }
}

/* ------------------------------
   Gallery (masonry + lightbox)
-------------------------------- */

.gallery-controls {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 1.1rem 0 1.3rem;
}

.chip {
    border-radius: 999px;
    padding: .5rem .85rem;
    border: 1px solid rgba(210, 179, 111, .16);
    background: rgba(0, 0, 0, .18);
    color: rgba(242, 232, 222, .80);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.chip:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 90, 42, .45);
}

.chip.is-active {
    background: rgba(255, 90, 42, .18);
    border-color: rgba(255, 90, 42, .65);
    color: var(--text);
}

/* Masonry via CSS columns (fast & simple) */
.gallery-grid {
    columns: 3;
    column-gap: 1rem;
}

.gallery-item {
    break-inside: avoid;
    margin: 0 0 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(210, 179, 111, .12);
    background: rgba(0, 0, 0, .18);
    box-shadow: var(--shadow);
}

.gallery-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.gallery-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transform: translateZ(0);
    transition: transform .18s ease, filter .18s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
    filter: saturate(1.02) contrast(1.04);
}

/* Filtered hide */
.gallery-item.is-hidden {
    display: none;
}

/* Responsive columns */
@media (max-width: 980px) {
    .gallery-grid {
        columns: 2;
    }
}

@media (max-width: 620px) {
    .gallery-grid {
        columns: 1;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
}

.lightbox.is-open {
    display: block;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(6px);
}

.lightbox__panel {
    position: relative;
    width: min(1100px, 92vw);
    height: min(80vh, 760px);
    margin: 10vh auto 0;
    border-radius: var(--radius);
    border: 1px solid rgba(210, 179, 111, .14);
    background: rgba(10, 6, 6, .92);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.lightbox__figure {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 1fr auto;
}

.lightbox__figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0, 0, 0, .25);
}

.lightbox__caption {
    padding: .75rem 1rem;
    border-top: 1px solid rgba(210, 179, 111, .10);
    background: rgba(0, 0, 0, .28);
}

.lightbox__title {
    color: rgba(242, 232, 222, .9);
    font-weight: 700;
    letter-spacing: .04em;
}

.lightbox__close {
    position: absolute;
    top: .65rem;
    right: .65rem;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(210, 179, 111, .18);
    background: rgba(0, 0, 0, .25);
    color: rgba(242, 232, 222, .9);
    cursor: pointer;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid rgba(210, 179, 111, .18);
    background: rgba(0, 0, 0, .25);
    color: rgba(242, 232, 222, .9);
    font-size: 2rem;
    cursor: pointer;
}

.lightbox__nav--prev {
    left: .7rem;
}

.lightbox__nav--next {
    right: .7rem;
}

@media (max-width: 720px) {
    .lightbox__panel {
        height: 78vh;
        margin-top: 11vh;
    }

    .lightbox__nav {
        display: none;
    }

    /* swipe/scroll on mobile */
}

/* Bio */
.bio {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.2rem;
    align-items: start;
}

.bio__actions {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
    margin-top: 1.1rem;
}

.facts {
    list-style: none;
    padding: 0;
    margin: .8rem 0 0;
    display: grid;
    gap: .65rem;
}

.facts li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid rgba(210, 179, 111, .10);
}

.facts__label {
    color: rgba(210, 179, 111, .9);
    font-size: .92rem;
    letter-spacing: .04em;
}

.facts__value {
    color: rgba(242, 232, 222, .82);
    text-align: right;
}

@media (max-width: 980px) {
    .bio {
        grid-template-columns: 1fr;
    }

    .facts__value {
        text-align: left;
    }
}

/* Sections */
.section {
    position: relative;
    z-index: 1;
    padding: 5rem 0;
}

.section--alt {
    background: linear-gradient(to bottom, rgba(210, 179, 111, .05), rgba(255, 90, 42, .03));
    border-top: 1px solid rgba(210, 179, 111, .10);
    border-bottom: 1px solid rgba(210, 179, 111, .10);
}

.section__head h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section__head p {
    margin: .65rem 0 2rem;
    color: rgba(185, 167, 155, .95);
}

/* Layout helpers */
.grid {
    display: grid;
    gap: 1.2rem;
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: rgba(15, 11, 11, .55);
    border: 1px solid rgba(210, 179, 111, .12);
    border-radius: var(--radius);
    padding: 1.15rem;
    box-shadow: var(--shadow);
}

.card h3 {
    margin: .2rem 0 .35rem;
    letter-spacing: .05em;
}

.muted {
    color: rgba(185, 167, 155, .95);
}

.small {
    font-size: .9rem;
}

.card__actions {
    display: flex;
    gap: .9rem;
    margin-top: 1rem;
}

.link {
    color: rgba(210, 179, 111, .95);
    border-bottom: 1px solid rgba(210, 179, 111, .3);
    padding-bottom: 2px;
}

.link:hover {
    border-bottom-color: rgba(255, 90, 42, .65);
}

.placeholder {
    border-radius: 14px;
    border: 1px dashed rgba(210, 179, 111, .22);
    background: rgba(0, 0, 0, .25);
    padding: 2rem 1rem;
    margin-top: .9rem;
    color: rgba(242, 232, 222, .65);
}

/* Shows list */
.list {
    display: grid;
    gap: .9rem;
}

.list__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(210, 179, 111, .12);
    background: rgba(15, 11, 11, .45);
}

.list__title {
    font-weight: 700;
    letter-spacing: .04em;
}

/* Gallery masonry */
.masonry {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.tile {
    grid-column: span 6;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(210, 179, 111, .12);
    background: rgba(0, 0, 0, .22);
    box-shadow: var(--shadow);
}

.tile img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.tile figcaption {
    padding: .8rem 1rem;
    color: rgba(185, 167, 155, .95);
    background: rgba(0, 0, 0, .35);
    border-top: 1px solid rgba(210, 179, 111, .08);
}

.tile--text {
    display: grid;
    place-items: center;
    min-height: 420px;
}

.tile__text {
    padding: 1.5rem;
}

.tile__text h3 {
    margin: .2rem 0 .55rem;
}

/* Lore split */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

/* Contact form */
.form {
    display: grid;
    gap: 1rem;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label span {
    display: block;
    font-size: .9rem;
    color: rgba(210, 179, 111, .9);
    margin-bottom: .35rem;
}

input,
textarea {
    width: 100%;
    padding: .85rem .9rem;
    border-radius: 14px;
    border: 1px solid rgba(210, 179, 111, .16);
    background: rgba(0, 0, 0, .25);
    color: var(--text);
    outline: none;
}

input:focus,
textarea:focus {
    border-color: rgba(255, 90, 42, .55);
}

.form__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer {
    padding: 2.5rem 0 0;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
    .grid--3 {
        grid-template-columns: 1fr;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .tile {
        grid-column: span 12;
    }

    .tile img {
        height: 300px;
    }

    .nav-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        right: 1rem;
        top: 68px;
        display: none;
        flex-direction: column;
        gap: .6rem;
        padding: .9rem;
        width: min(260px, 92vw);
        border-radius: 16px;
        border: 1px solid rgba(210, 179, 111, .14);
        background: rgba(10, 6, 6, .92);
        box-shadow: var(--shadow);
    }

    .nav.is-open {
        display: flex;
    }
}