/* © 2024-2026 Mehdi TMIMI — Vivace Music (vivace-music.org) */
/* ═══════════════════════════════════════════════════════════════════════
   HOME — "music in motion"
   The brand mark is a fluid of orange → coral → pink → violet → blue around
   a treble clef; this page lets that fluid move behind a musical staff.
   Standalone: the home page no longer loads main.css or Font Awesome (icons
   are an inline SVG sprite), and the WebGL fluid it used to run (2 s of
   main-thread time on desktop) is replaced by CSS gradients that only ever
   animate transform/opacity. Header + footer: css/site-chrome.css.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --h-bg: #fbf8f5;
  --h-bg-2: #ffffff;
  --h-bg-3: #f4f0fb;
  --h-ink: #15131a;
  --h-ink-2: #3f3c49;
  --h-muted: #635f6e;
  --h-line: rgba(21, 19, 26, 0.09);
  --h-card: #ffffff;
  --h-card-2: rgba(255, 255, 255, 0.72);
  --h-shadow: 0 1px 2px rgba(21, 19, 26, 0.04), 0 12px 32px -12px rgba(21, 19, 26, 0.16);
  --h-shadow-lg: 0 30px 80px -24px rgba(90, 30, 120, 0.35);
  /* Gradient TEXT needs deeper stops on a light page (the brand pink is 2.5:1). */
  --h-grad-text: linear-gradient(100deg, #d9480f 0%, #d6246e 38%, #8a2be2 72%, #2563eb 100%);
  --h-grad: linear-gradient(120deg, #ff8a00 0%, #ff3d6e 38%, #c13cff 70%, #3b82f6 100%);
  --h-warm: linear-gradient(135deg, #ff6ec7, #ff9a3d);
  --h-accent: #c2185b;
  --h-focus: #3a86ff;
  --h-radius: 22px;
  --h-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --h-arabic: "Tajawal", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  --h-max: 1200px;
  --h-gutter: clamp(16px, 4vw, 40px);
}
:root[data-theme="dark"] {
  --h-bg: #0a0910;
  --h-bg-2: #110f18;
  --h-bg-3: #15121f;
  --h-ink: #f4f2f8;
  --h-ink-2: #d0cdda;
  --h-muted: #a19eaf;
  --h-line: rgba(255, 255, 255, 0.09);
  --h-card: #14121c;
  --h-card-2: rgba(22, 19, 31, 0.72);
  --h-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  --h-shadow-lg: 0 30px 90px -20px rgba(193, 60, 255, 0.35);
  --h-grad-text: linear-gradient(100deg, #ffb347 0%, #ff6ec7 40%, #b794ff 75%, #7cb3ff 100%);
  --h-accent: #ff8fd4;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.home {
  margin: 0;
  font-family: var(--h-font);
  color: var(--h-ink);
  background: var(--h-bg);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.home img { max-width: 100%; height: auto; display: block; }
.home a { color: inherit; }
.home :focus-visible { outline: 3px solid var(--h-focus); outline-offset: 3px; border-radius: 10px; }
.h-skip:focus { position: fixed; top: 10px; left: 10px; z-index: 10300; width: auto; height: auto; margin: 0; padding: 10px 16px; clip: auto; overflow: visible; white-space: normal; border-radius: 12px; background: var(--h-card); color: var(--h-ink); box-shadow: var(--h-shadow); font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.h-ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.h-ico--fill { fill: currentColor; stroke: none; }
[lang="ar"] { font-family: var(--h-arabic); }

.h-wrap { max-width: var(--h-max); margin: 0 auto; padding: 0 var(--h-gutter); }
.h-section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.h-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--h-accent); margin: 0 0 12px;
}
.h-eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--h-warm); }
.h-h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.12; letter-spacing: -0.025em;
  font-weight: 800; margin: 0 0 14px; color: var(--h-ink);
}
.h-sub { font-size: clamp(1rem, 1.4vw, 1.1rem); color: var(--h-muted); margin: 0; max-width: 60ch; }
.h-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.h-grad {
  background: var(--h-grad-text); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: h-shimmer 9s ease-in-out infinite alternate;
}
@keyframes h-shimmer { to { background-position: 100% 0; } }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.h-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-family: var(--h-font); font-size: 0.98rem; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.h-btn .h-ico { transition: transform 0.25s ease; }
.h-btn:hover .h-ico--arrow { transform: translateX(3px); }
.h-btn--primary { color: #fff; background: linear-gradient(120deg, #e8590c, #d6246e 55%, #8a2be2); box-shadow: 0 10px 28px -10px rgba(214, 36, 110, 0.7); }
.h-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(214, 36, 110, 0.8); }
.h-btn--ghost { color: var(--h-ink); background: var(--h-card-2); border-color: var(--h-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.h-btn--ghost:hover { transform: translateY(-2px); border-color: rgba(214, 36, 110, 0.4); }

/* ══ HERO ═══════════════════════════════════════════════════════════════ */
.h-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.h-hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  /* fade into the page instead of ending on a hard edge */
  -webkit-mask-image: linear-gradient(#000 62%, transparent 100%);
  mask-image: linear-gradient(#000 62%, transparent 100%);
}
.h-blob {
  position: absolute; width: 58vmax; height: 58vmax; border-radius: 50%;
  opacity: 0.55; will-change: transform;
  animation: h-drift 24s ease-in-out infinite alternate;
}
.h-blob--1 { top: -34vmax; left: -18vmax; background: radial-gradient(circle, rgba(255, 138, 0, 0.55), rgba(255, 138, 0, 0) 62%); }
.h-blob--2 { top: -30vmax; right: -22vmax; background: radial-gradient(circle, rgba(255, 61, 110, 0.5), rgba(255, 61, 110, 0) 62%); animation-duration: 28s; animation-delay: -6s; }
.h-blob--3 { bottom: -38vmax; left: 12vmax; background: radial-gradient(circle, rgba(193, 60, 255, 0.42), rgba(193, 60, 255, 0) 62%); animation-duration: 32s; animation-delay: -12s; }
.h-blob--4 { bottom: -34vmax; right: -14vmax; background: radial-gradient(circle, rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0) 62%); animation-duration: 26s; animation-delay: -3s; }
:root[data-theme="dark"] .h-blob { opacity: 0.5; }
@keyframes h-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(5vmax, 4vmax, 0) scale(1.14); }
}
/* A fine grain + fading grid keep the gradient from looking like a stock blur. */
.h-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--h-line) 1px, transparent 1px), linear-gradient(90deg, var(--h-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.h-staff { position: absolute; left: -5%; width: 110%; bottom: 8%; height: 180px; opacity: 0.55; }
.h-staff path { fill: none; stroke: url(#h-staff-grad); stroke-width: 1.4; stroke-dasharray: 6 10; animation: h-flow 14s linear infinite; }
.h-staff path:nth-child(2) { animation-duration: 16s; }
.h-staff path:nth-child(3) { animation-duration: 18s; }
.h-staff path:nth-child(4) { animation-duration: 20s; }
.h-staff path:nth-child(5) { animation-duration: 22s; }
@keyframes h-flow { to { stroke-dashoffset: -320; } }
.h-note {
  position: absolute; font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1; color: var(--h-accent);
  opacity: 0; animation: h-float 12s ease-in-out infinite; font-family: "Segoe UI Symbol", "Noto Music", serif;
}
.h-note:nth-child(6) { left: 8%; bottom: 18%; animation-delay: 0s; }
.h-note:nth-child(7) { left: 22%; bottom: 10%; animation-delay: 3s; color: #e8590c; }
.h-note:nth-child(8) { left: 47%; bottom: 14%; animation-delay: 6s; color: #8a2be2; }
.h-note:nth-child(9) { left: 71%; bottom: 20%; animation-delay: 1.5s; color: #2563eb; }
.h-note:nth-child(10) { left: 88%; bottom: 12%; animation-delay: 4.5s; }
@keyframes h-float {
  0% { transform: translateY(20px) rotate(-8deg); opacity: 0; }
  20% { opacity: 0.55; }
  80% { opacity: 0.35; }
  100% { transform: translateY(-160px) rotate(10deg); opacity: 0; }
}

.h-hero__inner {
  max-width: var(--h-max); margin: 0 auto; padding: 0 var(--h-gutter);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 64px); align-items: center;
}
.h-pill {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 6px 14px 6px 6px; margin-bottom: 22px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 600; color: var(--h-ink); text-decoration: none;
  background: var(--h-card-2); border: 1px solid var(--h-line); box-shadow: var(--h-shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.h-pill:hover { transform: translateY(-2px); border-color: rgba(214, 36, 110, 0.4); }
.h-pill__badge {
  padding: 3px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--h-grad); background-size: 200% 100%; animation: h-shimmer 6s ease-in-out infinite alternate;
}
.h-pill__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-pill .h-ico { color: var(--h-accent); }
[dir="rtl"] .h-pill .h-ico--arrow, [dir="rtl"] .h-btn .h-ico--arrow { transform: scaleX(-1); }

.h-title {
  font-size: clamp(2.35rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800;
  margin: 0 0 20px; color: var(--h-ink); text-wrap: balance;
}
.h-lede { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--h-ink-2); margin: 0 0 28px; max-width: 34em; }

.h-search {
  position: relative; display: flex; align-items: center; gap: 6px; max-width: 580px;
  padding: 6px 6px 6px 20px; border-radius: 999px;
  background: var(--h-card-2); border: 1px solid var(--h-line);
  box-shadow: 0 18px 50px -20px rgba(214, 36, 110, 0.45), var(--h-shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.h-search:focus-within { border-color: rgba(214, 36, 110, 0.55); box-shadow: 0 0 0 4px rgba(255, 110, 199, 0.18), 0 18px 50px -20px rgba(214, 36, 110, 0.55); }
.h-search > .h-ico { color: var(--h-muted); width: 20px; height: 20px; }
.h-search input {
  flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent;
  font: 500 1rem var(--h-font); color: var(--h-ink);
}
.h-search input::placeholder { color: var(--h-muted); opacity: 1; }
.h-search input::-webkit-search-cancel-button { display: none; }
.h-search button {
  flex: none; height: 50px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 0.95rem var(--h-font); color: #fff; background: linear-gradient(120deg, #e8590c, #d6246e 55%, #8a2be2);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.h-search button:hover { filter: brightness(1.08); }
.h-search button .h-ico { display: none; }
.h-search button:active { transform: scale(0.97); }
.h-search kbd {
  flex: none; font: 600 0.72rem var(--h-font); color: var(--h-muted); padding: 2px 8px; border-radius: 6px;
  border: 1px solid var(--h-line); margin-inline-end: 4px;
}
.h-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 30px; font-size: 0.85rem; color: var(--h-muted); }
.h-try a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 999px; text-decoration: none;
  font-weight: 600; color: var(--h-ink-2); background: var(--h-card-2); border: 1px solid var(--h-line);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.h-try a:hover { color: var(--h-accent); border-color: rgba(214, 36, 110, 0.4); transform: translateY(-1px); }
.h-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Showcase: the player, as a still life that moves */
.h-show {
  position: relative; display: block; text-decoration: none; color: inherit;
  perspective: 1400px; max-width: 480px; margin-inline: auto; width: 100%;
}
.h-show__card {
  position: relative; border-radius: 26px; overflow: hidden;
  background: #fff; border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--h-shadow-lg), 0 2px 6px rgba(0, 0, 0, 0.06);
  transform: rotateY(-9deg) rotateX(5deg) rotateZ(0.6deg);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.h-show:hover .h-show__card { transform: rotateY(-3deg) rotateX(2deg); }
.h-show__paper { position: relative; aspect-ratio: 480 / 560; overflow: hidden; background: #fff; }
.h-show__paper img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: contrast(1.05); }
.h-show__paper::after {
  content: ''; position: absolute; inset: auto 0 0; height: 40%;
  background: linear-gradient(to top, #fff 8%, rgba(255, 255, 255, 0));
}
.h-show__playhead {
  position: absolute; top: 14%; bottom: 30%; left: 12%; width: 3px; border-radius: 3px;
  background: linear-gradient(#ff6ec7, #c13cff); box-shadow: 0 0 18px 4px rgba(255, 110, 199, 0.45);
  animation: h-playhead 7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes h-playhead {
  0% { transform: translateX(0); opacity: 0; }
  6% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateX(min(360px, 70vw)); opacity: 0; }
}
.h-show__bar {
  position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; border-radius: 18px; color: #15131a;
  background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(21, 19, 26, 0.08);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -12px rgba(21, 19, 26, 0.35);
}
.h-show__play {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, #ff6ec7, #8a2be2); box-shadow: 0 6px 16px -4px rgba(193, 60, 255, 0.6);
}
.h-show__meta { min-width: 0; flex: 1; }
.h-show__title { font-size: 0.86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.h-show__by { font-size: 0.74rem; color: #635f6e; margin: 0 0 6px; }
.h-show__track { height: 4px; border-radius: 4px; background: rgba(21, 19, 26, 0.1); overflow: hidden; }
.h-show__track span { display: block; height: 100%; width: 100%; border-radius: 4px; background: linear-gradient(90deg, #ff9a3d, #ff6ec7, #c13cff); transform-origin: left; animation: h-progress 7s linear infinite; }
@keyframes h-progress { from { transform: scaleX(0.04); } to { transform: scaleX(1); } }
.h-eq { flex: none; display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.h-eq i { width: 4px; border-radius: 2px; background: linear-gradient(#ff6ec7, #ff9a3d); animation: h-eq 1.1s ease-in-out infinite alternate; }
.h-eq i:nth-child(1) { height: 40%; animation-delay: -0.2s; }
.h-eq i:nth-child(2) { height: 90%; animation-delay: -0.6s; }
.h-eq i:nth-child(3) { height: 60%; animation-delay: -0.4s; }
.h-eq i:nth-child(4) { height: 75%; animation-delay: -0.9s; }
@keyframes h-eq { 0% { transform: scaleY(0.35); } 100% { transform: scaleY(1); } }
.h-eq i { transform-origin: bottom; }
.h-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 14px; font-size: 0.82rem; font-weight: 700; white-space: nowrap;
  color: var(--h-ink); background: var(--h-card); border: 1px solid var(--h-line); box-shadow: var(--h-shadow);
  animation: h-bob 6s ease-in-out infinite;
}
.h-chip .h-ico { color: var(--h-accent); }
.h-chip--pdf { top: 12%; right: -6%; }
.h-chip--tempo { top: 44%; left: -10%; animation-delay: -2s; }
.h-chip--key { bottom: 24%; right: -8%; animation-delay: -4s; }
@keyframes h-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.h-stats {
  list-style: none; margin: clamp(40px, 6vw, 64px) auto 0; padding: 0 var(--h-gutter); max-width: var(--h-max);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.h-stats li {
  padding: 18px 20px; border-radius: 18px; background: var(--h-card-2); border: 1px solid var(--h-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.h-stats strong { display: block; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.h-stats span { font-size: 0.88rem; color: var(--h-muted); }

/* ══ POPULAR RAIL ═══════════════════════════════════════════════════════ */
.h-rail-wrap { position: relative; }
.h-rail {
  list-style: none; margin: 0; padding: 6px var(--h-gutter) 18px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23vw, 262px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--h-gutter);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.h-rail::-webkit-scrollbar { display: none; }
@media (min-width: 1280px) {
  .h-rail { padding-inline: max(var(--h-gutter), calc((100vw - var(--h-max)) / 2 + var(--h-gutter))); scroll-padding-inline: max(var(--h-gutter), calc((100vw - var(--h-max)) / 2 + var(--h-gutter))); }
}
.h-rail > li { scroll-snap-align: start; }
.h-card {
  --c1: #ff9a3d; --c2: #ff3d6e; --c3: #8a2be2;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 320px;
  padding: 18px; border-radius: var(--h-radius); overflow: hidden; text-decoration: none; color: #fff; isolation: isolate;
  background: linear-gradient(155deg, var(--c1), var(--c2) 55%, var(--c3));
  box-shadow: 0 18px 40px -22px var(--c2);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.h-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -20px var(--c2); }
.h-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  background:
    repeating-linear-gradient(180deg, transparent 0 21px, rgba(255, 255, 255, 0.55) 21px 22px) 0 34px / 100% 110px no-repeat,
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.5), transparent 45%);
}
.h-card__glyph {
  position: absolute; top: 18px; right: 14px; font-size: 7.5rem; line-height: 1; opacity: 0.22; z-index: -1;
  font-family: "Segoe UI Symbol", "Noto Music", serif; transition: transform 0.5s ease;
}
.h-card:hover .h-card__glyph { transform: rotate(-8deg) scale(1.08); }
.h-card__tag {
  position: absolute; top: 16px; left: 16px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  background: rgba(0, 0, 0, 0.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.h-card__tag--new { background: #fff; color: #c1272d; }
.h-card__title { font-size: 1.14rem; line-height: 1.22; font-weight: 800; margin: 0 0 4px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18); }
.h-card__by { font-size: 0.85rem; opacity: 0.92; margin: 0 0 14px; }
.h-card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.h-card__meta span {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px;
  font-size: 0.72rem; font-weight: 700; background: rgba(255, 255, 255, 0.2);
}
.h-rail-nav { display: flex; gap: 8px; }
.h-rail-nav button {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  color: var(--h-ink); background: var(--h-card); border: 1px solid var(--h-line); box-shadow: var(--h-shadow);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.h-rail-nav button:hover:not(:disabled) { transform: translateY(-2px); }
.h-rail-nav button:disabled { opacity: 0.35; cursor: default; }
.h-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--h-accent); text-decoration: none; }
.h-link:hover .h-ico--arrow { transform: translateX(3px); }
.h-link .h-ico { transition: transform 0.2s ease; }

/* ══ BENTO ══════════════════════════════════════════════════════════════ */
.h-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.h-tile {
  --t1: #ff9a3d; --t2: #ff3d6e;
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 250px;
  padding: 26px; border-radius: 26px; overflow: hidden; text-decoration: none; color: var(--h-ink);
  background: var(--h-card); border: 1px solid var(--h-line); box-shadow: var(--h-shadow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
a.h-tile:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--t2) 45%, transparent); box-shadow: 0 26px 60px -30px var(--t2); }
.h-tile::after {
  content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--t2) 26%, transparent), transparent 70%);
  transition: transform 0.6s ease; pointer-events: none;
}
a.h-tile:hover::after { transform: scale(1.25); }
.h-tile > * { position: relative; z-index: 1; }
.h-tile__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, var(--t1), var(--t2)); box-shadow: 0 10px 24px -10px var(--t2);
}
.h-tile__icon .h-ico { width: 26px; height: 26px; }
.h-tile h3 { margin: 6px 0 0; font-size: 1.28rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.015em; }
.h-tile p { margin: 0; color: var(--h-muted); font-size: 0.95rem; }
.h-tile__more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem; color: color-mix(in srgb, var(--t2) 80%, var(--h-ink)); }
.h-tile:hover .h-tile__more .h-ico { transform: translateX(3px); }
.h-tile__more .h-ico { transition: transform 0.2s ease; }
.h-new {
  position: absolute; top: 20px; right: 20px; z-index: 2; padding: 4px 10px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--h-warm);
}
.h-tile--library { grid-column: span 2; grid-row: span 2; --t1: #8a2be2; --t2: #ff3d6e; min-height: 520px; }
.h-tile--library h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.h-tile--player { grid-column: span 2; --t1: #ff9a3d; --t2: #e8590c; }
.h-tile--learn { --t1: #ff6ec7; --t2: #d6246e; }
.h-tile--stories { --t1: #f59e0b; --t2: #b45309; padding: 0; }
.h-tile--ear { --t1: #06b6d4; --t2: #2563eb; }
.h-tile--tools { --t1: #14b8a6; --t2: #0f766e; }
.h-tile--anda { grid-column: span 2; --t1: #c9a227; --t2: #9a3412; }
.h-tile--soon { --t1: #a78bfa; --t2: #6d28d9; border-style: dashed; box-shadow: none; }
.h-genres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.h-genres a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; text-decoration: none;
  font-size: 0.86rem; font-weight: 600; color: var(--h-ink-2); background: var(--h-bg-3); border: 1px solid var(--h-line);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.h-genres a:hover { color: var(--h-accent); border-color: rgba(214, 36, 110, 0.4); }
.h-lib-visual {
  position: relative; margin: 10px 0 4px; flex: 1; min-height: 170px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, #8a2be2 12%, var(--h-card)), color-mix(in srgb, #ff3d6e 10%, var(--h-card)));
  border: 1px solid var(--h-line);
}
.h-lib-visual span {
  position: absolute; bottom: -14px; width: 26%; aspect-ratio: 3 / 4; border-radius: 10px; background: #fff;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.35);
  background-image: repeating-linear-gradient(180deg, transparent 0 13px, rgba(21, 19, 26, 0.35) 13px 14px, transparent 14px 16px);
  background-size: 76% 70px; background-position: 50% 18px; background-repeat: repeat-y;
}
.h-lib-visual span:nth-of-type(1) { left: 8%; transform: rotate(-9deg); bottom: -24px; }
.h-lib-visual span:nth-of-type(2) { left: 37%; transform: translateY(-14px); z-index: 1; }
.h-lib-visual span:nth-of-type(3) { left: 66%; transform: rotate(8deg); bottom: -22px; }
.h-lib-visual strong {
  position: absolute; top: 16px; left: 18px; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
}
.h-lib-visual em { position: absolute; top: 20px; right: 18px; font-style: normal; font-size: 0.8rem; font-weight: 700; color: var(--h-muted); }
.h-feats { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.h-feats li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 600; color: var(--h-ink-2); }
.h-feats .h-ico { color: #e8590c; width: 20px; height: 20px; }
.h-story { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.h-story img { width: 100%; height: 150px; object-fit: cover; }
.h-story__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 22px; }
.h-anda-motif { position: absolute; right: -36px; bottom: -44px; width: 230px; height: 230px; z-index: 0; color: var(--t1); opacity: 0.22; transition: transform 0.8s ease; }
a.h-tile:hover .h-anda-motif { transform: rotate(22.5deg); }

/* ══ STEPS ══════════════════════════════════════════════════════════════ */
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.h-step { position: relative; padding: 28px 26px; border-radius: 24px; background: var(--h-card); border: 1px solid var(--h-line); }
.h-step__n {
  display: block; font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -0.05em; margin-bottom: 14px;
  background: var(--h-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.h-step h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; }
.h-step p { margin: 0; color: var(--h-muted); font-size: 0.95rem; }
.h-step:not(:last-child)::after {
  content: ''; position: absolute; top: 50px; right: -14px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--h-warm); box-shadow: 0 0 0 5px var(--h-bg); z-index: 1;
}

/* ══ ANTHEM BAND ════════════════════════════════════════════════════════ */
.h-anthem {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; padding: clamp(32px, 5vw, 56px);
  color: #fff; background: linear-gradient(125deg, #8f1d22 0%, #c1272d 45%, #7a1419 100%);
  box-shadow: 0 30px 70px -30px rgba(193, 39, 45, 0.7);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: center;
}
.h-anthem::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.14;
  background:
    repeating-conic-gradient(from 45deg at 50% 50%, #fff 0 25%, transparent 0 50%) 0 0 / 34px 34px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000);
  mask-image: linear-gradient(100deg, transparent 35%, #000);
}
.h-anthem__star { position: absolute; z-index: -1; right: -70px; top: 50%; width: min(400px, 48%); aspect-ratio: 1; transform: translateY(-50%) rotate(-8deg); color: #0f7a3a; opacity: 0.55; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3)); }
.h-anthem__ar { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1.25; margin: 0 0 6px; }
.h-anthem__fr { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; opacity: 0.92; margin: 0 0 14px; }
.h-anthem p.h-anthem__txt { margin: 0 0 24px; opacity: 0.92; max-width: 46ch; }
.h-anthem .h-btn--primary { background: #fff; color: #9b1c22; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.45); }
.h-anthem .h-btn--ghost { color: #fff; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.35); }
.h-anthem__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.h-anthem__list li {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; font-weight: 600;
  background: rgba(96, 10, 16, 0.55); border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.h-anthem__list .h-ico { color: #ffd166; }

/* ══ TEAM ═══════════════════════════════════════════════════════════════ */
.h-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.h-member {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start;
  padding: 28px; border-radius: 26px; background: var(--h-card); border: 1px solid var(--h-line); box-shadow: var(--h-shadow);
}
.h-avatar { position: relative; width: 104px; height: 104px; border-radius: 50%; padding: 4px; background: var(--h-grad); }
.h-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--h-card); background: var(--h-card); }
.h-member h3 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.h-role { display: block; margin: 2px 0 12px; font-size: 0.9rem; font-weight: 700; color: var(--h-accent); }
.h-member p { margin: 0 0 14px; color: var(--h-muted); font-size: 0.94rem; }
.h-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.h-tags span { padding: 4px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; color: var(--h-ink-2); background: var(--h-bg-3); }
.h-socials { display: flex; gap: 8px; }
.h-socials a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--h-ink);
  border: 1px solid var(--h-line); transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.h-socials a:hover { color: #fff; background: var(--h-warm); border-color: transparent; transform: translateY(-2px); }

/* ══ FAQ ════════════════════════════════════════════════════════════════ */
.h-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.h-faq__list { display: grid; gap: 10px; }
.h-faq details { border-radius: 18px; background: var(--h-card); border: 1px solid var(--h-line); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.h-faq details[open] { border-color: rgba(214, 36, 110, 0.35); box-shadow: var(--h-shadow); }
.h-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none;
  padding: 18px 22px; font-weight: 700; font-size: 1rem;
}
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after {
  content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--h-bg-3) no-repeat center / 12px 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23c2185b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform 0.25s ease;
}
.h-faq details[open] summary::after { transform: rotate(45deg); }
.h-faq details p { margin: 0; padding: 0 22px 20px; color: var(--h-muted); }

/* ══ SUPPORT ════════════════════════════════════════════════════════════ */
.h-support {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(32px, 5vw, 60px); text-align: center; color: #fff;
  background: linear-gradient(120deg, #e8590c, #d6246e 45%, #8a2be2 80%, #2563eb);
  box-shadow: 0 30px 70px -30px rgba(138, 43, 226, 0.7);
}
.h-support::before {
  content: ''; position: absolute; inset: 0; opacity: 0.2;
  background: radial-gradient(circle at 15% 20%, #fff, transparent 30%), radial-gradient(circle at 85% 80%, #fff, transparent 30%);
}
.h-support > * { position: relative; }
.h-support h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.h-support p { margin: 0 auto 26px; max-width: 52ch; opacity: 0.95; }
.h-support__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.h-support .h-btn--primary { background: #fff; color: #b8196e; }
.h-support .h-btn--ghost { color: #fff; background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.4); }
.h-heart { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.18); animation: h-beat 2.4s ease-in-out infinite; }
.h-heart .h-ico { width: 30px; height: 30px; }
@keyframes h-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } }

/* ══ Reveal on scroll (only when JS runs — content is never hidden otherwise) ══ */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ══ Responsive ═════════════════════════════════════════════════════════ */
@media (max-width: 1099px) {
  .h-hero__inner { grid-template-columns: 1fr; }
  .h-show { max-width: 420px; }
  .h-chip--tempo { left: -4%; }
  .h-chip--pdf, .h-chip--key { right: -3%; }
  .h-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-tile--library { grid-row: auto; min-height: 420px; }
  .h-faq { grid-template-columns: 1fr; }
  .h-anthem { grid-template-columns: 1fr; }
  .h-anthem__star { opacity: 0.35; }
}
@media (max-width: 760px) {
  .h-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-bento { grid-template-columns: 1fr; }
  .h-tile--library, .h-tile--player, .h-tile--anda { grid-column: auto; }
  .h-feats { grid-template-columns: 1fr; }
  .h-steps { grid-template-columns: 1fr; }
  .h-step:not(:last-child)::after { display: none; }
  .h-team { grid-template-columns: 1fr; }
  .h-member { grid-template-columns: 1fr; }
  .h-search { padding-left: 16px; }
  .h-search kbd { display: none; }
  .h-search button { padding: 0 16px; }
  .h-head .h-rail-nav { display: none; }
  .h-show__card { transform: rotateY(0) rotateX(0); }
  .h-show { max-width: 360px; }
  .h-anda-motif { opacity: 0.12; right: -60px; bottom: -70px; }
  .h-chip { font-size: 0.74rem; padding: 7px 11px; }
}
@media (max-width: 420px) {
  .h-search button span { display: none; }
  .h-search button .h-ico { display: block; margin: 0 auto; width: 20px; height: 20px; }
  .h-search button { width: 50px; padding: 0; }
  .h-ctas .h-btn { flex: 1 1 100%; }
  .h-chip--tempo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .h-blob, .h-staff path, .h-note, .h-grad, .h-pill__badge, .h-show__playhead, .h-show__track span,
  .h-eq i, .h-chip, .h-heart { animation: none !important; }
  .h-note { opacity: 0.3; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .h-card, .h-tile, .h-btn, .h-show__card { transition: none; }
}
