/* Partura Music — homepage (Ink & score)
   Scoped to .page-home; does not replace shared/styles.css for other pages. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&display=swap');

.page-home {
    --ink: #12161a;
    --ink-soft: #2a3238;
    --paper: #eef2f1;
    --paper-deep: #e2e8e6;
    --accent: #1a6b63;
    --accent-hover: #145750;
    --muted: #5c676e;
    --line: rgba(18, 22, 26, 0.12);
    --hero-veil: rgba(10, 14, 18, 0.42);
    --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
    --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --max: 1100px;
    --nav-h: 64px;

    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(180deg, rgba(238, 242, 241, 0.92) 0%, rgba(226, 232, 230, 0.98) 100%),
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 27px,
            rgba(18, 22, 26, 0.035) 27px,
            rgba(18, 22, 26, 0.035) 28px
        );
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html:has(body.page-home) {
    margin: 0;
    scroll-behavior: smooth;
}

.page-home *,
.page-home *::before,
.page-home *::after {
    box-sizing: border-box;
}

.page-home img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* —— Site header / nav over hero —— */
.home-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 clamp(16px, 4vw, 40px);
}

.home-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    justify-content: flex-end;
    align-items: center;
}

.page-home .home-nav-link {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    transition: color 0.2s ease, background 0.2s ease;
}

.page-home .home-nav-link:hover,
.page-home .home-nav-link:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    outline: none;
}

.page-home .home-nav-link.active {
    color: #ffffff;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.85);
}

.page-home .home-nav-link--cta {
    margin-left: 6px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.page-home .home-nav-link--cta:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

/* —— Hero —— */
.home-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    overflow: hidden;
}

.home-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-hero__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(10, 14, 18, 0.35) 0%, var(--hero-veil) 45%, rgba(8, 12, 16, 0.72) 100%);
}

.home-hero__content {
    position: relative;
    z-index: 2;
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: calc(var(--nav-h) + 48px) clamp(20px, 5vw, 40px) clamp(48px, 10vh, 96px);
}

.home-brand {
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 5.75rem);
    font-weight: 700;
    font-optical-sizing: auto;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0 0 0.35em;
    color: #fff;
    opacity: 0;
    transform: translateY(18px);
    animation: home-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.home-headline {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 0.75em;
    max-width: 18em;
    color: rgba(255, 255, 255, 0.95);
    opacity: 0;
    transform: translateY(18px);
    animation: home-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.32s forwards;
}

.home-lede {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 400;
    line-height: 1.55;
    margin: 0 0 1.75em;
    max-width: 32em;
    color: rgba(255, 255, 255, 0.82);
    opacity: 0;
    transform: translateY(18px);
    animation: home-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.48s forwards;
}

.home-lede strong {
    color: #ffffff;
    font-weight: 600;
}

.home-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    opacity: 0;
    transform: translateY(18px);
    animation: home-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.62s forwards;
}

.page-home .home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 26px;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.page-home .home-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.page-home .home-btn--primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.page-home .home-btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-home .home-btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.page-home .home-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

@keyframes home-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-brand,
    .home-headline,
    .home-lede,
    .home-cta-group,
    .home-reveal {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* —— Content sections —— */
.home-main {
    position: relative;
    z-index: 1;
}

.home-section {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: clamp(56px, 10vw, 100px) clamp(20px, 5vw, 40px);
}

.home-section + .home-section {
    border-top: 1px solid var(--line);
}

.home-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
}

.home-split--reverse .home-split__visual {
    order: 2;
}

.home-split--reverse .home-split__copy {
    order: 1;
}

.home-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.75em;
}

.home-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 0.65em;
}

.home-section p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink-soft);
    margin: 0 0 1em;
}

.home-section p:last-child {
    margin-bottom: 0;
}

.home-section strong {
    color: var(--ink);
    font-weight: 600;
}

.home-split__visual {
    position: relative;
}

.home-split__visual img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.home-split__visual--logo img {
    aspect-ratio: 1;
    object-fit: contain;
    mix-blend-mode: multiply;
    opacity: 0.9;
    max-height: 420px;
    margin: 0 auto;
}

