html,
body.index-page {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}
.index-video-link {
    touch-action: pinch-zoom;
    position: fixed;
    inset: 0 0 auto;
    height: 100%;
    height: 100dvh;
    display: block;
    overflow: hidden;
    background: #ede7de;
    cursor: pointer;
}
.index-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.index-3d-word {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: block;
    width: clamp(120px, 12.865vw, 247px);
    aspect-ratio: 247 / 66;
    pointer-events: none;
}
.index-3d-word img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.index-cursor {
    position: fixed;
    z-index: 30001;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    mix-blend-mode: difference;
    font: 600 15px/1 Arial, sans-serif;
    letter-spacing: .04em;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}
.index-cursor__word {
    display: flex;
    align-items: center;
}
.index-cursor__word i,
.index-cursor__arrow {
    display: inline-block;
    font-style: normal;
    animation: index-cursor-bounce 1.2s ease-in-out infinite;
}
.index-cursor__word i:nth-child(1) { animation-delay: 0ms; }
.index-cursor__word i:nth-child(2) { animation-delay: 45ms; }
.index-cursor__word i:nth-child(3) { animation-delay: 90ms; }
.index-cursor__word i:nth-child(4) { animation-delay: 135ms; }
.index-cursor__word i:nth-child(5) { animation-delay: 180ms; }
.index-cursor__word i:nth-child(6) { animation-delay: 225ms; }
.index-cursor__word i:nth-child(7) { animation-delay: 270ms; }
.index-cursor__word i:nth-child(8) { animation-delay: 315ms; }
.index-cursor__word i:nth-child(9) { animation-delay: 360ms; }
.index-cursor__word i:nth-child(10) { animation-delay: 405ms; }
.index-cursor__word i:nth-child(11) { animation-delay: 450ms; }
.index-cursor__word i:nth-child(12) { animation-delay: 495ms; }
.index-cursor__word i:nth-child(13) { animation-delay: 540ms; }
.index-cursor__arrow {
    font-size: 18px;
    line-height: .8;
    animation-delay: 585ms;
}
html:not(.page-transition-running) .index-video-link:hover .index-cursor { opacity: 1; }
html.page-transition-running .index-cursor { opacity: 0; }
@keyframes index-cursor-bounce {
    0%, 45%, 100% { transform: translateY(0); }
    20% { transform: translateY(-4px); }
}
@media (hover: hover) and (pointer: fine) {
    body.index-page .index-video-link { cursor: none; }
}
@media (hover: none), (pointer: coarse) {
    .index-cursor { display: none; }
}
.home-loading { display: none; }

html.page-transition-initial-reveal .page-transition__panel {
    display: block;
    background-color: #ede7de;
    transform: translate3d(0, 0, 0);
}

html.page-transition-initial-reveal .page-transition__panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/fixed-paint.png') repeat;
    filter: brightness(0) invert(1);
    opacity: .4;
}

html.page-transition-initial-reveal .page-transition[data-home-loading="opening"] .page-transition__panel {
    transition: transform 780ms cubic-bezier(.77, 0, .175, 1);
}

html.page-transition-initial-reveal .page-transition[data-home-loading="opening"] .page-transition__panel--left {
    transform: translate3d(0, 100%, 0);
}

html.page-transition-initial-reveal .page-transition[data-home-loading="opening"] .page-transition__panel--right {
    transform: translate3d(0, -100%, 0);
}

html.page-transition-initial-reveal .home-loading {
    --loading-line-y: 45.25%;
    --loading-gutter: 18px;
    --loading-progress: 0;
    display: block;
    position: absolute;
    inset: 0;
    z-index: 10;
    font: 600 18px/1.1 Arial, sans-serif;
    letter-spacing: .17em;
    color: #4d4d4d;
    transition: opacity 350ms ease;
}

.page-transition[data-home-loading="fading"] .home-loading,
.page-transition[data-home-loading="opening"] .home-loading {
    opacity: 0;
}

.home-loading__line {
    position: absolute;
    top: var(--loading-line-y);
    inset-inline: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(var(--loading-progress));
    transform-origin: left center;
}

.home-loading__progress {
    position: absolute;
    bottom: calc(100% - var(--loading-line-y) + 14px);
    left: 0;
    box-sizing: border-box;
    width: max-content;
    min-width: calc(var(--loading-progress) * 100%);
    padding-inline: var(--loading-gutter);
    text-align: right;
    font-variant-numeric: tabular-nums;
    visibility: hidden;
}

.page-transition[data-home-loading]:not([data-home-loading="entering"]) .home-loading__progress {
    visibility: visible;
}

.home-loading__label,
.home-loading__brand {
    position: absolute;
    top: calc(var(--loading-line-y) + 12px);
    opacity: 0;
    transition: opacity 600ms ease 200ms;
}

.page-transition[data-home-loading] .home-loading__label,
.page-transition[data-home-loading] .home-loading__brand {
    opacity: 1;
}

.home-loading__label {
    left: var(--loading-gutter);
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-loading__arrow {
    width: 13px;
    height: 13px;
    background: url('../img/project/page/media-icon.png') center / contain no-repeat;
    filter: brightness(0) saturate(100%) invert(30%);
}

.home-loading__brand {
    top: calc(var(--loading-line-y) + 8px);
    right: 12px;
    display: block;
    width: clamp(120px, 12.5vw, 240px);
    height: auto;
}

@media (max-width: 767px), (min-width: 768px) and (orientation: portrait) {
    .index-video-link::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 0;
        background: url('../img/index/index_pic_ph-poster.jpg?v=20261119134038') center / cover no-repeat;
        pointer-events: none;
    }

    .index-video-link.has-home-video-frame::before {
        opacity: 0;
        transition: opacity 320ms ease-out;
    }

    html.page-transition-initial-reveal .home-loading {
        --loading-line-y: 50%;
        --loading-gutter: 14px;
        font-size: 15px;
    }

    html.page-transition-initial-reveal .page-transition__panel {
        width: 100%;
        height: calc(50% + 1px);
    }

    html.page-transition-initial-reveal .page-transition__panel--right {
        top: auto;
        bottom: 0;
    }

    html.page-transition-initial-reveal .page-transition[data-home-loading="opening"] .page-transition__panel--left {
        transform: translate3d(-100%, 0, 0);
    }

    html.page-transition-initial-reveal .page-transition[data-home-loading="opening"] .page-transition__panel--right {
        transform: translate3d(100%, 0, 0);
    }
}



/* The homepage brand is static and sits above the video link. */
body.index-page {
    --vw-base: calc(100vw / 1920);
}
.index-page .site-menu { display: none; }
.index-page .home-logo {
    cursor: default;
}
.index-page .home-logo .icon img {
    display: block;
    width: 100%;
    height: auto;
}
@media (max-width: 767px),
(min-width: 768px) and (max-width: 1399px) and (orientation: portrait) {
    .index-page .site-menu { display: block; }
    .index-page .site-menu:not(.is-open) { --site-menu-color: #fff; }

    .index-page .home-logo .icon {
        width: calc(32 * var(--vw-base));
    }
    .index-page .home-logo .text {
        padding: calc(4 * var(--vw-base)) 0 0 calc(10 * var(--vw-base));
    }
}
