.nv-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px 72px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 20px 64px;
}

.nv-arch {
    position: relative;
    width: min(350px, 76vw);
    aspect-ratio: 460 / 520;
    flex: 0 0 auto;
}

.nv-arch svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.nv-arch img {
    position: absolute;
    left: 21.74%;
    top: 13.46%;
    width: 56.52%;
    height: 80.77%;
    object-fit: cover;
    border-radius: 50% 50% 3% 3% / 31% 31% 2% 2%;
}

.nv-arch .nv-front {
    pointer-events: none;
}

.nv-text {
    flex: 1 1 360px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nv-text h1 {
    font-family: 'SnellRoundhand Script';
    font-weight: normal;
    font-size: clamp(40px, 6vw, 62px);
    line-height: 1.15;
    color: var(--rose);
    margin: 0;
}

.nv-text p {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--sage);
    line-height: 1.6;
}

.nv-rule {
    width: 240px;
    height: 22px;
}

.nv-facts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--sage);
}

.nv-facts li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nv-facts svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: none;
    stroke: #b8913f;
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nv-banner {
    background: var(--pink);
    padding: 44px 20px;
    flex-wrap: wrap;
}

.nv-banner h2 {
    font-size: clamp(32px, 7vw, 60px);
}

.nv-gallery {
    display: grid;
    grid-template-columns: repeat(4, 170px);
    justify-content: center;
    gap: 36px 30px;
    padding: 48px 20px 64px;
}

.nv-frame {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.nv-frame .pane {
    width: 100%;
    aspect-ratio: 200 / 250;
    border-radius: 85px 85px 6px 6px;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: 0 0 0 6px var(--cream), 0 0 0 8px var(--olive);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.nv-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nv-frame:hover .pane {
    transform: translateY(-4px);
    box-shadow: 0 0 0 6px var(--cream), 0 0 0 8px var(--olive), 0 14px 22px rgba(120, 127, 23, 0.18);
}

.nv-frame figcaption {
    text-align: center;
    color: var(--sage);
    font-size: 0.85rem;
    line-height: 1.35;
    margin-top: 6px;
}

.nv-frame .date {
    display: block;
    font-weight: bold;
    color: var(--olive);
}

@media (max-width: 960px) {
    .nv-gallery {
        grid-template-columns: repeat(3, minmax(0, 150px));
        gap: 28px 20px;
    }
}

@media (max-width: 600px) {
    .nv-gallery {
        grid-template-columns: repeat(2, minmax(0, 135px));
        gap: 28px 28px;
    }

    .nv-frame figcaption {
        font-size: 0.72rem;
    }
}

.nv-vine {
    stroke-dasharray: 900;
    animation: nv-draw 3.2s cubic-bezier(.6, .1, .3, 1) both;
}

.nv-vine.late {
    animation-delay: .5s;
}

.nv-bloom {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: nv-bloom 1.1s 2.6s cubic-bezier(.3, 1.6, .5, 1) both;
}

@keyframes nv-draw {
    from {
        stroke-dashoffset: 900;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes nv-bloom {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {

    .nv-vine,
    .nv-bloom {
        animation: none !important;
    }
}

#welcome {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: var(--cream);
    color: var(--olive);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    cursor: pointer;
    transition: opacity 0.6s ease;
}

#welcome.out {
    opacity: 0;
    pointer-events: none;
}

#welcome canvas {
    width: min(560px, 92vw);
    height: auto;
    aspect-ratio: 1120 / 680;
    display: block;
}

#welcome .wl-title {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(12px, 3vw, 16px);
    letter-spacing: 2px;
    animation: wl-flick 1.6s infinite;
}

#welcome .wl-sub {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(8px, 2.2vw, 10px);
    opacity: 0.75;
}

#welcome .wl-math {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #8a8f4a;
    text-align: center;
}

#welcome .wl-eq {
    font-size: 15px;
    color: var(--olive);
}

html.nv-lock,
html.nv-lock body {
    overflow: hidden;
}

@keyframes wl-flick {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}