:root {
    --play: running;
}

html {
    background: #0a0a0a;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #f0f0f0;
    font-family: "Shippori Mincho B1", serif;
}

body.overlay-open {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #ffffff;
}

button {
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
}

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes drift {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@keyframes fog1 {
    0% { transform: translate(-10%, -6%) scale(1); }
    50% { transform: translate(12%, 8%) scale(1.3); }
    100% { transform: translate(-10%, -6%) scale(1); }
}

@keyframes fog2 {
    0% { transform: translate(8%, 10%) scale(1.15); }
    50% { transform: translate(-12%, -8%) scale(0.85); }
    100% { transform: translate(8%, 10%) scale(1.15); }
}

@keyframes fog3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-8%, 14%) scale(1.35); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes float1 {
    0% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
    100% { transform: translateY(0); }
}

@keyframes float2 {
    0% { transform: translateY(0); }
    50% { transform: translateY(-22px); }
    100% { transform: translateY(0); }
}

@keyframes float3 {
    0% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
    100% { transform: translateY(0); }
}

@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate="fade-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fog {
    position: fixed;
    inset: -20%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.fog-blob {
    position: absolute;
    border-radius: 50%;
    animation-play-state: var(--play);
}

.fog-blob-one {
    top: 6%;
    left: 10%;
    width: 58vw;
    height: 58vw;
    background: radial-gradient(circle, rgba(215, 219, 230, 0.12) 0%, rgba(215, 219, 230, 0) 65%);
    animation: fog1 52s ease-in-out infinite;
    animation-play-state: var(--play);
}

.fog-blob-two {
    right: 6%;
    bottom: 4%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(238, 238, 242, 0.1) 0%, rgba(238, 238, 242, 0) 65%);
    animation: fog2 67s ease-in-out infinite;
    animation-play-state: var(--play);
}

.fog-blob-three {
    top: 38%;
    left: 42%;
    width: 46vw;
    height: 46vw;
    background: radial-gradient(circle, rgba(198, 205, 224, 0.11) 0%, rgba(198, 205, 224, 0) 65%);
    animation: fog3 43s ease-in-out infinite;
    animation-play-state: var(--play);
}

