/* kasurl — promo pages. No build step, no JS. */

/* Kaseta Digital brand fonts (OFL): Blinker for headings, Open Sans for body.
   Blinker has no Cyrillic; those glyphs fall back to Open Sans via the font stack. */
@font-face {
    font-family: "Blinker";
    src: url("fonts/blinker-latin-600.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Blinker";
    src: url("fonts/blinker-latin-ext-600.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Blinker";
    src: url("fonts/blinker-latin-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Blinker";
    src: url("fonts/blinker-latin-ext-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Open Sans";
    src: url("fonts/open-sans-latin.woff2") format("woff2");
    font-weight: 300 800;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Open Sans";
    src: url("fonts/open-sans-latin-ext.woff2") format("woff2");
    font-weight: 300 800;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Open Sans";
    src: url("fonts/open-sans-cyrillic.woff2") format("woff2");
    font-weight: 300 800;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Open Sans";
    src: url("fonts/open-sans-cyrillic-ext.woff2") format("woff2");
    font-weight: 300 800;
    font-display: swap;
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
}

:root {
    --bg: #09090b;
    --fg: #fafafa;
    --muted: rgb(250 250 250 / .6);
    --glass: rgb(255 255 255 / .06);
    --glass-hi: rgb(255 255 255 / .11);
    --line: rgb(255 255 255 / .09);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --font-body: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Blinker", var(--font-body);
    /* Kaseta Digital logo gradient */
    --kd-gradient: linear-gradient(180deg, #f27e93, #a0d7c9 52%, #9bc0e1);
    --kd-conic: conic-gradient(#f27e93, #a0d7c9, #9bc0e1, #f27e93);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    scrollbar-color: rgb(255 255 255 / .2) transparent;
}

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    color: var(--fg);
    font: 400 16px/1.5 var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgb(255 255 255 / .9); color: var(--bg); }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }

/* ---------- Ambient background ---------- */

.ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg);
    pointer-events: none;
}
.ambient__art {
    position: absolute;
    inset: -30%;
    background: center / cover no-repeat;
    filter: blur(80px) saturate(1.7) brightness(.8);
    opacity: .85;
    will-change: transform;
    animation: drift 36s ease-in-out infinite alternate;
}
.ambient__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(80% 60% at 50% 0%, transparent 0%, rgb(9 9 11 / .45) 70%),
        linear-gradient(180deg, rgb(9 9 11 / .1) 0%, rgb(9 9 11 / .55) 55%, rgb(9 9 11 / .92) 100%);
}
.ambient:not(:has(.ambient__art)) .ambient__glow {
    background:
        radial-gradient(40% 45% at 15% 10%, rgb(242 126 147 / .3), transparent 70%),
        radial-gradient(40% 45% at 85% 20%, rgb(155 192 225 / .28), transparent 70%),
        radial-gradient(55% 50% at 50% 100%, rgb(160 215 201 / .24), transparent 70%);
}
.ambient__grain {
    position: absolute;
    inset: 0;
    opacity: .07;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.is-label .ambient__art { opacity: .5; }

/* ---------- Shared bits ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgb(255 255 255 / .35);
}
.eyebrow--new::before, .eyebrow--soon::before {
    background: rgb(var(--dot));
    box-shadow: 0 0 0 0 rgb(var(--dot) / .6);
    animation: pulse 2.4s var(--ease) infinite;
}
.eyebrow--new { --dot: 74 222 128; }
.eyebrow--soon { --dot: 242 201 125; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgb(255 255 255 / .14);
    border-radius: 999px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-size: .85rem;
    font-weight: 500;
    transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.pill:hover { background: var(--glass-hi); border-color: rgb(255 255 255 / .25); }
.pill svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--kd-conic);
}
.pill--solid { background: #fff; color: var(--bg); border-color: transparent; font-weight: 600; }

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 32px 0 12px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.lettermark { font-size: 1.45rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; }

/* ---------- Release / playlist ---------- */

.promo {
    width: min(100% - 40px, 1040px);
    margin: auto;
    /* Without a footer below (release/playlist pages), keep clear of the iPhone home indicator. */
    padding: clamp(32px, 7vh, 80px) 0 calc(clamp(32px, 7vh, 80px) + env(safe-area-inset-bottom));
    display: grid;
    gap: clamp(26px, 6vw, 80px);
    align-items: center;
}

/* Mobile: the cover itself is centered; the record peeks out to the right. */
.promo:has(+ .footer) { padding-bottom: clamp(16px, 4vh, 40px); }

.promo__media {
    width: min(72vw, 420px);
    margin-inline: auto;
}
.promo__stage { position: relative; aspect-ratio: 1; }

/* "Digital distribution by Kaseta Digital" under the cover, like a credit on a record sleeve. */
.credit {
    /* May be wider than a small-phone cover; stays centered under it and on one line. */
    position: relative;
    left: 50%;
    translate: -50% 0;
    width: max-content;
    max-width: calc(100vw - 32px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: clamp(18px, 3vh, 26px);
    color: rgb(255 255 255 / .85);
    font-size: clamp(.74rem, 3.6vw, .82rem);
    font-weight: 500;
    white-space: nowrap;
    animation: fade-in .8s ease-out 1.2s backwards;
}
.credit .brand-link { color: #fff; text-decoration-color: rgb(255 255 255 / .45); }
@media (max-width: 399px) {
    .credit { gap: 5px; font-size: .7rem; }
    .credit .brand-link { gap: 4px; }
    .credit .brand-link img { width: 13px; height: 13px; }
}

.art {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    animation: pop .9s var(--ease) both;
}

/* Quiet skeleton until the cover arrives. */
:is(.art, .hero__art, .card__art) { background: #16161a; }
:is(.art, .hero__art)::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(100deg, transparent 35%, rgb(255 255 255 / .045) 50%, transparent 65%) 0 0 / 250% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
}
/* No cover at all: a faint monochrome logo as the default artwork. */
:is(.art, .hero__art, .card__art):not(:has(img))::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("logo-mono.svg") center / 30% no-repeat;
    animation: none;
}
/* Cover file exists but fails to load: paint the same default artwork over the broken image
   (Chrome/Firefox render ::after on broken images; `color: transparent` hides alt text in Safari). */
:is(.art__img, .hero__art img, .card__art img) { color: transparent; }
:is(.art__img, .hero__art img, .card__art img)::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: url("logo-mono.svg") center / 30% no-repeat, #16161a;
}
.hero__art img, .card__art img { position: relative; }

.art::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1);
    background: linear-gradient(135deg, rgb(255 255 255 / .16), transparent 38%);
    pointer-events: none;
}
.art__img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    box-shadow: 0 40px 80px -30px rgb(0 0 0 / .85);
    animation: art-in .6s ease-out .1s backwards;
}
.art__glow {
    position: absolute;
    inset: 8%;
    width: 84%;
    height: 84%;
    border-radius: inherit;
    object-fit: cover;
    filter: blur(48px) saturate(1.8);
    opacity: .8;
    transform: translateY(12%) scale(1.1);
    animation: fade-in 1.4s var(--ease) .5s backwards;
}

