@font-face {
  font-family: 'Avalon';
  src: url('assets/Avalon_Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --blue: #0d18ff;
  --panel: rgba(10, 10, 10, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Public Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* motion */
@keyframes floatLogo {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(13, 24, 255, 0.2)); }
  50% { filter: drop-shadow(0 0 18px rgba(13, 24, 255, 0.34)); }
}

.page {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.6s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s ease;
}

.page.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.page.is-hiding {
  opacity: 0;
  transform: translateY(18px) scale(0.992);
  filter: blur(4px);
}

.page.active {
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s ease, transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

button,
a,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.site-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/Frame 16 (1).webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: -3;
  transform-origin: center;
  animation: bgBreath 16s ease-in-out infinite;
  will-change: transform, filter;
  isolation: isolate;
  pointer-events: none;
  overflow: hidden;
}

.site-bg::before,
.site-bg::after {
  content: '';
  position: absolute;
  top: -12%;
  left: -12%;
  width: 124%;
  height: 124%;
  background-image: inherit;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  pointer-events: none;
}

.site-bg::before {
  z-index: 1;
  opacity: 0.48;
  mix-blend-mode: screen;
  filter: blur(12px);
  animation: bgEchoOne 10s ease-in-out infinite alternate;
}

.site-bg::after {
  z-index: 2;
  opacity: 0.32;
  mix-blend-mode: screen;
  filter: blur(26px);
  animation: bgEchoTwo 15s ease-in-out infinite alternate;
}

@keyframes bgEchoOne {
  0% {
    transform: translate3d(0px, 0px, 0) scale(1.01) skew(0deg, 0deg);
    opacity: 0.34;
  }
  50% {
    transform: translate3d(52px, -30px, 0) scale(1.09) skew(1.2deg, -0.5deg);
    opacity: 0.56;
  }
  100% {
    transform: translate3d(-34px, 22px, 0) scale(1.04) skew(-1deg, 0.7deg);
    opacity: 0.42;
  }
}

@keyframes bgEchoTwo {
  0% {
    transform: translate3d(0px, 0px, 0) scale(1.02) rotate(0deg);
    opacity: 0.22;
  }
  50% {
    transform: translate3d(-64px, 26px, 0) scale(1.12) rotate(-0.5deg);
    opacity: 0.38;
  }
  100% {
    transform: translate3d(38px, -34px, 0) scale(1.06) rotate(0.35deg);
    opacity: 0.28;
  }
}

.site-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: -2;
  pointer-events: none;
}



.topbar {
  position: relative;
  z-index: 50;
  padding: 22px 14px 0;
}

@keyframes symbolDrift {
  0%, 100% {
    transform: translateY(0px) scale(1);
    filter: drop-shadow(0 0 8px rgba(13, 24, 255, 0.18));
    opacity: 0.92;
  }
  50% {
    transform: translateY(-4px) scale(1.015);
    filter: drop-shadow(0 0 18px rgba(13, 24, 255, 0.32));
    opacity: 1;
  }
}

.top-symbols {
  width: min(190px, 32vw);
  margin: 0 auto 20px;
  animation: symbolDrift 5.2s ease-in-out infinite;
}

.nav-shell {
  position: relative;
  width: min(1380px, calc(100vw - 18px));
  margin: 0 auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-rect {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  pointer-events: none;
}

.nav-rect-1 {
  opacity: 1;
}

.nav-rect-2 {
  opacity: 0.92;
}

.main-nav {
  position: relative;
  z-index: 2;
  width: min(760px, 78vw);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: #ffffff;
  font-family: 'Avalon', 'Public Sans', sans-serif;
  font-size: clamp(0.82rem, 1.05vw, 1.22rem);
  padding: 4px 6px;
  text-align: center;
  transition: color 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 0.25s ease;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.589);
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  text-shadow: 0 0 14px blue;
}

.nav-link:hover {
  transform: translateY(-2px);
}

main {
  position: relative;
  z-index: 2;
}

.page {
  display: none;
  width: 100%;
}

