.site-header {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 30;
    padding: 0;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.32rem;
    background: rgba(247, 250, 246, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(6, 14, 11, 0.24);
    backdrop-filter: blur(12px);
}

.language-switcher a {
    min-width: 2rem;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 700;
    color: #ffffff;
}

.language-switcher .is-active {
    background: var(--green);
    color: #ffffff;
}

.hero {
    --hero-bg-image-default: image-set(
        url("../img/bghero.png") 1x,
        url("../img/bghero@2x.jpg") 2x
    );
    --hero-bg-image-source: var(--hero-bg-image-inline, var(--hero-bg-image-default));
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vw, 2rem);
    overflow: hidden;
    background-color: #101a15;
    background-image: var(--hero-bg-image-source);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-glass-frame {
    --hero-panel-cutout-offset: 15px;
    --hero-panel-cutout-width: 500px;
    --hero-panel-cutout-height: 300px;
    --hero-panel-radius: 18px;
    --hero-panel-cutout-radius: 18px;
    position: relative;
    width: min(1000px, calc(100% - 2rem));
    min-height: clamp(620px, 72svh, 720px);
}

.hero-glass-panel {
    position: absolute;
    inset: 0;
    background: rgba(232, 236, 234, 0.1);
    border: 2px solid rgba(148, 155, 152, 0.55);
    border-radius: var(--hero-panel-radius);
    box-shadow: 0 22px 60px rgba(7, 13, 10, 0.24);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-glass-window {
    display: none;
    position: absolute;
    top: var(--hero-panel-cutout-offset);
    left: var(--hero-panel-cutout-offset);
    width: var(--hero-panel-cutout-width);
    height: var(--hero-panel-cutout-height);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: var(--hero-panel-cutout-radius);
    box-sizing: border-box;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

.hero-glass-window-bg {
    position: absolute;
    top: calc(var(--hero-window-sync-y, 0px) * -1);
    left: calc(var(--hero-window-sync-x, 0px) * -1);
    width: var(--hero-window-sync-width, 100%);
    height: var(--hero-window-sync-height, 100%);
    background-color: #101a15;
    background-image: var(--hero-bg-image-source);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-glass-frame::before {
    content: "";
    position: absolute;
    top: var(--hero-panel-cutout-offset);
    left: var(--hero-panel-cutout-offset);
    width: var(--hero-panel-cutout-width);
    height: var(--hero-panel-cutout-height);
    background-color: #101a15;
    background-image: var(--hero-bg-image-source);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    border-radius: var(--hero-panel-cutout-radius);
    box-sizing: border-box;
    z-index: 2;
}

.hero-glass-frame::after {
    content: "";
    position: absolute;
    top: var(--hero-panel-cutout-offset);
    left: var(--hero-panel-cutout-offset);
    width: var(--hero-panel-cutout-width);
    height: var(--hero-panel-cutout-height);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: var(--hero-panel-cutout-radius);
    box-sizing: border-box;
    pointer-events: none;
    z-index: 3;
}

.hero-glass-copy {
    position: relative;
    z-index: 4;
    min-height: 100%;
    display: grid;
    grid-template-columns: minmax(0, var(--hero-panel-cutout-width)) minmax(0, 1fr);
    grid-template-rows: var(--hero-panel-cutout-height) auto;
    align-content: start;
    column-gap: clamp(1.25rem, 2.5vw, 2rem);
    row-gap: clamp(1rem, 2vw, 1.35rem);
    padding: var(--hero-panel-cutout-offset) clamp(1.35rem, 2.6vw, 2.1rem) clamp(1.35rem, 2.6vw, 1.9rem) var(--hero-panel-cutout-offset);
    box-sizing: border-box;
    color: #f8fff2;
    text-shadow: 0 6px 22px rgba(5, 12, 9, 0.38);
}

.hero-glass-copy h1,
.hero-glass-copy p {
    margin: 0;
}

.hero-glass-title {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-glass-title span {
    display: block;
}

.hero-glass-title-main {
    width: 100%;
    font-size: clamp(3.9rem, 5.3vw, 5.4rem);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.hero-glass-title-year {
    width: 100%;
    margin-top: -0.15rem;
    font-size: clamp(6.15rem, 8.3vw, 8.1rem);
    line-height: 0.82;
    font-weight: 900;
    letter-spacing: -0.065em;
}

.hero-glass-info {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, var(--hero-panel-cutout-width)) minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem 1.75rem;
}

.hero-glass-theme {
    display: grid;
    width: 100%;
    gap: 0;
    justify-self: start;
    justify-items: start;
    text-align: left;
    font-size: clamp(3.7rem, 5.2vw, 5.2rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #f7fff1;
}

.hero-glass-theme span,
.hero-glass-ministry span {
    display: block;
}

.hero-glass-theme-scripture {
    margin-top: 0.25rem;
    font-size: clamp(1.85rem, 2.5vw, 2.45rem);
    line-height: 0.96;
}

.hero-glass-side {
    width: 100%;
    max-width: 19rem;
    display: grid;
    gap: 0.9rem;
    justify-self: center;
    justify-items: center;
    text-align: center;
    padding-top: 0.25rem;
}

.hero-glass-schedule {
    display: grid;
    gap: 0.08rem;
}

.hero-glass-schedule p {
    margin: 0;
}

.hero-glass-date {
    font-size: clamp(1.85rem, 2.7vw, 2.4rem);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    color: #ffffff;
}

.hero-glass-schedule p:not(.hero-glass-date) {
    font-size: clamp(1rem, 1.18vw, 1.16rem);
    font-weight: 800;
    line-height: 1.06;
    color: rgba(248, 255, 244, 0.98);
}

.hero-glass-ministry {
    font-size: clamp(1.05rem, 1.32vw, 1.26rem);
    font-weight: 700;
    line-height: 1.08;
    text-transform: uppercase;
    color: rgba(245, 255, 239, 0.94);
}

.hero-glass-ministry-emphasis {
    font-size: clamp(2.15rem, 3.1vw, 2.8rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
}

@media (min-width: 940px) {
    .hero-glass-theme span {
        white-space: nowrap;
    }
}

@media (max-width: 939px) {
    .hero {
        padding: 1rem;
    }

    .hero-glass-frame {
        --hero-panel-cutout-width: calc(100% - (var(--hero-panel-cutout-offset) * 2));
        --hero-panel-cutout-height: clamp(205px, 32vw, 250px);
        width: min(42rem, 100%);
        min-height: clamp(700px, 84svh, 820px);
    }

    .hero-glass-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: calc(var(--hero-panel-cutout-height) + var(--hero-panel-cutout-offset) + 2.1rem) var(--hero-panel-cutout-offset) 1.35rem;
    }

    .hero-glass-title {
        width: 100%;
        max-width: 22rem;
        display: grid;
        justify-items: center;
        text-align: center;
    }

    .hero-glass-title-main {
        font-size: clamp(2.8rem, 6vw, 3.9rem);
        line-height: 0.92;
    }

    .hero-glass-title-year {
        margin-top: -0.1rem;
        font-size: clamp(4.35rem, 9vw, 5.9rem);
        line-height: 0.84;
    }

    .hero-glass-info {
        width: 100%;
        max-width: 31rem;
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 1.25rem;
        margin-top: 1.15rem;
        text-align: center;
    }

    .hero-glass-theme {
        width: 100%;
        justify-items: center;
        text-align: center;
        font-size: clamp(2.5rem, 5vw, 3.35rem);
        line-height: 0.93;
    }

    .hero-glass-theme-scripture {
        font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    }

    .hero-glass-side {
        max-width: 19.5rem;
        gap: 1rem;
        padding-top: 0;
    }

    .hero-glass-date {
        font-size: clamp(1.8rem, 4vw, 2.3rem);
    }

    .hero-glass-schedule p:not(.hero-glass-date) {
        font-size: clamp(0.95rem, 1.7vw, 1.08rem);
    }

    .hero-glass-ministry {
        font-size: clamp(0.96rem, 1.6vw, 1.12rem);
    }

    .hero-glass-ministry-emphasis {
        font-size: clamp(1.95rem, 3.9vw, 2.55rem);
    }
}

@media (max-width: 719px) {
    .site-header {
        top: 0.75rem;
        right: 0.75rem;
    }

    .hero {
        --hero-bg-image-default: url("../img/bghero-mobile.jpg");
        padding: 0.85rem;
        background-position: center top;
        background-attachment: scroll;
    }

    .hero-glass-frame {
        width: min(100%, 30rem);
        --hero-panel-cutout-height: clamp(170px, 44vw, 205px);
        min-height: clamp(610px, 80svh, 700px);
    }

    .hero-glass-window {
        display: block;
    }

    .hero-glass-window-bg {
        background-position: center top;
    }

    .hero-glass-frame::before,
    .hero-glass-frame::after {
        content: none;
    }

    .hero-glass-copy {
        padding: calc(var(--hero-panel-cutout-height) + var(--hero-panel-cutout-offset) + 2.2rem) var(--hero-panel-cutout-offset) 1rem;
    }

    .hero-glass-title {
        max-width: min(100%, 20.5rem);
    }

    .hero-glass-title-main {
        font-size: clamp(2.05rem, 9vw, 2.95rem);
    }

    .hero-glass-title-year {
        font-size: clamp(3.35rem, 14vw, 4.65rem);
    }

    .hero-glass-info {
        width: min(100%, 20.5rem);
        max-width: none;
        gap: 0.95rem;
        margin-top: 0.85rem;
    }

    .hero-glass-theme {
        font-size: clamp(2.05rem, 8.7vw, 2.95rem);
    }

    .hero-glass-theme-scripture {
        font-size: clamp(1.08rem, 4.7vw, 1.45rem);
    }

    .hero-glass-side {
        max-width: min(100%, 19rem);
        gap: 0.85rem;
    }

    .hero-glass-date {
        font-size: clamp(1.55rem, 6.7vw, 2rem);
    }

    .hero-glass-schedule p:not(.hero-glass-date) {
        font-size: 0.94rem;
    }

    .hero-glass-ministry {
        font-size: 0.86rem;
    }

    .hero-glass-ministry-emphasis {
        font-size: clamp(1.5rem, 6.3vw, 1.9rem);
    }
}

@media (max-width: 389px) {
    .hero-glass-frame {
        --hero-panel-cutout-height: clamp(158px, 43vw, 180px);
        min-height: clamp(590px, 77svh, 650px);
    }

    .hero-glass-copy {
        padding: calc(var(--hero-panel-cutout-height) + var(--hero-panel-cutout-offset) + 2.45rem) var(--hero-panel-cutout-offset) 0.9rem;
    }

    .hero-glass-title {
        max-width: min(100%, 18.5rem);
    }

    .hero-glass-title-main {
        font-size: clamp(1.72rem, 8vw, 2.2rem);
    }

    .hero-glass-title-year {
        font-size: clamp(2.75rem, 12.4vw, 3.85rem);
    }

    .hero-glass-info {
        width: min(100%, 18.25rem);
        max-width: none;
        gap: 0.9rem;
    }

    .hero-glass-theme {
        font-size: clamp(1.62rem, 7.4vw, 2.05rem);
    }

    .hero-glass-theme-scripture {
        font-size: clamp(0.95rem, 4.2vw, 1.18rem);
    }

    .hero-glass-date {
        font-size: clamp(1.28rem, 5.9vw, 1.6rem);
    }

    .hero-glass-schedule p:not(.hero-glass-date) {
        font-size: 0.84rem;
    }

    .hero-glass-ministry {
        font-size: 0.76rem;
    }

    .hero-glass-ministry-emphasis {
        font-size: clamp(1.24rem, 5.7vw, 1.52rem);
    }
}
