/* ---------------------------------------------------------
   Brandon Clapp — throwback profile (myspace.html)
   A loving, self-contained parody of a mid-2000s social
   profile page. Loud on purpose. Lives entirely apart from
   assets/css/style.css — nothing here touches the real site.
--------------------------------------------------------- */

:root {
  --hot-pink: #ff2b8f;
  --hot-pink-deep: #b5116e;
  --cyan: #28e0ff;
  --yellow: #ffe600;
  --lime: #9aff3f;
  --lime-deep: #2f6b0d;
  --nav-deep: #0a1638;
  --nav-mid: #132a63;
  --module-blue-top: #7fb2e8;
  --module-blue-bottom: #1c3f74;
  --module-border: #0d2547;
  --ink: #1a1330;
  --ink-soft: #3a2d55;
  --muted: #6b5c8c;
  --panel-bg: #fdfaff;
  --panel-alt: #f8f1ff;
  --lilac-border: #c9b7ee;
  --radius: 6px;
  --font-body: Verdana, Geneva, Tahoma, sans-serif;
  --font-display: "Comic Neue", "Comic Sans MS", cursive;
  --font-pixel: "VT323", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink);
  background-color: #000;
  /* The classic black/grey checkered background — one of the most
     copy-pasted "custom backgrounds" of the era. Plain axis-aligned
     tile, no gradients or effects riding on top of it. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Crect width='128' height='128' fill='%23000'/%3E%3Crect width='64' height='64' fill='%23454545'/%3E%3Crect x='64' y='64' width='64' height='64' fill='%23454545'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  background-attachment: fixed;
}

a { color: inherit; }

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

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: #fff;
  color: #111;
  padding: 8px 14px;
  border-radius: 4px;
  z-index: 200;
  font-weight: bold;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

/* ---------- Top nav ---------- */

.top-nav {
  background: linear-gradient(180deg, var(--nav-mid), var(--nav-deep));
  border-bottom: 3px solid var(--hot-pink);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo__accent {
  color: var(--hot-pink);
  display: inline-block;
  transform: rotate(-4deg);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: #cfe0ff;
  text-decoration: none;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  border-color: var(--hot-pink);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-mail {
  position: relative;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  background: #1c3f74;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #2f5aa0;
}

.nav-mail__badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--hot-pink);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
}

.nav-back {
  color: #9db8ff;
  text-decoration: underline;
  font-size: 10px;
  white-space: nowrap;
}

/* ---------- Marquee ---------- */

.marquee-bar {
  background: linear-gradient(90deg, var(--yellow), var(--hot-pink), var(--cyan), var(--yellow));
  background-size: 300% 100%;
  animation: marquee-bg 9s linear infinite;
  overflow: hidden;
  border-bottom: 2px solid #111;
  padding: 4px 0;
}

@keyframes marquee-bg {
  to { background-position: 300% 0; }
}

.marquee-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: marquee-scroll 24s linear infinite;
  font-family: var(--font-pixel);
  font-size: 17px;
  font-weight: bold;
  color: #111;
  letter-spacing: 0.5px;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ---------- Layout ---------- */

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 18px 40px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  /* The fixed max-height below is tuned for the desktop column width;
     at mobile widths the same copy wraps onto more lines and just
     barely overflows the box, clipping the last line and forcing an
     easy-to-miss nested scroll. Let it grow with its content instead
     so the page scrolls normally. */
  .about-scroll {
    max-height: none;
    overflow-y: visible;
  }
}

/* ---------- Profile heading ---------- */

.profile-heading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 10px 0 4px;
}

.glitter-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin: 0 0 0.35em;
  background: linear-gradient(90deg, #ff2bd6, #ffd23f, #28e0ff, #7dff7d, #ff2bd6);
  background-size: 400% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: glitter-shift 6s linear infinite;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
}

@keyframes glitter-shift {
  to { background-position: 400% center; }
}

