/* ============================================================
   MUZYK TEDI — design tokens (concert hall aesthetic)
   ============================================================ */

:root {
  --bg: #FAF7F0;            /* paper / sheet music cream */
  --bg-alt: #F2EDDF;        /* slightly darker section */
  --ink: #1A1A1A;           /* graphite text */
  --ink-soft: #4A4A4A;
  --muted: #7A7568;
  --accent: #7A1F2B;        /* dark wine — classic music branding */
  --accent-soft: #A33444;
  --gold: #B58853;          /* subtle gilt for accents */
  --border: rgba(26,26,26,0.12);
  --panel: #FFFFFF;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-2: 0 4px 12px rgba(0,0,0,0.08), 0 16px 48px rgba(0,0,0,0.12);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --radius-1: 4px;
  --radius-2: 8px;
  --radius-3: 16px;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: var(--space-5); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 var(--space-4); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); text-decoration: underline; }

.muted { color: var(--muted); }
.accent { color: var(--accent); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.footnote {
  font-size: 0.9rem;
  margin-top: var(--space-5);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 12px; left: 12px;
  width: auto; height: auto;
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-1);
  z-index: 9999;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-5);
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .accent { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--accent); text-decoration: none; }

.lang-toggle {
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-1);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-1);
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-soft); color: white; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }

/* Sections */
.section {
  padding: var(--space-8) 0;
}
.section-alt {
  background: var(--bg-alt);
}

/* Hero */
.hero {
  padding: var(--space-8) 0 var(--space-7);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "𝄞";
  position: absolute;
  font-family: serif;
  font-size: 38rem;
  color: var(--accent);
  opacity: 0.04;
  top: -8rem;
  right: -2rem;
  line-height: 1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 780px;
}
.hero-ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin: var(--space-5) 0 var(--space-4);
}
.hero-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: var(--space-3);
}

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.price-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-3);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.price-card.featured {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, #FFFCF5 0%, #FFFFFF 100%);
}
.price-card .badge {
  position: absolute;
  top: -10px;
  left: var(--space-5);
  background: var(--gold);
  color: white;
  padding: 4px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
}
.price-card h3 { margin: 0; }
.price-card .price {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}
.price-card .price strong {
  font-size: 2.4rem;
  color: var(--accent);
  font-weight: 700;
}
.price-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.price-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Process list */
.process-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}
.process-list li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-2);
  padding: var(--space-5);
}
.process-list li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: var(--space-2);
  color: var(--accent);
}
.process-list li p { margin: 0; color: var(--ink-soft); }

/* Form */
.order-form {
  display: grid;
  gap: var(--space-4);
  max-width: 520px;
  margin-top: var(--space-5);
}
.order-form label {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-weight: 500;
  font-size: 0.95rem;
}
.order-form input,
.order-form select,
.order-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  background: white;
  color: var(--ink);
}
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

/* Contact list */
.contact-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: grid;
  gap: var(--space-3);
  font-size: 1.05rem;
}
.contact-list code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: var(--radius-1);
  font-size: 0.9em;
}

/* Instruments grid */
.instruments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.inst-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-3);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.inst-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.inst-card.primary {
  border-color: var(--accent);
  background: linear-gradient(180deg, #FFFCF5 0%, #FFFFFF 100%);
}
.inst-icon {
  font-size: 2.4rem;
  line-height: 1;
}
.inst-card h3 { margin: 0; }
.inst-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Repertuar */
.repertoire-meta {
  margin: var(--space-5) 0 var(--space-6);
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.6;
}
.repertoire-cats {
  display: grid;
  gap: var(--space-3);
}
.repertoire-cat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  padding: var(--space-4) var(--space-5);
  transition: box-shadow 200ms ease, border-color 200ms ease;
}
.repertoire-cat[open] {
  box-shadow: var(--shadow-1);
  border-color: var(--accent);
}
.repertoire-cat summary {
  cursor: pointer;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.repertoire-cat summary::-webkit-details-marker { display: none; }
.repertoire-cat summary strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  flex: 1;
}
.repertoire-cat .cnt {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
}
.repertoire-cat summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  transition: transform 200ms ease;
  margin-left: var(--space-3);
}
.repertoire-cat[open] summary::after { transform: rotate(45deg); }
.repertoire-cat ul {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-2) var(--space-5);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}
.repertoire-cat li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1px dashed rgba(26,26,26,0.05);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
  max-width: 760px;
}
.faq-list details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  padding: var(--space-4) var(--space-5);
  transition: box-shadow 200ms ease;
}
.faq-list details[open] {
  box-shadow: var(--shadow-1);
  border-color: var(--accent);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  transition: transform 200ms ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  margin: var(--space-3) 0 0;
  color: var(--ink-soft);
}
.faq-list code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: var(--radius-1);
  font-size: 0.9em;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: var(--space-7) 0 var(--space-5);
  font-size: 0.9rem;
}
.site-footer a { color: var(--bg); }
.site-footer a:hover { color: var(--gold); }
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: center;
}
.footer-links { display: flex; gap: var(--space-5); justify-content: center; flex-wrap: wrap; }
.footer-meta { font-size: 0.8rem; }

