:root {
  --surface: #f7f8f9;
  --ink: #26333a;
  --muted: #6c7a82;
  --line: #bec9cf;
  --glass: #ffffff70;
}
body {
  color: var(--ink);
}
.toast {
  background: linear-gradient(120deg, #ffffffc0, #e2edf0a0);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid #fff9;
  border-radius: 25px;
  color: #344952;
  box-shadow:
    inset 0 1px #fff,
    0 8px 25px #172c3a18;
}

.sticker video {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sticker.hover-playing video {
  transform: scale(1.12);
}
.sticker:hover .player,
.sticker:focus-within .player {
  opacity: 1;
}
.sticker .player {
  left: 4px;
  right: 4px;
  bottom: 4px;
  padding: 3px;
  gap: 3px;
}
.sticker .player button {
  width: 24px;
  height: 24px;
}
.sticker .player .animated-icon {
  width: 16px;
  height: 16px;
}
.animated-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  overflow: visible;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
button:hover > .animated-icon {
  transform: scale(1.08);
}
button:hover .spark-spin {
  transform: rotate(90deg);
}
.spark-spin,
.sun-rays,
.send-arrow,
.lock-shackle {
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
button:hover .send-arrow {
  transform: translate(2px, -2px);
}
button:hover .sun-rays {
  transform: rotate(45deg);
}
button:hover .lock-shackle {
  transform: translateY(-2px);
}
.wave-bar {
  transform-origin: center;
  animation: icon-wave 0.8s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.bar-2 {
  animation-delay: -0.3s;
}
.bar-3 {
  animation-delay: -0.6s;
}
.bar-4 {
  animation-delay: -0.1s;
}
.is-playing .wave-bar,
button:hover .wave-bar {
  animation-play-state: running;
}
@keyframes icon-wave {
  from {
    transform: scaleY(0.4);
  }
  to {
    transform: scaleY(1.1);
  }
}
.sound-wave {
  transition: opacity 0.2s;
  opacity: 0.75;
}
button:hover .sound-wave {
  opacity: 1;
}
.social-links a:hover {
  animation: social-bounce 0.45s ease-out;
}
@keyframes social-bounce {
  50% {
    transform: translateY(-4px) rotate(-8deg);
  }
}
.menubar {
  background: linear-gradient(120deg, #ffffff88, #edf4f65c);
  border-bottom: 1px solid #ffffffb0;
  box-shadow:
    0 3px 16px #22313b0b,
    inset 0 1px #fff;
  backdrop-filter: blur(24px) saturate(1.65);
  -webkit-backdrop-filter: blur(24px) saturate(1.65);
}
.status {
  gap: 9px;
}
.status #spotify-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(#ffffffa6, #d5e9dd77);
  border: 1px solid #fff9;
  box-shadow:
    inset 0 1px #fff,
    0 2px 8px #30463b12;
  min-width: 65px;
}
.status #spotify-top .animated-icon {
  width: 17px;
  height: 17px;
}
.status #layout-toggle,
.status #sound-toggle,
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  border: 1px solid #ffffffa0;
  background: #ffffff55;
  box-shadow:
    inset 0 1px #fff9,
    0 2px 7px #2439400c;
  color: #526b79;
}
.theme-toggle {
  transition: transform 0.4s;
}
.theme-toggle:active {
  transform: rotate(25deg);
}
.player {
  border-radius: 30px;
  padding: 5px 8px;
  background: linear-gradient(125deg, #ffffff61, #e0eef42e);
  border: 1px solid #ffffff70;
  box-shadow:
    inset 0 1px #fff9,
    0 5px 22px #0002;
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
}
.player button,
.hero-video .player button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff16;
  color: #fff;
  filter: drop-shadow(0 1px 1px #0005);
}
.player button:hover {
  background: #ffffff40;
}
.player button .animated-icon {
  width: 18px;
  height: 18px;
}
.player input {
  height: 4px;
  accent-color: #ffffff;
}
.hero-video .player {
  padding: 6px 10px;
  bottom: 12px;
}
.play-cta {
  color: #283941;
  text-shadow: 0 1px #fff5;
  background: linear-gradient(120deg, #ffffffa6, #e5eef666);
  border: 1px solid #fffd;
  box-shadow:
    inset 0 1px 2px #fff,
    0 8px 25px #0002;
  backdrop-filter: blur(20px) saturate(1.7);
  font-size: 16px;
  padding: 11px 22px;
}
.sound-unlock {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  background: #ffffffb8;
  color: #25323e;
  padding: 7px 12px;
  border: 1px solid #fff;
  border-radius: 20px;
  backdrop-filter: blur(16px);
  font-size: 12px;
}
.sound-blocked .sound-unlock {
  display: block;
}
.hover-playing {
  z-index: 240 !important;
}
.video-window .window,
.hero-video .video-screen {
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.3s;
  transform-origin: center;
}
.hover-playing .window {
  transform: scale(1.1);
  box-shadow: 0 20px 50px #172d3b35;
}
.hero-video.hover-playing .video-screen {
  transform: scale(1.05);
}
.hero-actions .pill {
  gap: 10px;
}
.github-section {
  padding-bottom: 55px;
}
.github-heading-row {
  margin: 35px 0 28px;
}
.projects-section {
  overflow: hidden;
}
.project-carousel {
  margin: 8px 0 30px;
}
.project-carousel-viewport {
  height: 490px;
  position: relative;
  overflow: hidden;
  perspective: 1200px;
  touch-action: pan-y;
  cursor: grab;
}
.project-carousel-viewport:active {
  cursor: grabbing;
}
.coverflow-grid {
  display: block !important;
  margin: 0 !important;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}
.coverflow-grid .real-project {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(420px, 75vw);
  margin: 0;
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
  box-shadow: 0 16px 40px #20313a25;
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.coverflow-grid .project-cover {
  aspect-ratio: 16/10;
  height: auto;
}
.coverflow-grid .project-details {
  min-height: 145px;
  padding: 22px;
}
.coverflow-grid .project-details h3 {
  font-size: 25px;
}
.coverflow-grid .project-details p {
  font-size: 13px;
  line-height: 1.5;
}
.coverflow-grid .project-preview {
  object-fit: cover;
  object-position: top;
}
.coverflow-grid .carousel-active {
  box-shadow: 0 22px 50px #22354230;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
}
.carousel-dots {
  display: flex;
  gap: 8px;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: #a8b1b8;
  transition:
    width 0.2s,
    background 0.2s;
}
.carousel-dots button[aria-pressed='true'] {
  width: 26px;
  background: #3b769e;
  border-radius: 8px;
}
.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 39px;
  height: 39px;
  border: 1px solid #fff;
  background: var(--glass);
  box-shadow: 0 2px 8px #0001;
}
.carousel-arrow:first-child svg {
  transform: rotate(-135deg);
}
.carousel-arrow:last-child svg {
  transform: rotate(45deg);
}
.carousel-current {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0 0;
}

@media (max-width: 700px) {
  .status {
    gap: 5px;
  }
  .status #layout-toggle,
  .status #sound-toggle,
  .theme-toggle {
    width: 30px;
    height: 30px;
  }
  .status #spotify-top {
    padding: 5px 7px;
    min-width: 48px;
  }
  .monogram {
    display: none;
  }
  .menubar {
    gap: 8px;
    padding: 0 12px;
  }
  .status .edit-link {
    font-size: 11px;
  }
  .project-carousel-viewport {
    height: 420px;
  }
  .coverflow-grid .real-project {
    width: min(310px, 75vw);
  }
  .coverflow-grid .project-details {
    padding: 17px;
    min-height: 135px;
  }
  .coverflow-grid .project-details h3 {
    font-size: 22px;
  }
  .coverflow-grid .project-details p {
    font-size: 12px !important;
  }
  .coverflow-grid .project-links a {
    font-size: 11px;
  }
  .player {
    opacity: 1;
  }
  .player button {
    width: 30px;
    height: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .animated-icon,
  .wave-bar,
  .spark-spin,
  .sun-rays,
  .send-arrow,
  .lock-shackle,
  .video-window .window,
  .hero-video .video-screen {
    animation: none !important;
    transition: none !important;
  }
  .social-links a:hover {
    animation: none;
  }
  .hover-playing .window,
  .hero-video.hover-playing .video-screen {
    transform: none;
  }
}

.center h1 {
  font-family: Caveat, cursive;
  font-size: 78px;
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.05;
}
.github-profile-link {
  display: block;
  margin-bottom: 15px;
  font-size: 17px;
  text-decoration: none;
}
.contribution-grid button {
  padding: 0;
  min-width: 0;
  aspect-ratio: 1;
}
.contribution-detail {
  min-height: 22px;
  font-size: 13px;
  color: inherit;
}
.contribution:hover,
.contribution:focus-visible {
  outline: 2px solid #428c62;
  outline-offset: 2px;
}
#item-beachball {
  cursor: pointer;
}
.support-section {
  text-align: center;
  padding: 64px 20px;
  border-top: 1px solid #b9c3c8;
}
.support-section h2 {
  font:
    42px Caveat,
    cursive;
  margin: 0 0 12px;
}
.support-section .pill {
  margin: 20px auto;
}
.support-section p {
  line-height: 1.6;
}
#support-status {
  min-height: 24px;
}
@media (max-width: 700px) {
  .center h1 {
    font-size: 76px;
  }
  .support-section .pill {
    font-size: 18px;
    height: 44px;
  }
}
