/* Harden Vault — shared styles. Mobile-first; no framework. */
/* Self-hosted fonts (Syncopate, Inter: SIL Open Font License, latin subset). */
@font-face { font-family: 'Syncopate'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('/assets/fonts/syncopate-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap;
    src: url('/assets/fonts/inter-300-700-latin.woff2') format('woff2'); }

:root {
    --bg: #0a0a0a;
    --panel: #141414;
    --bone: #f5f5f7;
    --muted: #b7b7bd;
    --line: rgba(245, 245, 247, 0.16);
    --spotify: #1db954;
    --youtube: #e11d19;
    --display: 'Syncopate', 'Arial Black', 'Helvetica Neue', sans-serif;
    --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--bone);
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .brand {
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    overflow-wrap: anywhere;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--bone); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--bone); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main { display: block; }

.grain {
    position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Icons & buttons ---------- */
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
    min-height: 52px; padding: 0 1.6rem; border-radius: 999px; border: 2px solid transparent;
    font: 700 0.8rem/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
    text-align: center; cursor: pointer; transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-spotify { background: var(--spotify); color: #000; }
.btn-youtube { background: var(--youtube); color: #fff; }
.btn-ghost { border-color: rgba(245, 245, 247, 0.55); color: var(--bone); background: transparent; }
.btn-ghost:hover { background: rgba(245, 245, 247, 0.1); filter: none; }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: 0.72rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 200px; }

.link-plain {
    display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px;
    min-width: 44px; padding: 0 6px; justify-content: center;
    color: var(--muted); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.link-plain:hover { color: var(--bone); text-decoration: underline; text-underline-offset: 4px; }
.text-link { color: var(--bone); text-underline-offset: 4px; }

/* ---------- Header / navigation ---------- */
.site-header {
    position: sticky; top: 0; z-index: 70; height: var(--header-h);
    border-bottom: 1px solid var(--line);
}
/* Blur sits on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.site-header::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: rgba(10, 10, 10, 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 700; font-size: 0.95rem; text-decoration: none; letter-spacing: 0.18em; min-height: 44px; display: inline-flex; align-items: center; }
.menu-toggle, .menu-close {
    display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--line); border-radius: 12px; color: var(--bone); cursor: pointer;
}
.menu-toggle .ico, .menu-close .ico { width: 24px; height: 24px; }

.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--muted);
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current='page'] { color: var(--bone); }
.site-nav a[aria-current='page'] { text-decoration: underline; text-underline-offset: 8px; }
.nav-cta { margin-left: 4px; }

/* No JS: nav simply wraps under the brand. */
.no-js .header-in { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; }
.no-js .site-header { position: static; height: auto; }
.no-js .site-nav ul { flex-wrap: wrap; }

@media (max-width: 859px) {
    .js .menu-toggle { display: inline-flex; }
    .js .site-nav {
        display: none; position: fixed; inset: 0; z-index: 80; background: #000; padding: 88px 24px 32px;
        flex-direction: column; overflow-y: auto;
    }
    .js .site-nav.is-open { display: flex; }
    .js .site-nav .menu-close { display: inline-flex; position: absolute; top: 8px; right: 16px; }
    .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .js .site-nav li { border-bottom: 1px solid var(--line); }
    .js .site-nav a:not(.btn) { min-height: 56px; padding: 0 4px; font-size: 1rem; font-family: var(--display); letter-spacing: 0.16em; color: var(--bone); }
    .js .site-nav .nav-cta { border: 0; margin: 16px 0 0; }
    .js .site-nav .nav-cta + .nav-cta { margin-top: 12px; }
    .js .site-nav .nav-cta .btn { width: 100%; min-height: 56px; font-size: 0.85rem; }
}
@media (min-width: 860px) {
    .site-header { height: 72px; --header-h: 72px; }
    .brand { font-size: 1.05rem; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: rgba(255, 255, 255, 0.025); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.15rem, 4.6vw, 1.9rem); line-height: 1.25; }
.section-head p { margin-top: 10px; color: var(--muted); max-width: 60ch; }
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.meta { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--muted); }
.lede { font-size: 1.05rem; color: #dcdce0; max-width: 46ch; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 36px 0 44px; isolation: isolate; }
.hero-bg {
    position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center;
    filter: blur(36px) grayscale(0.5); opacity: 0.28; transform: scale(1.15);
}
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,10,0.2), var(--bg) 96%); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 10.5vw, 4.75rem); line-height: 1.05; letter-spacing: 0.1em; margin: 10px 0 18px; }
.hero .lede { margin-bottom: 24px; }
.hero-actions { display: grid; gap: 12px; max-width: 460px; }
.hero-actions .btn { width: 100%; }
.hero-more { margin-top: 6px; }
.hero-art { width: min(100%, 340px); margin: 0; }
.hero-art img { border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,0.6); }
.hero-art figcaption { margin-top: 12px; }
@media (min-width: 900px) {
    .hero { padding: 72px 0 80px; }
    .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
    .hero-actions { grid-template-columns: 1fr 1fr; max-width: 560px; }
    .hero-art { justify-self: end; width: min(100%, 420px); }
}

