/* ============================================================
   Rodrigo Rodriguez — design system v2 (futuristic)
   Reading: musician portfolio, midnight-studio futurism.
   Deep space-blue glass, electric cyan accent, Space Grotesk
   + JetBrains Mono. Shape lock: pills interactive, 16px cards.
   One accent. Zero em-dashes. Reduced-motion honored.
   ============================================================ */

:root {
  --bg: #070b12;
  --bg-soft: #0b1019;
  --bg-card: #0e1520;
  --bg-elevated: #121a28;
  --fg: #e8eef7;
  --fg-muted: #97a3b6;
  --fg-dim: #8697ad;
  --accent: #22d3ee;
  --accent-soft: #67e8f9;
  --accent-dim: #0e5f75;
  --accent-ink: #04141a;
  --border: #1b2534;
  --border-strong: #2a3a52;
  --line: rgba(148, 163, 184, 0.14);
  --glow: 0 0 28px rgba(34, 211, 238, 0.16);
  --scrim: rgba(4, 7, 12, 0.6);
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --header-h: 68px;
}

[data-theme="light"] {
  --bg: #eef1f6;
  --bg-soft: #e6ebf2;
  --bg-card: #ffffff;
  --bg-elevated: #f7fafc;
  --fg: #0b1220;
  --fg-muted: #46536b;
  --fg-dim: #5a6980;
  --accent: #0e7490;
  --accent-soft: #0e7490;
  --accent-dim: #a5e6f4;
  --accent-ink: #f2fdff;
  --border: #d8dfe9;
  --border-strong: #c2ccd9;
  --line: rgba(11, 18, 32, 0.1);
  --glow: 0 0 28px rgba(14, 116, 144, 0.14);
  --scrim: rgba(230, 236, 244, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(34, 211, 238, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(34, 211, 238, 0.05), transparent 55%),
    var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

.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:focus {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  width: auto; height: auto; clip: auto;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; border-radius: 999px; font-weight: 700;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0.04em;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(34, 211, 238, 0.08);
}

.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.logo-profile {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.05em;
  text-decoration: none; color: var(--fg);
  white-space: nowrap;
}

.logo-profile img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 0 14px rgba(34, 211, 238, 0.25);
}

/* Disrupção cover as the site mark: rounded app-icon with cobalt glow */
.logo-profile .logo-cover {
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(103, 232, 249, 0.45);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.3),
    0 0 16px rgba(7, 79, 183, 0.55),
    0 0 10px rgba(34, 211, 238, 0.3);
}

[data-theme="light"] .logo-profile .logo-cover {
  border-color: rgba(14, 116, 144, 0.5);
  box-shadow: 0 0 0 1px rgba(14, 116, 144, 0.3), 0 2px 8px rgba(0, 29, 138, 0.25);
}

.logo-profile .logo-name { color: var(--fg); }

@media (max-width: 419px) {
  .logo-profile { font-size: 12.5px; }
}

.nav-desktop { display: none; align-items: center; gap: 2px; }

@media (min-width: 1000px) {
  .nav-desktop { display: flex; }
}

.nav-desktop > a,
.nav-desktop .dropdown-trigger {
  position: relative;
  padding: 8px 13px; border-radius: 999px;
  text-decoration: none; color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  transition: color 0.18s var(--ease-out), background 0.18s var(--ease-out);
  white-space: nowrap;
}

.nav-desktop > a:hover,
.nav-desktop .dropdown-trigger:hover {
  color: var(--fg); background: var(--bg-soft);
}

.nav-desktop > a.active { color: var(--accent); }

.nav-desktop > a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--accent);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.7);
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-select {
  background: transparent; color: var(--fg-muted);
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 7px 10px; font-family: var(--font-mono);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}

.lang-select:hover { color: var(--fg); border-color: var(--accent-dim); }
.lang-select option { background: var(--bg); color: var(--fg); }

.theme-toggle,
.mobile-toggle {
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--fg-muted); border-radius: 999px;
  width: 36px; height: 36px; display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer;
  transition: color 0.18s, border-color 0.18s, transform 0.12s var(--ease-out);
}

.theme-toggle:hover, .mobile-toggle:hover { color: var(--fg); border-color: var(--accent-dim); }
.theme-toggle:active { transform: scale(0.94); }

.theme-icon-dark { display: none; }
.theme-icon-light { display: block; }

[data-theme="dark"] .theme-icon-dark { display: block; }
[data-theme="dark"] .theme-icon-light { display: none; }

@media (min-width: 1000px) {
  .mobile-toggle { display: none; }
}

.mobile-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 90;
  background: rgba(3, 6, 10, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.mobile-overlay.open { display: block; }

.mobile-overlay-inner {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
  background: var(--bg); border-left: 1px solid var(--border);
  padding: 20px 24px 32px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}

.mobile-overlay-inner a {
  padding: 11px 10px; border-radius: 10px;
  text-decoration: none; color: var(--fg-muted);
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.mobile-overlay-inner a:hover { background: var(--bg-soft); color: var(--accent); }
.mobile-overlay-inner a:active { background: var(--bg-soft); }

.mobile-overlay-close {
  align-self: flex-end; background: none; border: 1px solid var(--border-strong);
  color: var(--fg); border-radius: 999px; padding: 7px 16px; cursor: pointer;
  margin-bottom: 10px; font-family: var(--font-mono); font-weight: 600;
}

.mob-group {
  color: var(--accent); font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 10.5px; font-weight: 700; margin: 18px 0 6px; padding: 0 10px;
}

/* ---------- Dropdown menus ---------- */

.dropdown { position: relative; }

.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 300px; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), var(--glow); z-index: 60;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu { display: block; }

.dropdown-menu::before {
  content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}

.dropdown-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 10px; color: var(--fg); font-size: 14px;
  font-weight: 600; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:hover { background: var(--bg-soft); color: var(--accent); }

.dropdown-menu a em {
  font-style: normal; color: var(--fg-dim); font-size: 12px;
  font-family: var(--font-mono); letter-spacing: 0.04em;
}

.dd-group-label {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-dim); padding: 10px 12px 4px; font-weight: 700;
}

.dd-divider { height: 1px; background: var(--border); margin: 6px 0; }

.dropdown-menu-artists { min-width: 250px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  min-height: min(92svh, 860px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg { position: absolute; inset: 0; }

.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 28%;
  filter: brightness(0.85) saturate(0.95) contrast(1.03);
}

.hero-bg::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(900px 520px at 82% 24%, rgba(34, 211, 238, 0.16), transparent 65%),
    linear-gradient(rgba(34, 211, 238, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.1) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  -webkit-mask-image: linear-gradient(to top, #000 12%, transparent 70%);
  mask-image: linear-gradient(to top, #000 12%, transparent 70%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(1100px 620px at 78% 78%, rgba(7, 79, 183, 0.5), transparent 62%),
    radial-gradient(760px 420px at 88% 30%, rgba(0, 29, 138, 0.42), transparent 65%),
    linear-gradient(to top, var(--bg) 2%, rgba(2, 8, 40, 0.5) 40%, transparent 74%),
    linear-gradient(100deg, rgba(2, 8, 40, 0.44) 8%, transparent 62%);
}

[data-theme="light"] .hero-bg::after {
  background:
    radial-gradient(1100px 620px at 78% 78%, rgba(7, 79, 183, 0.24), transparent 62%),
    radial-gradient(760px 420px at 88% 30%, rgba(0, 29, 138, 0.2), transparent 65%),
    linear-gradient(to top, var(--bg) 2%, rgba(238, 241, 246, 0.4) 42%, transparent 74%),
    linear-gradient(100deg, rgba(8, 20, 80, 0.3) 8%, transparent 60%);
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 28px 84px;
}

.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 700; color: var(--accent);
  background: var(--scrim);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px; padding: 8px 18px; margin-bottom: 24px;
}

.hero-kicker .k-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.9);
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(48px, 8.6vw, 104px);
  font-weight: 700; line-height: 0.98; letter-spacing: -0.015em;
  color: #f2f7fd;
  text-wrap: balance;
}

