html,
body {
    height: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100svh;
    font-family: Georgia, 'Times New Roman', serif;
    background: #f3efe6;
    color: #1d1a14;
    overflow: hidden;
}

body.lightbox-open {
    overflow: hidden;
}

a {
    color: inherit;
}

.hero {
    position: relative;
    height: 100svh;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch;
    justify-items: center;
    padding-inline: 16px;
    overflow: hidden;
    isolation: isolate;
    background: #e9e1d2;
}

.hero-bg {
    position: absolute;
    inset: -5%;
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    transform: translate3d(0, 0, 0) scale(1.07);
    opacity: 1;
    filter: saturate(1) blur(0);
    transition: opacity 1.35s ease, filter 1.35s ease;
    will-change: transform;
    z-index: -5;
}

.hero-inner {
    width: min(980px, 100%);
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 5vh, 56px) 0 18px;
}

.logo-wrap {
    --intro-y: 0px;
    --intro-scale: 1;
    width: min(520px, 72vw);
    transform: translateY(calc(var(--logo-y, 0px) + var(--intro-y))) scale(var(--intro-scale));
    opacity: 1;
    transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.95s ease;
    will-change: transform;
}

.logo-wrap img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 25px rgba(54, 38, 17, 0.16));
}

.hero-note {
    margin-top: 10px;
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.1;
    color: rgba(45, 36, 15, 0.8);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.9s ease 0.28s, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.28s;
}

.photo-strip {
    position: relative;
    z-index: 12;
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 8px;
    margin: 0 auto 22px;
}

.photo-strip a {
    position: relative;
    height: 72px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(43, 30, 12, 0.18);
    background: rgba(255, 255, 255, 0.38);
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease, opacity 0.65s ease;
}

.photo-strip a:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 36px rgba(43, 30, 12, 0.26);
}

.photo-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.92) contrast(1.02);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.photo-strip a:hover img {
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.04);
}

body:not(.is-ready) .hero-bg {
    opacity: 0;
    filter: saturate(0.86) blur(10px);
}

body:not(.is-ready) .logo-wrap {
    --intro-y: 34px;
    --intro-scale: 0.94;
    opacity: 0;
}

body:not(.is-ready) .hero-note {
    opacity: 0;
    transform: translateY(18px);
}

body:not(.is-ready) .photo-strip a {
    opacity: 0;
    transform: translateY(24px);
}

.photo-strip a:nth-child(1) {
    transition-delay: 0.32s;
}

.photo-strip a:nth-child(2) {
    transition-delay: 0.4s;
}

.photo-strip a:nth-child(3) {
    transition-delay: 0.48s;
}

.photo-strip a:nth-child(4) {
    transition-delay: 0.56s;
}

.photo-strip a:nth-child(5) {
    transition-delay: 0.64s;
}

.photo-strip a:nth-child(6) {
    transition-delay: 0.72s;
}

.photo-strip a:nth-child(7) {
    transition-delay: 0.8s;
}

.photo-strip a:nth-child(8) {
    transition-delay: 0.88s;
}

.photo-strip a:nth-child(9) {
    transition-delay: 0.96s;
}

.photo-strip a:nth-child(10) {
    transition-delay: 1.04s;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 56px 24px 24px;
    background: rgba(17, 13, 8, 0.88);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-content {
    max-width: min(1200px, 100%);
    max-height: 100%;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 96px);
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 18px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
}

.lightbox-close:hover {
    opacity: 0.78;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-50%) scale(1.04);
}

.lightbox-prev {
    left: 18px;
}

.lightbox-next {
    right: 18px;
}

@media (max-width: 900px) {
    .logo-wrap {
        width: min(420px, 74vw, 40svh);
    }

    .photo-strip {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .photo-strip a {
        height: 62px;
    }
}

@media (max-width: 560px) {
    .hero {
        padding-inline: 10px;
    }

    .hero-bg {
        background-position: 58% center;
    }

    .hero-inner {
        width: 100%;
        justify-content: flex-start;
        padding-top: clamp(44px, 10vh, 88px);
        padding-bottom: 14px;
    }

    .logo-wrap {
        width: min(360px, 90vw, 42svh);
    }

    .hero-note {
        margin-top: 10px;
        font-size: clamp(18px, 5vw, 24px);
    }

    .photo-strip {
        width: 100%;
        display: flex;
        gap: 8px;
        margin-bottom: 12px;
        padding: 0 2px 4px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .photo-strip a {
        flex: 0 0 88px;
        height: 62px;
        border-radius: 12px;
        scroll-snap-align: start;
    }

    .photo-strip::-webkit-scrollbar {
        display: none;
    }

    .lightbox {
        padding: 52px 12px 12px;
    }

    .lightbox-image {
        max-height: calc(100vh - 72px);
        border-radius: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 36px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 34px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-height: 760px) {
    .hero-inner {
        justify-content: flex-start;
        padding-top: clamp(24px, 6vh, 48px);
    }

    .logo-wrap {
        width: min(400px, 72vw, 42svh);
    }

    .hero-note {
        margin-top: 8px;
        font-size: clamp(18px, 2.2vw, 26px);
    }

    .photo-strip {
        display: flex;
        width: 100%;
        margin-bottom: 14px;
        padding: 0 2px 4px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .photo-strip a {
        flex: 0 0 88px;
        height: 58px;
        border-radius: 12px;
        scroll-snap-align: start;
    }

    .photo-strip::-webkit-scrollbar {
        display: none;
    }
}

@media (max-height: 620px) {
    .hero-inner {
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .logo-wrap {
        width: min(320px, 72vw, 42svh);
    }

    .photo-strip {
        gap: 6px;
        margin-bottom: 10px;
    }

    .photo-strip a {
        flex-basis: 80px;
        height: 52px;
    }
}