.home-text-link {
    display: inline-block;
    margin-top: 0.5em;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.home-text-link:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

/* Scroll reveal */
.home-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* —— Footer —— */
.home-footer {
    border-top: 1px solid var(--line);
    padding: 36px clamp(20px, 5vw, 40px) 48px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.home-footer p {
    margin: 0 auto;
    max-width: 42em;
}

.home-footer p + p {
    margin-top: 0.65em;
    font-size: 0.82rem;
}

.home-footer a {
    color: var(--ink-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-footer a:hover {
    color: var(--accent);
}

/* —— Cookie banner (ink & score) —— */
.page-home .cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: #fff;
    padding: 20px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    animation: home-slide-up 0.35s ease-out;
}

.page-home .cookie-banner.show {
    display: block;
}

@keyframes home-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.page-home .cookie-content {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-home .cookie-text {
    flex: 1;
    min-width: 240px;
}

.page-home .cookie-text h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.page-home .cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.page-home .cookie-text a {
    color: #7ec9c0;
    text-decoration: underline;
}

.page-home .cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.page-home .cookie-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.page-home .cookie-btn-accept {
    background: var(--accent);
    color: #fff;
}

.page-home .cookie-btn-accept:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.page-home .cookie-btn-decline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.page-home .cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* —— Terms / about modal —— */
.page-home .about-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 16, 20, 0.72);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.page-home .about-modal-content {
    background: var(--paper);
    color: var(--ink);
    border-radius: 4px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
    border: 1px solid var(--line);
    position: relative;
}

.page-home .about-modal-close {
    color: var(--ink-soft);
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}

.page-home .about-modal-close:hover {
    color: var(--accent);
}

.page-home .about-modal-header {
    background: var(--ink);
    padding: 28px 28px 24px;
    text-align: center;
    border-radius: 4px 4px 0 0;
}

.page-home .about-modal-header h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 600;
}

.page-home .about-version {
    color: rgba(255, 255, 255, 0.75);
    margin: 8px 0 0;
    font-size: 0.95rem;
}

.page-home .about-modal-body {
    padding: 28px;
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 0.95rem;
}

.page-home .about-modal-body section {
    margin-bottom: 22px;
}

.page-home .about-modal-body h3 {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 6px;
}

.page-home .about-modal-body h4 {
    color: var(--ink);
    font-size: 1.05rem;
    margin: 12px 0 8px;
}

.page-home .about-legal {
    background: rgba(26, 107, 99, 0.08);
    padding: 14px;
    border-radius: 2px;
    border-left: 3px solid var(--accent);
}

.page-home .about-prohibited ul,
.page-home .about-permitted ul {
    list-style: none;
    padding-left: 0;
}

.page-home .about-prohibited li {
    padding: 4px 0;
    color: #a33a3a;
}

.page-home .about-permitted li {
    padding: 4px 0;
    color: var(--accent);
}

.page-home .about-modal-footer {
    text-align: center;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-style: italic;
}

.page-home .about-modal-body a {
    color: var(--accent);
    text-decoration: underline;
}

.page-home .about-modal-body a:hover {
    color: var(--accent-hover);
}

.page-home .about-modal-content::-webkit-scrollbar {
    width: 8px;
}

.page-home .about-modal-content::-webkit-scrollbar-track {
    background: var(--paper-deep);
}

.page-home .about-modal-content::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: 4px;
}

/* —— Responsive —— */
@media (max-width: 860px) {
    .home-split,
    .home-split--reverse {
        grid-template-columns: 1fr;
    }

    .home-split--reverse .home-split__visual,
    .home-split--reverse .home-split__copy {
        order: unset;
    }

    .home-split__visual {
        max-width: 420px;
        margin: 0 auto;
    }

    .home-nav {
        height: auto;
        min-height: var(--nav-h);
        padding-top: 10px;
        padding-bottom: 10px;
        justify-content: center;
        background: linear-gradient(180deg, rgba(8, 12, 16, 0.55), transparent);
    }

    .home-nav-list {
        justify-content: center;
    }

    .home-nav-link {
        font-size: 0.72rem;
        padding: 6px 8px;
    }

    .home-nav-link--cta {
        margin-left: 0;
    }

    .home-hero__content {
        padding-top: calc(var(--nav-h) + 72px);
    }
}

@media (max-width: 480px) {
    .home-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .home-btn {
        width: 100%;
        text-align: center;
    }
}