[data-theme="light"] .hero h1 { color: #0b1220; }

.hero-sub {
  max-width: 560px; font-size: 18px; font-weight: 500; line-height: 1.6;
  color: rgba(232, 238, 247, 0.86);
  margin: 0 0 30px;
  text-shadow: 0 1px 14px rgba(4, 7, 12, 0.55);
}

[data-theme="light"] .hero-sub { color: rgba(11, 18, 32, 0.82); text-shadow: none; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer; font-family: var(--font-body);
  transition: transform 0.16s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(0.98); }

/* Futuristic album-grade buttons: deep cobalt gradient, cyan energy
   seam, sheen sweep on hover. Palette lifted from the Disrupção cover. */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(118deg, #0a55c9 0%, #074fb7 30%, #02135c 72%, #062a7e 100%);
  color: #eaf6ff;
  border: 1px solid rgba(103, 232, 249, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(190, 232, 255, 0.35),
    inset 0 -8px 22px rgba(2, 8, 40, 0.55),
    0 0 0 1px rgba(34, 211, 238, 0.12),
    0 10px 34px rgba(7, 79, 183, 0.45),
    0 0 26px rgba(34, 211, 238, 0.22);
  text-shadow: 0 0 14px rgba(103, 232, 249, 0.45);
}

.btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% -30%, rgba(103, 232, 249, 0.28), transparent 55%),
    linear-gradient(90deg, transparent 12%, rgba(103, 232, 249, 0.14) 50%, transparent 88%);
  pointer-events: none;
}

.btn-primary::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -80%;
  width: 55%;
  background: linear-gradient(100deg, transparent, rgba(238, 246, 255, 0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s var(--ease-out);
  pointer-events: none;
}

.btn-primary:hover {
  border-color: rgba(103, 232, 249, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(190, 232, 255, 0.45),
    inset 0 -8px 22px rgba(2, 8, 40, 0.55),
    0 0 0 1px rgba(34, 211, 238, 0.2),
    0 14px 44px rgba(7, 79, 183, 0.55),
    0 0 38px rgba(34, 211, 238, 0.35);
  transform: translateY(-1px);
}

.btn-primary:hover::after { left: 130%; }

.btn-ghost {
  position: relative;
  color: var(--fg);
  border-color: var(--border-strong);
  background:
    linear-gradient(150deg, rgba(34, 211, 238, 0.05), transparent 40%),
    color-mix(in srgb, var(--bg-card) 70%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: rgba(103, 232, 249, 0.65);
  color: var(--accent-soft);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.18), inset 0 0 18px rgba(34, 211, 238, 0.06);
  transform: translateY(-1px);
}

.btn-light {
  position: relative;
  background: linear-gradient(118deg, rgba(238, 246, 255, 0.12), rgba(238, 246, 255, 0.05));
  color: #eaf6ff;
  border: 1px solid rgba(190, 232, 255, 0.38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(238, 246, 255, 0.22), 0 0 20px rgba(34, 211, 238, 0.1);
}

.btn-light:hover {
  border-color: rgba(238, 246, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(238, 246, 255, 0.3), 0 0 30px rgba(34, 211, 238, 0.22);
  transform: translateY(-1px);
}

[data-theme="light"] .btn-primary {
  color: #f2fbff;
}

[data-theme="light"] .btn-light {
  background: linear-gradient(118deg, rgba(11, 18, 32, 0.08), rgba(11, 18, 32, 0.03));
  color: var(--fg);
  border-color: rgba(11, 18, 32, 0.35);
  box-shadow: none;
}

[data-theme="light"] .btn-light:hover {
  border-color: rgba(11, 18, 32, 0.6);
  box-shadow: 0 0 20px rgba(14, 116, 144, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary::after { display: none; }
}

/* ---------- Sections ---------- */

.section { padding: 104px 0; }
.section-tight { padding: 56px 0; }

@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .section-tight { padding: 44px 0; }
}

.section-head { margin-bottom: 44px; max-width: 720px; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 700; margin: 0; line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section-head p { color: var(--fg-muted); margin: 14px 0 0; }

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); margin: 0 0 14px;
}

/* ---------- Cards / grids ---------- */

.grid-2 { display: grid; gap: 24px; }
.grid-3 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--fg);
  transition: transform 0.24s var(--ease-out), border-color 0.24s, box-shadow 0.24s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-dim);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), var(--glow);
}

.card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }

.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease-inout);
}

.card:hover .card-media img { transform: scale(1.045); }

.card-media .year-badge {
  position: absolute; top: 14px; right: 14px;
  background: rgba(7, 11, 18, 0.8); color: var(--accent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid rgba(34, 211, 238, 0.3);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  padding: 5px 12px; border-radius: 999px;
}

.card-body { padding: 18px 20px 20px; }

.card-body h3 {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700; margin: 0 0 6px; line-height: 1.2;
}

.card-body p { margin: 0; color: var(--fg-muted); font-size: 14px; line-height: 1.55; }

.initials-tile {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 120% at 20% 15%, var(--bg-elevated) 0%, var(--bg-soft) 58%, var(--bg-card) 100%);
  color: var(--accent);
  font-family: var(--font-mono); font-weight: 700; font-size: 38px;
  letter-spacing: 0.06em;
}

/* ---------- Home: bio split ---------- */

.bio-wrap { display: grid; gap: 44px; }

@media (min-width: 940px) {
  .bio-wrap { grid-template-columns: 400px 1fr; gap: 64px; align-items: start; }
}

.bio-photo {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  position: sticky; top: calc(var(--header-h) + 28px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.bio-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(0.85); }

.bio-content p { margin: 0 0 18px; color: var(--fg-muted); font-size: 16.5px; }

.bio-content p:last-child { margin-bottom: 0; }

.bio-content strong { color: var(--fg); }

.bio-content .lead {
  font-size: 21px; line-height: 1.55; color: var(--fg);
  font-weight: 500;
}

/* ---------- Home: asymmetric band grid ---------- */

.band-grid {
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .band-grid { grid-template-columns: 1fr 1fr; }
  .band-grid .band-lead { grid-row: span 2; }
}

@media (min-width: 940px) {
  .band-grid { grid-template-columns: 1.25fr 1fr 1fr; }
}

.band-lead .card-media { aspect-ratio: 4 / 4.6; }

/* ---------- Marquee ---------- */

.marquee-strip {
  overflow: hidden; padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 600; font-style: normal;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-dim); white-space: nowrap;
}

.marquee-track span i {
  font-style: normal; color: var(--accent);
  font-size: 9px; vertical-align: middle; margin-left: 56px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Embedded players ---------- */

.embed-frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4), var(--glow);
  max-width: 760px;
}

.embed-frame iframe { display: block; width: 100%; border: 0; height: 352px; }

/* ---------- Books ---------- */

.book-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  text-decoration: none; color: var(--fg);
  transition: transform 0.24s var(--ease-out), border-color 0.24s, box-shadow 0.24s;
}

.book-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-dim);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36), var(--glow);
}

.book-cover {
  aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.22);
  position: relative;
}

.book-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s var(--ease-inout); }
.book-card:hover .book-cover img { transform: scale(1.04); }

.book-cover.book-cover-abstract {
  background:
    linear-gradient(160deg, rgba(34, 211, 238, 0.16), transparent 42%),
    radial-gradient(140% 100% at 15% 0%, #14202e 0%, #0d141f 55%, #080c13 100%);
  display: flex; align-items: center; justify-content: center;
}

.book-cover-abstract span {
  font-family: var(--font-display);
  color: #d9f6fc; font-size: 24px; text-align: center; padding: 12px;
  line-height: 1.2; letter-spacing: -0.01em;
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
}

.book-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  margin: 0 0 6px;
}

.book-card p { margin: 0 0 12px; color: var(--fg-muted); font-size: 14px; line-height: 1.55; }

.book-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}

.book-tag::before {
  content: ""; width: 16px; height: 1px; background: var(--accent);
}

/* Book detail */

.book-hero {
  display: grid; gap: 44px; padding: 72px 0 64px;
}

@media (min-width: 900px) {
  .book-hero { grid-template-columns: 340px 1fr; align-items: center; gap: 72px; }
}

.book-hero .book-cover {
  aspect-ratio: 3 / 4; width: 100%; max-width: 340px;
  border-radius: var(--radius-sm);
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.22), 0 30px 70px rgba(0, 0, 0, 0.45), var(--glow);
}

.book-meta h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px); margin: 0 0 10px; line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.book-meta .book-sub { color: var(--fg-muted); font-size: 17.5px; max-width: 560px; margin: 0 0 26px; }

.book-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.book-facts {
  display: flex; flex-wrap: wrap; gap: 10px 36px;
  padding-top: 22px; border-top: 1px solid var(--border);
}

.book-facts div { min-width: 120px; }

.book-facts dt {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-dim); font-weight: 700; margin-bottom: 3px;
}

.book-facts dd { margin: 0; font-weight: 600; font-size: 14.5px; }

.book-preview {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), var(--glow);
}