.masthead {
    padding: 26px clamp(20px, 5vw, 44px) 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sz-trigger {
    padding: 4px 6px;
    background: transparent;
    color: #f0f0f0;
    font: 700 14px "Shippori Mincho B1", serif;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

.sz-trigger:hover {
    background: #f0f0f0;
    color: #0a0a0a;
}

.desktop-nav {
    display: flex;
    gap: 32px;
    color: rgba(240, 240, 240, 0.6);
    font: 400 11px "Shippori Mincho B1", serif;
    letter-spacing: 0.14em;
}

.desktop-nav a,
.footer-socials a,
.footer-legal a {
    transition: color 0.2s;
}

.desktop-nav .is-active,
.mobile-nav .is-active {
    color: #ffffff;
}

.menu-toggle {
    display: none;
    padding: 8px 2px;
    background: transparent;
    color: rgba(240, 240, 240, 0.8);
    font: 400 11px "Shippori Mincho B1", serif;
    letter-spacing: 0.28em;
    cursor: pointer;
}

.menu-toggle:hover {
    color: #ffffff;
}

.morph-heading {
    margin: 0;
    overflow: hidden;
    color: #f0f0f0;
    font: 400 clamp(30px, 6.6vw, 104px) / 1.1 "Shippori Mincho B1", serif;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.morph-cursor {
    display: inline-block;
    width: 0.42em;
    height: 0.07em;
    margin-left: 0.06em;
    background: #f0f0f0;
    vertical-align: baseline;
    animation: blink 1.1s step-end infinite;
    animation-play-state: var(--play);
}

.roles {
    display: flex;
    gap: 28px;
    margin-top: 16px;
    color: rgba(240, 240, 240, 0.45);
    font: 400 11px "Shippori Mincho B1", serif;
    letter-spacing: 0.22em;
}

.roles-divider {
    opacity: 0.4;
}

.error-page {
    position: relative;
    z-index: 1;
    min-height: 70vh;
    padding: clamp(60px, 9vw, 100px) clamp(20px, 5vw, 44px);
}

.error-content {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.error-title {
    margin: 0.67em 0;
    font-size: 2em;
    font-weight: 700;
}

.error-desc {
    margin: 1em 0;
}

.error-link {
    color: inherit;
    text-decoration: none;
}

.discography {
    box-sizing: border-box;
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(64px, 10vw, 110px) clamp(20px, 5vw, 44px) clamp(72px, 11vw, 140px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.discography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 26vw, 220px), 1fr));
    gap: clamp(28px, 5vw, 72px) clamp(20px, 3.5vw, 48px);
    align-items: start;
}

.release-item {
    display: block;
    width: 100%;
    margin-top: var(--desktop-offset);
    background: transparent;
    color: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    animation-delay: var(--float-delay);
    animation-play-state: var(--play);
}

.release-item.float-one {
    animation-name: float1;
    animation-duration: 9s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.release-item.float-two {
    animation-name: float2;
    animation-duration: 12s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.release-item.float-three {
    animation-name: float3;
    animation-duration: 7.5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.release-item.offset-zero { --desktop-offset: 0; }
.release-item.offset-one { --desktop-offset: 44px; }
.release-item.offset-two { --desktop-offset: 18px; }
.release-item.offset-three { --desktop-offset: 60px; }

.release-thumb {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #141414;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    transition: box-shadow 0.4s;
}

.release-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.35);
    transition: filter 0.4s, transform 0.4s;
}

.release-item:hover .release-thumb,
.release-item:focus-visible .release-thumb {
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.75);
}

.release-item:hover .release-thumb img,
.release-item:focus-visible .release-thumb img {
    filter: grayscale(0);
}

.release-caption {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: rgba(240, 240, 240, 0.35);
    font: 400 10px "Shippori Mincho B1", serif;
    letter-spacing: 0.18em;
}

.release-caption-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.release-caption-year {
    flex: none;
    font-family: "Inter", sans-serif;
    font-weight: 200;
}

.load-error {
    grid-column: 1 / -1;
    color: rgba(240, 240, 240, 0.5);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 60px clamp(20px, 5vw, 44px);
}

.footer-sz {
    color: rgba(240, 240, 240, 0.5);
    font-size: 13px;
}

.footer-socials {
    display: flex;
    gap: 30px;
    color: rgba(240, 240, 240, 0.55);
    font: 400 11px "Shippori Mincho B1", serif;
    letter-spacing: 0.14em;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 26px;
    color: rgba(240, 240, 240, 0.3);
    font: 400 10px "Shippori Mincho B1", serif;
    letter-spacing: 0.14em;
}

.footer-legal a {
    color: rgba(240, 240, 240, 0.4);
}

.back-to-top {
    position: fixed;
    right: clamp(16px, 3vw, 30px);
    bottom: clamp(16px, 3vw, 30px);
    z-index: 80;
    display: flex;
    width: 48px;
    height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(6px);
    color: rgba(240, 240, 240, 0.55);
    font: 400 8px "Shippori Mincho B1", serif;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.back-to-top:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(20, 20, 20, 0.85);
}

.back-to-top-arrow {
    color: rgba(240, 240, 240, 0.85);
    font: 200 15px/1 "Inter", sans-serif;
}

.text-close {
    width: fit-content;
    padding: 6px 0;
    background: transparent;
    color: rgba(240, 240, 240, 0.4);
    font: 400 10px "Shippori Mincho B1", serif;
    letter-spacing: 0.3em;
    cursor: pointer;
    transition: color 0.2s;
}

.text-close:hover {
    color: #ffffff;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 clamp(24px, 8vw, 60px);
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    animation: fadein 0.25s ease;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #f0f0f0;
    font: 400 24px/1 "Shippori Mincho B1", serif;
    letter-spacing: 0.08em;
}

.mobile-menu-close {
    align-self: flex-start;
    margin-top: 40px;
    font-size: 11px;
}

.philosophy-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
    cursor: pointer;
    animation: fadein 0.25s ease;
}

.philosophy-content {
    display: flex;
    align-items: center;
    gap: 60px;
    cursor: default;
}

.philosophy-card {
    width: 240px;
    padding: 26px 22px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    text-align: center;
    animation: drift 7s ease-in-out infinite;
    animation-play-state: var(--play);
}

.philosophy-year {
    color: rgba(240, 240, 240, 0.5);
    font: 400 12px "Shippori Mincho B1", serif;
    text-align: left;
}

.philosophy-symbol {
    margin: 14px 0;
    color: #f0f0f0;
    font: 100 96px/1.1 "Inter", sans-serif;
}

.philosophy-name {
    color: rgba(240, 240, 240, 0.7);
    font: 400 11px "Shippori Mincho B1", serif;
    letter-spacing: 0.35em;
}

.philosophy-subtitle {
    margin-top: 8px;
    color: rgba(240, 240, 240, 0.4);
    font: 400 10px/1.8 "Shippori Mincho B1", serif;
}

.philosophy-copy {
    max-width: 380px;
}

.philosophy-pronunciation {
    margin-bottom: 18px;
    color: rgba(240, 240, 240, 0.5);
    font: 400 11px "Shippori Mincho B1", serif;
    letter-spacing: 0.3em;
}

.philosophy-definition {
    margin: 0;
    color: rgba(240, 240, 240, 0.8);
    font: 400 15px/2.1 "Shippori Mincho B1", serif;
}

.philosophy-notes {
    margin: 18px 0 0;
    color: rgba(240, 240, 240, 0.5);
    font: 400 13px/2 "Shippori Mincho B1", serif;
}

.philosophy-hint {
    margin-top: 26px;
    color: rgba(240, 240, 240, 0.35);
    font: 400 10px "Shippori Mincho B1", serif;
    letter-spacing: 0.2em;
}

@media (max-width: 760px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .roles {
        gap: 10px;
        font-size: 9px;
        letter-spacing: 0.12em;
    }

    .release-item {
        margin-top: var(--mobile-offset);
    }

    .release-item.mobile-offset-zero { --mobile-offset: 0; }
    .release-item.mobile-offset-one { --mobile-offset: 18px; }

    .site-footer,
    .footer-legal {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-socials {
        flex-wrap: wrap;
        gap: 18px 24px;
    }

    .philosophy-overlay {
        align-items: flex-start;
    }

    .philosophy-content {
        flex-direction: column;
        gap: 36px;
        margin: auto 0;
    }

    .philosophy-card {
        box-sizing: border-box;
        width: min(240px, 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --play: paused;
    }

    html {
        scroll-behavior: auto;
    }

    .mobile-menu,
    .philosophy-overlay {
        animation: none;
    }

    [data-animate="fade-up"] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