.vinyl {
    position: absolute;
    inset: 3%;
    border-radius: 50%;
    overflow: clip;
    box-shadow: 0 30px 60px -20px rgb(0 0 0 / .9);
    /* Slides out only once the cover is in place, so it never shows through the placeholder. */
    animation: vinyl-out 1.2s var(--ease) 1s both;
}
.vinyl::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 20deg, transparent 0 8%, rgb(255 255 255 / .13) 14%, transparent 22% 52%, rgb(255 255 255 / .08) 60%, transparent 68%);
    pointer-events: none;
}
.vinyl__disc {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 0 17%, #0b0b0d 17.3% 19%, transparent 19.3%),
        repeating-radial-gradient(circle, #0b0b0d 0 1.5px, #19191c 1.5px 3px);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06);
    animation: spin 5s linear infinite;
}
.vinyl__disc::before {
    content: "";
    position: absolute;
    inset: 33%;
    border-radius: 50%;
    background: var(--art, var(--kd-gradient)) center / cover;
}
.vinyl__disc::after {
    content: "";
    position: absolute;
    inset: 48.5%;
    border-radius: 50%;
    background: var(--bg);
}

.promo__head { text-align: center; }
.promo__head > * { animation: rise .8s var(--ease) both; }
.promo__head > :nth-child(2) { animation-delay: .06s; }
.promo__head > :nth-child(3) { animation-delay: .12s; }
.promo__head > :nth-child(4) { animation-delay: .18s; }

.promo__title {
    margin: 14px 0 8px;
    font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.3rem);
    font-weight: 750;
    line-height: .98;
    letter-spacing: -.045em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.promo__title--long { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.04; }
.promo__artist {
    color: rgb(255 255 255 / .8);
    font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem);
    font-weight: 500;
    letter-spacing: -.01em;
}
.promo__head .pill { margin-top: 18px; }