.book-preview-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.book-preview-bar .bp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.book-preview-bar .bp-dot:first-child { background: var(--accent); box-shadow: 0 0 8px rgba(34, 211, 238, 0.6); }

.book-preview-bar .bp-name {
  flex: 1; text-align: center; font-size: 12px; color: var(--fg-dim);
  font-family: var(--font-mono); letter-spacing: 0.04em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.book-preview-bar .bp-open {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; color: var(--accent);
  text-decoration: none; white-space: nowrap;
}

.book-preview-bar .bp-open:hover { text-decoration: underline; }

.book-frame {
  width: 100%; height: min(76vh, 860px);
  border: 0; display: block; background: #0d141f;
}

/* ---------- Press ---------- */

.press-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }

@media (min-width: 860px) {
  .press-grid { grid-template-columns: 1fr 1fr; }
}

.press-card {
  display: grid; grid-template-columns: 148px 1fr; gap: 20px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  transition: border-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.press-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32), var(--glow);
}

.press-thumb {
  aspect-ratio: 4 / 3; width: 100%; overflow: hidden; border-radius: var(--radius-sm);
  border: 1px solid var(--border); padding: 0; cursor: pointer;
  background: none;
}

.press-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-inout); }

a.press-thumb { display: block; text-decoration: none; }
.press-thumb:hover img { transform: scale(1.05); }

.press-card h3 { margin: 0 0 5px; font-size: 18px; font-family: var(--font-display); font-weight: 700; }

.press-card .press-date {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); margin: 0 0 7px;
}

.press-card p:not(.press-date) { margin: 0 0 10px; color: var(--fg-muted); font-size: 14px; line-height: 1.55; }

.press-open {
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 700; color: var(--accent);
  background: none; border: none; padding: 8px 0; margin-top: 2px;
  min-height: 34px; display: inline-flex; align-items: center;
  cursor: pointer;
  appearance: none;
}

.press-open:hover { text-decoration: underline; }

.press-gallery {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  margin-top: 28px;
}

.press-clip {
  display: block; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-card);
  transition: transform 0.2s var(--ease-out), border-color 0.2s;
  padding: 0; font-family: inherit; color: inherit; text-align: left;
  cursor: pointer; appearance: none;
}

.press-clip img { width: 100%; display: block; aspect-ratio: 3 / 4; object-fit: cover; }

.press-clip:hover { transform: translateY(-3px); border-color: var(--accent); }

/* ---------- Album detail ---------- */

.album-hero {
  padding: 72px 0 56px;
  display: grid; gap: 40px;
}

@media (min-width: 900px) {
  .album-hero { grid-template-columns: 360px 1fr; align-items: end; gap: 64px; }
}

/* GSAP motion layer: 3D depth for cover entrance.
   (Hero scale composition lives with the .hero-bg img rule at the
   bottom of this file, near the site.js parallax.) */
.album-hero { perspective: 1200px; }

.album-cover {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), var(--glow);
  aspect-ratio: 1 / 1;
}

.album-cover img { width: 100%; height: 100%; object-fit: cover; }

.album-meta { display: flex; flex-direction: column; gap: 14px; }

.album-meta h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 700; line-height: 1; margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.album-meta .album-year {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
}

.album-meta .album-desc { color: var(--fg-muted); margin: 0; max-width: 640px; font-size: 16.5px; }

.album-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Tracklist: player console rows */

.tracklist {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 22px;
  margin: 0;
  max-width: 760px;
  list-style: none;
}

.tracklist li {
  display: flex; gap: 20px; align-items: baseline;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  transition: background 0.15s;
}

.tracklist li:hover { background: rgba(34, 211, 238, 0.05); }
.tracklist li:last-child { border-bottom: none; }

.tracklist .track-no {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700; min-width: 30px;
  letter-spacing: 0.06em;
}

.track-link {
  color: var(--fg); text-decoration: none; font-size: 16px; font-weight: 600;
  transition: color 0.18s;
}

.track-link:hover { color: var(--accent); }

.track-link::after {
  content: "▶";
  font-size: 10px; color: var(--accent);
  margin-left: 10px; opacity: 0;
  transition: opacity 0.18s;
}

.track-link:hover::after { opacity: 1; }

.credits {
  display: grid; gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 760px;
}

.credits h3 { font-family: var(--font-display); font-size: 24px; margin: 0 0 8px; }

.credits ul { margin: 0; padding: 0; list-style: none; color: var(--fg-muted); }

.credits li { margin-bottom: 9px; padding-left: 18px; position: relative; font-size: 15px; }

.credits li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-dim);
  box-shadow: 0 0 6px rgba(34, 211, 238, 0.4);
}

/* ---------- Lyrics console ---------- */

.lyr-console {
  display: grid; grid-template-columns: 280px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38), var(--glow);
  max-width: 980px;
}

@media (max-width: 768px) {
  .lyr-console { grid-template-columns: 1fr; }
}

.lyr-side {
  border-right: 1px solid var(--border);
  background: var(--bg-soft);
  display: flex; flex-direction: column;
  max-height: 620px;
}

@media (max-width: 768px) {
  .lyr-side { border-right: 0; border-bottom: 1px solid var(--border); max-height: none; }
}

.lyr-side-head {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-dim); font-weight: 700;
  padding: 16px 18px 10px;
}

.lyr-index {
  overflow-y: auto; padding: 0 10px 14px;
  display: flex; flex-direction: column; gap: 2px;
  flex: 1;
}

.lyr-idx-item {
  display: flex; align-items: baseline; gap: 12px;
  background: none; border: 1px solid transparent;
  border-radius: 10px; padding: 9px 10px;
  color: var(--fg-muted); cursor: pointer; text-align: left;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  appearance: none;
}

.lyr-idx-item .n {
  font-family: var(--font-mono);
  font-size: 11.5px; color: var(--fg-dim); min-width: 22px;
}

.lyr-idx-item:hover { background: var(--bg-card); color: var(--fg); }

.lyr-idx-item[aria-current="true"] {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.25);
  color: var(--accent);
}

.lyr-idx-item[aria-current="true"] .n { color: var(--accent); }

.lyr-stage-wrap { display: flex; flex-direction: column; min-width: 0; }

.lyr-hud {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-dim); font-weight: 700;
}

.lyr-hud .lyr-pos { color: var(--accent); }

.lyr-nav { display: flex; gap: 8px; }

.lyr-nav button {
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--fg-muted); border-radius: 999px;
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px;
  transition: color 0.15s, border-color 0.15s;
}

.lyr-nav button:hover { color: var(--accent); border-color: var(--accent-dim); }

.lyr-progress { height: 2px; background: var(--border); }

.lyr-progress i {
  display: block; height: 100%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.7);
  transition: width 0.3s var(--ease-out);
}

/* Equalizer: pure decoration for the current track (aria-hidden) */

.lyr-eq {
  display: inline-flex; align-items: flex-end; gap: 2px; height: 12px;
}

.lyr-eq i {
  width: 2px; background: var(--accent);
  animation: eq-bounce 1s ease-in-out infinite;
  opacity: 0.35;
}

.lyr-eq i:nth-child(1) { height: 5px; animation-delay: 0s; }
.lyr-eq i:nth-child(2) { height: 10px; animation-delay: 0.15s; }
.lyr-eq i:nth-child(3) { height: 7px; animation-delay: 0.3s; }
.lyr-eq i:nth-child(4) { height: 11px; animation-delay: 0.45s; }

@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.lyr-idx-item[aria-current="true"] .lyr-eq i { opacity: 1; }

.lyr-stage {
  padding: 36px 40px 44px;
  min-height: 380px; max-height: 560px; overflow-y: auto;
}

@media (max-width: 768px) {
  .lyr-stage { padding: 26px 20px 34px; min-height: 300px; }
}

.lyr-track-title {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700; margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.lyr-text {
  font-size: 17px; line-height: 1.85;
  color: var(--fg-muted);
  white-space: pre-line;
}

/* Legacy server-rendered lyrics (no-JS fallback keeps old classes) */

.lyrics {
  max-width: 620px; margin: 0 auto;
  font-size: 17px; line-height: 1.85;
  color: var(--fg-muted);
  white-space: pre-line;
}

.lyrics h3 { font-family: var(--font-display); font-size: 27px; color: var(--fg); margin: 48px 0 6px; }

.lyrics p { margin: 0 0 20px; }

/* ---------- Media (photo-video) ---------- */

.video-frame {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 28px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4), var(--glow);
}

.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.photo-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }

@media (min-width: 700px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }

.photo-item {
  margin: 0;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.photo-item img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  transition: transform 0.45s var(--ease-inout), filter 0.45s;
  filter: saturate(0.85);
}

