/* ==========================================================================
   Vio Lucia - vio.css  (Phase B, brand-matched to the Vio Lucia Control Panel)
   Navy base + orange accent, ambient glows, system font. Heterochromia kept
   as an orange/cyan signature. Single source of truth for the palette.
   ========================================================================== */

:root {
  /* palette (from the Control Panel) */
  --navy:    #0f1822;
  --navy-2:  #1a2738;
  --card:    #1e2b3a;
  --line:    #2c3e52;
  --text:    #e6edf3;
  --muted:   #9fb0c0;
  --orange:  #ff7a1a;
  --orange-2:#ff8d3a;
  --orange-dim: #c95f12;
  --ok:      #36d399;
  --cyan:    #60b4c8;
  --violet:  #aa5feb;
  --err:     #ff5b5b;

  --font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --container: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 76px;

  --card-bg: linear-gradient(180deg, rgba(38,52,72,0.82), rgba(25,37,53,0.82));
  --glow-orange: 0 8px 30px -10px rgba(255,122,26,.55);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font: 16px/1.6 var(--font);
  /* Control-Panel ambient glows over a navy depth gradient */
  background:
    radial-gradient(1250px 680px at 50% -8%, rgba(255,122,26,0.30), transparent 62%),
    radial-gradient(1150px 700px at 118% 2%, rgba(170,95,235,0.34), transparent 60%),
    radial-gradient(1050px 700px at -18% 22%, rgba(96,185,205,0.26), transparent 60%),
    linear-gradient(180deg, #17263d 0%, #090f1a 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--orange); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--orange-2); }
h1,h2,h3,h4 { font-weight: 700; line-height: 1.18; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); border:0; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; position: relative; }
main { min-height: 60vh; }

.eyebrow, .section-eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 700;
  color: var(--orange); margin: 0 0 1rem;
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; min-height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(26, 39, 56, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--orange);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.brand { display: inline-flex; }
.logo { display: inline-flex; align-items: center; }
.brand-logo { height: 60px; width: auto; display: block; }

.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.primary-nav a {
  display: inline-block; padding: 9px 13px; border-radius: var(--radius-sm);
  font-size: .92rem; font-weight: 600; color: var(--muted);
}
.primary-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.primary-nav a.active { color: var(--orange); background: rgba(255,122,26,.10); }
.primary-nav a.nav-cta { color: #1a1206; background: var(--orange); font-weight: 700; }
.primary-nav a.nav-cta:hover { color: #1a1206; background: var(--orange-2); }

.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 9px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text); margin: 4px 0; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 12px 24px; border-radius: var(--radius-sm); font-family: var(--font);
  font-weight: 700; font-size: .95rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-primary { color: #1a1206; background: var(--orange); box-shadow: var(--glow-orange); }
.btn-primary:hover { color: #1a1206; background: var(--orange-2); }
.btn-ghost { color: var(--text); background: var(--navy); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--orange); }

/* ---------- hero (full-bleed band image, fades into the page) ---------- */
.hero {
  position: relative; min-height: min(90vh, 880px);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; text-align: center;
}

/* full-bleed clickable image */
.hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: #0b1018; cursor: zoom-in; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; display: block; }

/* scrim: soft organic fade into the navy bg (bottom + edge vignette) for legibility + a seamless hero-to-content transition */
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 26%, rgba(15,24,34,.5) 60%, var(--navy) 94%),
    radial-gradient(135% 92% at 50% 20%, transparent 48%, rgba(15,24,34,.72) 100%);
}
/* subtle grain to smooth the gradient (2026 noise-texture trend) */
.hero-grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner { position: relative; z-index: 3; max-width: 900px; margin: 0 auto; padding: 0 24px clamp(48px, 9vh, 110px); pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-tagline {
  font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 700; color: var(--text); letter-spacing: -.01em;
  margin: 0 0 1rem; text-shadow: 0 2px 36px rgba(0,0,0,.65);
}
.hero-lede { color: rgba(236,237,243,.92); max-width: 58ch; margin: 0 auto 1.9rem; text-shadow: 0 1px 18px rgba(0,0,0,.7); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- shared card surface ---------- */
.featured, .newsletter, .lore-entry, .persona-card, .release, .spotify-facade, .video-card .video-frame { }

/* ---------- featured release ---------- */
.featured-grid { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 44px; align-items: center; }
.featured-art img, .art-placeholder { width: 100%; aspect-ratio: 1; border-radius: var(--radius); object-fit: cover; }
.art-placeholder, .embed-placeholder, .portrait-placeholder {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--navy); border: 1px solid var(--line); color: var(--muted);
  letter-spacing: .06em; text-transform: uppercase; font-size: .78rem;
}
.featured-title { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.featured-meta { color: var(--orange); font-weight: 700; letter-spacing: .03em; margin-top: -.3em; }
.featured-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.3rem; }

/* ---------- newsletter ---------- */
.newsletter-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding: 40px; border-radius: var(--radius);
  background: var(--card-bg); border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.newsletter-title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 12px; }
.newsletter-form input[type=email] {
  flex: 1 1 220px; min-width: 0; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--navy); border: 1px solid var(--line); color: var(--text); font: inherit;
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form input:focus { outline: none; border-color: var(--orange); }
.form-note { flex-basis: 100%; color: var(--muted); font-size: .8rem; margin: 4px 0 0; }

/* ---------- Kit (kit.com) inline form embed ----------
   Kit renders real DOM (.formkit-form/.formkit-input/.formkit-submit) with
   inline style="" attributes for color/background - only !important in an
   author stylesheet reliably beats those, plain specificity does not. */
.kit-embed { width: 100%; }
.kit-embed-page { max-width: 460px; margin: 24px auto 0; }
.kit-embed .formkit-form { width: 100% !important; max-width: 100% !important; }
.kit-embed .formkit-fields { display: flex !important; flex-wrap: wrap; gap: 12px; }
.kit-embed .formkit-field { flex: 1 1 220px; }
.kit-embed .formkit-input {
  background: var(--navy) !important; color: var(--text) !important;
  border: 1px solid var(--line) !important; border-radius: var(--radius-sm) !important;
  padding: 12px 16px !important; font: inherit !important; width: 100% !important;
}
.kit-embed .formkit-input::placeholder { color: var(--muted); opacity: 1; }
.kit-embed .formkit-input:focus { outline: none; border-color: var(--orange) !important; }
.kit-embed .formkit-submit {
  background-color: var(--orange) !important; color: #1a1206 !important;
  border-radius: var(--radius-sm) !important; font-weight: 700 !important;
  padding: 12px 24px !important; border: 1px solid transparent !important;
}
.kit-embed .formkit-submit:hover { background-color: var(--orange-2) !important; }
.kit-embed .formkit-alert-error:not(:empty) { color: #ff8f8f; font-size: .82rem; margin-top: 6px; }
.kit-embed .formkit-powered-by-convertkit { color: var(--muted) !important; font-size: .7rem !important; opacity: .7; }
.kit-note { margin-top: 14px; }

/* ---------- page head / prose ---------- */
.page-content { padding: 60px 0 36px; max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.page-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.page-title { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-subtitle { color: var(--muted); font-size: 1.12rem; }
.page-footnote { color: var(--muted); font-size: .85rem; text-align: center; margin-top: 36px; }
.prose { max-width: 70ch; }
.prose.world-intro, .band-intro { margin: 0 auto 48px; text-align: center; }
.prose.page-intro { margin-left: auto; margin-right: auto; text-align: center; }
.prose h2 { margin-top: 1.6em; color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-sm); margin: 1.2rem 0; }

/* ---------- merged-page sections (e.g. Playlists+Releases on Music, World on Band) ---------- */
.page-section { margin-top: 56px; }
.section-label { font-size: clamp(1.5rem, 3.5vw, 2.1rem); text-align: center; margin: 0 0 10px; }
.section-note { color: var(--muted); text-align: center; max-width: 620px; margin: 0 auto 30px; font-size: .98rem; }

/* ---------- persona grid ---------- */
.persona-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.persona-card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.28); transition: transform .18s ease, border-color .18s ease;
}
.persona-card:hover { transform: translateY(-4px); border-color: var(--orange); }
.persona-card.is-lead { border-color: var(--orange); box-shadow: 0 8px 30px -8px rgba(255,122,26,.5); }
.persona-portrait { aspect-ratio: 4/5; }
.persona-portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder { height: 100%; gap: 18px; background: var(--navy); }
.eye { width: 26px; height: 26px; border-radius: 50%; display: inline-block; box-shadow: 0 0 18px currentColor; }
.eye--orange { background: var(--orange); color: var(--orange); }
.eye--cyan { background: var(--cyan); color: var(--cyan); }
.eye--violet { background: var(--violet); color: var(--violet); }
.persona-body { padding: 18px; }
.persona-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.persona-name { font-size: 1.25rem; margin: 0; }
.persona-role { color: var(--orange); font-size: .8rem; letter-spacing: .03em; text-transform: uppercase; font-weight: 700; margin: .2rem 0 .7rem; }
.persona-blurb { color: var(--muted); font-size: .92rem; margin: 0; }
.persona-status { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; padding: 4px 9px; border-radius: 999px; font-weight: 700; }
.status--active { background: rgba(255,122,26,.18); color: var(--orange); }
.status--decommissioned { background: rgba(96,180,200,.14); color: var(--cyan); }
.status--unknown, .status--tbd { background: var(--navy-2); color: var(--muted); }

/* ---------- releases ---------- */
.release-list { display: flex; flex-direction: column; gap: 24px; max-width: 940px; margin: 0 auto; }
.release { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: stretch; padding: 20px; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0,0,0,.28); }
.embed-frame, .embed-placeholder { aspect-ratio: 1; width: 100%; border-radius: var(--radius-sm); overflow: hidden; }
.embed-frame { background: #000; }
.release-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.release-title { font-size: 1.5rem; margin: 0; }
.release-meta { color: var(--orange); font-weight: 700; font-size: .82rem; letter-spacing: .03em; }
.story-label { text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; color: var(--cyan); font-weight: 700; margin: 1rem 0 .3rem; }
.release-story { color: var(--muted); }
.release-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.play-glyph { color: var(--orange); font-size: 1.4rem; }

/* ---------- playlists (Spotify click-facades) ---------- */
.spotify-facade {
  display: block; width: 100%; padding: 0; text-align: left; cursor: pointer;
  color: var(--text); font-family: inherit;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,.28);
  transition: transform .18s ease, border-color .18s ease;
}
.spotify-facade:hover { transform: translateY(-3px); border-color: var(--orange); }
.sp-cover { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.sp-meta { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.sp-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .66rem; font-weight: 700; color: var(--cyan); }
.sp-title { font-size: 1.15rem; font-weight: 700; }
.sp-hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.sp-hint .play-glyph { font-size: 1rem; }
/* featured: cover left, meta right */
.spotify-featured { margin-bottom: 26px; }
.sp-feat { display: grid; grid-template-columns: 260px 1fr; align-items: center; }
.sp-feat .sp-cover { aspect-ratio: 1; }
.sp-feat .sp-meta { padding: 20px 26px; }
.sp-feat .sp-title { font-size: 1.6rem; }
.spotify-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.spotify-cell { display: flex; flex-direction: column; }
.spotify-embed { display: block; width: 100%; border: 0; border-radius: var(--radius); }
.spotify-open { display: inline-block; margin-top: 8px; color: var(--muted); font-size: .8rem; transition: color .15s ease; }
.spotify-open:hover { color: var(--orange); }

/* ---------- shop: merch preview gallery + newsletter signal ---------- */
.merch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.merch-tile { margin: 0; display: flex; flex-direction: column; }
.merch-tile.is-wide { grid-column: 1 / -1; }
.merch-view {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--card-bg);
  box-shadow: 0 8px 28px rgba(0,0,0,.28); transition: transform .18s ease, border-color .18s ease;
}
.merch-view:hover { transform: translateY(-3px); border-color: var(--orange); }
.merch-img, .merch-view img { display: block; width: 100%; height: auto; }
.merch-soon {
  position: absolute; top: 12px; right: 12px; padding: 4px 11px; border-radius: 999px;
  background: rgba(15,24,34,.82); border: 1px solid var(--orange); color: var(--orange);
  font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
}
.merch-tile figcaption { display: flex; flex-direction: column; gap: 2px; padding: 12px 4px; }
.merch-title { font-weight: 700; }
.merch-tease { color: var(--muted); font-size: .88rem; }
.shop-signal { text-align: center; }
.shop-signal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.video-card { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: #000; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s ease; }
.video-facade:hover img { opacity: 1; }
.video-facade .play-glyph { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 2.4rem; color: #fff; text-shadow: 0 0 18px rgba(255,122,26,.8); }
.video-card figcaption { display: flex; flex-direction: column; gap: 2px; padding: 12px 4px; }
.video-title { font-weight: 700; }
.video-desc { color: var(--muted); font-size: .88rem; }
.video-fallback { color: var(--muted); font-size: .78rem; margin-top: 4px; align-self: flex-start; transition: color .15s ease; }
.video-fallback:hover { color: var(--orange); }

/* ---------- world / lore ---------- */
.lore-stack { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.lore-entry { padding: 26px 28px; background: var(--card-bg); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: 0 8px 28px rgba(0,0,0,.28); }
.lore-title { font-size: 1.4rem; color: var(--text); }
.lore-flag { color: var(--cyan); font-size: .8rem; font-style: italic; margin-top: -.4rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 54px; padding: 50px 0 28px; background: rgba(15,24,34,.5); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer-brand .brand-logo { height: 60px; }
.footer-newsletter { text-align: right; }
.footer-nl-heading { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 10px; color: var(--text); }
.footer-nl-text { color: var(--muted); font-size: .95rem; margin: 0 0 18px auto; max-width: 46ch; }
.footer-nl-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.footer-social { display: flex; flex-direction: row; align-items: center; gap: 18px; }
.footer-social a { color: var(--muted); display: inline-flex; line-height: 0; transition: color .15s ease; }
.footer-social a:hover { color: var(--orange); }
.footer-social .icon, .footer-social svg { display: block; }
.footer-social svg { width: auto; height: 44px; fill: currentColor; }
.footer-ai { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-ai a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; transition: color .15s ease; }
.footer-ai a:hover { color: var(--orange); }
.footer-base { display: flex; align-items: center; justify-content: center; text-align: center; gap: 14px; margin-top: 16px; padding-top: 4px; color: var(--muted); font-size: .82rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .featured-grid, .newsletter-card, .release { grid-template-columns: 1fr; }
  .persona-grid, .spotify-grid, .merch-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .release-media { max-width: 360px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    background: rgba(15,24,34,.98); backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--orange);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .primary-nav.open { max-height: 78vh; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 22px; }
  .primary-nav a { padding: 14px 12px; }
  .section { padding: 54px 0; }
  .sp-feat { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .persona-grid, .spotify-grid, .merch-grid { grid-template-columns: 1fr; }
  .footer-grid, .footer-base { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: center; }
  .footer-newsletter { text-align: left; }
  .footer-nl-text { margin-left: 0; }
  .footer-nl-actions { justify-content: flex-start; }
  .newsletter-card { padding: 26px; }
}

/* ---------- motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* ==========================================================================
   Archive gallery (Phase D)
   ========================================================================== */
.archive-empty { text-align: center; color: var(--muted); }
.archive-empty code { background: var(--navy); padding: 2px 6px; border-radius: 4px; color: var(--orange); }

.archive-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.afilter {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  background: var(--navy); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; font-weight: 600;
}
.afilter:hover { color: var(--text); border-color: var(--orange); }
.afilter.active { color: #1a1206; background: var(--orange); border-color: var(--orange); }
.afilter span { font-size: .78rem; opacity: .8; font-variant-numeric: tabular-nums; }
.afilter.active span { opacity: .9; }

.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.archive-card {
  margin: 0; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,.28); display: flex; flex-direction: column;
}
.archive-media { position: relative; aspect-ratio: 1; background: #0b1018; overflow: hidden; }
.archive-media > img, .archive-media > video,
.acar-slide > img, .acar-slide > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.amedia-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2; font-size: .68rem; font-weight: 700;
  background: rgba(15,24,34,.78); color: var(--text); padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px);
}

/* carousel */
.acar-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.acar-track::-webkit-scrollbar { display: none; }
.acar-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
.acar-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(15,24,34,.7); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; backdrop-filter: blur(4px);
}
.acar-nav:hover { border-color: var(--orange); color: var(--orange); }
.acar-nav.prev { left: 8px; } .acar-nav.next { right: 8px; }
.acar-count {
  position: absolute; top: 8px; right: 8px; z-index: 2; font-size: .7rem; font-weight: 700;
  background: rgba(15,24,34,.78); color: var(--text); padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px);
  font-variant-numeric: tabular-nums;
}

.archive-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.archive-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.archive-meta time { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.atype { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.atype-posts { background: rgba(255,122,26,.16); color: var(--orange); }
.atype-reels { background: rgba(170,95,235,.18); color: var(--violet); }
.atype-archived_posts { background: rgba(96,180,200,.16); color: var(--cyan); }
.archive-cap { color: var(--muted); font-size: .85rem; margin: 0; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.pager-info { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .archive-info { padding: 10px; }
  .archive-cap { -webkit-line-clamp: 2; }
}

/* zoom affordance on each card */
.amedia-zoom {
  position: absolute; right: 8px; bottom: 8px; z-index: 3;
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(15,24,34,.72); color: var(--text); font-size: 15px; line-height: 1; cursor: pointer;
  backdrop-filter: blur(4px); opacity: .85;
}
.amedia-zoom:hover { border-color: var(--orange); color: var(--orange); opacity: 1; }
.archive-media { cursor: zoom-in; }

/* archive controls: filters + search + per-page */
.archive-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: var(--container); margin: 0 auto 14px; }
.archive-search { display: flex; align-items: center; gap: 8px; background: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 14px; flex: 1 1 280px; max-width: 440px; }
.archive-search:focus-within { border-color: var(--orange); }
.archive-search .search-ico { color: var(--muted); font-size: .9rem; }
.archive-search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; padding: 7px 2px; }
.archive-search input:focus { outline: none; }
.archive-search input::placeholder { color: var(--muted); }
.search-go { background: var(--orange); color: #1a1206; border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .85rem; cursor: pointer; }
.search-go:hover { background: var(--orange-2); }

.archive-subbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: var(--container); margin: 0 auto 24px; min-height: 26px; }
.archive-resultcount { color: var(--muted); font-size: .88rem; }
.archive-resultcount strong { color: var(--text); }
.result-clear { margin-left: 8px; color: var(--orange); font-weight: 600; }
.archive-persize { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.persize-select { background: var(--navy); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; }
.persize-select:hover { border-color: var(--orange); }

@media (max-width: 640px) {
  .archive-controls { flex-direction: column; align-items: stretch; }
  .archive-search { max-width: none; }
  .archive-persize { margin-left: 0; }
}

/* ---------- lightbox ---------- */
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.86); backdrop-filter: blur(6px); }
.lb-box {
  position: relative; z-index: 1; display: flex; gap: 0; width: min(1100px, 95vw); max-height: 92vh;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
}
.lb-close {
  position: absolute; top: 10px; right: 10px; z-index: 4; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(15,24,34,.8); color: var(--text); border: 1px solid var(--line); font-size: 22px; line-height: 1; cursor: pointer;
}
.lb-close:hover { background: var(--err); color: #fff; border-color: var(--err); }
.lb-stage { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; background: #07080c; }
.lb-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-media img, .lb-media video { max-width: 100%; max-height: 92vh; object-fit: contain; display: block; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(15,24,34,.72); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; backdrop-filter: blur(4px);
}
.lb-nav:hover { border-color: var(--orange); color: var(--orange); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-counter { position: absolute; top: 12px; left: 12px; z-index: 3; font-size: .76rem; font-weight: 700;
  background: rgba(15,24,34,.78); color: var(--text); padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.lb-info { flex: 0 0 320px; display: flex; flex-direction: column; padding: 44px 20px 20px; gap: 12px; overflow: hidden; }
.lb-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lb-type { font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--orange);
  background: rgba(255,122,26,.16); padding: 3px 9px; border-radius: 999px; }
.lb-meta time { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.lb-caption { color: var(--text); font-size: .92rem; line-height: 1.6; white-space: pre-wrap; overflow-y: auto; }

@media (max-width: 760px) {
  .lightbox { padding: 0; }
  .lb-box { flex-direction: column; width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .lb-stage { flex: 1 1 auto; min-height: 0; }
  .lb-media img, .lb-media video { max-height: 60vh; }
  .lb-info { flex: 0 0 auto; max-height: 38vh; padding: 16px 18px; }
}

/* ==========================================================================
   The Band - hero video, clickable member cards, member lightbox (tabs)
   ========================================================================== */
.band-hero { max-width: 960px; margin: 0 auto 56px; }
.band-hero-video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 16px 50px -20px rgba(0,0,0,.6); }
.bandvid-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.bandvid-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s ease; }
.bandvid-facade:hover img { opacity: 1; }
.bandvid-facade .play-glyph { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 3rem; color: #fff; text-shadow: 0 0 22px rgba(255,122,26,.85); }
.bandvid-player { width: 100%; height: 100%; display: block; border: 0; }
.band-hero-copy { text-align: center; max-width: 70ch; margin: 24px auto 0; }
.band-hero-heading { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--orange); margin-bottom: .4em; }

/* member cards become clickable */
.persona-card { cursor: pointer; }
.persona-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.persona-portrait { position: relative; }
.persona-zoom {
  position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 30px; height: 30px;
  border-radius: 8px; border: 1px solid var(--line); background: rgba(15,24,34,.72); color: var(--text);
  display: flex; align-items: center; justify-content: center; font-size: 15px; opacity: 0; transition: opacity .15s ease;
}
.persona-card:hover .persona-zoom { opacity: .9; }

/* member lightbox: wider info column + tabbed lore */
.band-info { flex: 0 0 380px; padding: 46px 22px 22px; }
.band-lb-name { font-size: 1.6rem; margin: 0 0 2px; }
.band-lb-role { color: var(--orange); font-size: .82rem; font-weight: 700; letter-spacing: .02em; margin: 0 0 16px; }
.band-lb-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.band-lb-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .88rem; padding: 7px 6px; cursor: pointer; }
.band-lb-tabs button:hover { color: var(--text); }
.band-lb-tabs button.active { color: var(--orange); border-bottom-color: var(--orange); }
.band-lb-content { overflow-y: auto; color: var(--text); font-size: .95rem; line-height: 1.65; }
.band-lb-content p { margin: 0 0 .9em; }
.band-lb-content p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .band-lightbox .lb-media img { max-height: 46vh; }
  .band-info { flex: 0 0 auto; max-height: 54vh; padding: 16px 18px; }
}

/* single-image lightbox (home hero) */
.img-box { background: transparent; border: 0; box-shadow: none; width: auto; max-width: 96vw; max-height: 94vh; display: block; }
.img-box .lb-media { display: flex; align-items: center; justify-content: center; }
.img-box .lb-media img { max-width: 96vw; max-height: 94vh; object-fit: contain; border-radius: var(--radius); display: block; }
.img-box .lb-close { background: rgba(15,24,34,.82); }

/* ==========================================================================
   AI DISCLOSURE - EU AI Act Art. 50 + UWG Sec. 5a
   --------------------------------------------------------------------------
   Two components. Every surface that shows generated media carries the badge;
   surfaces that also show a caption carry the note above it.

     .ai-badge   overlay pill that sits ON the medium. This is the piece that
                 satisfies "at the latest at the time of first exposure" - the
                 label has to be visible together with the image, not one click
                 away on /ai. Deliberately NOT a link and pointer-events:none,
                 so it can never swallow a click meant for the media itself
                 (video facades, Spotify facades, lightbox triggers).
     .ai-note    text line above a caption. Carries the link to /ai.

   Placement per surface is chosen so the pill never lands on an existing
   control: archive tiles keep top-left (reel badge), top-right (carousel
   count) and bottom-right (zoom), so the AI pill goes bottom-left.
   Read docs/AI-DISCLOSURE.md before moving or removing either component.
   ========================================================================== */
.ai-badge {
  position: absolute; z-index: 4; bottom: 8px; left: 8px; pointer-events: none;
  font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  background: rgba(15,24,34,.82); border: 1px solid rgba(96,180,200,.55); color: var(--cyan);
  backdrop-filter: blur(4px);
}
.ai-badge--tl { top: 8px; bottom: auto; left: 8px; right: auto; }
.ai-badge--tr { top: 8px; bottom: auto; right: 8px; left: auto; }
.ai-badge--br { bottom: 8px; top: auto; right: 8px; left: auto; }
/* full-bleed surface: clear the edge and the sticky header */
.ai-badge--hero { top: 16px; left: 16px; bottom: auto; }
/* lightbox: bottom-left is free (counter is top-left, prev-arrow is centred).
   .img-box gets its own rule rather than the .lb-stage class - .lb-stage carries
   flex: 1 1 auto, which would stretch the single-image box inside .lightbox. */
.lb-stage .ai-badge { bottom: 12px; left: 12px; }
.img-box { position: relative; }
.img-box .ai-badge { bottom: 12px; left: 12px; }

.ai-note {
  margin: 0; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--cyan);
}
.ai-note a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid rgba(96,180,200,.35); transition: color .15s ease, border-color .15s ease;
}
.ai-note a:hover { color: var(--orange); border-color: var(--orange); }

/* positioning context for the overlay pill (the rest already have one) */
.featured-art, .release-media, .spotify-featured, .spotify-cell { position: relative; }

/* Mobile: the archive grid drops to 2 columns, so the pill has ~133px of tile to
   live in and the zoom button starts at 144px. Letter-spacing is traded away for
   font-size - a bigger glyph reads better than a wider gap, and "clearly visible"
   is the legal test. Measured: .64rem/.02em/5px ends at 143px, 1px clear of zoom.
   Do not raise the font-size further without re-measuring against .amedia-zoom. */
@media (max-width: 560px) {
  .ai-badge { font-size: .64rem; padding: 2px 5px; letter-spacing: .02em; }
  .ai-note  { font-size: .64rem; letter-spacing: .06em; }
}