.services { display: grid; gap: 8px; }
.services li, .socials li { animation: rise .7s var(--ease) .3s both; }
/* Staggered entrance (no inline styles allowed by the CSP, so delays are listed per position). */
.services li:nth-child(2) { animation-delay: 0.35s; }
.services li:nth-child(3) { animation-delay: 0.40s; }
.services li:nth-child(4) { animation-delay: 0.45s; }
.services li:nth-child(5) { animation-delay: 0.50s; }
.services li:nth-child(6) { animation-delay: 0.55s; }
.services li:nth-child(7) { animation-delay: 0.60s; }
.services li:nth-child(8) { animation-delay: 0.65s; }
.services li:nth-child(9) { animation-delay: 0.70s; }
.services li:nth-child(10) { animation-delay: 0.75s; }
.services li:nth-child(11) { animation-delay: 0.80s; }
.services li:nth-child(12) { animation-delay: 0.85s; }
.services li:nth-child(13) { animation-delay: 0.90s; }
.services li:nth-child(14) { animation-delay: 0.95s; }
.services li:nth-child(15) { animation-delay: 1.00s; }
.services li:nth-child(16) { animation-delay: 1.05s; }
.services li:nth-child(17) { animation-delay: 1.10s; }
.services li:nth-child(18) { animation-delay: 1.15s; }
.socials li { animation-delay: .6s; }
.socials li:nth-child(2) { animation-delay: .65s; }
.socials li:nth-child(3) { animation-delay: .7s; }

.service {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 10px 9px 9px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    backdrop-filter: blur(20px) saturate(1.4);
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s, background .3s;
}
.service::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 30%, transparent), transparent 75%);
    opacity: 0;
    transition: opacity .3s;
}
.service:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand) 55%, rgb(255 255 255 / .2));
    box-shadow: 0 16px 40px -16px color-mix(in srgb, var(--brand) 70%, transparent);
}
.service:hover::before { opacity: 1; }
.service:active { transform: scale(.985); }

