﻿:root {
  color-scheme: dark;
  --night: #251b38;
  --night-deep: #1b122b;
  --night-surface: #31234a;
  --night-hover: #3d2c5b;
  --border-soft: rgba(186, 155, 224, 0.22);
  --border-strong: rgba(255, 195, 154, 0.45);
  --cream: #fff6e9;
  --muted: #d9cae8;
  --muted-dim: #b9a4cf;
  --peach: #ffc39a;
  --peach-2: #f49f89;
  --mint: #a8dac9;
  --lilac: #ba9be0;
  --ink: #291d3f;
  --font-display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mx: 0px;
  --my: 0px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: #6b5294 var(--night-deep);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--peach);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2.5px solid var(--peach);
  outline-offset: 4px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 16px;
}

.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Subtle film grain */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  z-index: 90;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

/* Animated night sky + flowing ribbons */
.bio-world {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #2d2046 0%, var(--night) 48%, var(--night-deep) 100%);
  contain: strict;
}

.world-ribbons {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  overflow: visible;
  animation: ribbons-sway 18s ease-in-out infinite alternate;
}

.ribbon-back {
  stroke: #715385;
  stroke-width: 90;
  opacity: 0.14;
}

.ribbon-front {
  stroke: #aa7b91;
  stroke-width: 135;
  opacity: 0.09;
}

.ribbon-line {
  stroke: #d4b9ea;
  stroke-width: 1.25;
  opacity: 0.24;
  stroke-dasharray: 18 14;
  animation: ribbon-flow 28s linear infinite;
}

.ribbon-line--b {
  stroke: var(--peach);
  opacity: 0.18;
  animation-duration: 34s;
  animation-direction: reverse;
}

.ribbon-line--c {
  stroke: var(--mint);
  opacity: 0.15;
  animation-duration: 40s;
}

.world-sparks {
  position: absolute;
  inset: 0;
}

.world-sparks > svg {
  position: absolute;
  width: 18px;
  height: 18px;
  color: var(--lilac);
  opacity: 0.5;
  animation: spark-breathe 7s ease-in-out infinite;
}

.world-sparks > svg:nth-child(1) {
  left: 9%;
  top: 16%;
}

.world-sparks > svg:nth-child(2) {
  right: 11%;
  top: 56%;
  width: 24px;
  height: 24px;
  color: var(--peach);
  animation-delay: -2.6s;
}

.world-sparks > svg:nth-child(3) {
  left: 16%;
  bottom: 14%;
  width: 13px;
  height: 13px;
  color: var(--mint);
  animation-delay: -4.4s;
}

.spark-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cream);
  opacity: 0.35;
  animation: dot-drift 9s ease-in-out infinite alternate;
}

.dot-1 {
  left: 22%;
  top: 34%;
}

.dot-2 {
  right: 18%;
  top: 24%;
  background: var(--peach);
  animation-delay: -3s;
}

.dot-3 {
  right: 24%;
  bottom: 22%;
  background: var(--mint);
  animation-delay: -5.5s;
}

.dot-4 {
  left: 12%;
  top: 68%;
  animation-delay: -1.8s;
}

/* Main container */
.bio {
  position: relative;
  z-index: 1;
  width: min(100% - 36px, 520px);
  margin: 0 auto;
  padding: 26px 0 max(36px, env(safe-area-inset-bottom));
}

/* Header */
.bio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.bio-brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  min-height: 44px;
}

.bio-brand img:first-child {
  width: 132px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(96%) sepia(9%) saturate(785%) hue-rotate(322deg) brightness(105%) contrast(101%);
}

.brand-asterisk {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  filter: brightness(0) saturate(100%) invert(81%) sepia(32%) saturate(711%) hue-rotate(321deg) brightness(102%) contrast(101%);
}

.bio-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(13, 8, 24, 0.28);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.bio-back svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.bio-back:hover {
  background: var(--peach);
  transform: translateY(-1px);
}

.bio-back:hover svg {
  transform: translate(2px, -2px);
}

