/* Home — portal hero */

.hc-page-home .np-main {
    padding-bottom: calc(var(--np-nav-h) + var(--np-safe-bottom) + 1rem);
}

.hc-page-home .hc-env__tree {
    opacity: 0.1;
}

/* -------------------------------------------------------------------------- */
/* Portal hero — first viewport, editorial                                     */
/* -------------------------------------------------------------------------- */

.hc-portal {
    position: relative;
    isolation: isolate;
    min-height: min(92dvh, 820px);
    display: flex;
    flex-direction: column;
    padding-bottom: 2rem;
    overflow: hidden;
}

.hc-portal__scene {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: clamp(280px, 52vw, 480px);
    pointer-events: none;
}

.hc-portal__banner {
    position: relative;
    width: 100%;
    height: clamp(240px, 46vw, 420px);
    overflow: hidden;
}

.hc-portal__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.02);
}

.hc-portal__banner-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--host-bg) 18%, transparent) 0%,
            transparent 38%,
            color-mix(in srgb, var(--hc-mist) 62%, transparent) 72%,
            var(--host-bg) 100%);
}

.hc-portal__arch {
    position: absolute;
    bottom: -2px;
    border: 2px solid color-mix(in srgb, var(--hc-sand) 70%, #fff);
    border-bottom: none;
    background: color-mix(in srgb, var(--hc-mist) 15%, transparent);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.hc-portal__arch--l {
    left: 8%;
    width: 22%;
    height: 38%;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    opacity: 0.55;
}

.hc-portal__arch--c {
    left: 50%;
    transform: translateX(-50%);
    width: 28%;
    height: 48%;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    opacity: 0.7;
    border-width: 2.5px;
}

.hc-portal__arch--r {
    right: 8%;
    width: 22%;
    height: 38%;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    opacity: 0.55;
}

.hc-portal__tree {
    position: absolute;
    left: -1%;
    bottom: -1.5rem;
    width: min(34vw, 180px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 28px color-mix(in srgb, var(--hc-sage) 18%, transparent));
    z-index: 2;
    opacity: 0.92;
}

.hc-portal__body {
    position: relative;
    z-index: 3;
    margin-top: auto;
    padding-top: 0;
    transform: translateY(-3.5rem);
}

.hc-portal__signboard {
    position: relative;
    padding: 1.65rem 1.45rem 1.35rem;
    border-radius: var(--host-r-xl);
    background: color-mix(in srgb, var(--hc-mist) 92%, #fff);
    border: 1px solid color-mix(in srgb, var(--hc-sage) 18%, var(--hc-mist));
    box-shadow:
        0 24px 56px color-mix(in srgb, var(--hc-sage) 10%, transparent),
        inset 0 1px 0 color-mix(in srgb, #fff 55%, var(--hc-mist));
    overflow: hidden;
}

.hc-portal__signboard-stone {
    position: absolute;
    inset: 0;
    background: var(--hc-niche-frame, url('../../images/cafe/stone-wall.jpg')) center / cover no-repeat;
    opacity: 0.07;
    pointer-events: none;
}

.hc-portal__signboard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(42%, 160px);
    height: 4px;
    border-radius: 0 0 8px 8px;
    background: var(--hc-sage);
    opacity: 0.65;
}

.hc-portal__head {
    position: relative;
    text-align: center;
    padding-top: 0.35rem;
}

.hc-portal__head .np-display,
.hc-portal__title {
    margin: 0 0 0.35rem;
    font-size: clamp(2.4rem, 8vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--host-text);
}

.hc-portal__tagline {
    margin: 0 auto;
    max-width: 28ch;
    font-size: clamp(1.05rem, 3.2vw, 1.22rem);
    line-height: 1.65;
    font-weight: 600;
    color: color-mix(in srgb, var(--hc-sage) 65%, #000);
}

.hc-portal__venue {
    margin: 0.65rem auto 0;
    max-width: 32ch;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--host-text-muted);
    opacity: 0.88;
}

.hc-portal__enter {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 52px;
    margin-top: 1.45rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--host-r-md);
    font-size: 1rem;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--hc-sage) 26%, transparent);
}

.hc-portal__enter-icon {
    font-size: 0.9rem;
    opacity: 0.9;
    transition: transform var(--np-transition);
}

.hc-portal__enter:hover .hc-portal__enter-icon,
.hc-portal__enter:focus-visible .hc-portal__enter-icon {
    transform: translateX(-4px);
}