.photo-item:hover img { transform: scale(1.05); filter: saturate(1); }

.photo-item figcaption {
  display: none;
  font-size: 13px; color: var(--fg-muted); padding: 8px 10px;
}

/* ---------- Artists ---------- */

.artist-layout {
  display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start;
}

@media (max-width: 768px) {
  .artist-layout { grid-template-columns: 1fr; gap: 28px; }
}

.artist-photo {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.36);
}

.artist-photo img { width: 100%; display: block; aspect-ratio: 1 / 1; object-fit: cover; filter: saturate(0.85); }

.artist-photo .no-photo {
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(130% 130% at 20% 12%, var(--bg-elevated) 0%, var(--bg-soft) 60%, var(--bg-card) 100%);
  font-family: var(--font-mono);
  font-size: 64px; color: var(--accent-dim);
}

.artist-info h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 52px); margin: 0 0 14px; line-height: 1.05;
  letter-spacing: -0.015em;
}

.artist-info .artist-bio { color: var(--fg-muted); font-size: 16.5px; }

.artist-info .artist-bio p { margin: 0 0 14px; }

.artist-row { display: grid; gap: 24px; grid-template-columns: 1fr; }

@media (min-width: 700px) { .artist-row { grid-template-columns: 220px 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; }

.chip-label {
  font-family: var(--font-mono);
  color: var(--fg-dim); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; margin-right: 4px;
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 15px;
  font-size: 13px; font-weight: 600; color: var(--fg-muted);
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s, transform 0.18s var(--ease-out);
}

.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ---------- Quotes ---------- */

.quote {
  margin: 0 0 18px; padding: 22px 26px;
  border-left: 2px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.quote p { margin: 0 0 10px; color: var(--fg); font-style: italic; line-height: 1.7; font-family: var(--font-display); font-size: 17px; }

.quote footer { color: var(--fg-dim); font-size: 12.5px; font-family: var(--font-mono); }

.sec-title { font-family: var(--font-display); font-size: 26px; margin: 52px 0 18px; color: var(--fg); }

/* ---------- Timeline ---------- */

.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 8px; }

.timeline::before {
  content: ""; position: absolute; left: 27px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(to bottom, var(--accent-dim), var(--border));
}

.t-item { position: relative; padding-left: 64px; margin-bottom: 26px; }

.t-dot {
  position: absolute; left: 18px; top: 30px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--accent);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent-dim), 0 0 12px rgba(34, 211, 238, 0.5);
}

.t-card {
  display: grid; grid-template-columns: 104px 1fr; gap: 20px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 20px 14px 14px; color: var(--fg);
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}

.t-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32), var(--glow);
}

.t-card img { width: 104px; height: 104px; object-fit: cover; border-radius: var(--radius-sm); display: block; }

.t-body { min-width: 0; }

.t-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }

.t-head h3 { margin: 0 0 5px; font-size: 19px; font-family: var(--font-display); font-weight: 700; }

.t-year { color: var(--accent); font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; white-space: nowrap; }

.t-body p { margin: 0; color: var(--fg-muted); font-size: 14px; line-height: 1.55; }

@media (max-width: 520px) {
  .t-card { grid-template-columns: 76px 1fr; padding: 12px 14px 12px 12px; }
  .t-card img { width: 76px; height: 76px; }
  .t-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .t-head h3 { font-size: 16px; margin-bottom: 3px; }
}

/* ---------- Contact ---------- */

.contact-card {
  max-width: 620px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 60px 44px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36), var(--glow);
}

.contact-card .contact-mail {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 17px; font-weight: 700; color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 15px 30px; margin: 26px 0 22px;
  transition: border-color 0.2s, color 0.2s, transform 0.16s var(--ease-out), box-shadow 0.2s;
}

.contact-card .contact-mail:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-1px); box-shadow: var(--glow);
}

.contact-card p { color: var(--fg-muted); }

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg-soft);
}

.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: flex; flex-direction: column; gap: 20px;
  align-items: center; text-align: center;
}

@media (min-width: 700px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

.footer-links a {
  color: var(--fg-muted); text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color 0.18s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy { color: var(--fg-dim); font-size: 13px; }

.footer-copy a { color: var(--fg-muted); }

/* ---------- 404 ---------- */

.notfound {
  min-height: 62vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px; padding: 48px 24px;
}

.notfound h1 {
  font-family: var(--font-mono);
  font-size: clamp(72px, 15vw, 130px);
  margin: 0; line-height: 1; font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  text-shadow: 0 0 40px rgba(34, 211, 238, 0.25);
}

@media (prefers-reduced-motion: no-preference) {
  .notfound h1 { animation: glitch-flicker 3.5s infinite steps(1); }
}

@keyframes glitch-flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.55; transform: translateX(2px); }
  94% { opacity: 1; transform: none; }
  96% { opacity: 0.7; transform: translateX(-2px); }
  97% { opacity: 1; transform: none; }
}

.q404 {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 14px; max-width: 560px;
}

.q404 a {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  color: var(--fg-muted); text-decoration: none;
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 8px 16px;
  transition: color 0.15s, border-color 0.15s;
}

.q404 a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Generic ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.6vw, 62px);
  margin: 0 0 10px; line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.page-sub { color: var(--fg-muted); margin: 0 0 48px; max-width: 660px; font-size: 17.5px; }

.back-link {
  color: var(--fg-dim); text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.18s;
}

.back-link:hover { color: var(--accent); }

/* ---------- Scroll reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .reveal.in-view { opacity: 1; transform: none; }
}

/* ---------- Lightbox ---------- */

.lb {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
}

.lb.open { display: flex; }

.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 6, 10, 0.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.lb-panel {
  position: relative; z-index: 2;
  width: min(94vw, 1100px); height: min(92vh, 920px);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.6), var(--glow);
  overflow: hidden;
}

.lb-stage {
  flex: 1; min-height: 0; overflow: auto;
  display: flex; align-items: center; justify-content: center;
  cursor: grab;
}

.lb-stage.dragging { cursor: grabbing; }

.lb-stage img {
  max-width: 100%; max-height: 100%;
  transform-origin: center;
  transition: transform 0.18s var(--ease-out);
  user-select: none;
  -webkit-user-select: none;
}

.lb-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-top: 1px solid var(--border);
}

.lb-caption { flex: 1; font-size: 13px; color: var(--fg-muted); text-align: center; font-family: var(--font-mono); }

.lb-zoom-btn, .lb-close {
  background: var(--bg-elevated);
  color: var(--fg); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer;
  width: 36px; height: 36px; line-height: 1;
  font-size: 16px; display: inline-flex; align-items: center; justify-content: center;
}

.lb-zoom-btn:hover, .lb-close:hover { border-color: var(--accent); color: var(--accent); }

.lb-close-btn { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; font-size: 18px; }

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(7, 11, 18, 0.8); color: var(--fg);
  border: 1px solid var(--border-strong); cursor: pointer;
  font-size: 20px; display: flex; align-items: center; justify-content: center;
}

.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-nav:hover { border-color: var(--accent); color: var(--accent); }
.lb-nav[hidden] { display: none; }

.lb-pdf { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); text-decoration: underline; white-space: nowrap; font-weight: 700; }
.lb-pdf:hover { text-decoration: none; }

@media (max-width: 640px) {
  .lb-nav { width: 38px; height: 38px; font-size: 16px; }
  .lb-panel { width: 96vw; height: 94vh; }
}

/* ---------- Search palette ---------- */

.srch {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: flex-start; justify-content: center;
  padding: 14vh 20px 0;
}

.srch.open { display: flex; }

.srch-backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 6, 10, 0.8);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.srch-panel {
  position: relative; z-index: 2;
  width: min(620px, 100%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.6), var(--glow);
  overflow: hidden;
}

.srch-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}

.srch-glyph { color: var(--accent); font-size: 16px; }

.srch-input {
  flex: 1; background: none; border: 0; outline: none;
  color: var(--fg); font-family: var(--font-body);
  font-size: 17px; font-weight: 600;
}

.srch-input::placeholder { color: var(--fg-dim); }

.srch-kbd, .srch-foot kbd {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-dim);
  border: 1px solid var(--border-strong); border-radius: 6px;
  padding: 3px 7px; letter-spacing: 0.06em;
}

.srch-list { max-height: 46vh; overflow-y: auto; padding: 8px; }

.srch-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; text-align: left;
  background: none; border: 1px solid transparent; border-radius: 10px;
  padding: 11px 12px; cursor: pointer;
  color: var(--fg); font-family: var(--font-body); font-size: 15px; font-weight: 600;
}