/* Hero + Peeking Blob Stage */
.bio-hero {
  text-align: center;
  margin-bottom: 30px;
}

.bio-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 7vw, 2.9rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.bio-hero h1 em {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--peach);
  font-size: 1.12em;
}

.bio-lead {
  max-width: 38ch;
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.spotlight-stage {
  position: relative;
  padding-top: 8px;
}

.bio-art {
  position: relative;
  height: 112px;
  display: grid;
  place-items: end center;
  margin-bottom: -24px;
  z-index: 1;
  pointer-events: none;
}

.mascot {
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform 0.65s var(--ease);
  filter: drop-shadow(0 12px 20px rgba(13, 8, 24, 0.55));
}

.mascot img {
  width: 106px;
  height: 132px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(79%) sepia(37%) saturate(666%) hue-rotate(200deg);
  animation: blob-peek 5.2s ease-in-out infinite;
}

.art-spark {
  position: absolute;
  width: 22px;
  height: 22px;
  color: var(--peach);
  stroke-width: 1.5;
}

.spark-one {
  top: 10px;
  right: 26%;
  animation: twinkle 6s ease-in-out infinite;
}

.spark-two {
  bottom: 34px;
  left: 25%;
  width: 16px;
  height: 16px;
  color: var(--mint);
  animation: twinkle 6s 2s ease-in-out infinite;
}

/* Featured Poster CTA Card */
.bio-spotlight {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  min-height: 92px;
  padding: 22px 22px;
  border-radius: 22px;
  background: var(--peach);
  color: var(--ink);
  box-shadow: 0 18px 38px rgba(11, 6, 22, 0.45);
  transition: transform 0.3s var(--ease), background 0.25s var(--ease), box-shadow 0.3s var(--ease);
}

.bio-spotlight:hover {
  background: #ffd3b4;
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(11, 6, 22, 0.55);
}

.spotlight-copy {
  flex: 1;
  min-width: 0;
}

.spotlight-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.spotlight-copy small {
  display: block;
  margin-top: 5px;
  font-size: 0.83rem;
  font-weight: 500;
  color: #492f2d;
}

.spotlight-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), background 0.25s var(--ease);
}

.spotlight-arrow svg {
  width: 19px;
  height: 19px;
}

.bio-spotlight:hover .spotlight-arrow {
  transform: translateX(3px);
  background: #3d2861;
}

/* Social Channels 2x2 Pastel Grid */
.social-section {
  margin-top: 32px;
}

.social-heading {
  text-align: center;
}

.social-heading h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.social-heading p {
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

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

.social-tile {
  min-width: 0;
  min-height: 156px;
  border-radius: 20px;
  padding: 18px 18px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  isolation: isolate;
  box-shadow: 0 12px 26px rgba(13, 8, 24, 0.3);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.social-tile::after {
  content: '';
  position: absolute;
  width: 124px;
  height: 124px;
  right: -48px;
  top: -42px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: 0.14;
  z-index: -1;
  transition: transform 0.65s var(--ease);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(41, 29, 63, 0.1);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  transition: transform 0.4s var(--ease);
}

.social-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.85;
}

.social-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.15;
}

.social-copy > span {
  display: block;
  font-size: 0.77rem;
  line-height: 1.4;
  margin-top: 4px;
  opacity: 0.86;
}

.social-tile > small {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.82;
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-tile > small::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.social-instagram {
  background: #e6c6e4;
  color: #361b37;
}

.social-tiktok {
  background: #b8e7d6;
  color: #16372e;
}

.social-youtube {
  background: #ffd3b4;
  color: #422521;
}

.social-twitter {
  background: #d3bff3;
  color: #2b1b49;
}

.social-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(13, 8, 24, 0.42);
}

.social-tile:hover::after {
  transform: scale(1.3);
}

.social-tile:hover .social-icon {
  transform: rotate(-8deg) scale(1.05);
}

/* Studio Links (at the bottom) */
.studio-more {
  margin-top: 38px;
}

.more-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 14px;
}

.bio-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-soft);
}

