@import url("./navigation.css");

@font-face {
    font-family: "Montserrat Black";
    src: url("./fonts/montserrat-black-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    color: #0f172a;
    background: #f8f9fd;
    font-synthesis: none;
    font-optical-sizing: auto;
    font-weight: 500;
    --ink: #0f172a;
    --muted: #64748b;
    --accent: #6366f1;
    --line: rgba(15, 23, 42, .1);
    --paper: rgba(255, 255, 255, .82);
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    margin: 0;
    background:
        radial-gradient(ellipse at 10% 12%, rgba(99, 102, 241, .11), transparent 34rem),
        radial-gradient(ellipse at 90% 50%, rgba(139, 92, 246, .08), transparent 30rem),
        #f8f9fd;
}

a { color: inherit; }

body.theme-house {
    --ink: #1c1c1c;
    --muted: #626262;
    --accent: #946015;
    --line: rgba(28, 28, 28, .1);
    color: var(--ink);
    background:
        radial-gradient(ellipse at 10% 12%, rgba(243, 179, 81, .1), transparent 34rem),
        radial-gradient(ellipse at 90% 50%, rgba(28, 28, 28, .04), transparent 30rem),
        #fff;
}

.theme-house .hero-art { background: linear-gradient(145deg, #1c1c1c, #35312b); }
.theme-house .status-pill { color: var(--accent); background: rgba(243, 179, 81, .16); }
.theme-house .empty-note { border-color: rgba(243, 179, 81, .5); }
.theme-house .action-link { background: #f3b351; color: white; }
.theme-house .action-link:hover { background: #e5a13c; }
.theme-house .identity-tile { background: linear-gradient(145deg, #1c1c1c, #35312b); }
.theme-house .identity-tile:nth-child(2) { background: linear-gradient(135deg, #fff3df, #fff 55%, #f3b351); }

.division-brand-logo {
    display: block;
    width: min(100%, 320px);
    height: auto;
    margin-bottom: 24px;
}

.theme-house .hero-art--brand { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.hero-art--brand .division-brand-logo { position: relative; z-index: 1; width: 100%; margin: 0; }
.hero-art--brand .hero-art-note { position: static; margin-top: 20px; color: var(--muted); text-align: center; }
.hero-art--brand { align-content: center; }
.hero-art--brand::before, .hero-art--brand::after { display: none; }

.theme-house .action-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

.division-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

main [id] { scroll-margin-top: 104px; }

.division-main { padding: 112px 0 64px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--accent);
    font-family: "Montserrat Black", Montserrat, sans-serif;
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
    font-family: "Montserrat Black", Montserrat, sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    overflow-wrap: break-word;
    text-wrap: balance;
}

html { scroll-behavior: smooth; }
a, button { transition: color .25s ease, background .25s ease, box-shadow .3s ease, transform .3s ease; }
.division-main { animation: division-enter .5s ease both; }
@keyframes division-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.division-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    margin-bottom: clamp(48px, 6vw, 80px);
}

.division-hero > * { min-width: 0; }
.division-hero > div:first-child { container-type: inline-size; }

.division-hero h1 {
    max-width: 760px;
    margin: 18px 0 18px;
    font-size: clamp(2.25rem, 10cqi, 4rem);
    letter-spacing: -.045em;
    line-height: 1.04;
}

.division-hero h1 span { color: var(--accent); }

.division-lede {
    max-width: 620px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(.95rem, 1.5vw, 1.08rem);
    line-height: 1.8;
}

.hero-art {
    position: relative;
    display: grid;
    min-height: 310px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(99, 102, 241, .95), rgba(30, 41, 59, .98));
    box-shadow: 0 24px 70px rgba(30, 41, 59, .16);
}

.hero-art::before,
.hero-art::after {
    position: absolute;
    width: 235px;
    height: 235px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 50%;
    content: "";
}

.hero-art::before { transform: scale(1.42); }
.hero-art::after { transform: scale(1.92); }

.theme-release { position: relative; display: flow-root; isolation: isolate; }
.release-backdrop {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: 100svh;
    overflow: hidden;
    pointer-events: none;
}
.release-backdrop img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}
.theme-release .division-main { padding-top: 96px; }
.theme-release .division-hero {
    grid-template-columns: 1fr;
    min-height: calc(100svh - 96px);
    align-items: end;
    margin-bottom: 64px;
    padding-bottom: max(120px, calc(env(safe-area-inset-bottom) + 104px));
    color: white;
}
.theme-release .division-hero > div { max-width: 660px; }
.theme-release .division-hero h1,
.theme-release .division-hero .eyebrow,
.theme-release .division-lede {
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .9), 0 4px 24px rgba(0, 0, 0, .75);
}
.theme-release .division-hero h1 span { color: #c4b5fd; }
.theme-release .division-lede { max-width: 540px; font-weight: 600; }

.hero-art-mark {
    z-index: 1;
    color: white;
    font-family: "Montserrat Black", Montserrat, sans-serif;
    font-size: clamp(3rem, 8vw, 5.2rem);
    font-weight: 900;
    letter-spacing: -.1em;
}

.hero-art-note {
    position: absolute;
    right: 24px;
    bottom: 20px;
    color: rgba(255, 255, 255, .75);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 7px 0 0;
    font-size: clamp(1.5rem, 3.2vw, 2.45rem);
    letter-spacing: -.055em;
}

.section-heading p {
    max-width: 450px;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.65;
}

.division-section { margin-top: clamp(48px, 6vw, 80px); }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.artist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.surface-card {
    padding: clamp(20px, 2.5vw, 28px);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 22px;
    background: var(--paper);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .045);
    text-align: center;
}

.surface-card:not(.artist-card):not(.shop-product-card) { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.surface-card:not(.artist-card) > :first-child { margin-top: 0; }
.surface-card:not(.artist-card) > :last-child { margin-bottom: 0; }

.surface-card h3 {
    margin: 16px 0 8px;
    font-size: 1.08rem;
    letter-spacing: -.035em;
}

.surface-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.7;
}

.card-index {
    color: var(--accent);
    font-family: "Montserrat Black", Montserrat, sans-serif;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.artist-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    color: white;
    background: linear-gradient(145deg, #1e293b, #4338ca);
}

.artist-card:nth-child(2) { background: linear-gradient(145deg, #27272a, #a21caf); }

.artist-card .card-index { color: white; }

.artist-profile { min-width: 0; }
.artist-profile > button { display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; min-height: clamp(320px, 30vw, 400px); cursor: pointer; text-align: center; font: inherit; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.artist-profile > button:hover { transform: translateY(-8px); box-shadow: 0 22px 42px rgba(0, 0, 0, .18); }
.artist-profile > button:active { transform: translateY(-3px); }
.artist-profile > button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.artist-expand { display: block; margin-top: 18px; font-size: .72rem; font-weight: 800; }
.artist-expand::after { content: " +"; }
.artist-dialog {
    width: min(620px, calc(100% - 32px));
    height: min(820px, calc(100svh - 32px));
    max-height: calc(100svh - 32px);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    color: white;
    background: #101014;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
}
.artist-dialog::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); animation: backdrop-enter .3s ease both; }
@keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
.artist-dialog-image, .artist-dialog-blur {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    pointer-events: none;
}
.artist-dialog-blur {
    filter: blur(18px);
    transform: scale(1.08);
    mask-image: linear-gradient(to bottom, transparent 25%, black 65%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 25%, black 65%);
}
.artist-dialog::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,.55) 35%, rgba(0,0,0,.9) 65%);
    pointer-events: none;
    content: "";
}
.dialog-close {
    display: grid;
    place-items: center;
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.artist-biography { position: relative; z-index: 1; height: 100%; overflow-y: auto; padding: min(36svh, 300px) 28px 64px; }
.artist-biography h2 { margin: 0 0 18px; font-size: 1.5rem; text-align: center; }
.artist-biography p { font-size: .95rem; font-weight: 600; line-height: 1.8; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.artist-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0; }
.artist-links a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; color: white; text-decoration: none; }
.artist-links a:hover { transform: translateY(-4px); color: #ddd; }
.artist-links a:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.artist-links svg { width: 28px; height: 28px; }

html, body, .artist-biography { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .artist-biography::-webkit-scrollbar { display: none; }
body.artist-dialog-open { overflow: hidden; }
.division-scroll-hint {
    position: fixed;
    z-index: 10;
    left: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--accent);
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transform: translateX(-50%);
    cursor: pointer;
}
.division-scroll-hint[hidden] { display: none; }
.division-scroll-hint--up { top: calc(max(12px, env(safe-area-inset-top)) + 80px); }
.artist-dialog .division-scroll-hint--up { top: 8px; }
.division-scroll-hint--down { bottom: max(8px, env(safe-area-inset-bottom)); }
.artist-dialog .division-scroll-hint--down { bottom: 8px; }
.artist-dialog .division-scroll-hint { position: absolute; color: #fff; background: rgba(20,20,24,.12); border-color: rgba(255,255,255,.15); }
.division-scroll-hint svg { width: 20px; height: 20px; }
.division-scroll-hint:focus-visible, .dialog-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.spotify-player {
    display: block;
    width: 100%;
    margin-bottom: 22px;
    border: 0;
    border-radius: 12px;
}

.artist-card--photo {
    isolation: isolate;
    background: #0f172a;
}

.artist-card-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.artist-card--photo::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .28), transparent 34%, rgba(0, 0, 0, .72)),
        radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, .5) 100%);
    content: "";
}

.artist-card--photo::after { display: none; }

.artist-card--photo > :not(.artist-card-image) {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
}

.artist-card::after {
    position: absolute;
    right: -40px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(255, 255, 255, .035), 0 0 0 58px rgba(255, 255, 255, .025);
    content: "";
}

.artist-card h3 { position: relative; z-index: 1; margin-top: auto; padding-top: 80px; font-size: clamp(2rem, 4vw, 2.75rem); }
.artist-card p { position: relative; z-index: 1; min-height: 5.1em; max-width: 32ch; color: rgba(255, 255, 255, .9); }

.release-card {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, .62);
}