.profile-heading__tagline {
  color: #e9defc;
  font-size: 13px;
  font-weight: bold;
  margin: 0 0 14px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.under-construction {
  display: inline-block;
  padding: 7px 16px;
  font-family: var(--font-pixel);
  font-size: 17px;
  letter-spacing: 1px;
  color: #fff;
  /* The hazard stripes alternate yellow / near-black, so a single flat
     text color always vanishes against one or the other. A solid black
     outline around white fill keeps every letter readable on both. */
  text-shadow:
    -1.5px -1.5px 0 #000,
    1.5px -1.5px 0 #000,
    -1.5px 1.5px 0 #000,
    1.5px 1.5px 0 #000,
    0 -1.5px 0 #000,
    0 1.5px 0 #000,
    -1.5px 0 0 #000,
    1.5px 0 0 #000;
  background: repeating-linear-gradient(45deg, var(--yellow), var(--yellow) 12px, #111 12px, #111 24px);
  border: 2px solid #111;
  border-radius: 2px;
}

.blink {
  animation: blinker 1s step-start infinite;
}

/* Blinkies blink out of sync with each other — perfectly synced blink
   elements all go dark on the same frame, which reads as broken rather
   than lively. Opacity dips to 0.15 (never fully gone) for the same
   reason: a blinkie that vanishes completely looks like a bug. */
.blinkies .blinkie:nth-child(1) { animation-delay: 0s; }
.blinkies .blinkie:nth-child(2) { animation-delay: 0.2s; }
.blinkies .blinkie:nth-child(3) { animation-delay: 0.45s; }
.blinkies .blinkie:nth-child(4) { animation-delay: 0.7s; }
.under-construction .blink { animation-delay: 0.35s; }

@keyframes blinker {
  50% { opacity: 0.15; }
}

/* ---------- Panels / modules ---------- */

.panel {
  margin-bottom: 18px;
}

.module__title {
  margin: 0;
  background: linear-gradient(180deg, var(--module-blue-top), var(--module-blue-bottom));
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.02em;
  padding: 7px 12px;
  border: 1px solid var(--module-border);
  border-radius: var(--radius) var(--radius) 0 0;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.module__body {
  background: var(--panel-bg);
  border: 1px solid var(--module-border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 14px 16px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
}

.module__body p {
  margin: 0 0 0.85em;
}

.module__body p:last-child {
  margin-bottom: 0;
}

.text-link-retro {
  color: var(--hot-pink-deep);
  font-weight: bold;
  text-decoration: none;
}

.text-link-retro:hover,
.text-link-retro:focus-visible {
  text-decoration: underline;
}

/* ---------- Buttons ---------- */

.btn-retro {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(180deg, var(--lime), var(--lime-deep));
  border: 1px solid #2a5c0c;
  border-radius: 4px;
  padding: 7px 13px;
  cursor: pointer;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
}

.btn-retro:hover {
  filter: brightness(1.08);
}

.btn-retro:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn-retro:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.btn-retro:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- Sidebar: profile photo ---------- */

.profile-photo {
  text-align: center;
}

.profile-photo__frame {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 12px;
  border-radius: 8px;
  border: 4px solid #fff;
  outline: 2px solid #7a0d55;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.profile-photo__avatar {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(135deg, #ff2bd6, #5b2bff, #28e0ff);
  object-fit: cover;
  display: block;
}

.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3dff6e;
  border: 2px solid #fff;
  box-shadow: 0 0 6px rgba(61, 255, 110, 0.9);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.status-note {
  min-height: 1.4em;
  font-size: 11px;
  font-weight: bold;
  color: var(--hot-pink-deep);
  opacity: 0;
  transition: opacity 0.25s ease;
  margin: 4px 0 0;
}

.status-note.is-visible {
  opacity: 1;
}

.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;
}

/* ---------- Sidebar: contacting ---------- */

.contacting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.contact-action {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: bold;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--lilac-border);
  border-radius: 4px;
  padding: 8px 6px;
  cursor: pointer;
  text-align: center;
}

.contact-action:hover:not(:disabled) {
  border-color: var(--lime);
  color: var(--lime-deep);
}

.contact-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-action:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 1px;
}

/* ---------- Sidebar: info table ---------- */

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.info-table th {
  text-align: left;
  color: var(--lime-deep);
  padding: 6px 8px 6px 0;
  white-space: nowrap;
  vertical-align: top;
  width: 34%;
}

.info-table td {
  padding: 6px 0;
  color: var(--ink-soft);
}

.info-table tr:nth-child(even) {
  background: var(--panel-alt);
}

/* ---------- Sidebar: Top 8 ---------- */

.top8-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
}