.srch-item:hover, .srch-item.sel {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.25);
}

.srch-item.sel .srch-t { color: var(--accent); }

.srch-c {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-dim); flex-shrink: 0;
}

.srch-none {
  padding: 26px; text-align: center; color: var(--fg-dim); font-size: 14.5px;
}

.srch-foot {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-top: 1px solid var(--border);
  color: var(--fg-dim); font-size: 12px;
}

/* ---------- Share row + toast ---------- */

.share-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border);
}

.share-row .share-label {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-dim); font-weight: 700; margin-right: 4px;
}

.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--fg-muted); border-radius: 999px; padding: 7px 15px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: color 0.15s, border-color 0.15s, transform 0.15s var(--ease-out);
}

.share-btn:hover { color: var(--accent); border-color: var(--accent-dim); transform: translateY(-1px); }
.share-btn:active { transform: scale(0.97); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated); border: 1px solid var(--accent-dim);
  color: var(--fg); font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  border-radius: 999px; padding: 11px 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), var(--glow);
  opacity: 0; pointer-events: none; z-index: 300;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Anchor offset under sticky header ---------- */

[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* ---------- Back to top ---------- */

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  color: var(--fg-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), color 0.15s, border-color 0.15s;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}

.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: var(--accent); border-color: var(--accent-dim); }

/* ---------- Marquee a11y: pause on hover, still under reduced motion ---------- */

.marquee-strip:hover .marquee-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Keyboard-accessible dropdowns ---------- */

.dropdown:focus-within .dropdown-menu { display: block; }

/* ---------- Lyrics stage controls ---------- */

.lyr-nav button.on { color: var(--accent); border-color: var(--accent-dim); }

.lyr-copy-ok { color: var(--accent); }

/* ---------- Print ---------- */

@media print {
  body { background: #fff; color: #111; font-size: 12pt; }
  .site-header, .site-footer, .marquee-strip, .scroll-rail, .to-top,
  .hero-bg, .hero-actions, .btn, .share-row, .lb, .srch, .filter-row,
  .lyr-side, .lyr-hud, .lyr-progress, .embed-frame, .video-frame { display: none !important; }
  .hero { min-height: auto; }
  .hero-inner { padding: 24px 0; }
  main { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .lyr-console { display: block; border: 0; box-shadow: none; }
  .lyr-stage { max-height: none; overflow: visible; padding: 0; }
  .lyr-track-title { page-break-before: always; }
  .lyr-track-title:first-child { page-break-before: avoid; }
  a { color: #111; text-decoration: none; }
}

/* ---------- Page shell ---------- */

/* Scroll progress rail (fixed under header, JS-driven width) */

.scroll-rail {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  height: 2px; z-index: 49; pointer-events: none;
  background: transparent;
}

.scroll-rail i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

/* View transitions: fade/slide page content on load */

@media (prefers-reduced-motion: no-preference) {
  main { animation: page-in 0.5s var(--ease-out) both; }
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Hero entrance choreography */

@media (prefers-reduced-motion: no-preference) {
  .hero-kicker, .hero h1, .hero-sub, .hero-actions {
    opacity: 0;
    transform: translateY(18px);
    animation: hero-in 0.7s var(--ease-out) forwards;
  }
  .hero-kicker { animation-delay: 0.05s; }
  .hero h1 { animation-delay: 0.15s; }
  .hero-sub { animation-delay: 0.28s; }
  .hero-actions { animation-delay: 0.4s; }
}

@keyframes hero-in {
  to { opacity: 1; transform: none; }
}

/* Subtle hero parallax on scroll (JS sets --hero-shift) */

.hero-bg img {
  transform: translateY(var(--hero-shift, 0)) scale(var(--hero-scale, 1));
  will-change: transform;
}

/* Filter chips (discography) */

.filter-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px;
}

.filter-chip {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--fg-muted); border-radius: 999px; padding: 7px 16px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.filter-chip:hover { color: var(--fg); border-color: var(--accent-dim); }

.filter-chip[aria-pressed="true"] {
  color: var(--accent-ink); background: var(--accent); border-color: var(--accent);
  box-shadow: var(--glow);
}

.t-item.hide { display: none; }

.page-pad { padding-top: 64px; padding-bottom: 104px; }

@media (max-width: 768px) {
  .page-pad { padding-top: 44px; padding-bottom: 68px; }
  .container { padding: 0 20px; }
  .hero-inner { padding: 0 20px 72px; }
  .header-inner { padding: 0 20px; }
  .footer-inner { padding: 0 20px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .contact-card { padding: 44px 24px; }
  .credits { padding: 24px 20px; }
}

/* ---------- Premium footer ---------- */

.site-footer { position: relative; overflow: hidden; }

.site-footer::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 12% 120%, rgba(7, 79, 183, 0.18), transparent 62%),
    radial-gradient(700px 360px at 88% -20%, rgba(34, 211, 238, 0.07), transparent 60%);
}

.site-footer .footer-inner { position: relative; z-index: 1; }

.site-footer::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.45), rgba(7, 79, 183, 0.3), transparent);
}

.footer-grid {
  display: grid; gap: 28px; padding: 52px 0 34px;
  grid-template-columns: 1fr;
  max-width: var(--maxw); margin: 0 auto;
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
}

.footer-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 15px; font-weight: 600;
  color: var(--fg); text-decoration: none; white-space: nowrap;
}

.footer-brand img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.3), 0 0 16px rgba(34, 211, 238, 0.2);
}

.footer-tag {
  margin: 12px 0 0; max-width: 380px;
  color: var(--fg-muted); font-size: 14px; line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-muted); margin: 0 0 14px;
}

.footer-col a {
  display: block; padding: 5px 0;
  color: var(--fg-muted); text-decoration: none; font-size: 14px;
  transition: color 0.18s var(--ease-out);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0 26px; border-top: 1px solid var(--border);
  color: var(--fg-muted); font-size: 13px;
}

.footer-social {
  display: inline-flex; align-items: center; gap: 14px;
}

.footer-social a {
  color: var(--fg-muted); text-decoration: none;
  transition: color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}

.footer-social a:hover { color: var(--accent); transform: translateY(-1px); }

/* ---------- View Transitions: cross-fade morph between pages ---------- */

@view-transition { navigation: auto; }

@supports (view-transition-name: none) {
  html { view-transition-name: root; }
  ::view-transition-old(root) { animation: vt-out 0.22s var(--ease-out) both; }
  ::view-transition-new(root) { animation: vt-in 0.28s var(--ease-out) both; }
}

@keyframes vt-out { to { opacity: 0; transform: translateY(-8px) scale(0.995); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px) scale(0.995); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Pointer-fine tilt (covers, artist photos, cards) ---------- */

@media (hover: hover) and (pointer: fine) {
  .tilt { will-change: transform; }

  .tilt.is-tilting { transition: none; }

  .album-cover, .artist-photo { transform-style: preserve-3d; }

  .card, .book-card { transform-style: preserve-3d; }
}

@media (prefers-reduced-motion: reduce) {
  .tilt { transform: none !important; }
}

/* ---------- Galactic layer: listen panels, starfield, cosmic chrome ---------- */

.listen-panel {
  display: flex; align-items: center; gap: 14px;
  margin: 4px 0 6px;
}

.listen-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--fg);
  background:
    linear-gradient(120deg, rgba(7, 79, 183, 0.35), rgba(34, 211, 238, 0.14));
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 999px; padding: 10px 20px; cursor: pointer;
  transition: transform 0.15s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.listen-btn:hover {
  border-color: rgba(34, 211, 238, 0.75);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.28), var(--glow);
  transform: translateY(-1px);
}

.listen-btn:active { transform: translateY(0) scale(0.98); }

.lp-eq {
  display: inline-flex; align-items: flex-end; gap: 2px; height: 12px;
}

.lp-eq i {
  width: 3px; height: 4px; border-radius: 1px;
  background: var(--accent);
  transition: height 0.18s var(--ease-out);
}

.listen-btn.playing .lp-eq i { animation: lp-bounce 0.5s ease-in-out infinite alternate; }
.listen-btn.playing .lp-eq i:nth-child(2) { animation-delay: 0.12s; }
.listen-btn.playing .lp-eq i:nth-child(3) { animation-delay: 0.24s; }
.listen-btn.playing .lp-eq i:nth-child(4) { animation-delay: 0.36s; }

@keyframes lp-bounce {
  from { height: 3px; }
  to { height: 12px; }
}

.listen-open {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--fg-muted); text-decoration: none;
  border-bottom: 1px dashed rgba(34, 211, 238, 0.4);
  transition: color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}