.hc-portal__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 1rem;
}

.hc-portal__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--hc-ink, color-mix(in srgb, var(--hc-sage) 42%, #000));
    background: color-mix(in srgb, var(--hc-sand) 45%, var(--hc-mist));
    border: 1px solid color-mix(in srgb, var(--hc-sage) 16%, var(--hc-mist));
    transition: background var(--np-transition), transform var(--np-transition);
}

.hc-portal__link i {
    font-size: 0.82rem;
    color: color-mix(in srgb, var(--hc-sage) 75%, #000);
}

.hc-portal__link:hover,
.hc-portal__link:focus-visible {
    background: color-mix(in srgb, var(--hc-sage) 18%, var(--hc-mist));
    transform: translateY(-1px);
}

.hc-portal__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 1.25rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: color-mix(in srgb, var(--hc-sand) 52%, var(--hc-mist));
    border: 1px solid color-mix(in srgb, var(--hc-sage) 18%, var(--hc-sand));
}

.hc-portal__stat {
    flex: 1;
    text-align: center;
    margin: 0;
}

.hc-portal__stat dd {
    margin: 0;
    font-family: var(--np-font-display);
    font-weight: 800;
    font-size: 1.55rem;
    line-height: 1.1;
    color: var(--hc-ink, color-mix(in srgb, var(--hc-sage) 42%, #000));
}

.hc-portal__stat dt {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--hc-ink-soft, color-mix(in srgb, var(--hc-sage) 58%, #000));
}

.hc-portal__stat-divider {
    width: 1px;
    align-self: stretch;
    min-height: 2.5rem;
    background: color-mix(in srgb, var(--hc-sage) 22%, var(--hc-mist));
    margin-inline: 0.5rem;
}

/* -------------------------------------------------------------------------- */
/* Category alcoves section                                                    */
/* -------------------------------------------------------------------------- */

.hc-alcoves .np-section-head {
    text-align: center;
}

.hc-alcoves .np-section-head h2 {
    color: color-mix(in srgb, var(--hc-sage) 52%, #000);
}

.np-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem 1rem;
    color: color-mix(in srgb, var(--hc-sage) 48%, var(--hc-mist));
    font-style: italic;
}

/* Memory wall */
.np-wall {
    position: relative;
    padding: 2.5rem 0 3rem;
}

.np-wall__head { text-align: center; margin-bottom: 1.75rem; }

.np-wall__title {
    margin: 0.5rem 0 0.35rem;
    font-family: var(--np-font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: color-mix(in srgb, var(--hc-sage) 52%, #000);
}

.np-wall__lead { margin: 0; color: color-mix(in srgb, var(--hc-sage) 48%, var(--hc-mist)); }

.np-wall__board {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.85rem;
}

.np-wall__shot {
    margin: 0;
    transform: translate(var(--jx, 0), var(--jy, 0)) rotate(var(--jr, 0deg));
}

.np-wall__shot--hero { grid-column: span 3; grid-row: span 2; }
.np-wall__shot--wide { grid-column: span 3; }
.np-wall__shot--tall { grid-column: span 2; grid-row: span 2; }
.np-wall__shot--sq { grid-column: span 2; }

.np-wall__frame {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--hc-sage) 12%, transparent);
    transition: transform var(--np-transition);
}

.np-wall__frame:hover { transform: scale(1.03); }

.np-wall__frame img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.np-wall__shot--hero .np-wall__frame img,
.np-wall__shot--tall .np-wall__frame img { aspect-ratio: auto; min-height: 100%; }

.np-wall__caption {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: color-mix(in srgb, var(--hc-sage) 48%, var(--hc-mist));
    text-align: center;
}

.np-wall-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
}

.np-wall-lightbox__veil {
    position: absolute;
    inset: 0;
    border: none;
    background: color-mix(in srgb, var(--hc-sage) 42%, transparent);
    cursor: pointer;
}

.np-wall-lightbox__panel {
    position: relative;
    z-index: 1;
    width: min(560px, calc(100% - 2rem));
    padding: 1rem;
    border-radius: var(--np-r-xl);
    background: color-mix(in srgb, var(--hc-mist) 92%, var(--hc-sand));
    box-shadow: var(--np-shadow);
}

.np-wall-lightbox__close {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--hc-sand);
    cursor: pointer;
    font-size: 1.2rem;
}

.np-wall-lightbox__panel img {
    width: 100%;
    border-radius: var(--np-r-lg);
    max-height: 70vh;
    object-fit: contain;
}

.np-wall-lightbox__caption {
    margin: 0.75rem 0 0;
    text-align: center;
    color: color-mix(in srgb, var(--hc-sage) 48%, var(--hc-mist));
}

@media (max-width: 900px) {
    .np-wall__board { grid-template-columns: repeat(2, 1fr); }
    .np-wall__shot--hero,
    .np-wall__shot--wide,
    .np-wall__shot--tall,
    .np-wall__shot--sq { grid-column: span 1; grid-row: auto; }
}

@media (max-width: 360px) {
    .hc-portal__signboard {
        padding: 1.15rem 1rem;
    }

    .hc-portal__head .np-display,
    .hc-portal__title {
        font-size: clamp(2rem, 10vw, 2.4rem);
    }

    .hc-portal__tagline {
        font-size: 0.98rem;
    }
}

@media (max-width: 720px) {
    .hc-portal {
        min-height: min(88dvh, 720px);
    }

    .hc-portal__scene,
    .hc-portal__banner {
        min-height: clamp(220px, 56vw, 340px);
        height: clamp(220px, 56vw, 340px);
    }

    .hc-portal__tree {
        width: min(40vw, 140px);
        bottom: -1rem;
        opacity: 0.85;
    }

    .hc-portal__body {
        transform: translateY(-2.5rem);
    }

    .hc-portal__signboard {
        padding: 1.25rem 1.1rem 1.1rem;
        border-radius: 22px;
    }

    .hc-portal__head .np-display {
        font-size: clamp(1.55rem, 6vw, 2rem);
    }

    .hc-portal__enter {
        min-height: 50px;
        font-size: 0.98rem;
    }

    .hc-portal__arch--l,
    .hc-portal__arch--r {
        display: none;
    }

    .hc-portal__arch--c {
        width: 38%;
        height: 42%;
    }
}

@media (min-width: 721px) {
    .hc-portal {
        min-height: clamp(520px, 72dvh, 700px);
        justify-content: flex-end;
        padding-bottom: 2rem;
    }

    .hc-portal__scene {
        position: absolute;
        inset: 0;
        flex: none;
        min-height: 100%;
        height: 100%;
    }

    .hc-portal__banner {
        position: absolute;
        inset: 0;
        height: 100%;
        min-height: 100%;
        max-height: none;
    }

    .hc-portal__banner img {
        object-position: center center;
        transform: scale(1.06);
    }

    .hc-portal__banner-veil {
        background:
            linear-gradient(180deg,
                color-mix(in srgb, var(--host-bg) 28%, transparent) 0%,
                color-mix(in srgb, var(--host-bg) 6%, transparent) 30%,
                color-mix(in srgb, var(--hc-mist) 38%, transparent) 55%,
                color-mix(in srgb, var(--host-bg) 78%, var(--hc-mist)) 80%,
                var(--host-bg) 100%);
    }

    .hc-portal__body {
        transform: none;
        margin-top: 0;
    }

    .hc-portal__arch--l {
        left: 10%;
        width: 18%;
        height: 50%;
    }

    .hc-portal__arch--c {
        width: 22%;
        height: 58%;
    }

    .hc-portal__arch--r {
        right: 10%;
        width: 18%;
        height: 50%;
    }

    .hc-portal__tree {
        bottom: 8%;
        left: 1%;
        width: min(200px, 16vw);
    }

    .hc-portal__signboard {
        max-width: 520px;
        margin-inline: auto;
        background: color-mix(in srgb, var(--hc-mist) 90%, #fff);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

@media (min-width: 961px) {
    .hc-portal {
        min-height: clamp(560px, 75dvh, 720px);
    }

    .hc-portal__banner img {
        object-position: center 40%;
    }

    .hc-portal__body .np-container {
        display: flex;
        justify-content: flex-start;
    }

    .hc-portal__signboard {
        max-width: 440px;
        width: 100%;
        margin-inline-start: auto;
        /* margin-inline-end: 0; */
        padding: 1.85rem 2rem 1.5rem;
        background: color-mix(in srgb, var(--hc-mist) 86%, #fff);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .hc-portal__tree {
        left: 4%;
        bottom: 10%;
        width: min(240px, 14vw);
    }
}

@media (min-width: 1100px) {
    .hc-portal__signboard {
        max-width: 420px;
    }

    .hc-portal__tree {
        left: 5%;
        width: 260px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hc-portal__enter-icon {
        transition: none;
    }
}
