/* Synesthesia Music page. Builds on styles.css and the section styles in astral.css. */

.nav-links a.nav-key--other { color: var(--ink); text-shadow: none; }

/* the spectrum: C red through B violet */
.spectrum {
  background: linear-gradient(90deg, #ff3b4e, #ff8a1f, #ffe01f, #3dff5e, #1ec8ff, #5a6bff, #c05bff, #ff3b4e) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 .08em rgba(255, 255, 255, .55)) drop-shadow(0 0 .3em rgba(120, 180, 255, .6));
  animation: spectrum 9s linear infinite;
}
@keyframes spectrum { to { background-position: -300% 0; } }

/* ---------- hero ---------- */
.syn-hero { position: relative; overflow: hidden; padding: 140px var(--gutter) clamp(48px, 8vw, 96px); background: #000; }
.syn-aurora {
  position: absolute; inset: -30% -10% auto -10%; height: 130%; pointer-events: none; opacity: .5; filter: blur(70px);
  background:
    radial-gradient(30% 40% at 12% 40%, #ff3b4e55, transparent 70%), radial-gradient(30% 40% at 32% 62%, #ffe01f33, transparent 70%),
    radial-gradient(34% 44% at 54% 38%, #3dff5e3d, transparent 70%), radial-gradient(34% 44% at 74% 58%, #1ec8ff66, transparent 70%),
    radial-gradient(30% 40% at 92% 36%, #c05bff55, transparent 70%);
  animation: aurora 16s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translateX(-6%) scale(1.08); } }
.syn-hero-inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(180px, 24vw, 340px); gap: clamp(28px, 5vw, 72px); align-items: center;
}
.syn-title { margin: 0; font: 400 clamp(3.2rem, 9.6vw, 9rem)/.88 var(--display); text-transform: uppercase; color: var(--bolt); text-shadow: 0 0 18px rgba(30, 167, 255, .7), 0 0 70px rgba(30, 167, 255, .4); }
.syn-title span { display: block; }
.syn-title .line { color: transparent; -webkit-text-stroke: clamp(1px, .014em, 2.5px) var(--bolt); text-shadow: none; filter: drop-shadow(0 0 12px rgba(30, 167, 255, .55)); }
.syn-title .spectrum { text-shadow: none; }
.syn-icon { display: block; border-radius: 22.5%; animation: av-float 6s ease-in-out infinite; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.syn-icon img { width: 100%; height: auto; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(127, 214, 255, .5), 0 0 70px -4px rgba(30, 167, 255, .9), 0 0 160px -20px rgba(120, 90, 255, .8); }
.syn-icon:hover { transform: scale(1.05) rotate(-3deg); }

/* ---------- the playable score ---------- */
.stage {
  position: relative; margin: 26px 0 16px; height: clamp(260px, 38vw, 400px);
  border: 1px solid var(--line-hot); border-radius: 8px; overflow: hidden; background: #000;
  box-shadow: 0 0 80px -16px rgba(0, 110, 255, .75), inset 0 0 90px rgba(0, 50, 140, .3);
}
.stage canvas { display: block; width: 100%; height: 100%; }
.stage-top { position: absolute; inset: 14px 18px auto 18px; display: flex; justify-content: space-between; gap: 12px; pointer-events: none; }
.readout { color: var(--bolt-hi); font: 700 .7rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 0 8px #000; }
.readout b { color: var(--core); font-variant-numeric: tabular-nums; }

.deck { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 14px; }
.deck-start { min-width: 8.5em; justify-content: center; }
.deck-tempo { display: flex; align-items: center; gap: 10px; flex: 1 1 200px; max-width: 320px; color: var(--dim); font: 700 .74rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; }
.deck-tempo input { flex: 1; accent-color: var(--bolt); height: 26px; }
.deck-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.deck .chip[data-theme="art"][aria-pressed="true"] { background: linear-gradient(90deg, #ff3b4e, #ffe01f, #3dff5e, #1ec8ff, #c05bff); border-color: transparent; color: #000; }
.deck .chip[data-theme="green"][aria-pressed="true"] { background: #39ff14; border-color: #39ff14; box-shadow: 0 0 22px rgba(57, 255, 20, .6); }
.deck .chip[data-theme="holo"][aria-pressed="true"] { background: #c9f4ff; border-color: #c9f4ff; box-shadow: 0 0 22px rgba(160, 235, 255, .7); }

/* ---------- features ---------- */
.syn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.syn-ask { margin: 0 0 16px !important; font: 400 1.5rem/1.2 var(--display) !important; letter-spacing: .01em; color: var(--core); }
.syn-ask span { display: block; color: var(--bolt-hi); margin: 4px 0; }

.syn-ar { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(22px, 4vw, 56px); align-items: center; margin-top: 24px; }
.syn-ar-shot { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-hot); box-shadow: 0 0 70px -12px rgba(0, 110, 255, .8); transform: rotate(-1.5deg); }
.syn-ar-shot img { width: 100%; height: auto; }

.notes-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.notes-row span {
  display: grid; place-items: center; width: clamp(44px, 9vw, 74px); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--c); color: var(--c); font: 400 clamp(1.4rem, 3.4vw, 2.2rem)/1 var(--display);
  box-shadow: 0 0 22px -2px var(--c), inset 0 0 18px -6px var(--c); text-shadow: 0 0 12px var(--c);
  animation: note-bob 2.8s ease-in-out infinite;
}
.notes-row span:nth-child(2) { animation-delay: -.4s; } .notes-row span:nth-child(3) { animation-delay: -.8s; }
.notes-row span:nth-child(4) { animation-delay: -1.2s; } .notes-row span:nth-child(5) { animation-delay: -1.6s; }
.notes-row span:nth-child(6) { animation-delay: -2s; } .notes-row span:nth-child(7) { animation-delay: -2.4s; }
@keyframes note-bob { 50% { transform: translateY(-8px); } }

.shots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.shots img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s; }
.shots img:hover { transform: translateY(-6px) scale(1.03); border-color: var(--bolt); box-shadow: 0 0 40px -6px rgba(30, 167, 255, .8); }

.av-cta h2 .spectrum { text-shadow: none; }

@media (max-width: 760px) {
  .syn-hero { padding-top: 96px; }
  .syn-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .syn-icon { width: min(44%, 180px); order: -1; }
  .syn-grid, .syn-ar { grid-template-columns: minmax(0, 1fr); }
  .syn-ar-shot { max-width: 340px; }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shots img { flex: 0 0 46%; scroll-snap-align: start; }
  .deck-tempo { flex-basis: 100%; max-width: none; }
  .nav-links a.nav-key--other { display: inline; }
  .syn .hero-cta .btn { flex: 1 1 100%; justify-content: center; white-space: normal; text-align: center; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) { .spectrum, .syn-aurora { animation: none; } }

/* ---------- sheet music display: a traditional printed page ---------- */
.syn-sheet { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(22px, 4vw, 56px); align-items: center; margin-top: 24px; }
.paper {
  margin: 0; border-radius: 4px; overflow: hidden; background: #f6f1e4; transform: rotate(-1.6deg);
  box-shadow: 0 0 0 1px rgba(127, 214, 255, .5), 0 0 70px -10px rgba(30, 167, 255, .85), 0 30px 60px -20px rgba(0, 0, 0, .9);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.paper:hover { transform: rotate(0) scale(1.02); }
.paper svg { display: block; width: 100%; height: auto; }
.paper .ink { fill: #15130f; } .paper .line { stroke: #15130f; fill: none; }
.paper .here { fill: #1ea7ff; opacity: 0; animation: here 12s linear infinite; animation-delay: calc(var(--i) * 1.5s); }
@keyframes here { 0%, 12.4% { opacity: .26; } 12.5%, 100% { opacity: 0; } }
@media (max-width: 760px) { .syn-sheet { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .paper .here { animation: none; } .paper .here[style*="--i:0"] { opacity: .26; } }

/* ---------- the video, at the top ---------- */
.syn-video { position: relative; max-width: var(--max); margin: clamp(34px, 5vw, 60px) auto 0; }
.syn-video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000;
  border: 1px solid var(--line-hot);
  box-shadow: 0 0 0 1px rgba(30, 167, 255, .2), 0 0 90px -14px rgba(30, 167, 255, .85), 0 0 180px -30px rgba(192, 91, 255, .7);
}
.syn-video-frame::before { /* the spectrum, running round the frame */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--a), #ff3b4e, #ffe01f, #3dff5e, #1ec8ff, #c05bff, #ff3b4e);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: orbit 7s linear infinite; opacity: .85;
}
.syn-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.syn-video-cap { margin: 14px 0 0; text-align: center; color: var(--dim); font: 700 .74rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .syn-video-frame::before { animation: none; } }
