/* MissEery & Zyke-B — official site
   Dark, violet, mobile-first. Edit colors in :root. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./fonts/cormorant-garamond-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./fonts/cormorant-garamond-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./fonts/cormorant-garamond-600-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("./fonts/outfit-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("./fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("./fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07060b;
  --ink: #f1e8db;
  --muted: #b3a99d;
  --faint: #7c746b;
  --line: rgba(241, 232, 219, 0.14);
  --line-strong: rgba(232, 200, 255, 0.28);
  --accent: #d4b3f0;
  --accent-hot: #e070ff;
  --glow: rgba(176, 80, 240, 0.42);
  --card: rgba(10, 8, 16, 0.66);
  --card-hover: rgba(48, 22, 78, 0.78);
  --font-display: "Cormorant Garamond", "Times New Roman", Times, serif;
  --font-ui: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 1rem;
  --max: 44rem;
  --space: 1.25rem;
  --scene-ratio: 1134 / 638;
  /* Horizontal anchors: her head ~25%, his head ~80.5% of the 16:9 art. */
  --name-left: 25.6%;
  --name-right: 80.2%;
  --label-band: 3.15rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: var(--space);
  top: -100px;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.skip:focus {
  top: var(--space);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Atmosphere: quiet film grain only — the photo carries the fog. */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.grain {
  position: absolute;
  inset: -20%;
  background-image: url("./grain.png");
  background-size: 220px 220px;
  opacity: 0.055;
  mix-blend-mode: overlay;
  animation: grain-shift 1.2s steps(2) infinite;
}

@keyframes grain-shift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-2%, 1%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stage: art in its native aspect, names parked in a matching sky band above. */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: var(--label-band);
  background: var(--bg);
}

.scene {
  position: relative;
  width: 100%;
  overflow: visible;
}

.scene-art {
  display: block;
  width: 100%;
  margin: 0;
  aspect-ratio: var(--scene-ratio);
}

.scene-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Mobile: fade the banner into the dark panel below. People stay clear. */
.scene-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 42%,
    rgba(7, 6, 11, 0.45) 72%,
    var(--bg) 100%
  );
}

.cast {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
}

.name-tag {
  position: absolute;
  top: 0;
  z-index: 4;
  transform: translate(-50%, calc(-100% - 0.3rem));
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.35rem, 7vw, 1.7rem);
  letter-spacing: 0.045em;
  line-height: 1;
  color: #f4e2ff;
  text-shadow:
    0 0 6px rgba(224, 112, 255, 1),
    0 0 16px rgba(176, 80, 240, 0.9),
    0 0 32px rgba(140, 40, 220, 0.7),
    0 1px 3px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  pointer-events: none;
}

.name-misseery {
  left: var(--name-left);
}

.name-zykeb {
  left: var(--name-right);
}

.panel {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - (var(--space) * 2)));
  margin: -2.25rem auto 0;
  padding-bottom: 1.5rem;
  animation: rise 1s ease both;
}

.intro {
  text-align: center;
  padding: 0 0 0.35rem;
}

.kicker {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
}

.tagline {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--muted);
}

.section {
  padding: 0.5rem 0 1.5rem;
}

h2 {
  margin: 0 0 1rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.platform,
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.4rem;
  padding: 0.85rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.platform:hover,
.platform:focus-visible,
.social:hover,
.social:focus-visible {
  color: var(--ink);
  transform: translateY(-2px);
  border-color: rgba(224, 112, 255, 0.55);
  background: var(--card-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 28px var(--glow);
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 1.5rem;
}

.sc-note {
  margin: 1.25rem 0 0.25rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.45;
}

.sc-note a {
  color: var(--ink);
  text-decoration-color: rgba(224, 112, 255, 0.6);
}

.social-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.social {
  min-height: 3.1rem;
  padding: 0.7rem 1rem;
}

.footer {
  margin-top: 0.5rem;
  padding: 1.5rem 0 2.25rem;
  text-align: center;
}

.credit,
.copyright {
  margin: 0;
}

.credit {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--muted);
}

.copyright {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--faint);
}

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

  .social-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*
  Desktop: the two figures frame a centered info column.
  The photo keeps its native aspect so name labels, pinned in %,
  stay above the same heads at every width.
