:root {
  --black: #070707;
  --white: #f4f1ec;
  --muted: rgba(244, 241, 236, 0.48);
  --line: rgba(244, 241, 236, 0.17);
  --pink: #ff8eb6;
  --amber: #ffbd7a;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--black);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a, button { color: inherit; -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 5px; }

#ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -5;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  pointer-events: none;
}

.aurora {
  position: fixed;
  inset: -30%;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(circle at 26% 40%, rgba(255, 126, 172, 0.11), transparent 20%),
    radial-gradient(circle at 72% 64%, rgba(255, 177, 96, 0.09), transparent 17%),
    conic-gradient(from 180deg at 50% 50%, transparent, rgba(117, 67, 91, 0.08), transparent 36%);
  filter: blur(45px);
  animation: aurora-spin 26s linear infinite;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.065;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.95'/%3E%3C/svg%3E");
}

.cursor-light {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  opacity: 0.1;
  background: radial-gradient(circle, var(--pink), transparent 67%);
  filter: blur(36px);
  pointer-events: none;
  transform: translate(calc(var(--cursor-x, 50vw) - 50%), calc(var(--cursor-y, 50vh) - 50%));
}

.page-word {
  position: fixed;
  right: -0.05em;
  bottom: -0.19em;
  z-index: -3;
  color: rgba(255, 255, 255, 0.022);
  font-size: clamp(14rem, 40vw, 42rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.11em;
  pointer-events: none;
  user-select: none;
}

.site-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.brand-mark { color: var(--pink); font-size: 1.1rem; animation: spin-slow 8s linear infinite; }
.header-right { display: flex; gap: 21px; align-items: center; }

.status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9df08d;
  box-shadow: 0 0 0 5px rgba(157, 240, 141, 0.08), 0 0 14px rgba(157, 240, 141, 0.55);
  animation: status-pulse 2s ease-in-out infinite;
}

.share-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.share-button:hover { border-color: rgba(244, 241, 236, 0.55); color: var(--white); background: rgba(255, 255, 255, 0.07); }
.share-button svg { width: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.profile {
  display: grid;
  grid-template-columns: minmax(350px, 0.95fr) minmax(380px, 1.05fr);
  gap: clamp(52px, 7vw, 98px);
  align-items: center;
  min-height: calc(100vh - 138px);
  padding: 46px 0 58px;
}

.photo-stage { min-width: 0; perspective: 1200px; }

.photo-frame {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(244, 241, 236, 0.28);
  background: #17120f;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.52);
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 160ms ease-out;
}

.photo-frame::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  content: "";
  pointer-events: none;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.03) brightness(0.92);
  transform: scale(1.012);
  transition: filter 500ms ease, transform 900ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.photo-frame:hover img { filter: saturate(1) contrast(1.02) brightness(0.98); transform: scale(1.035); }

.photo-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(8, 6, 5, 0.04) 45%, rgba(8, 6, 5, 0.42) 100%),
    linear-gradient(112deg, rgba(255, 169, 105, 0.08), transparent 43%, rgba(255, 115, 164, 0.05));
  pointer-events: none;
}

.photo-meta {
  position: absolute;
  right: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.69);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.top-meta { top: 13px; }