.bio-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 15px 6px;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.25s var(--ease), padding-inline 0.25s var(--ease), border-color 0.25s var(--ease);
}

.bio-link:hover {
  background: rgba(61, 44, 91, 0.45);
  padding-inline: 12px;
  border-bottom-color: var(--border-strong);
}

.link-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(49, 35, 74, 0.85);
  border: 1px solid var(--border-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.link-icon svg {
  width: 20px;
  height: 20px;
}

.link-icon--peach {
  color: var(--peach);
}

.link-icon--mint {
  color: var(--mint);
}

.link-icon--lilac {
  color: var(--lilac);
}

.bio-link:hover .link-icon {
  transform: rotate(-6deg) scale(1.04);
}

.link-copy {
  flex: 1;
  min-width: 0;
}

.link-copy strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.25;
}

.link-copy small {
  display: block;
  margin-top: 3px;
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.4;
}

.link-arrow {
  width: 19px;
  height: 19px;
  color: var(--muted-dim);
  transition: transform 0.3s var(--ease), color 0.25s var(--ease);
}

.bio-link:hover .link-arrow {
  transform: translate(3px, -3px);
  color: var(--peach);
}

/* Direct Contact Strip */
.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: rgba(49, 35, 74, 0.55);
}

.contact-mail {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
}

.contact-mail svg {
  width: 20px;
  height: 20px;
  color: var(--mint);
}

.contact-mail strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cream);
  word-break: break-word;
}

.contact-mail small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-dim);
}

.contact-mail:hover strong {
  color: var(--peach);
}

.copy-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--night-surface);
  color: var(--cream);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.copy-email-btn svg {
  width: 16px;
  height: 16px;
}

.copy-email-btn .icon-check {
  display: none;
  color: var(--mint);
}

.copy-email-btn.is-copied {
  border-color: rgba(168, 218, 201, 0.6);
  background: rgba(168, 218, 201, 0.14);
  color: var(--mint);
}

.copy-email-btn.is-copied .icon-copy {
  display: none;
}

.copy-email-btn.is-copied .icon-check {
  display: block;
}

.copy-email-btn:hover {
  background: var(--night-hover);
  border-color: var(--border-strong);
}

.copy-status {
  min-height: 1.25em;
  margin: 8px 4px 0;
  font-size: 0.75rem;
  color: var(--mint);
  text-align: right;
}

/* Footer */
.bio-footer {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(94%);
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

.bio-footer small {
  font-size: 0.75rem;
  color: var(--muted-dim);
}

.bio-footer small a {
  color: var(--peach);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Animations */
@keyframes blob-peek {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-7px) rotate(3deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    transform: rotate(-10deg) scale(0.9);
    opacity: 0.75;
  }
  50% {
    transform: rotate(22deg) scale(1.12);
    opacity: 1;
  }
}

@keyframes ribbons-sway {
  from {
    transform: translate3d(-1.5%, -1%, 0) rotate(-0.8deg);
  }
  to {
    transform: translate3d(1.5%, 1.2%, 0) rotate(0.8deg);
  }
}

@keyframes ribbon-flow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -640;
  }
}

@keyframes spark-breathe {
  0%,
  100% {
    opacity: 0.22;
    transform: scale(0.86) rotate(0deg);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.14) rotate(15deg);
  }
}

@keyframes dot-drift {
  from {
    transform: translate3d(0, 0, 0);
    opacity: 0.25;
  }
  to {
    transform: translate3d(12px, -16px, 0);
    opacity: 0.6;
  }
}

/* Responsive */
@media (max-width: 420px) {
  .bio {
    width: calc(100% - 28px);
    padding-top: 20px;
  }

  .bio-spotlight {
    padding: 18px 16px;
  }

  .spotlight-copy strong {
    font-size: 1.12rem;
  }

  .social-grid {
    gap: 10px;
  }

  .social-tile {
    padding: 16px;
    min-height: 146px;
  }

  .contact-strip {
    flex-wrap: wrap;
  }

  .copy-email-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .mascot {
    transform: none;
  }
}