/* ---------- Latest release ---------- */
.feature { display: grid; gap: 24px; align-items: center; }
.feature-cover img { border-radius: 10px; border: 1px solid var(--line); width: 100%; max-width: 420px; }
.feature h3 { font-size: clamp(1.1rem, 4.4vw, 1.7rem); line-height: 1.3; margin: 8px 0 12px; }
.feature p.desc { color: #dcdce0; max-width: 52ch; margin-bottom: 20px; }
.feature .btn-row { max-width: 560px; }
.preview-btn {
    margin-top: 14px; background: none; border: 0; padding: 0 0 2px; min-height: 44px; color: var(--muted);
    font: 600 0.78rem var(--body); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
    text-decoration: underline; text-underline-offset: 5px;
}
.preview-btn:hover { color: var(--bone); }
.no-js .preview-btn { display: none; }
.embed-slot { margin-top: 16px; }
.embed-slot iframe { width: 100%; border: 0; border-radius: 12px; }
@media (min-width: 800px) {
    .feature { grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
}

/* ---------- Videos ---------- */
.video-layout { display: grid; gap: 24px; }
.video-card { display: flex; flex-direction: column; gap: 10px; }
.thumb {
    position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px;
    background: #000; border: 1px solid var(--line);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-short img { object-fit: contain; }
.thumb .play-badge {
    position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.35);
}
.thumb .play-badge .ico { width: 22px; height: 22px; }
.video-card h3 { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.video-card h3 a { text-decoration: none; display: inline-block; padding: 6px 0; }
.video-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.video-card .btn-row .btn { flex: 0 1 auto; }
.video-card.is-feature h3 { font-size: 1.2rem; }
.tag {
    display: inline-block; align-self: flex-start; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px;
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.related { font-size: 0.85rem; color: var(--muted); }
.related a { color: var(--bone); text-underline-offset: 3px; }
.facade-frame { aspect-ratio: 16 / 9; }
.facade-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.video-side { display: grid; gap: 20px; }
.video-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.section-cta { margin-top: 32px; }
@media (min-width: 640px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .video-layout { grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
    .video-grid { grid-template-columns: repeat(3, 1fr); }
}
.is-extra[hidden] { display: none; }
.no-js .more-btn { display: none; }
.no-js .is-extra[hidden] { display: flex; }

/* ---------- Releases / discography ---------- */
.release-grid { display: grid; gap: 40px 24px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .release-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .release-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .release-grid { grid-template-columns: repeat(4, 1fr); } }
.release { display: flex; flex-direction: column; gap: 12px; }
.release .cover { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); transition: transform 0.3s ease, border-color 0.3s ease; }
.release .cover:hover { transform: translateY(-3px); border-color: rgba(245,245,247,0.5); }
.release .cover img { width: 100%; aspect-ratio: 1; }
.release h3 { font-size: 0.9rem; line-height: 1.4; letter-spacing: 0.1em; }
.release h3 a { text-decoration: none; display: inline-block; padding: 8px 0; }
.release h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.release .btn-row { margin-top: 4px; }
.release .btn-row .btn { flex: 1 1 100%; }
.release .btn-row .btn + .btn { flex: 1 1 100%; }

details.tracks { border-top: 1px solid var(--line); }
details.tracks summary {
    display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; list-style: none;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
details.tracks summary::-webkit-details-marker { display: none; }
details.tracks summary::after { content: '+'; font-size: 1.3rem; line-height: 1; }
details.tracks[open] summary::after { content: '\2212'; }
details.tracks summary:hover { color: var(--bone); }
.tracklist { padding-bottom: 8px; }
.tracklist li { display: flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid rgba(245,245,247,0.07); font-size: 0.9rem; }
.tracklist .n { width: 1.6em; flex: none; color: var(--muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.tracklist .t { flex: 1; min-width: 0; }
.tracklist .t a { text-decoration: none; display: inline-block; padding: 12px 0; overflow-wrap: anywhere; }
.tracklist .t a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tracklist .d { color: var(--muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.tracklist .w {
    flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px;
    border: 1px solid rgba(225, 29, 25, 0.7); color: #ff8a86; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; text-decoration: none;
}
.tracklist .w:hover { background: rgba(225, 29, 25, 0.16); }

/* ---------- About / contact ---------- */
.about-grid { display: grid; gap: 28px; }
.about-copy p + p { margin-top: 16px; }
.about-copy p { color: #dcdce0; max-width: 62ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.chip {
    padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; background: rgba(255,255,255,0.03);
}
@media (min-width: 860px) { .about-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; } }
.contact { text-align: center; }
.contact .section-head p { margin-inline: auto; }
.contact .btn-row { justify-content: center; max-width: 640px; margin: 0 auto; }
.contact .social { margin-top: 20px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 24px; }
.footer-in { display: grid; gap: 20px; }
.footer-brand a { font-family: var(--display); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; }
.footer-brand span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.1em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-legal { color: var(--muted); font-size: 0.78rem; }
@media (min-width: 860px) {
    .footer-in { grid-template-columns: 1fr auto; align-items: center; }
    .footer-legal { grid-column: 1 / -1; }
}

/* ---------- /links/ ---------- */
.links-page .wrap { max-width: 520px; }
.links-hero { text-align: center; padding: 24px 0 8px; }
.links-hero h1 { font-size: clamp(1.4rem, 8vw, 2rem); letter-spacing: 0.14em; margin-bottom: 6px; }
.links-hero p { color: var(--muted); }
.links-stack { display: grid; gap: 12px; margin-top: 20px; }
.links-latest {
    display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 12px;
    border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.04);
}
.links-latest { text-decoration: none; }
.links-latest img { width: 76px; height: 76px; border-radius: 8px; }
.links-latest .eyebrow { font-size: 0.66rem; letter-spacing: 0.22em; }
.links-latest h2 { font-size: 0.85rem; line-height: 1.35; letter-spacing: 0.08em; margin-top: 2px; }
.links-group { margin-top: 36px; }
.links-group > h2 { font-size: 0.85rem; letter-spacing: 0.2em; margin-bottom: 14px; color: var(--muted); }
.links-release { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.03); margin-bottom: 12px; padding: 10px 14px; }
.links-release-head { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; margin-bottom: 8px; }
.links-release-head img { width: 56px; height: 56px; border-radius: 6px; }
.links-release-head h3 { font-size: 0.78rem; letter-spacing: 0.08em; line-height: 1.35; }
.links-release .btn-row { margin: 8px 0; }
.links-release .btn-row .btn { flex: 1 1 130px; min-height: 44px; font-size: 0.7rem; }
.links-back { text-align: center; margin: 36px 0 12px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 96px 0; }
.notfound h1 { font-size: clamp(1.4rem, 7vw, 2.4rem); margin-bottom: 16px; }
.notfound p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .btn:hover, .release .cover:hover { transform: none; }
}
