:root {
  --bg: #141618;
  --surface: #1c1f26;
  --surface-2: #22262f;
  --text: #eef0f5;
  --muted: #8a97aa;
  --line: #2e3646;
  --accent: #0ec9b8;
  --accent-2: #ff6f42;
  --radius: 20px;
  --shadow: 0 14px 42px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  height: 100dvh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  position: relative;
  background-color: #141618;
  background-image:
    radial-gradient(circle at 20% 18%, rgba(14, 201, 184, 0.14) 0, transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(255, 111, 66, 0.1) 0, transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0%, rgba(255, 255, 255, 0) 34%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.026) 0,
      rgba(255, 255, 255, 0.026) 1px,
      transparent 1px,
      transparent 18px
    ),
    linear-gradient(180deg, #101216 0%, #14181d 48%, #101216 100%);
  background-attachment: fixed;
  line-height: 1.55;
  overflow: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.022) 0,
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px,
      transparent 5px
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 92%);
  opacity: 0.35;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  filter: blur(30px);
  opacity: 0.52;
  pointer-events: none;
}

.shape-a {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 201, 184, 0.18) 0%, transparent 70%);
  animation: driftA 14s ease-in-out infinite alternate;
}

.shape-b {
  width: 400px;
  height: 400px;
  right: -80px;
  bottom: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 111, 66, 0.14) 0%, transparent 70%);
  animation: driftB 16s ease-in-out infinite alternate;
}

.layout {
  width: min(420px, calc(100% - 1.2rem));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0.8rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  margin-bottom: 0.7rem;
}

.hero h1 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}

.kicker {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.65rem;
  color: var(--accent);
}

.intro {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.cta-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.56rem 0.95rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(-105%);
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.26) 50%, transparent 100%);
  transition: transform 0.45s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn:hover::after {
  transform: translateX(105%);
}

.btn-primary {
  background: var(--accent);
  color: #031110;
  box-shadow: 0 8px 22px rgba(14, 201, 184, 0.35);
}

.btn-primary:hover {
  background: #12ddca;
  box-shadow: 0 10px 28px rgba(14, 201, 184, 0.4);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(18, 22, 29, 0.75);
}

.btn-ghost:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(14, 201, 184, 0.6), 0 0 24px rgba(14, 201, 184, 0.2);
}

.panel {
  margin-top: 0;
  padding: 0.85rem;
  background: rgba(17, 20, 27, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(7px);
}

.unified {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.unified-grid {
  min-height: 0;
  flex: 1;
}

.project-list {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.project-list h2 {
  margin: 0 0 0.45rem;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.project-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.project-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(14, 201, 184, 0.07);
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.block {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.panel-head {
  margin-bottom: 0.55rem;
}

.compact-head h2 {
  font-size: 1rem;
}

.panel-head h2 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 0.03em;
}

.panel-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}

.social-card {
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.55rem 0.25rem;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  transform-origin: center;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.social-card:hover {
  background: rgba(14, 201, 184, 0.09);
  border-color: var(--accent);
  transform: translateY(-3px) rotate(-2.5deg) scale(1.03);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.social-card--sponsor {
  border-color: rgba(255, 111, 66, 0.3);
}

.social-card--sponsor:hover {
  background: rgba(255, 111, 66, 0.08);
  border-color: var(--accent-2);
  transform: translateY(-3px) rotate(2.5deg) scale(1.03);
}

.social-head {
  display: contents;
}

.social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 1;
}

.handle {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 0.15rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--line);
  object-fit: cover;
  flex-shrink: 0;
}

.footer {
  text-align: center;
  padding: 0.55rem 0.4rem 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer a {
  color: inherit;
  text-decoration-thickness: 1px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: revealUp 0.75s cubic-bezier(0.16, 0.85, 0.25, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes driftA {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(18px, 12px) rotate(11deg);
  }
}

@keyframes driftB {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(-16px, -10px) rotate(-10deg);
  }
}

@media (max-width: 720px) {
  .layout {
    width: min(1040px, calc(100% - 0.6rem));
    padding: 0.3rem 0;
  }

  .panel {
    padding: 0.7rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .intro {
    font-size: 0.82rem;
  }

  .unified-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .social-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .social-card {
    min-height: 68px;
  }

  .social-icon {
    width: 16px;
    height: 16px;
  }
}