.page.active {
  display: block;
}

.page-home {
  min-height: 100vh;
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 74px;
}

.hero-logo {
  width: min(380px, 42vw);
  margin-bottom: 48px;
  animation: floatLogo 6s ease-in-out infinite;
  will-change: transform;
}

.computer-info {
  width: min(760px, 74vw);
  opacity: 0.92;
}

.home-content {
  position: relative;
  width: min(1460px, calc(100vw - 24px));
  margin: 160px auto 0;
  min-height: 1520px;
}

.spiral {
  position: absolute;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

.spiral-left {
  left: -150px;
  top: 340px;
  width: min(1000px, 18vw);
}

.spiral-right {
  right: -150px;
  top: 1500px;
  width: min(1000px, 18vw);
}

.about-card {
  width: min(520px, 38vw);
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.about-card h2,
.music-block h2,
.contact-shell h2,
.placeholder-card h2,
.mini-player-wrap h3 {
  font-size: clamp(1.75rem, 2.4vw, 2.8rem);
  line-height: 1;
  margin: 0 0 20px;
  font-weight: 800;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
}

.about-card p {
  margin: 0 0 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.96rem, 1vw, 1.1rem);
}

.mini-player-wrap {
  position: relative;
  z-index: 2;
  margin-top: 220px;
  margin-left: 150px;
  width: min(700px, 58vw);
  padding-left: 0;
}

.mini-player-wrap h3 {
  margin: 0 0 20px;
  font-size: clamp(1.3rem, 1.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mini-player {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 26px;
  width: 100%;
  padding: 24px;
  background: linear-gradient(180deg, rgba(18, 18, 32, 0.72), rgba(8, 8, 16, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.mini-player::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(13, 24, 255, 0.18), transparent 38%);
  pointer-events: none;
}

.mini-player-cover {
  width: 190px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.mini-player-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.mini-player-meta {
  padding-top: 0;
}

.mini-player-title {
  font-size: clamp(2.15rem, 2.7vw, 3.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
}

.mini-player-artist {
  margin-top: 12px;
  font-size: clamp(1.2rem, 1.5vw, 1.8rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.player-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.8rem;
  opacity: 0.95;
  transition: transform 0.22s ease, opacity 0.22s ease, filter 0.22s ease;
}

.player-btn:hover {
  transform: scale(1.08);
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
}

.player-btn-main {
  font-size: 2rem;
}

.progress-wrap {
  margin-top: 20px;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0.82));
  box-shadow: 0 0 12px rgba(255,255,255,0.18);
  transition: width 0.15s linear;
}

.track-covers {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  margin-left: 170px;
  padding-left: 0;
  flex-wrap: wrap;
}

.track-cover-btn {
  width: 74px;
  height: 74px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.28s ease, opacity 0.25s ease;
}

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

.track-cover-btn:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.34);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.track-cover-btn.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 0 18px rgba(255,255,255,0.10);
}

.closing-line {
  height: 100vh;              /* FULL SCREEN */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 0;
  margin: 0;

  position: relative;
}

.closing-line p {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 2rem);
}

.music-page-inner,
.contact-shell,
.placeholder-card {
  width: min(1180px, calc(100vw - 60px));
  margin: 0 auto;
}

.page-music,
.page-contact,
.page-eightos {
  padding: 42px 0 100px;
  min-height: 100vh;
}

.music-block {
  padding: 18px 0 34px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.86);
}

.latest-release-layout {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
}

.release-left {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.release-cover {
  width: clamp(180px, 20vw, 260px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
}

.release-meta h3 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 2.9vw, 3rem);
}

.release-meta p {
  margin: 0;
  font-size: clamp(1.3rem, 1.8vw, 1.9rem);
}

.release-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 190px));
  gap: 18px 22px;
}

.pill-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  font-weight: 400;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, filter 0.35s ease;
}

.pill-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(13, 24, 255, 0.28);
  filter: brightness(1.08);
}

.music-grid {
  display: grid;
  gap: 28px;
}

