:root {
    --hl-ink: #142126;
    --hl-ivory: #f7f2e9;
    --hl-paper: #fffdf9;
    --hl-copper: #a8643a;
    --hl-line: #d8cec1;
    --hl-gallery-lift: 0px;
}

* { box-sizing: border-box; }

html { background: var(--hl-ink); }

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--hl-ink);
    color: var(--hl-ink);
    font-family: Manrope, sans-serif;
}

.hl-page {
    min-height: 100dvh;
    padding: 2rem 1rem 3rem;
}

.hl-shell {
    width: min(430px, 100%);
    max-width: 100vw;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(247, 242, 233, .24);
    background: var(--hl-paper);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

.hl-form-panel { position: relative; min-width: 0; padding: 2rem 1.6rem 1.2rem; }
.hl-brand { display: flex; width: max-content; margin: 0 auto 1.4rem; }
.hl-brand img { width: 4.2rem; height: 2.7rem; object-fit: contain; border-radius: .25rem; }
.hl-heading { text-align: center; }
.hl-eyebrow { color: var(--hl-copper); font-size: .58rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hl-heading h1 { max-width: 12ch; margin: .35rem auto .45rem; font-size: 1.55rem; line-height: 1.05; letter-spacing: -.04em; }
.hl-heading h1 em { font-family: Italiana, serif; font-size: 1.18em; font-style: normal; font-weight: 400; }
.hl-heading p { margin: 0; font-size: .7rem; }
.hl-heading a, .hl-options a { color: var(--hl-copper); font-weight: 800; }
.hl-alert { margin: 1.1rem 0 0; padding: .7rem .8rem; border-left: 3px solid #a33b31; background: #fff1ee; color: #7b2720; font-size: .68rem; line-height: 1.45; }
.hl-form { min-width: 0; display: grid; gap: .9rem; margin-top: 1.5rem; }
.hl-field { min-width: 0; display: grid; gap: .4rem; }
.hl-field > span:first-child { font-size: .68rem; font-weight: 800; }
.hl-field input { width: 100%; height: 2.75rem; padding: 0 .8rem; border: 1px solid var(--hl-line); border-radius: .35rem; outline: none; background: #f8f4ee; color: var(--hl-ink); font: inherit; font-size: .76rem; }
.hl-field input:focus { border-color: var(--hl-copper); box-shadow: 0 0 0 3px rgba(168, 100, 58, .12); }
.hl-password { position: relative; display: block; }
.hl-password input { padding-right: 4.2rem; }
.hl-password button { position: absolute; top: 50%; right: .65rem; transform: translateY(-50%); padding: .25rem; border: 0; background: transparent; color: #6e6258; cursor: pointer; font-size: .62rem; font-weight: 800; }
.hl-options { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .65rem; }
.hl-options label { display: flex; align-items: center; gap: .35rem; }
.hl-options input { accent-color: var(--hl-copper); }
.hl-submit { height: 2.75rem; border: 0; border-radius: .35rem; background: var(--hl-ink); color: var(--hl-ivory); cursor: pointer; font: inherit; font-size: .75rem; font-weight: 800; }
.hl-submit:hover { background: #24383f; }
.hl-submit:disabled { opacity: .65; cursor: wait; }
.hl-divider { display: grid; grid-template-columns: 1fr auto 1fr; gap: .65rem; align-items: center; margin: 1rem 0; }
.hl-divider span { height: 1px; background: var(--hl-line); }
.hl-divider small { color: #877b70; font-size: .58rem; }
.hl-google { height: 2.75rem; padding: 0 .8rem; border: 1px solid var(--hl-line); border-radius: .35rem; display: grid; grid-template-columns: 1.3rem 1fr 1.3rem; align-items: center; background: #fff; color: var(--hl-ink); font-size: .7rem; font-weight: 800; text-align: center; text-decoration: none; }
.hl-google:hover { background: #f8f4ee; }
.hl-google img { width: 1.15rem; }
.hl-footer { min-width: 0; display: flex; align-items: center; gap: .75rem; margin-top: 1.3rem; color: #8b8177; font-size: .55rem; }
.hl-footer span { margin-right: auto; }
.hl-footer a { color: inherit; text-decoration: none; }

.hl-gallery {
    height: clamp(650px, 92dvh, 820px);
    padding: .45rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .45rem;
    overflow: hidden;
    background: #0d181c;
}

.hl-gallery-column {
    --hl-column-start: 1.2rem;
    display: grid;
    grid-template-rows: 1.15fr .9fr 1.25fr;
    gap: .45rem;
    min-height: calc(100% + 7rem);
    transform: translate3d(0, calc(var(--hl-column-start) - var(--hl-gallery-lift)), 0);
    will-change: transform;
}

.hl-gallery-column.is-up {
    --hl-column-start: -1.6rem;
    grid-template-rows: .85fr 1.3fr 1fr;
}

.hl-gallery-column.is-low {
    --hl-column-start: 2.8rem;
    grid-template-rows: 1fr 1.15fr .95fr;
}

.hl-gallery img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.hl-gallery-column:first-child img:first-child { object-position: 48% 24%; }
.hl-gallery-column:nth-child(2) img:first-child { object-position: 50% 40%; }

@media (max-width: 520px) {
    .hl-page { width: 100%; padding: 0; }
    .hl-shell { width: 100%; max-width: 100%; border: 0; }
    .hl-form-panel {
        width: 100%;
        padding: max(1.5rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) 1rem max(1.25rem, env(safe-area-inset-left));
    }
    .hl-options { gap: .65rem; }
    .hl-options a { flex: 0 0 auto; }
    .hl-footer { flex-wrap: wrap; row-gap: .45rem; }
    .hl-footer span { flex: 1 0 100%; margin-right: 0; }
    .hl-gallery {
        width: 100%;
        height: auto;
        padding: .4rem;
        align-items: start;
    }
    .hl-gallery-column,
    .hl-gallery-column.is-up,
    .hl-gallery-column.is-low {
        min-width: 0;
        min-height: 0;
        grid-template-rows: none;
        grid-auto-rows: auto;
        transform: none;
        will-change: auto;
    }
    .hl-gallery img {
        display: block;
        aspect-ratio: 2 / 3;
        object-fit: cover;
    }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
    .hl-gallery-column { transform: translateY(var(--hl-column-start)); will-change: auto; }
}

.hl-back { position: absolute; top: .5rem; left: .5rem; display: grid; place-items: center; width: 44px; height: 44px; color: var(--hl-ink); border-radius: 50%; text-decoration: none; }
.hl-back svg { width: 22px; height: 22px; }
.hl-back:hover { background: var(--hl-ivory); }
.hl-back:focus-visible { outline: 2px solid var(--hl-copper); outline-offset: 2px; }