*/
@media (min-width: 1100px) {
  :root {
    --label-band: 4.5rem;
  }

  .stage {
    display: grid;
    grid-template-columns: 36.5% minmax(0, 1fr) 29.5%;
    /* Extra viewport height goes into the name band, not a bar below the photo. */
    grid-template-rows: minmax(var(--label-band), 1fr) auto;
    padding-top: 0;
  }

  .scene {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .scene-art {
    width: 100%;
  }

  /* Center vignette: keep the buttons readable, sides of the photo clear. */
  .scene-shade {
    background:
      radial-gradient(
        ellipse 38% 82% at 52% 50%,
        rgba(7, 6, 11, 0.82) 0%,
        rgba(7, 6, 11, 0.58) 42%,
        rgba(7, 6, 11, 0.2) 68%,
        transparent 80%
      ),
      linear-gradient(
        180deg,
        rgba(7, 6, 11, 0.18) 0%,
        transparent 16%,
        transparent 84%,
        rgba(7, 6, 11, 0.55) 100%
      );
  }

  .name-tag {
    font-size: clamp(2.05rem, 3.15vw, 3.35rem);
    transform: translate(-50%, calc(-100% - 0.45rem));
  }

  .panel {
    grid-column: 2;
    grid-row: 2;
    z-index: 3;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 2.25rem 0.6rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: rise 1.05s ease both;
  }

  .intro {
    padding-bottom: 0.7rem;
  }

  .section {
    padding: 0.35rem 0 1.15rem;
  }

  .footer {
    padding: 1.1rem 0 0.25rem;
  }
}


/* Floating background-music toggle */
.audio-toggle {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  width: 3rem;
  height: 3rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(224, 112, 255, 0.45);
  background: rgba(10, 8, 16, 0.78);
  color: #f4e2ff;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(176, 80, 240, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.audio-toggle:hover,
.audio-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(224, 112, 255, 0.8);
  background: rgba(48, 22, 78, 0.82);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 28px var(--glow);
}

.audio-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.audio-icon {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.audio-icon .icon-play,
.audio-icon .audio-eq {
  position: absolute;
  inset: 0;
}

.audio-icon .icon-play {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  /* Optical center for a right-pointing triangle */
  transform: translateX(0.08rem);
}

.audio-eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.16rem;
  padding: 0.1rem 0.05rem;
  opacity: 0;
}

.audio-eq span {
  display: block;
  width: 0.16rem;
  height: 40%;
  border-radius: 1px;
  background: #f4e2ff;
  box-shadow: 0 0 8px rgba(224, 112, 255, 0.8);
  transform-origin: center bottom;
  animation: eq-bar 0.85s ease-in-out infinite;
}

.audio-eq span:nth-child(1) { animation-delay: -0.35s; height: 55%; }
.audio-eq span:nth-child(2) { animation-delay: -0.15s; height: 90%; }
.audio-eq span:nth-child(3) { animation-delay: -0.55s; height: 45%; }

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

.audio-toggle.is-playing .icon-play {
  opacity: 0;
}

.audio-toggle.is-playing .audio-eq {
  opacity: 1;
}

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

  .grain,
  .panel,
  .platform,
  .social,
  .audio-toggle,
  .audio-eq span {
    animation: none !important;
    transition: none !important;
  }

  .platform:hover,
  .platform:focus-visible,
  .social:hover,
  .social:focus-visible,
  .audio-toggle:hover,
  .audio-toggle:focus-visible {
    transform: none;
  }

  .audio-eq span {
    transform: none;
    height: 55%;
  }

  .audio-eq span:nth-child(2) { height: 85%; }
  .audio-eq span:nth-child(3) { height: 40%; }
}