.top8-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: bold;
  text-align: center;
  background: #fff;
  border: 1px solid var(--lilac-border);
  border-radius: 6px;
  padding: 10px 4px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.top8-grid a:hover,
.top8-grid a:focus-visible {
  transform: translateY(-3px) rotate(-1deg);
  border-color: var(--hot-pink);
}

.top8-avatar {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

.top8-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top8-avatar--1 { background: linear-gradient(135deg, #89f7fe, #66a6ff); }
.top8-avatar--2 { background: linear-gradient(135deg, #ff9a9e, #a18cd1); }
.top8-avatar--3 { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.top8-avatar--4 { background: linear-gradient(135deg, #fa709a, #fee140); }
.top8-avatar--5 { background: linear-gradient(135deg, #f6d365, #fda085); }
.top8-avatar--6 { background: linear-gradient(135deg, #30cfd0, #330867); }
.top8-avatar--7 { background: linear-gradient(135deg, #ff6a88, #ff99ac); }
.top8-avatar--8 { background: linear-gradient(135deg, #25f4ee, #111, #fe2c55); }

/* ---------- Sidebar: now playing ---------- */

.now-playing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

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

.now-playing__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.equalizer {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 24px;
}

.equalizer span {
  width: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--hot-pink));
  height: 4px;
  border-radius: 2px;
}

.equalizer.is-playing span {
  animation: eq-bounce 0.9s ease-in-out infinite;
}

.equalizer.is-playing span:nth-child(1) { animation-duration: 0.6s; }
.equalizer.is-playing span:nth-child(2) { animation-duration: 0.9s; animation-delay: 0.1s; }
.equalizer.is-playing span:nth-child(3) { animation-duration: 0.7s; animation-delay: 0.05s; }
.equalizer.is-playing span:nth-child(4) { animation-duration: 1s; animation-delay: 0.15s; }
.equalizer.is-playing span:nth-child(5) { animation-duration: 0.8s; animation-delay: 0.2s; }

@keyframes eq-bounce {
  0%, 100% { height: 4px; }
  50% { height: 22px; }
}

.now-playing__track {
  font-size: 11px;
  font-weight: bold;
  color: var(--ink-soft);
}

.now-playing__note {
  font-size: 10px;
  color: var(--muted);
}

/* ---------- Sidebar: blinkies ---------- */

.blinkies {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blinkie {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 14px;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 6px 6px;
  border-radius: 3px;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.3);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.blinkie--pink {
  background: repeating-linear-gradient(45deg, var(--hot-pink), var(--hot-pink) 10px, var(--hot-pink-deep) 10px, var(--hot-pink-deep) 20px);
}

.blinkie--cyan {
  background: repeating-linear-gradient(45deg, #28e0ff, #28e0ff 10px, #0a7ea6 10px, #0a7ea6 20px);
}

.blinkie--yellow {
  background: repeating-linear-gradient(45deg, var(--yellow), var(--yellow) 10px, #7a6a00 10px, #7a6a00 20px);
  color: #111;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
}

.blinkie--purple {
  background: repeating-linear-gradient(45deg, #a259ff, #a259ff 10px, #5b1fa6 10px, #5b1fa6 20px);
}

/* ---------- Sidebar: profile views (odometer) ---------- */

.odometer {
  display: flex;
  gap: 3px;
  background: #050505;
  padding: 8px 10px;
  border-radius: 4px;
  border: 2px solid #222;
  width: max-content;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.odometer span {
  font-family: var(--font-pixel);
  font-size: 22px;
  line-height: 1;
  color: #3dff6e;
  background: #0a0a0a;
  padding: 2px 5px;
  border-radius: 2px;
  text-shadow: 0 0 6px rgba(61, 255, 110, 0.8);
  min-width: 14px;
  text-align: center;
}

.odometer__note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- Main: about scroll box ---------- */

.about-scroll {
  max-height: 230px;
  overflow-y: auto;
  border: 1px solid var(--lilac-border);
  border-radius: 4px;
  padding: 12px 14px;
  background: #fff;
}

.about-scroll::-webkit-scrollbar {
  width: 14px;
}

.about-scroll::-webkit-scrollbar-track {
  background: var(--panel-alt);
  border-left: 1px solid var(--lilac-border);
}

.about-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--hot-pink));
  border-radius: 7px;
  border: 2px solid var(--panel-alt);
}

/* ---------- Main: photo album ---------- */

.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 18px;
  margin: 14px 0;
}

.polaroid {
  background: #fff;
  padding: 8px 8px 20px;
  border: 1px solid #ddd;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.polaroid:nth-child(odd) { transform: rotate(-2deg); }
.polaroid:nth-child(even) { transform: rotate(2deg); }

.polaroid:hover {
  transform: rotate(0) scale(1.04);
  box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.35);
  z-index: 1;
  position: relative;
}

.polaroid__photo {
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
}

.polaroid a {
  display: block;
}

.polaroid__caption {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  color: #555;
  margin-top: 8px;
}

.polaroid.is-hidden {
  display: none;
}

/* ---------- Main: projects table ---------- */

.projects-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.projects-table tr {
  border-bottom: 1px dashed var(--lilac-border);
}

.projects-table tr:last-child {
  border-bottom: none;
}

.projects-table td {
  padding: 10px 8px;
  vertical-align: top;
}

.proj-name a {
  color: var(--hot-pink-deep);
  font-weight: bold;
  text-decoration: none;
}

.proj-name a:hover,
.proj-name a:focus-visible {
  text-decoration: underline;
}

.proj-tags {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.proj-desc {
  color: var(--ink-soft);
}

/* ---------- Main: comments / guestbook ---------- */

.comment-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.comment {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dotted #ddd;
}

.comment:last-child {
  border-bottom: none;
}

.comment__avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
}

.comment__meta {
  margin: 0 0 2px;
  font-size: 11px;
}

.comment__meta strong {
  color: var(--hot-pink-deep);
}

.comment__date {
  color: var(--muted);
  font-size: 10px;
  margin-left: 4px;
}

.comment__body p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.comment__gif {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 4px 0 6px;
  background: #000;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.guestbook-note {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 10px !important;
}

/* ---------- Forms ---------- */

.form-field {
  display: block;
  font-size: 11px;
  font-weight: bold;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--lilac-border);
  border-radius: 4px;
  padding: 8px 10px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--hot-pink);
  outline-offset: 1px;
  border-color: var(--hot-pink);
}

.form-field textarea {
  resize: vertical;
  min-height: 5rem;
}

.form-status {
  font-size: 11px;
  margin: 6px 0 0;
}

.form-status.is-success {
  color: #0d8f4b;
  font-weight: bold;
}

.form-status.is-error {
  color: var(--hot-pink-deep);
  font-weight: bold;
}

/* ---------- Footer ---------- */

.site-footer-retro {
  grid-column: 1 / -1;
  text-align: center;
  color: #cbb8ec;
  font-size: 11px;
  padding: 10px 0 30px;
}

.site-footer-retro p {
  margin: 0 0 6px;
}

.site-footer-retro a {
  color: var(--cyan);
  text-decoration: underline;
}

/* ---------- Sparkle cursor trail ---------- */

.sparkle {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 5px currentColor);
  animation: sparkle-fade 0.7s ease-out forwards;
}

/* Click bursts reuse .sparkle but fly outward on their own path/timing,
   set per-instance via --sparkle-dx/--sparkle-dy in JS. */
.sparkle--burst {
  animation-name: sparkle-burst;
  animation-timing-function: cubic-bezier(0.15, 0.8, 0.3, 1);
}

@keyframes sparkle-fade {
  from {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
  to {
    transform: translate(calc(-50% + var(--sparkle-dx, 0px)), calc(-50% - 22px))
      scale(0.15) rotate(var(--sparkle-spin, 45deg));
    opacity: 0;
  }
}

@keyframes sparkle-burst {
  from {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
  to {
    transform: translate(
        calc(-50% + var(--sparkle-dx, 0px)),
        calc(-50% + var(--sparkle-dy, 0px))
      )
      scale(0.1) rotate(var(--sparkle-spin, 90deg));
    opacity: 0;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .contacting-grid {
    grid-template-columns: 1fr;
  }

  .top8-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-heading__tagline {
    font-size: 12px;
  }
}