.listen-open:hover { color: var(--accent); border-color: var(--accent); }

#starfield {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.85;
}

[data-theme="light"] #starfield { opacity: 0.4; }

/* Cosmic chrome: selection, scrollbar, focus ring */

::selection {
  background: rgba(34, 211, 238, 0.28);
  color: inherit;
}

html { scrollbar-color: rgba(34, 211, 238, 0.45) rgba(7, 11, 18, 0.6); }

body::-webkit-scrollbar { width: 11px; }

body::-webkit-scrollbar-track { background: rgba(7, 11, 18, 0.5); }

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.55), rgba(7, 79, 183, 0.55));
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

[data-theme="light"] body::-webkit-scrollbar-track { background: rgba(238, 241, 246, 0.8); }

@media (prefers-reduced-motion: reduce) {
  .listen-btn.playing .lp-eq i { animation: none; height: 8px; }
}

/* ---------- Cosmic mode (Konami egg) ---------- */

[data-cosmic="1"] .site-header {
  box-shadow: 0 1px 0 rgba(34, 211, 238, 0.35), 0 12px 40px rgba(7, 79, 183, 0.25);
}

[data-cosmic="1"] .hero-bg::before {
  background:
    radial-gradient(900px 520px at 82% 24%, rgba(34, 211, 238, 0.3), transparent 65%),
    linear-gradient(rgba(34, 211, 238, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.16) 1px, transparent 1px);
}

[data-cosmic="1"] #starfield { opacity: 1; }

[data-cosmic="1"] .card,
[data-cosmic="1"] .book-card,
[data-cosmic="1"] .album-cover {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.4), 0 0 30px rgba(7, 79, 183, 0.28);
}

.footer-h3 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-muted); margin: 0 0 14px;
}

/* ---------- Perf: skip style/layout/paint for off-screen sections ---------- */

.section, .section-tight {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

/* ---------- Self-hosted fonts (latin subset, display swap) ---------- */

@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/space-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/space-grotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/manrope-400.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/manrope-500.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-600.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/manrope-700.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/manrope-800.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jetbrains-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/jetbrains-mono-600.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/jetbrains-mono-700.woff2') format('woff2'); }

/* ---------- Software page (Disrupção cover language) ---------- */

.sw-hero {
  position: relative;
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background:
    radial-gradient(1000px 480px at 85% -10%, rgba(7, 79, 183, 0.28), transparent 62%),
    radial-gradient(760px 420px at 8% 110%, rgba(34, 211, 238, 0.08), transparent 60%),
    linear-gradient(to bottom, var(--bg-soft), var(--bg));
}

.sw-hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(900px 460px at 70% 10%, #000, transparent 75%);
  mask-image: radial-gradient(900px 460px at 70% 10%, #000, transparent 75%);
}

.sw-hero-inner { position: relative; z-index: 1; }

.sw-flag {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  background: var(--bg-card);
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: var(--radius);
  padding: 30px 34px;
  margin-top: 56px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(7, 79, 183, 0.14);
}

.sw-flag-badge {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #bdf3ff;
  background: linear-gradient(150deg, #0a55c9, #02135c 78%);
  border: 1px solid rgba(103, 232, 249, 0.4);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.28), inset 0 0 12px rgba(2, 8, 40, 0.6);
  flex-shrink: 0;
}

.sw-flag-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; margin: 0 0 8px; line-height: 1.25;
}

.sw-flag-text { margin: 0; color: var(--fg-muted); font-size: 15.5px; }

.gb-card {
  background:
    radial-gradient(120% 120% at 85% 0%, rgba(7, 79, 183, 0.16), transparent 55%),
    var(--bg-card);
  border: 1px solid rgba(103, 232, 249, 0.3);
  border-radius: var(--radius);
  padding: 40px 42px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4), 0 0 34px rgba(7, 79, 183, 0.16);
}

.gb-card-head {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start;
  justify-content: space-between; margin-bottom: 26px;
}

.gb-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700; margin: 4px 0 8px; line-height: 1.02;
  letter-spacing: -0.015em;
}

.gb-sub { margin: 0; color: var(--fg-dim); font-size: 12px; letter-spacing: 0.08em; }

.gb-cta { flex-shrink: 0; }

.gb-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin: 0 0 28px; padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  list-style: none;
}

.gb-facts strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px; font-weight: 700; color: var(--accent);
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
}

.gb-facts span { color: var(--fg-muted); font-size: 12.5px; line-height: 1.45; display: block; margin-top: 4px; }

.gb-list {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 10px;
  color: var(--fg-muted); font-size: 15px;
}

.gb-list li { padding-left: 20px; position: relative; }

.gb-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px;
  background: linear-gradient(140deg, var(--accent), #0a55c9);
  clip-path: polygon(60% 0, 20% 55%, 45% 55%, 40% 100%, 80% 45%, 55% 45%);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

.sw-tcard { grid-template-columns: 150px 1fr; }

.sw-tyear {
  font-size: 11.5px; letter-spacing: 0.14em; text-align: left;
  color: var(--accent);
}

@media (max-width: 560px) {
  .sw-tcard { grid-template-columns: 1fr; }
  .sw-tyear { margin-bottom: 4px; }
}

.blog-timeline { max-width: 820px; margin: 0 auto; }

.bt-year {
  font-size: 13px; font-weight: 700; letter-spacing: 0.28em;
  color: var(--accent); margin: 0 0 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}

.bt-group { margin-bottom: 40px; }

.bt-group ul { list-style: none; margin: 0; padding: 0; }

.bt-group li { margin-bottom: 10px; }

.bt-group a {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.18s, transform 0.18s var(--ease-out), box-shadow 0.18s;
}

.bt-group a:hover {
  border-color: rgba(103, 232, 249, 0.5);
  transform: translateX(4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 18px rgba(7, 79, 183, 0.18);
}

.bt-group strong {
  color: var(--fg); font-size: 15.5px; font-weight: 700; line-height: 1.35;
}

.bt-group time {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--fg-dim); white-space: nowrap;
}

.bt-group em {
  font-style: normal; color: var(--fg-muted); font-size: 13px; line-height: 1.5;
  grid-column: 1 / -1;
}

.sw-blog-more { text-align: center; margin: 34px 0 0; }

.sw-skills {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.sw-skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sw-skill-group:hover {
  border-color: rgba(103, 232, 249, 0.4);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32), 0 0 20px rgba(7, 79, 183, 0.15);
}

.sw-skill-group h3 {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}

.sw-certs {
  margin-top: 26px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
}

.sw-certs h3 {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-dim); margin: 0 0 14px;
}

.sw-certs ul { margin: 0; padding: 0; list-style: none; }

.sw-certs li {
  color: var(--fg-muted); font-size: 14px;
  padding: 7px 0 7px 20px; position: relative;
  border-bottom: 1px solid var(--line);
}

.sw-certs li:last-child { border-bottom: 0; }

.sw-certs li::before {
  content: ""; position: absolute; left: 2px; top: 0.95em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-dim);
  box-shadow: 0 0 6px rgba(34, 211, 238, 0.35);
}

.sw-out-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

@media (max-width: 640px) {
  .sw-flag { grid-template-columns: 1fr; padding: 24px 22px; }
  .gb-card { padding: 26px 22px; }
}

/* ---------- Biography page ---------- */

.bio-hero {
  position: relative;
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background:
    radial-gradient(1000px 480px at 15% -10%, rgba(7, 79, 183, 0.28), transparent 62%),
    radial-gradient(760px 420px at 92% 110%, rgba(34, 211, 238, 0.08), transparent 60%),
    linear-gradient(to bottom, var(--bg-soft), var(--bg));
}

.bio-timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 10px; }

.bio-timeline::before {
  content: "";
  position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(to bottom, var(--accent-dim), var(--border));
}

.bt-item { position: relative; padding-left: 56px; margin-bottom: 58px; }

.bt-item:last-child { margin-bottom: 0; }

.bt-dot {
  position: absolute; left: 0; top: 6px; width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), #0a55c9);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent-dim), 0 0 14px rgba(34, 211, 238, 0.5);
}