.service__icon {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--tile);
    color: var(--tile-fg);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
}
.service__icon svg { width: 24px; height: 24px; }
.service__name { position: relative; flex: 1; font-size: 1.03rem; font-weight: 600; letter-spacing: -.01em; }
.service__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px 9px 16px;
    border-radius: 999px;
    background: rgb(255 255 255 / .1);
    font-size: .8rem;
    font-weight: 600;
    transition: background .3s, color .3s;
}
.service__cta svg { width: 14px; height: 14px; }
.service:hover .service__cta { background: #fff; color: var(--bg); }

.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.social svg { width: 20px; height: 20px; }
.social:hover { transform: translateY(-3px); background: var(--tile); color: var(--tile-fg); border-color: transparent; }

.soon {
    margin-top: 28px;
    padding: 18px;
    border: 1px dashed rgb(255 255 255 / .2);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
}

@media (min-width: 960px) {
    .promo {
        width: min(100% - 48px, 1100px);
        grid-template-columns: minmax(0, 420px) minmax(0, 480px);
        /* The record sticks out ~20% of the cover width into this gap; the rest is breathing room before the text. */
        column-gap: clamp(112px, 9.5vw, 126px);
        justify-content: center;
    }
    /* Stays in view while a long list of services scrolls by. */
    .promo__media {
        position: sticky;
        top: max(40px, calc(50dvh - 245px));
        align-self: start;
        width: 100%;
    }
    .promo__head { text-align: left; }
    .vinyl { --vinyl-x: 24%; }
    /* The credit hangs below the cover without adding height, so the text column centers on the cover itself. */
    .credit { position: absolute; top: 100%; }
}

/* ---------- Label ---------- */

.label {
    width: min(100% - 40px, 1200px);
    margin: 0 auto auto;
    padding: clamp(48px, 10vh, 112px) 0 24px;
}
.label__head { display: grid; justify-items: center; gap: 14px; text-align: center; }
.label__head > * { animation: rise .8s var(--ease) both; }
.label__head > :nth-child(2) { animation-delay: .06s; }
.label__head > :nth-child(n+3) { animation-delay: .12s; }
.label__head .eyebrow::before { background: var(--kd-conic); }
.label__name {
    max-width: 14ch;
    padding-bottom: .06em;
    font-size: clamp(2.8rem, 1.4rem + 6.4vw, 7rem);
    font-weight: 800;
    line-height: .92;
    letter-spacing: -.055em;
    text-wrap: balance;
    overflow-wrap: anywhere;
    background: linear-gradient(180deg, #fff 35%, rgb(255 255 255 / .55));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.label__meta { color: var(--muted); font-weight: 500; }
.label__results { margin-top: 40px; color: var(--muted); }

.search { position: relative; width: min(100%, 460px); margin-top: 10px; }
.search svg { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search input {
    width: 100%;
    height: 54px;
    padding: 0 48px 0 48px;
    border: 1px solid rgb(255 255 255 / .12);
    border-radius: 999px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    color: var(--fg);
    font: inherit;
    outline: none;
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.search input::placeholder { color: rgb(255 255 255 / .45); }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { border-color: rgb(255 255 255 / .35); background: var(--glass-hi); box-shadow: 0 0 0 5px rgb(255 255 255 / .07); }
.search__clear {
    position: absolute;
    right: 10px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    translate: 0 -50%;
    border-radius: 50%;
    background: rgb(255 255 255 / .1);
    font-size: 1.2rem;
    line-height: 1;
}
.search__clear:hover { background: rgb(255 255 255 / .2); }

.hero {
    display: grid;
    gap: clamp(20px, 4vw, 52px);
    align-items: center;
    margin-top: clamp(40px, 7vh, 72px);
    padding: clamp(14px, 2.4vw, 28px);
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    backdrop-filter: blur(24px) saturate(1.4);
    animation: rise .9s var(--ease) .15s both;
    transition: border-color .3s, background .3s;
}
.hero:hover { border-color: rgb(255 255 255 / .18); background: rgb(255 255 255 / .08); }
.hero__art {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 30px 60px -25px rgb(0 0 0 / .8);
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; animation: art-in .6s ease-out .1s backwards; transition: transform .8s var(--ease); }
.hero:hover .hero__art img { transform: scale(1.04); }
.hero__body { display: grid; justify-items: start; gap: 10px; }
.hero__title {
    margin-top: 6px;
    font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem);
    font-weight: 750;
    line-height: 1;
    letter-spacing: -.045em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.hero__artist { color: rgb(255 255 255 / .78); font-size: 1.15rem; font-weight: 500; }
.hero .pill { margin-top: 12px; }
.hero:hover .pill svg { transform: translateX(4px); }

@media (min-width: 720px) {
    .hero { grid-template-columns: minmax(0, 320px) 1fr; }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(44%, 176px), 1fr));
    gap: clamp(22px, 3vw, 34px) clamp(12px, 1.8vw, 22px);
    margin-top: clamp(40px, 6vh, 64px);
}
.grid > li { content-visibility: auto; contain-intrinsic-size: auto 260px; }

.card { display: block; }
.card__art {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 14px 34px -16px rgb(0 0 0 / .75), inset 0 0 0 1px rgb(255 255 255 / .06);
    transition: transform .4s var(--ease), box-shadow .4s;
}
.card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card__art::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%2309090b'/%3E%3C/svg%3E") 55% 50% / 18px no-repeat;
    box-shadow: 0 8px 24px rgb(0 0 0 / .45);
    opacity: 0;
    transform: translateY(10px) scale(.85);
    transition: opacity .3s, transform .35s var(--ease);
}
.card:hover .card__art { transform: translateY(-4px); box-shadow: 0 24px 44px -18px rgb(0 0 0 / .85); }
.card:hover .card__art img { transform: scale(1.06); }
.card:hover .card__art::after, .card:focus-visible .card__art::after { opacity: 1; transform: none; }
.card__title, .card__artist { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card__title { margin-top: 12px; font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
.card__artist { color: var(--muted); font-size: .86rem; }

/* Shared-element morph from a label card to the release cover (cross-document view transitions). */
:is(.card, .hero):is(:hover, :focus-visible, :active) :is(.card__art, .hero__art) {
    view-transition-name: attr(data-vt type(<custom-ident>), none);
}
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }

.empty { margin-top: 56px; color: var(--muted); text-align: center; }

/* ---------- Error ---------- */

.error {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: auto;
    padding: 64px 20px;
    text-align: center;
    animation: rise .8s var(--ease) both;
}
.error__code {
    font-size: clamp(6rem, 22vw, 12rem);
    font-weight: 800;
    line-height: .85;
    letter-spacing: -.07em;
    background: linear-gradient(180deg, #fff, rgb(255 255 255 / .15));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.error__logo {
    width: 96px;
    height: 96px;
    margin-bottom: 8px;
    filter: drop-shadow(0 12px 40px rgb(242 126 147 / .35));
    animation: spin 14s linear infinite;
}
.error__title { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; }
.error__text { margin-bottom: 14px; color: var(--muted); }

/* ---------- Footer ---------- */

.footer {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 32px 20px calc(24px + env(safe-area-inset-bottom));
    color: rgb(255 255 255 / .45);
    font-size: .8rem;
}
.footer__credit { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }

/* Powered by Magus: quiet by default, wordmark brightens on hover. */
.powered {
    --magus: #03c2f3;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: rgb(255 255 255 / .45);
    transition: color .3s ease;
}
.powered__label { font-size: .78rem; letter-spacing: .01em; }
.powered__logo {
    height: 1rem;
    width: auto;
    transition: transform .3s ease, filter .3s ease;
}
.powered:hover, .powered:focus-visible { color: #fff; }
.powered:hover .powered__logo, .powered:focus-visible .powered__logo {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--magus) 55%, transparent));
}
.brand-link { display: inline-flex; align-items: center; gap: 6px; color: rgb(255 255 255 / .92); font-weight: 500; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .25); text-underline-offset: 3px; }
.brand-link:hover { color: #fff; text-decoration-color: currentColor; }
.brand-link img { width: 16px; height: 16px; transition: rotate .6s var(--ease); }
.brand-link:hover img { rotate: 90deg; }

/* ---------- Motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes pop { from { opacity: 0; transform: scale(.94); filter: blur(8px); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes art-in { from { opacity: 0; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes vinyl-out {
    from { transform: translateX(0); opacity: 0; }
    25% { opacity: 1; }
    to { transform: translateX(var(--vinyl-x, 17%)); }
}
@keyframes drift { to { transform: scale(1.25) rotate(8deg) translate3d(3%, -3%, 0); } }
@keyframes pulse {
    70% { box-shadow: 0 0 0 9px rgb(var(--dot) / 0); }
    100% { box-shadow: 0 0 0 0 rgb(var(--dot) / 0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ---------- Brand typography: Blinker for headings and subheadings ---------- */
.eyebrow, .section-title, .promo__title, .promo__artist, .label__name, .label__meta,
.hero__title, .hero__artist, .card__title, .error__code, .error__title, .service__name {
    font-family: var(--font-head);
}
.promo__title, .hero__title, .label__name, .error__code { font-weight: 700; letter-spacing: -.02em; }
.label__name { letter-spacing: -.03em; line-height: .95; }
.promo__title { line-height: 1; }
.eyebrow, .section-title { font-weight: 600; letter-spacing: .16em; }
.promo__artist, .hero__artist, .label__meta, .card__title, .service__name, .error__title { font-weight: 600; letter-spacing: 0; }