/* ============================================================
   DEMO VIDEO CARDS — wybrane utwory z YT thumbnails
   ============================================================ */
.demo-meta {
  margin: var(--space-4) 0 var(--space-6);
  max-width: 720px;
  font-size: 1.05rem;
}
/* Filter bar above demo grid */
.demo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-5) 0 var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.demo-filter {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font: 600 0.9rem var(--font-body);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.demo-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.demo-filter.is-active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.demo-filter .cnt {
  font-size: 0.8em;
  opacity: 0.75;
  font-weight: 500;
}
.demo-filter.is-active .cnt {
  opacity: 1;
}

.demo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}
.demo-card:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* PDF-only thumbnail (no YT video for this track) */
.demo-thumb-pdf {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--gold);
  opacity: 0.7;
}
.demo-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-3);
  overflow: hidden;
  cursor: pointer;
  transition: transform 240ms ease, box-shadow 240ms ease;
  display: flex;
  flex-direction: column;
}
.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.demo-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.demo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease, opacity 400ms ease;
}
.demo-card:hover .demo-thumb img {
  transform: scale(1.06);
  opacity: 0.85;
}
.demo-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 64px;
  height: 64px;
  background: rgba(122,31,43,0.92);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  padding-left: 4px;
  transition: transform 240ms ease, background 240ms ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.demo-card:hover .demo-play {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--accent-soft);
}
.demo-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
}
.demo-badges .badge-yt,
.demo-badges .badge-pdf {
  background: rgba(0,0,0,0.65);
  color: white;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.demo-card h3 {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  font-size: 1.05rem;
  line-height: 1.3;
}
.demo-cta-wrap {
  margin-top: var(--space-6);
  text-align: center;
}

/* Repertuar — media icons on tracks */
.repertoire-cat li.has-media {
  padding: 0;
}
.track-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  padding: 6px 0;
  font: inherit;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  transition: color 200ms ease;
}
.track-btn:hover { color: var(--accent); }
.track-btn:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.media-icons {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
}
.media-icons .m-yt {
  background: rgba(255, 0, 0, 0.08);
  color: #c43028;
  padding: 2px 7px;
  border-radius: 999px;
}
.media-icons .m-pdf {
  background: rgba(66, 133, 244, 0.08);
  color: #1a73e8;
  padding: 2px 7px;
  border-radius: 999px;
}

/* ============================================================
   LIGHTBOX MODAL
   ============================================================ */
.lb-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh var(--space-4) var(--space-4);
  overflow-y: auto;
  animation: lb-fade-in 200ms ease;
}
.lb-backdrop.open { display: flex; }
@keyframes lb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lb-modal {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--bg);
  border-radius: var(--radius-3);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: lb-slide-up 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes lb-slide-up {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.08);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  transition: background 200ms ease, transform 200ms ease;
}
.lb-close:hover { background: var(--accent); color: white; transform: scale(1.05); }
.lb-content {
  padding: var(--space-6);
}
.lb-content h2 {
  margin: 0 0 var(--space-3);
  padding-right: 48px;
}
.lb-desc {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0 0 var(--space-5);
}
.lb-section {
  margin-top: var(--space-5);
}
.lb-section h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--space-3);
}
.lb-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--space-4);
}
.lb-video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-2);
  overflow: hidden;
}
.lb-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.lb-pdfs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.lb-pdf {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 200ms ease, transform 200ms ease;
}
.lb-pdf:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.lb-pdf-arrow {
  margin-left: auto;
  color: var(--accent);
  font-weight: 700;
}
.lb-cta {
  margin-top: var(--space-6);
  text-align: center;
}