.bt-era {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.bt-body h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700; line-height: 1.18; margin: 0 0 14px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.bt-body p {
  margin: 0 0 16px;
  color: var(--fg-muted);
  font-size: 16.5px; line-height: 1.8;
}

.bt-body p:last-child { margin-bottom: 0; }

.bio-footer-cards {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 76px;
}

@media (min-width: 760px) {
  .bio-footer-cards { grid-template-columns: repeat(3, 1fr); }
}

.bio-footer-cards .card-body { padding: 24px 26px; }

/* ---------- Guest review (liner notes) ---------- */

.review-card {
  max-width: 780px;
  background:
    radial-gradient(120% 100% at 90% 0%, rgba(7, 79, 183, 0.14), transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px 46px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 26px rgba(7, 79, 183, 0.14);
}

.review-card p {
  margin: 0 0 20px;
  color: var(--fg-muted);
  font-size: 16.5px;
  line-height: 1.85;
}

.review-card p:last-of-type { margin-bottom: 0; }

.review-card em { color: var(--fg); font-style: italic; }

.review-card strong { color: var(--fg); }

.review-sig {
  text-align: right;
  color: var(--accent) !important;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  margin-top: 28px !important;
}

@media (max-width: 640px) {
  .review-card { padding: 26px 22px; }
}

/* ---------- Press page: stats, tags, year groups, captions ---------- */

.press-stats {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 0 0 54px;
}

.press-stat {
  display: flex; align-items: baseline; gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 20px 12px 16px;
}

.press-stat strong {
  font-family: var(--font-mono);
  font-size: 20px; font-weight: 700; color: var(--accent);
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.3);
}

.press-stat span { color: var(--fg-muted); font-size: 13px; }

.press-year-head { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline; justify-content: space-between; margin-top: 64px; }

.press-year-head .sec-title { margin: 0; }

.press-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px; padding: 3px 11px; margin-bottom: 10px;
}

.press-year { margin-bottom: 44px; }

.press-year-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.3em;
  color: var(--accent); margin: 0 0 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}

.press-item { margin: 0; }

.press-item figcaption {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--fg-dim); padding: 8px 2px 0;
}

@media (max-width: 640px) {
  .press-stats { flex-direction: column; }
}

/* ---------- Navigation: mega menu + current-page triggers ---------- */

.nav-desktop > a[aria-current="page"],
.nav-desktop .dropdown-trigger[aria-current="page"] { color: var(--accent); }

.nav-desktop > a[aria-current="page"]::after,
.nav-desktop .dropdown-trigger[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--accent);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.7);
}

.dropdown-menu--wide {
  position: fixed; top: calc(var(--header-h) + 10px); left: 50%;
  transform: translateX(-50%);
  min-width: 0; width: max-content;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow-y: auto;
  display: none;
  grid-auto-flow: column; grid-auto-columns: max-content;
  align-items: start; gap: 0 6px;
  padding: 12px;
}

.dropdown:hover .dropdown-menu--wide,
.dropdown.open .dropdown-menu--wide,
.dropdown:focus-within .dropdown-menu--wide { display: grid; }

.dropdown-menu--wide .dd-col { min-width: 208px; max-width: 268px; }

.dropdown-menu--wide .dd-col + .dd-col {
  border-left: 1px solid var(--border);
  margin-left: 6px; padding-left: 14px;
}

.mob-sub {
  color: var(--fg-dim); font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 10px; font-weight: 700; margin: 12px 0 2px; padding: 0 10px;
}

/* ---------- Home: four quadrants, TV-style section picker ---------- */

.page-home .nav-desktop,
.page-home .mobile-toggle { display: none !important; }

.quad-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 480px;
}

.quad {
  position: relative;
  display: block; overflow: hidden;
  text-decoration: none; color: #f2f7fd;
  background: var(--bg-elevated);
}

.quad img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.75s var(--ease-out), filter 0.4s var(--ease-out);
}

.quad-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(3, 6, 12, 0.95) 0%, rgba(3, 6, 12, 0.88) 20%, rgba(3, 6, 12, 0.6) 48%, rgba(3, 6, 12, 0.2) 78%),
    linear-gradient(115deg, rgba(3, 6, 12, 0.5) 0%, transparent 52%);
}

.quad-body {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 10px;
  padding: clamp(20px, 3vw, 42px);
}

.quad-num {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.24em;
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.34);
  background: rgba(4, 8, 16, 0.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 5px 12px; margin-bottom: 4px;
}

.quad h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 700; line-height: 1; letter-spacing: -0.015em;
  color: #f2f7fd;
  text-shadow: 0 2px 24px rgba(3, 6, 12, 0.7);
  text-wrap: balance;
}

.quad-sub {
  margin: 0; max-width: 34ch;
  font-size: clamp(13.5px, 1.05vw, 16px); line-height: 1.5;
  font-weight: 500;
  color: rgba(232, 238, 247, 0.82);
  text-shadow: 0 1px 12px rgba(3, 6, 12, 0.75);
}

.quad-go {
  position: absolute; top: clamp(16px, 2.2vw, 28px); right: clamp(16px, 2.2vw, 28px);
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 17px;
  color: #f2f7fd;
  border: 1px solid rgba(232, 238, 247, 0.28);
  background: rgba(4, 8, 16, 0.42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform 0.28s var(--ease-out), color 0.2s, border-color 0.2s, background 0.2s;
}

.quad:hover img { transform: scale(1.06); }

.quad:hover .quad-go {
  transform: translate(3px, -3px);
  color: var(--accent-ink); background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.quad:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

@media (hover: hover) and (pointer: fine) {
  .quad:hover h2 { color: var(--accent-soft); }
}

@media (max-width: 700px) {
  .quad-hero {
    height: auto;
    min-height: calc(100svh - var(--header-h));
  }

  .quad-body { padding: 18px 16px; gap: 7px; }

  .quad h2 { font-size: clamp(25px, 7.4vw, 34px); }

  .quad-sub { font-size: 12.5px; line-height: 1.45; max-width: 26ch; }

  .quad-num { font-size: 9.5px; padding: 4px 10px; letter-spacing: 0.2em; }

  .quad-go { width: 34px; height: 34px; font-size: 14px; top: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .quad img { transition: none; }
  .quad:hover img { transform: none; }
  .quad:hover .quad-go { transform: none; }
}

@media print {
  .quad-hero { display: block; height: auto; min-height: 0; }
  .quad { display: block; border-bottom: 1px solid var(--border); }
  .quad img, .quad-go { display: none; }
  .quad-body { padding: 0; }
  .quad-sub, .quad-num { display: none; }
}

/* ---------- Astrology section ---------- */

.ast-hero {
  position: relative; overflow: hidden;
  padding: 96px 0 68px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 460px at 78% -20%, rgba(224, 180, 88, 0.14), transparent 62%),
    radial-gradient(760px 420px at 6% 110%, rgba(34, 211, 238, 0.07), transparent 60%),
    linear-gradient(to bottom, var(--bg-soft), var(--bg));
}

.ast-hero::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1.4px 1.4px at 18% 32%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.2px 1.2px at 34% 68%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.6px 1.6px at 62% 22%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 78% 58%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.4px 1.4px at 88% 18%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.1px 1.1px at 48% 46%, rgba(255, 255, 255, 0.4), transparent);
}

.ast-hero > .container { position: relative; }

.ast-card {
  display: grid; grid-template-columns: 210px 1fr; gap: 26px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  text-decoration: none; color: var(--fg);
  transition: transform 0.24s var(--ease-out), border-color 0.24s, box-shadow 0.24s;
}

.ast-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-dim);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36), var(--glow);
}

.ast-card-art {
  display: block; overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
}

.ast-card-art img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  transition: transform 0.4s var(--ease-inout);
}

.ast-card:hover .ast-card-art img { transform: scale(1.05); }

.ast-card-body { display: block; }

.ast-card-date {
  display: inline-block; margin-bottom: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: #e0b458;
}

.ast-card h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 700;
  margin: 0 0 8px; letter-spacing: -0.01em; line-height: 1.12;
  text-wrap: balance;
}

.ast-card p { margin: 0 0 14px; color: var(--fg-muted); font-size: 15px; line-height: 1.6; }

@media (max-width: 700px) {
  .ast-hero { padding: 64px 0 48px; }
  .ast-card { grid-template-columns: 1fr; gap: 18px; }
  .ast-card-art img { aspect-ratio: 16 / 9; }
}

/* ---------- Astrology article ---------- */

.ast-art {
  --ast-gold: #e0b458;
  max-width: 780px;
  margin: 0 auto;
  font-size: 17px; line-height: 1.85;
}

.ast-art-head { margin-bottom: 44px; }

.ast-art-kicker {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ast-gold);
}

.ast-art h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px); font-weight: 700; line-height: 1.06;
  letter-spacing: -0.015em; margin: 0 0 14px;
  text-wrap: balance;
}

.ast-art-sub {
  margin: 0; max-width: 60ch;
  color: var(--fg-muted); font-size: 18px; line-height: 1.6;
}

