/* ------------------------------ about view ------------------------------ */

.about-view {
  container-type: inline-size;
  gap: 16px;
  padding: 10px 0 16px;
}

.about-view.active {
  display: grid;
  /* Rows must be content-sized. The view is pinned to a fixed-height grid
   * row, and the hero's overflow:hidden zeroes its minimum size — without
   * this, short viewports compress the hero row and clip the stats instead
   * of letting the view scroll. */
  grid-auto-rows: max-content;
}

/* Hero: chibi on the left, pitch and live stats on the right. */
.about-hero {
  align-items: center;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 197, 61, 0.09), transparent 42%),
    radial-gradient(circle at 85% 12%, rgba(142, 154, 222, 0.12), transparent 38%),
    rgba(20, 23, 38, 0.78);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px 44px;
  /* The chibi column scales with the hero instead of claiming a fixed
   * 330px — a fixed max crushed the copy column to ~140px just above the
   * mobile breakpoint. */
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr);
  overflow: hidden;
  padding: 20px 32px;
}

.chibi-stage {
  position: relative;
}

.chibi-svg {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 290px;
  width: 100%;
}

.chibi-moon {
  animation: chibi-moon-glow 4.4s ease-in-out infinite;
}

/* Hair and body live in separate layers (the moon sits between them) but
 * share one keyframe so the whole girl bobs as a unit. */
.chibi-bob {
  animation: chibi-bob 3.6s ease-in-out infinite;
}

.chibi-lock {
  animation: chibi-sway 3.6s ease-in-out infinite;
}

.chibi-lock-l {
  transform-origin: 100px 78px;
}

.chibi-lock-r {
  animation-delay: -1.8s;
  transform-origin: 160px 78px;
}

/* Spotlight beams breathe in alternation. */
.stage-light {
  animation: stage-light-pulse 4.2s ease-in-out infinite;
}

.light-r {
  animation-delay: -2.1s;
}

@keyframes stage-light-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

/* The Butter-Cookie crowd bounces to the song, each fan off-beat. */
.cookie-fan {
  animation: fan-bounce 1.7s ease-in-out infinite;
}

.fan-2 {
  animation-delay: -0.35s;
}

.fan-3 {
  animation-delay: -0.7s;
}

.fan-4 {
  animation-delay: -1.05s;
}

.fan-5 {
  animation-delay: -1.4s;
}

@keyframes fan-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* The mouth hinges from its top edge like a jaw — scaling from the center
 * made it squish into a floating line. */
.chibi-mouth {
  animation: chibi-sing 1.1s ease-in-out infinite;
  transform-origin: 130px 95px;
}

/* Loose stars around the moon glitter out of phase. */
.space-star {
  animation: chibi-galaxy-twinkle 3.4s ease-in-out infinite;
}

.space-star.star-b {
  animation-delay: -1.2s;
}

.space-star.star-c {
  animation-delay: -2.3s;
}

/* Constellations in the hair lining glitter in alternating waves. */
.chibi-galaxy {
  animation: chibi-galaxy-twinkle 3s ease-in-out infinite;
}

.chibi-galaxy-b {
  animation-delay: -1.5s;
}

@keyframes chibi-galaxy-twinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* The crab fan rocks side to side on top of its bounce. */
.chibi-crab {
  animation: chibi-crab-rock 3.2s ease-in-out infinite;
  transform-origin: 130px 226px;
}

@keyframes chibi-crab-rock {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

@keyframes chibi-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes chibi-sway {
  0%,
  100% {
    transform: rotate(-2.5deg);
  }
  50% {
    transform: rotate(2.5deg);
  }
}

@keyframes chibi-sing {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.62);
  }
}

@keyframes chibi-moon-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(255, 197, 61, 0.18));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(255, 197, 61, 0.4));
  }
}

/* Notes drift up and fade away, staggered like the bee's. */
.chibi-notes {
  color: var(--amber);
  font-size: 17px;
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.chibi-notes span {
  animation: chibi-note-rise 3s ease-out infinite;
  left: 68%;
  opacity: 0;
  position: absolute;
  top: 34%;
}

.chibi-notes span:nth-child(2) {
  animation-delay: 1s;
  font-size: 14px;
  left: 76%;
  top: 30%;
}

.chibi-notes span:nth-child(3) {
  animation-delay: 2s;
  font-size: 12px;
  left: 63%;
  top: 26%;
}

@keyframes chibi-note-rise {
  0% {
    opacity: 0;
    transform: translateY(6px) rotate(-6deg);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-34px) rotate(10deg);
  }
}

.about-sparkle {
  color: var(--amber);
  pointer-events: none;
  position: absolute;
}

.about-sparkle svg {
  animation: star-twinkle 3.2s ease-in-out infinite;
  height: 100%;
  width: 100%;
}

.sparkle-1 {
  height: 12px;
  left: 6%;
  top: 14%;
  width: 12px;
}

.sparkle-2 {
  height: 8px;
  right: 4%;
  top: 8%;
  width: 8px;
}

.sparkle-2 svg {
  animation-delay: -1.1s;
}

.sparkle-3 {
  bottom: 10%;
  height: 9px;
  left: 2%;
  width: 9px;
}

.sparkle-3 svg {
  animation-delay: -2.2s;
}