@media (max-width: 600px) {
  .lb-modal { border-radius: var(--radius-2); }
  .lb-content { padding: var(--space-5); }
  .lb-videos { grid-template-columns: 1fr; }
}

/* ============================================================
   MOTION EFFECTS — artystyczne dodatki
   ============================================================ */

/* Fade-in on scroll */
.fx-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.fx-init.fx-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll progress bar (top) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(122,31,43,0.4);
}

/* Animated pulsing treble clef in hero */
.hero::before {
  animation: clef-breathe 8s ease-in-out infinite;
}
@keyframes clef-breathe {
  0%, 100% { opacity: 0.04; transform: scale(1) rotate(-2deg); }
  50%      { opacity: 0.07; transform: scale(1.05) rotate(2deg); }
}

/* Subtle staff lines drifting in hero background */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, transparent calc(50% - 30px), rgba(26,26,26,0.05) calc(50% - 30px), rgba(26,26,26,0.05) calc(50% - 29px), transparent calc(50% - 29px)),
    linear-gradient(to bottom, transparent calc(50% - 15px), rgba(26,26,26,0.05) calc(50% - 15px), rgba(26,26,26,0.05) calc(50% - 14px), transparent calc(50% - 14px)),
    linear-gradient(to bottom, transparent 50%, rgba(26,26,26,0.05) 50%, rgba(26,26,26,0.05) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to bottom, transparent calc(50% + 15px), rgba(26,26,26,0.05) calc(50% + 15px), rgba(26,26,26,0.05) calc(50% + 16px), transparent calc(50% + 16px)),
    linear-gradient(to bottom, transparent calc(50% + 30px), rgba(26,26,26,0.05) calc(50% + 30px), rgba(26,26,26,0.05) calc(50% + 31px), transparent calc(50% + 31px));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
  animation: staff-drift 20s ease-in-out infinite;
  opacity: 0.6;
}
@keyframes staff-drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}
.hero-inner { position: relative; z-index: 1; }

/* Floating cursor notes (desktop only) */
.cursor-note {
  position: fixed;
  font-family: serif;
  font-size: 1.5rem;
  color: var(--accent);
  pointer-events: none;
  z-index: 998;
  opacity: 0.7;
  transform: translate(-50%, -50%);
  animation: note-rise 1400ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  text-shadow: 0 1px 3px rgba(255,255,255,0.4);
}
@keyframes note-rise {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(0.4); }
  20%  { opacity: 0.8; transform: translate(-50%, -80%) scale(1); }
  100% { opacity: 0;   transform: translate(-50%, -180%) scale(1.1) rotate(8deg); }
}

/* Audio toggle button (floating bottom-right) */
.audio-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px 10px 14px;
  font: 600 0.9rem var(--font-body);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-2);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}
.audio-toggle:hover {
  transform: translateY(-2px) scale(1.04);
}
.audio-toggle.on {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.audio-toggle .audio-icon {
  font-size: 1.3rem;
  line-height: 1;
  font-family: serif;
}
.audio-toggle.on .audio-icon {
  animation: icon-spin 4s linear infinite;
}
@keyframes icon-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (max-width: 480px) {
  .audio-toggle .audio-label { display: none; }
  .audio-toggle { padding: 12px; }
}

/* Hero title shimmer */
.hero h1 .accent {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 30%, var(--gold) 60%, var(--accent) 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Section-alt subtle paper texture (CSS-only) */
.section-alt {
  position: relative;
}
.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(122,31,43,0.04) 1px, transparent 1px),
    radial-gradient(rgba(181,136,83,0.04) 1px, transparent 1px);
  background-size: 32px 32px, 48px 48px;
  background-position: 0 0, 16px 16px;
  pointer-events: none;
  z-index: 0;
}
.section-alt > .container { position: relative; z-index: 1; }

/* Responsive */
@media (max-width: 720px) {
  .nav { gap: var(--space-3); }
  .nav a:not(.btn):not(.lang-toggle) { display: none; }
  .hero::before { font-size: 20rem; top: -3rem; right: -3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