.ast-art-meta {
  margin: 22px 0 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--fg-dim);
}

.ast-note {
  margin: 0 0 44px;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--ast-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-card);
  color: var(--fg-muted);
  font-size: 16px; line-height: 1.7;
}

.ast-note strong { color: var(--fg); }

.ast-orig {
  margin: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.12em;
  color: var(--fg-dim);
}

.ast-art section { margin: 0 0 46px; }

.ast-art h2 {
  font-family: var(--font-display);
  font-size: clamp(23px, 3vw, 31px); font-weight: 700; line-height: 1.2;
  margin: 0 0 16px; letter-spacing: -0.01em;
  color: var(--fg);
}

.ast-art h3 {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ast-gold); margin: 0 0 10px;
}

.ast-art p { margin: 0 0 18px; color: var(--fg-muted); }

.ast-art-card {
  padding: 26px 28px; margin: 0 0 22px;
  background:
    radial-gradient(120% 100% at 88% 0%, rgba(224, 180, 88, 0.1), transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ast-art-svg {
  margin: 0 0 26px; padding: 22px;
  background: radial-gradient(90% 90% at 50% 0%, #1b1408, #0a0a14 70%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.ast-art-svg svg {
  display: block; margin: 0 auto;
  width: 100%; min-width: 480px; max-width: 100%; height: auto;
}

.ast-art figcaption {
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--fg-dim); text-align: center;
}

.ast-art p.ast-art-hl {
  margin: 26px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--ast-gold);
  background: linear-gradient(90deg, rgba(224, 180, 88, 0.1), transparent);
  color: var(--fg);
  font-style: italic; font-size: 18px; line-height: 1.7;
}

.ast-art p.ast-bin {
  margin: 30px 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 40px); font-weight: 700;
  letter-spacing: 4px;
  color: var(--ast-gold);
  text-shadow: 0 0 20px rgba(224, 180, 88, 0.35);
}

.ast-bin small {
  display: block; margin-top: 10px;
  font-family: var(--font-body); font-style: normal; font-weight: 400;
  font-size: 13.5px; letter-spacing: 0.08em;
  color: var(--fg-dim);
}

.ast-art tr:hover td { background: rgba(224, 180, 88, 0.05); }

.ast-foot {
  margin-top: 64px; padding-top: 26px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
}

.ast-foot p { margin: 0 0 6px; color: inherit; font-size: inherit; }

.ast-art table {
  width: 100%; border-collapse: collapse; margin: 0 0 26px;
  font-size: 15px;
}

.ast-art th, .ast-art td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--border);
}

.ast-art th {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ast-gold);
}

.ast-art td { color: var(--fg-muted); }

@media (max-width: 640px) {
  .ast-art { font-size: 16.5px; }
  .ast-art-card { padding: 20px 20px; }
  .ast-art-svg { padding: 14px; }
  .ast-art table { font-size: 14px; }
  .ast-art th, .ast-art td { padding: 10px 8px; }
}

/* ---------- Astrology article v2: interactive symbolic reading ---------- */

.artx {
  --rr-red: #ff6a86;
  --rr-blue: #58b0ff;
  --rr-gold: #f3d98a;
  --rr-purple: #c9a6e8;
  max-width: 960px;
  margin: 0 auto;
  font-size: 17px;
}

[data-theme="light"] .artx {
  --rr-red: #c81f45;
  --rr-blue: #1058b8;
  --rr-gold: #8a6510;
  --rr-purple: #6f3aa8;
}

.artx-hero {
  display: grid; gap: 30px; align-items: center;
  padding: 26px 0 10px;
}

@media (min-width: 820px) { .artx-hero { grid-template-columns: 1.05fr .95fr; } }

.artx-tag {
  display: inline-block; margin-bottom: 16px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 5px 15px; font-size: 13.5px; color: var(--fg-muted);
  font-family: var(--font-mono); letter-spacing: 0.04em;
}

.artx h1 {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(36px, 5.6vw, 58px);
  letter-spacing: -0.02em; line-height: 1.04; margin: 0;
  text-wrap: balance;
}

.artx-hero p { font-size: 18px; color: var(--fg-muted); max-width: 60ch; margin: 18px 0 0; }

.artx section { padding: 34px 0 6px; border-top: 1px solid var(--border); margin-top: 26px; }

.artx h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.artx p { margin: 0 0 14px; max-width: 66ch; color: var(--fg-muted); }

.artx b, .artx strong { color: var(--fg); }

.artx-lab { display: flex; gap: 20px; flex-wrap: wrap; color: var(--fg-muted); font-size: 14.5px; margin: 8px 0 0; padding: 0; list-style: none; }
.artx-lab b { font-weight: 600; }
.artx-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }

.artx-panel {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; background: var(--bg-card);
}

.artx-read { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }

.artx-clock { font-family: var(--font-display); font-weight: 700; font-size: 38px; letter-spacing: -0.02em; color: var(--fg); }

.artx-range { width: 100%; accent-color: var(--rr-gold); height: 32px; margin: 8px 0 2px; }
.artx-range:focus-visible { outline: 2px solid var(--rr-blue); outline-offset: 4px; border-radius: 8px; }

.artx-bars { display: block; width: 100%; height: auto; }
.artx-bar { transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .artx-bar { transition: none; } }

.artx-wrap { overflow-x: auto; }

.artx table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; }
.artx th, .artx td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.artx th { font-weight: 600; color: var(--fg-muted); font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.artx td { color: var(--fg-muted); }
.artx td:first-child { color: var(--fg); }
.artx tr.on td { background: color-mix(in srgb, var(--rr-gold) 16%, transparent); }
.artx tr.on td:first-child { box-shadow: inset 3px 0 var(--rr-gold); }

.artx-note {
  border-left: 3px solid var(--rr-gold); padding: 4px 0 4px 18px;
  color: var(--fg-muted); margin: 22px 0 0; max-width: 66ch;
}

.artx-dign { display: grid; gap: 10px; margin: 6px 0 0; }

.artx-dign-row { display: grid; grid-template-columns: 130px 1fr 54px; align-items: center; gap: 14px; }
.artx-dign-row span:first-child { font-size: 14.5px; }

.artx-track { height: 16px; border-radius: 999px; background: var(--border); overflow: hidden; }
.artx-fill { display: block; height: 100%; border-radius: 999px; }

.artx-parts { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.artx-parts li {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 5px 12px;
  color: var(--fg-muted);
}

.artx-foot { margin-top: 40px; color: var(--fg-dim); font-size: 13.5px; }

@media (max-width: 640px) {
  .artx-dign-row { grid-template-columns: 96px 1fr 42px; gap: 10px; }
  .artx-clock { font-size: 32px; }
}

/* ---------- Books: real first-page covers + sources with QR ---------- */

.book-cover.book-cover-page {
  aspect-ratio: auto;
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 0 1px var(--border);
}

.book-cover.book-cover-page img {
  position: static;
  width: 100%; height: auto;
  object-fit: contain; object-position: center top;
  border-radius: calc(var(--radius-sm) - 1px);
}

.book-card .book-cover.book-cover-page { align-self: start; }
.book-card .book-cover.book-cover-page img { transition: transform 0.4s var(--ease-inout); }
.book-card:hover .book-cover.book-cover-page img { transform: scale(1.03); }

.book-sources {
  display: grid; gap: 18px; grid-template-columns: 1fr;
  margin: 0 0 40px;
}

@media (min-width: 780px) { .book-sources { grid-template-columns: 1fr 1fr; } }

.source-card {
  display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  text-decoration: none; color: var(--fg);
  transition: transform 0.22s var(--ease-out), border-color 0.22s, box-shadow 0.22s;
}

.source-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-dim);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36), var(--glow);
}

.source-qr {
  display: block; padding: 8px; border-radius: 12px;
  background: #fff; border: 1px solid var(--border-strong);
}

.source-qr img { display: block; width: 100%; height: auto; border-radius: 4px; }

.source-card strong {
  display: block; font-family: var(--font-display);
  font-size: 17px; font-weight: 700; margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.source-card span span { display: block; color: var(--fg-muted); font-size: 14px; line-height: 1.5; }

.source-card code {
  display: block; margin-top: 9px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em;
  color: var(--accent); word-break: break-all; line-height: 1.4;
}

@media (max-width: 520px) {
  .source-card { grid-template-columns: 1fr; }
  .source-qr { max-width: 168px; }
}

/* real page covers override the 3/4 placeholder ratio everywhere */
.book-hero .book-cover.book-cover-page { aspect-ratio: auto; }