.top-meta span:first-child { color: #ff9e9e; }
.bottom-meta { bottom: 12px; }

.image-caption {
  display: flex;
  justify-content: space-between;
  width: min(100%, 520px);
  margin: 13px auto 0;
  color: rgba(244, 241, 236, 0.33);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.profile-copy { min-width: 0; }
.overline { margin: 0 0 19px; color: var(--muted); font-family: var(--mono); font-size: 0.59rem; letter-spacing: 0.14em; }

.intro h1 {
  margin: 0;
  font-size: clamp(3.8rem, 7vw, 7rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.085em;
}

.intro h1 em { color: var(--pink); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

.identity-line {
  display: flex;
  gap: 0.28em;
  align-items: center;
  margin: 26px 0 0;
  color: rgba(244, 241, 236, 0.74);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  letter-spacing: -0.03em;
}

.word-window { display: inline-block; min-width: 11ch; overflow: hidden; color: var(--amber); }
#rotating-word { display: inline-block; transition: opacity 220ms ease, transform 220ms ease; }
#rotating-word.leaving { opacity: 0; transform: translateY(-0.6em); }
#rotating-word.entering { opacity: 0; transform: translateY(0.6em); }
.bio { max-width: 48ch; margin: 17px 0 0; color: var(--muted); font-size: 0.84rem; line-height: 1.75; }

.links { margin-top: 36px; border-top: 1px solid var(--line); }

.social-link {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 23px;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 220ms ease, color 220ms ease;
}

.social-link::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: var(--white);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.social-link:hover { padding: 0 13px; color: var(--black); }
.social-link:hover::before { transform: scaleY(1); }
.link-index, .link-note { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.08em; }
.link-index, .link-note { color: var(--muted); }
.link-name { font-size: 0.92rem; font-weight: 500; }
.social-link:hover .link-index, .social-link:hover .link-note { color: rgba(7, 7, 7, 0.5); }
.link-arrow { justify-self: end; font-size: 1rem; transition: transform 180ms ease; }
.social-link:hover .link-arrow { transform: translate(2px, -2px); }

.music-card {
  margin-top: 31px;
  padding: 17px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px);
}

.music-head { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; margin-bottom: 13px; }

.vinyl {
  display: grid;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 3px, rgba(255, 255, 255, 0.08) 4px 5px), #111;
  place-items: center;
  animation: vinyl-spin 4s linear infinite;
}

.vinyl span { width: 14px; height: 14px; border: 4px solid var(--pink); border-radius: 50%; background: var(--amber); }
.music-head p { margin: 0 0 3px; color: var(--pink); font-family: var(--mono); font-size: 0.49rem; letter-spacing: 0.13em; }
.music-head h2 { margin: 0; font-size: 0.9rem; font-weight: 550; letter-spacing: -0.02em; }
.music-head div > span:not(.vinyl span) { display: block; margin-top: 2px; color: var(--muted); font-size: 0.61rem; }
.levels { display: flex; gap: 3px; align-items: flex-end; height: 19px; }
.levels i { display: block; width: 2px; height: 7px; background: var(--pink); animation: level 0.8s ease-in-out infinite alternate; }
.levels i:nth-child(2) { height: 15px; animation-delay: -0.25s; }
.levels i:nth-child(3) { height: 10px; animation-delay: -0.5s; }
.levels i:nth-child(4) { height: 18px; animation-delay: -0.7s; }
.spotify-frame { height: 152px; overflow: hidden; border-radius: 12px; background: #181818; }
.spotify-frame iframe { display: block; }
.play-note { margin: 11px 0 0; color: rgba(244, 241, 236, 0.32); font-family: var(--mono); font-size: 0.48rem; letter-spacing: 0.1em; text-align: center; }

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid var(--line);
  color: rgba(244, 241, 236, 0.28);
  font-family: var(--mono);
  font-size: 0.49rem;
  letter-spacing: 0.1em;
}

footer span:last-child { text-align: right; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 50;
  max-width: calc(100% - 28px);
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: var(--black);
  background: var(--white);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
  font-family: var(--mono);
  font-size: 0.61rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes aurora-spin { to { transform: rotate(360deg) scale(1.07); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes vinyl-spin { to { transform: rotate(360deg); } }
@keyframes status-pulse { 50% { opacity: 0.45; } }
@keyframes level { to { height: 3px; opacity: 0.35; } }

@media (max-width: 860px) {
  .site-shell { width: min(680px, calc(100% - 30px)); }
  .profile { grid-template-columns: 1fr; gap: 54px; padding-top: 28px; }
  .photo-frame, .image-caption { width: min(100%, 560px); }
  .intro h1 { font-size: clamp(4rem, 15vw, 7rem); }
  .profile-copy { width: min(100%, 590px); margin: 0 auto; }
  footer { margin-top: 18px; }
}

@media (max-width: 560px) {
  .site-shell { width: min(100% - 20px, 470px); }
  .site-header { height: 68px; }
  .status { display: none; }
  .share-button span { display: none; }
  .share-button { width: 39px; height: 39px; padding: 0; justify-content: center; }
  .profile { gap: 42px; padding: 20px 0 40px; }
  .photo-frame { width: 100%; }
  .image-caption { padding: 0 2px; font-size: 0.47rem; }
  .overline { font-size: 0.51rem; }
  .intro h1 { font-size: clamp(3.6rem, 18vw, 5.3rem); }
  .identity-line { margin-top: 21px; }
  .bio { font-size: 0.78rem; }
  .social-link { grid-template-columns: 25px minmax(0, 1fr) auto 16px; gap: 8px; min-height: 59px; }
  .link-note { font-size: 0.47rem; }
  .music-card { margin-top: 28px; padding: 13px; }
  .music-head { gap: 10px; }
  .levels { display: none; }
  footer { grid-template-columns: 1fr 1fr; min-height: 66px; }
  .footer-center { display: none; }
  .cursor-light { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  #ambient-canvas { opacity: 0.28; }
}