.release-card > * { min-width: 0; }
.release-card > div:not(.release-art) { text-align: center; }
.release-card > div:not(.release-art) > :first-child { margin-top: 0; }
.release-card > div:not(.release-art) > :last-child { margin-bottom: 0; }
.release-card h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin: 18px 0 12px; }

.release-art {
    position: relative;
    display: grid;
    aspect-ratio: 1;
    overflow: hidden;
    place-items: center;
    border-radius: 18px;
}

.release-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-pill {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 99px;
    color: #4f46e5;
    background: rgba(99, 102, 241, .1);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.chart-rank {
    margin: 14px 0;
    color: var(--accent);
    font-family: "Montserrat Black", Montserrat, sans-serif;
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: -.075em;
    line-height: 1;
}

.chart-artist { color: var(--muted); }

.chart-milestone-grid { margin-top: 22px; }
.genre-achievement { display: flex; flex-direction: column; align-items: flex-start; }
.genre-achievement .action-link { margin-top: 16px; }

.genre-achievement .chart-rank {
    margin: 14px 0;
    color: var(--accent);
    font-size: 3.5rem;
    line-height: 1;
}

.genre-achievement .chart-source { margin: 16px 0; font-size: .75rem; }

.editorial-achievement { margin-top: 22px; }

.editorial-achievement .chart-source { margin: 16px 0; font-size: .75rem; }

.chart-source {
    max-width: 480px;
    margin: 16px 0;
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.7;
}

.empty-note {
    padding: 20px 22px;
    border: 1px dashed rgba(99, 102, 241, .35);
    border-radius: 18px;
    color: #475569;
    background: rgba(255, 255, 255, .48);
    font-size: .84rem;
    line-height: 1.7;
}

.division-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0 calc(96px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .72rem;
}

.division-footer a { color: var(--accent); font-weight: 700; text-decoration: none; }

.action-link {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 99px;
    color: white;
    background: #f3b351;
    font-family: "Montserrat Black", Montserrat, sans-serif;
    font-size: .8rem;
    font-weight: 900;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.action-link:hover { transform: translateY(-2px); background: #e5a13c; }
.button-arrow {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    font-size: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1c1c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18 18 6M6 6h12v12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.shop-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }

.shop-product-card {
    display: block;
    padding: 10px;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.shop-product-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(15, 23, 42, .1); }

.shop-product-image {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 15px;
    background: #f1f5f9;
    object-fit: contain;
}

.shop-product-copy { padding: 16px 10px; text-align: center; }
.shop-product-copy h3 { margin: 0 0 7px; font-size: 1rem; }
.shop-product-copy p { margin: 0 0 10px; font-size: .76rem; }
.shop-product-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.shop-product-price { color: var(--ink); font-size: .85rem; font-weight: 800; }
.shop-product-color { color: var(--muted); font-size: .67rem; }
.shop-product-cta { margin-top: 13px; color: var(--accent); font-size: .68rem; font-weight: 800; }

.identity-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 320px;
    gap: 12px;
}

.identity-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 19px;
    border-radius: 17px;
    color: white;
    background: linear-gradient(145deg, #172033, #5968aa);
    text-align: center;
}

.identity-tile:nth-child(2) {
    color: var(--ink);
    background: linear-gradient(135deg, #e0e7ff, #f8fafc 55%, #c4b5fd);
}

.identity-tile strong {
    font-family: "Montserrat Black", Montserrat, sans-serif;
    font-size: clamp(1.15rem, 3vw, 2rem);
    letter-spacing: -.07em;
}

.identity-tile span { font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.platform-card { min-height: 190px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.platform-card .action-link { align-self: center; }

@media (max-width: 1100px) {
    main [id] { scroll-margin-top: 24px; }
    .division-main { padding-top: 40px; }
    .theme-release .division-main { padding-top: 32px; }
    .theme-release .division-hero { min-height: calc(100svh - 32px); }
    body > .division-scroll-hint--up { top: max(8px, env(safe-area-inset-top)); }
    body > .division-scroll-hint--down { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 64px); }
}

@media (max-width: 900px) {
    .division-shell { width: min(100% - 28px, 600px); }
    .division-hero { grid-template-columns: 1fr; }
    .division-hero > div:first-child { width: 100%; }
    .division-hero h1 { font-size: clamp(2.25rem, 8cqi, 3.5rem); }
    .hero-art { min-height: 220px; }
    .theme-release .division-hero h1 {
        text-wrap: pretty;
    }
    .hero-art--brand { width: min(100%, 460px); min-height: 0; justify-self: center; }
    .identity-preview { min-height: 260px; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
    .card-grid, .platform-grid { grid-template-columns: 1fr; }
    .release-card { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
    .release-art { width: 100%; max-width: 320px; justify-self: center; }
    .action-link { max-width: 100%; text-align: center; }
    .identity-tile { padding: 16px; }
    .division-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation: none !important; }
    .artist-profile > button:hover, .artist-profile > button:active, .artist-links a:hover { transform: none; }
}