.sparkle-4 {
  bottom: 4%;
  height: 11px;
  right: 8%;
  width: 11px;
}

.sparkle-4 svg {
  animation-delay: -0.6s;
}

.sparkle-5 {
  height: 7px;
  left: 16%;
  top: 4%;
  width: 7px;
}

.sparkle-5 svg {
  animation-delay: -1.7s;
}

.sparkle-6 {
  height: 10px;
  right: 15%;
  top: 34%;
  width: 10px;
}

.sparkle-6 svg {
  animation-delay: -2.7s;
}

.sparkle-7 {
  bottom: 22%;
  height: 8px;
  left: 12%;
  width: 8px;
}

.sparkle-7 svg {
  animation-delay: -1.4s;
}

.about-hero-copy {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.about-kicker {
  color: var(--blue-soft-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.about-hero-copy h2 {
  font-size: 27px;
}

.about-tagline {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  max-width: 58ch;
}

/* Always exactly three across — flex-wrap let the third card fall to its
 * own row (and stretch) whenever the column came up a few px short. */
.about-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 6px;
  max-width: 520px;
}

.about-stat {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  display: grid;
  gap: 2px;
  justify-items: start;
  padding: 10px 14px;
}

.stat-number {
  color: var(--amber);
  font-family: "Baloo 2", "Quicksand", sans-serif;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.about-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Genuinely narrow main columns: 2×2. (A ~850px column — the desktop
 * norm with the now-playing panel open — still fits four across, and the
 * single row is what keeps the whole view scroll-free.) */
@container (max-width: 760px) {
  .about-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.about-card {
  background: var(--panel-soft);
  border-radius: var(--radius-md);
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 14px 16px;
  transition: background 160ms ease, transform 160ms ease;
}

.about-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

/* Cards cascade in each time the view opens. */
.about-view.active .about-card {
  animation: view-in 300ms ease backwards;
}

.about-view.active .about-card:nth-child(2) {
  animation-delay: 60ms;
}

.about-view.active .about-card:nth-child(3) {
  animation-delay: 120ms;
}

.about-view.active .about-card:nth-child(4) {
  animation-delay: 180ms;
}

.about-card-icon {
  align-items: center;
  background: var(--iris-soft);
  border-radius: 10px;
  color: var(--amber);
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.about-card-icon svg {
  height: 18px;
  width: 18px;
}

.about-card strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.about-card > span:last-child {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.about-card kbd {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom-width: 2px;
  border-radius: 6px;
  color: var(--text);
  display: inline-block;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 7px;
}

/* Outro banner: the page's one outbound CTA. A full card (not a lone pill)
 * so the "go subscribe" beat lands with the same weight as the hero. */
.about-outro {
  align-items: center;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 197, 61, 0.16), transparent 46%),
    radial-gradient(circle at 8% 100%, rgba(142, 154, 222, 0.14), transparent 42%),
    rgba(20, 23, 38, 0.78);
  border: 1px solid rgba(255, 197, 61, 0.22);
  border-radius: var(--radius-lg);
  color: inherit;
  display: flex;
  gap: 18px;
  overflow: hidden;
  padding: 16px 22px;
  position: relative;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.about-outro:hover,
.about-outro:focus-visible {
  border-color: rgba(255, 197, 61, 0.55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 197, 61, 0.14) inset;
  transform: translateY(-2px);
}

/* Oversized watermark star bleeding off the right edge. */
.outro-star {
  color: rgba(255, 197, 61, 0.1);
  inset: -34px -30px auto auto;
  pointer-events: none;
  position: absolute;
  transition: color 180ms ease, transform 320ms ease;
}

.outro-star svg {
  height: 130px;
  width: 130px;
}

.about-outro:hover .outro-star {
  color: rgba(255, 197, 61, 0.2);
  transform: rotate(14deg);
}

.outro-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.outro-copy strong {
  font-family: "Baloo 2", "Quicksand", sans-serif;
  font-size: 18px;
}

.outro-copy > span {
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.outro-cta {
  align-items: center;
  background: var(--amber);
  border-radius: 999px;
  color: #241a02;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  margin-left: auto;
  padding: 11px 18px;
  white-space: nowrap;
}

.outro-cta svg {
  height: 16px;
  width: 16px;
}



/* Short desktop viewports (e.g. 768px-tall laptops): tighten the leading
 * roles so the view still fits without scrolling. Mobile keeps its own
 * stacked layout — this only applies beside the desktop breakpoint. */
@media (max-height: 820px) and (min-width: 1081px) {
  .about-view {
    gap: 10px;
    padding: 6px 0 10px;
  }

  .about-hero {
    padding: 12px 24px;
  }

  .about-hero-copy {
    gap: 7px;
  }

  .chibi-svg {
    max-width: 185px;
  }

  .about-stat {
    padding: 8px 12px;
  }

  .about-hero-copy h2 {
    font-size: 23px;
  }

  .about-tagline {
    font-size: 13px;
  }

  .stat-number {
    font-size: 20px;
  }

  .about-card {
    padding: 11px 13px;
  }

  .about-card > span:last-child {
    font-size: 12px;
  }

  .about-outro {
    padding: 10px 18px;
  }

  .outro-copy > span {
    font-size: 12.5px;
  }
}
