/* Homepage only: shared pastel canvas, blue/lilac artwork, restrained music details. */
body.site-body.home-page {
    --home-ink: #202a38;
    --home-muted: #697587;
    --home-blue: #006bbd;
    --home-gutter: var(--site-gutter);
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    color: var(--home-ink);
}
body.home-page .site-main {
    display: flex;
    flex: 1 0 auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
.home-hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: max(480px, calc(100svh - var(--site-header-height) - 112px));
    padding: 70px 7.2vw;
}
.home-copy { position: relative; z-index: 2; width: 45%; transform: translateY(8px); }
.home-copy h1 {
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(48px, 6.85vw, 112px);
    font-weight: 750;
    line-height: 1.16;
    letter-spacing: -.025em;
    overflow-wrap: break-word;
    text-wrap: balance;
}
.home-copy p {
    margin: 24px 0 48px;
    color: var(--home-muted);
    font-size: clamp(18px, 2.15vw, 34px);
    line-height: 1.6;
    text-wrap: pretty;
}
.home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 32px; }
.home-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    font-size: clamp(16px, 1.4vw, 22px);
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.home-action-contact { color: var(--home-muted); padding: 10px 4px; }
.home-action-contact:hover { color: var(--home-blue); }
/* Longer translations use a compact type scale within the same composition. */
html:is(:lang(en), :lang(ja), :lang(ko)) .home-copy h1 { font-size: clamp(42px, 5.2vw, 82px); line-height: 1.12; }
html:is(:lang(en), :lang(ja), :lang(ko)) .home-copy p { font-size: clamp(18px, 1.65vw, 26px); }
.home-art {
    position: absolute;
    inset: 0 0 0 43%;
    z-index: 1;
    pointer-events: none;
}
.home-staff { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
/* Outer groups anchor the notes; inner groups add a small, unhurried drift. */
.home-staff-notes {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.home-note-drift {
    transform-box: fill-box;
    transform-origin: 50% 80%;
    animation: homeNoteDrift var(--note-period, 8s) ease-in-out infinite;
    animation-delay: var(--note-delay, 0s);
}
.home-staff-note-low {
    --note-drift-x: 2px;
    --note-drift-y: -7px;
    --note-period: 7.6s;
    --note-delay: -1.8s;
    color: #7eafd3; opacity: .58;
}
.home-staff-note-pair {
    --note-drift-x: -1.5px;
    --note-drift-y: -5px;
    --note-period: 10.4s;
    --note-delay: -5.2s;
    color: #82aed6; opacity: .56;
}
.home-staff-note-high {
    --note-drift-x: 1px;
    --note-drift-y: -6px;
    --note-period: 9.2s;
    --note-delay: -3.4s;
    color: #92add0; opacity: .5;
}
@keyframes homeNoteDrift {
    0%, 100% { transform: translate(0, 0) rotate(-1.5deg); }
    50% { transform: translate(var(--note-drift-x), var(--note-drift-y)) rotate(1.5deg); }
}
/* One broad, feathered reflection passes over all five fine lines together. */
.home-staff-light { pointer-events: none; }
.home-staff-sheen {
    opacity: 0;
    transform: translateX(-820px);
    animation: homeStaffSheen 16s ease-in-out infinite;
    animation-delay: -5s;
}
@keyframes homeStaffSheen {
    0% { transform: translateX(-820px); opacity: 0; }
    12%, 88% { opacity: 0; }
    30%, 70% { opacity: .85; }
    100% { transform: translateX(920px); opacity: 0; }
}
.home-star {
    --star-drift-x: 2px;
    --star-drift-y: -4px;
    position: absolute;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
    transform-origin: 50% 50%;
    animation: homeStarFloat 8.8s ease-in-out infinite;
    animation-delay: -2.4s;
}
.home-star-blue { left: 16%; top: 23%; width: 6.5%; color: #81baff; }
.home-star-lilac {
    --star-drift-x: -2px;
    --star-drift-y: 3px;
    left: 84%; top: 40%; width: 5%; color: #bc95ed;
    animation-duration: 11.2s;
    animation-delay: -6.1s;
}
@keyframes homeStarFloat {
    0%, 100% { transform: translate(0, 0) rotate(-3deg) scale(.98); }
    50% { transform: translate(var(--star-drift-x), var(--star-drift-y)) rotate(3deg) scale(1.025); }
}
.home-cover {
    position: absolute;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: clamp(14px, 1.6vw, 26px);
    opacity: .44;
    filter: saturate(.78);
    box-shadow: 0 20px 45px rgba(77, 107, 158, .07);
    transform: rotate(var(--tilt));
    animation: coverFloat 10s ease-in-out infinite;
    pointer-events: auto;
    transition: opacity .28s ease, filter .28s ease, scale .28s ease, box-shadow .28s ease;
}
.home-cover img { width: 100%; height: 100%; object-fit: cover; }
.home-cover-1 { --tilt: -8deg; left: 20%; top: 31%; width: 31%; opacity: .56; }
.home-cover-2 { --tilt: 9deg; left: 59%; top: 10%; width: 23%; animation-delay: -2s; }
.home-cover-3 { --tilt: 7deg; left: 62%; top: 55%; width: 24%; animation-delay: -5s; }
.home-cover:hover, .home-cover:focus-visible {
    opacity: 1;
    filter: saturate(1);
    scale: 1.035;
    box-shadow: 0 24px 55px rgba(77, 107, 158, .16);
}
body.home-page a:focus-visible {
    outline: 2px solid #398edf;
    outline-offset: 5px;
}
@media (min-width: 761px) and (max-height: 700px) {
    .home-hero { min-height: 420px; }
    .home-cover-1 { width: 28%; top: 29%; }
    .home-cover-2 { width: 21%; top: 4%; }
    .home-cover-3 { width: 21%; top: 58%; }
    .home-copy p { margin: 18px 0 30px; }
}
@media (max-width: 1100px) {
    .home-copy { width: 48%; }
    .home-actions { gap: 18px; }
    .home-copy p { margin-bottom: 32px; }
}
@media (max-width: 760px) {
    .home-hero {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        min-height: 0;
        padding: 42px var(--home-gutter) 0;
        gap: 18px;
    }
    .home-copy { width: 100%; transform: none; }
    .home-copy h1 { font-size: clamp(38px, 9.8vw, 66px); letter-spacing: -.035em; }
    html:is(:lang(en), :lang(ja), :lang(ko)) .home-copy h1 { font-size: clamp(34px, 9.8vw, 66px); }
    html:is(:lang(en), :lang(ja), :lang(ko)) .home-copy p { font-size: clamp(16px, 4.25vw, 22px); }
    .home-copy p { margin: 16px 0 24px; font-size: clamp(16px, 4.25vw, 22px); line-height: 1.7; }
    .home-actions { gap: 24px; }
    .home-action { min-height: 48px; font-size: 16px; }
    .home-art { position: relative; inset: auto; width: 100%; height: clamp(275px, 74vw, 450px); }
    .home-staff { left: -7%; width: 121%; }
    .home-staff-note-low { transform: translate(65px, 546px) rotate(-18deg); }
    .home-cover-1 { left: 9%; top: 30%; width: 42%; }
    .home-cover-2 { left: 62%; top: 10%; width: 29%; }
    .home-cover-3 { left: 65%; top: 62%; width: 28%; }
    .home-star-blue { left: 7%; top: 17%; width: 9%; }
    .home-star-lilac { left: 91%; top: 49%; width: 6%; }
}
@media (max-width: 380px) {
    .home-actions { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-cover { animation: none; transition: none; }
    .home-staff-light { display: none; }
    .home-staff-sheen { animation: none; }
    .home-star { animation: none; transform: none; }
    .home-note-drift { animation: none; transform: none; }
}