.music-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.music-grid-ep {
  grid-template-columns: 240px;
}

.music-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, filter 0.35s ease;
}

.music-tile:hover img {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.42);
  filter: brightness(1.05);
}

.ep-tile {
  max-width: 260px;
}

.placeholder-card,
.contact-shell {
  background: rgba(5, 5, 12, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 34px;
}

.placeholder-card p {
  font-size: 1.1rem;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 700px;
  
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  padding: 14px 16px;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(13, 24, 255, 0.8);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 3px rgba(13, 24, 255, 0.12);
}

.contact-form button {
  width: 180px;
  min-height: 56px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, filter 0.3s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(13, 24, 255, 0.24);
  filter: brightness(1.08);
}

.site-footer {
  position: relative;
  width: min(1460px, calc(100vw - 24px));
  margin: 0 auto;
  min-height: 120px;
  padding: 0 0 34px;
  text-align: center;
}

.footer-mark {
  position: absolute;
  left: 6px;
  bottom: 75px;
  width: 34px;
}

.site-footer p {
  margin: 0;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
}

.page-contact .contact-shell,
.page-eightos .placeholder-card {
  width: min(1460px, calc(100vw - 24px));
}

.page-music .music-page-inner {
  width: min(1100px, calc(100vw - 120px));
}

.music-page-inner {
  padding-top: 90px;
}

.music-block {
  margin-bottom: 100px;
}

.latest-release-layout {
  gap: 60px;
}

.contact-shell,
.placeholder-card {
  margin: 110px auto 180px;
}

@media (max-width: 1100px) {
  .latest-release-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .release-links {
    grid-template-columns: repeat(2, minmax(180px, 220px));
  }

  .home-content {
    min-height: auto;
  }

  .about-card {
    width: min(520px, 100%);
    margin-right: auto;
  }

  .mini-player-wrap {
    width: min(780px, 100%);
    margin-top: 90px;
    margin-left: auto;
    margin-right: auto;
  }

  .spiral-left {
    left: -40px;
    top: 220px;
    width: 220px;
    opacity: 0.88;
  }

  .spiral-right {
    right: -28px;
    top: 680px;
    width: 220px;
    opacity: 0.88;
  }
}

@media (max-width: 900px) {
  .topbar {
    padding: 18px 10px 0;
  }

  .top-symbols {
    width: min(200px, 45vw);
  }

  .nav-shell {
    width: calc(100vw - 12px);
    min-height: 46px;
  }

  .main-nav {
    width: min(680px, 94vw);
  }

  .nav-link {
    font-size: 1rem;
    padding: 6px 12px;
  }

  .hero-section {
    padding-top: 42px;
  }

  .hero-logo {
    width: min(300px, 60vw);
    margin-bottom: 28px;
  }

  .computer-info {
    width: min(90vw, 620px);
  }

  .home-content {
    width: calc(100vw - 12px);
    margin-top: 100px;
    min-height: auto;
    padding-bottom: 120px;
  }

  .spiral-left {
    left: -10px;
    top: 500px;
    width: 110px;
  }

  .spiral-right {
    right: -10px;
    top: 1150px;
    width: 110px;
  }

  .about-card {
    width: min(86vw, 420px);
    margin-right: auto;
  }

  .mini-player-wrap {
    margin-top: 140px;
    margin-left: 24px;
    width: min(92vw, 560px);
    padding-left: 0;
  }

  .site-footer,
  .page-music .music-page-inner,
  .page-contact .contact-shell,
  .page-eightos .placeholder-card {
    width: calc(100vw - 12px);
  }

  .footer-mark {
    left: 2px;
    width: 28px;
  }
}

@media (max-width: 780px) {
  .topbar {
    padding: 22px 12px 10px;
  }

  .nav-shell {
    width: calc(100vw - 16px);
    min-height: 58px;
  }

  .main-nav {
    width: calc(100vw - 32px);
    gap: 2px;
  }

  .nav-link {
    font-size: clamp(0.82rem, 3.5vw, 1rem);
    padding: 8px 4px;
  }

  .hero-logo {
    width: min(170px, 46vw);
  }

  .computer-info {
    width: min(340px, 80vw);
  }

  .home-content,
  .music-page-inner,
  .contact-shell,
  .placeholder-card,
  .site-footer {
    width: calc(100vw - 24px);
  }

  .spiral-left {
    left: -26px;
    top: 300px;
    width: 132px;
  }

  .spiral-right {
    right: -22px;
    top: 880px;
    width: 132px;
  }

  .about-card {
    width: 100%;
  }

  .about-card h2,
  .music-block h2,
  .contact-shell h2,
  .placeholder-card h2,
  .mini-player-wrap h3 {
    font-size: 1.55rem;
    margin-bottom: 16px;
  }

  .about-card p {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .mini-player {
    grid-template-columns: 110px 1fr;
    padding: 10px;
    gap: 10px;
  }

  .mini-player-cover {
    width: 110px;
  }

  .mini-player-title {
    font-size: 1.2rem;
  }

  .mini-player-artist {
    font-size: 0.95rem;
  }

  .player-btn {
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
  }

  .player-btn-main {
    font-size: 1.5rem;
  }

  .track-cover-btn {
    width: 50px;
    height: 50px;
  }

  .closing-line {
    margin-top: -30px;
    margin-bottom: 80px;
  }

  .closing-line p {
    font-size: 1.15rem;
  }

  .release-left {
    gap: 16px;
  }

  .release-cover {
    width: 120px;
  }

  .release-meta h3 {
    font-size: 1.25rem;
  }

  .release-meta p {
    font-size: 1rem;
  }

  .release-links {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pill-link {
    min-height: 52px;
    font-size: 1rem;
  }

  .music-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .music-grid-ep {
    grid-template-columns: 1fr;
    max-width: 210px;
  }

  .footer-mark {
    width: 24px;
    bottom: 34px;
    left: 4px;
  }

  .site-footer {
    min-height: 100px;
    padding-top: 10px;
  }

  .site-footer p {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes spiralFloatLeft {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-2deg); }
}

@keyframes spiralFloatRight {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(18px) rotate(2deg); }
}

.spiral-left {
  animation: spiralFloatLeft 8s ease-in-out infinite;
  transform-origin: center;
}

.spiral-right {
  animation: spiralFloatRight 10s ease-in-out infinite;
  transform-origin: center;
}

.ambient-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(125, 145, 255, 0.22);
  box-shadow: 0 0 16px rgba(13, 24, 255, 0.18);
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(40px) translateX(0px) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    transform: translateY(-40vh) translateX(18px) scale(1);
    opacity: 0.75;
  }
  100% {
    transform: translateY(-90vh) translateX(-20px) scale(0.85);
    opacity: 0;
  }
}


/* ===== FORCE-FIX: ABOUT SECTION POSITIONING ===== */

.about-card {
  width: min(900px, 33vw) !important;
  margin-left: clamp(820px, 34vw, 680px) !important;
  margin-right: auto !important;
  position: relative !important;
  z-index: 2 !important;
}

.about-card p {
  max-width: none !important;
}

@media (max-width: 1100px) {
  .about-card {
    width: min(460px, 42vw) !important;
    margin-left: clamp(260px, 24vw, 340px) !important;
    margin-right: auto !important;
  }
}

@media (max-width: 900px) {
  .about-card {
    width: min(420px, 60vw) !important;
    margin-left: clamp(170px, 20vw, 240px) !important;
    margin-right: auto !important;
  }
}

@media (max-width: 780px) {
  .about-card {
    width: min(62vw, 420px) !important;
    margin-left: clamp(150px, 36vw, 320px) !important;
    margin-right: auto !important;
  }

  .about-card h2 {
    font-size: 1.7rem !important;
  }

  .about-card p {
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }
}

@media (max-width: 560px) {
  .about-card {
    width: min(66vw, 320px) !important;
    margin-left: clamp(120px, 32vw, 220px) !important;
  }
}
