/* ============================================
   CLAUDE BUILDER CLUB — IIT MADRAS
   Bold, warm, editorial — Ambassador Hub style
   Fonts: Fraunces (serif) + DM Sans (sans)
   ============================================ */

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

:root {
  --purple:       #9B8EC0;
  --beige:        #EDE7DE;
  --beige-dark:   #DDD5C8;
  --white:        #FFFFFF;
  --text:         #1A1A1A;
  --text-mid:     #4A4540;
  --text-light:   #8A837A;
  --orange:       #D97757;
  --orange-dark:  #C4613F;

  --pink:         #C87B8A;
  --olive:        #8B9A6B;
  --blue:         #7B8FC0;
  --tile-orange:  #D4896E;
  --lightpink:    #DBBEC5;

  --font:         'DM Sans', system-ui, sans-serif;
  --font-serif:   'Fraunces', Georgia, serif;
  --max-w:        1100px;
  --transition:   .25s ease;

  /* Surfaces for theming */
  --bg:           var(--beige);
  --card-bg:      var(--white);
  --card-border:  rgba(0,0,0,.06);
  --card-hover-border: rgba(0,0,0,.12);
  --card-shadow:  0 12px 40px rgba(0,0,0,.06);
  --nav-bg:       rgba(237,231,222,.85);
  --nav-bg-scrolled: rgba(237,231,222,.95);
  --nav-border:   rgba(0,0,0,.06);
  --footer-border: rgba(0,0,0,.06);
  --update-card-bg: var(--beige);
  --update-card-border: rgba(0,0,0,.1);
  --svg-stroke:   #1A1A1A;
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  --purple:       #7B6E9A;
  --beige:        #141414;
  --beige-dark:   #1E1E1E;
  --white:        #1E1E1E;
  --text:         #EEEDEB;
  --text-mid:     #B5B0A8;
  --text-light:   #706B63;
  --orange:       #E08860;
  --orange-dark:  #C4613F;

  --pink:         #9E5E6C;
  --olive:        #6B7A4E;
  --blue:         #5B6F9A;
  --tile-orange:  #A66A50;
  --lightpink:    #8A6E76;

  --bg:           #0F0F0F;
  --card-bg:      #1A1A1A;
  --card-border:  rgba(255,255,255,.06);
  --card-hover-border: rgba(255,255,255,.14);
  --card-shadow:  0 12px 40px rgba(0,0,0,.3);
  --nav-bg:       rgba(20,20,20,.85);
  --nav-bg-scrolled: rgba(20,20,20,.95);
  --nav-border:   rgba(255,255,255,.06);
  --footer-border: rgba(255,255,255,.06);
  --update-card-bg: #1A1A1A;
  --update-card-border: rgba(255,255,255,.08);
  --svg-stroke:   #EEEDEB;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}

a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ── Reveal ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Color Tiles ── */
.tile-pink     { background: var(--pink); }
.tile-olive    { background: var(--olive); }
.tile-blue     { background: var(--blue); }
.tile-orange   { background: var(--tile-orange); }
.tile-lightpink{ background: var(--lightpink); }
.tile-purple   { background: var(--purple); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 16px 36px; border-radius: 999px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1); border: none;
  font-family: var(--font); position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,.2) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.btn:hover::after { opacity: 1; }
.btn-dark {
  background: var(--text); color: var(--bg);
}
.btn-dark:hover { background: #333; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 2px solid var(--text);
}
.btn-outline:hover { background: rgba(217,119,87,.08); border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn-white {
  background: var(--white); color: var(--text);
}
.btn-white:hover { background: #f5f5f5; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.btn-white-outline {
  background: transparent; color: rgba(255,255,255,.9);
  border: 2px solid rgba(255,255,255,.3);
}
.btn-white-outline:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); transform: translateY(-2px); }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  transition: all .4s;
}
.navbar::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #D97757 20%, #C87B8A 40%, #8B9A6B 60%, #7B8FC0 80%, transparent);
  opacity: .6;
  transition: opacity .4s;
}
.navbar:hover::after { opacity: 1; }
.navbar.scrolled {
  background: var(--nav-bg-scrolled);
  box-shadow: 0 4px 24px rgba(217,119,87,.08), 0 2px 12px rgba(0,0,0,.04);
}
.navbar.scrolled::after {
  opacity: .85;
  box-shadow: 0 0 12px rgba(217,119,87,.2), 0 0 24px rgba(200,123,138,.1);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  height: 70px; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; color: var(--text);
}
.logo-text { letter-spacing: -.01em; font-weight: 600; font-size: 1.1rem; }
.logo-text strong { font-weight: 800; font-size: 1.15rem; }

/* Logo images */
.claude-logo-img {
  height: 36px; width: auto;
  object-fit: contain;
  transition: transform .3s;
}
.logo:hover .claude-logo-img { transform: scale(1.06); }
.hero-logo-img {
  height: 52px; width: auto;
  object-fit: contain;
}
.footer-logo-img {
  height: 30px; width: auto;
  object-fit: contain;
}

[data-theme="dark"] .claude-logo-img,
[data-theme="dark"] .hero-logo-img,
[data-theme="dark"] .footer-logo-img {
  filter: invert(1) hue-rotate(180deg);
  border-radius: 6px;
}
.nav-links { display: flex; gap: 28px; margin-left: auto; margin-right: 24px; }
.nav-links a {
  font-size: .95rem; font-weight: 600; color: var(--text-mid);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--orange); }
.nav-actions { display: flex; gap: 10px; align-items: center; margin-left: 32px; }

/* Theme Toggle */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%; border: 1.5px solid var(--card-border);
  background: var(--card-bg); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s; color: var(--text-mid);
  position: relative;
}
.theme-toggle:hover {
  border-color: var(--orange); color: var(--orange);
  transform: rotate(15deg) scale(1.08);
  box-shadow: 0 0 16px rgba(217,119,87,.15);
}
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.btn-nav {
  padding: 10px 24px; border-radius: 999px;
  font-size: .88rem; font-weight: 700;
  border: 2px solid var(--card-border); background: transparent;
  color: var(--text); cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1); font-family: var(--font);
  display: inline-flex; align-items: center;
}
.btn-nav:hover { background: rgba(217,119,87,.06); border-color: var(--orange); color: var(--orange); }
.btn-nav-dark {
  background: var(--text); color: var(--bg); border-color: var(--text);
}
.btn-nav-dark:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(217,119,87,.25); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2.5px; background: var(--text);
  border-radius: 2px; transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 150px 32px 100px;
  overflow: hidden;
}
.hero-inner {
  max-width: 900px; margin: 0 auto;
}
.hero-logo-row {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin-bottom: 12px;
}
.hero-brand {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5rem); color: var(--text); letter-spacing: -.03em; font-weight: 800;
  line-height: 1;
}
.hero-brand strong { font-weight: 900; }
.hero-sub-brand {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 36px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 40px;
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* Icon Tiles Row */
.hero-icons {
  display: flex; justify-content: center; gap: 16px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.icon-tile {
  width: 110px; height: 110px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: all .4s cubic-bezier(.4,0,.2,1);
  cursor: default;
}
.icon-tile:hover {
  transform: translateY(-8px) rotate(-3deg) scale(1.06);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}
.icon-tile svg { width: 60px; height: 60px; stroke: var(--svg-stroke); }
.icon-tile svg circle[fill], .icon-tile svg circle:not([fill="none"]) { fill: var(--svg-stroke); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 500;
}
.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ── Section Shared ── */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.section-desc {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.7;
  font-weight: 500;
}

/* ── About ── */
.about {
  padding: 100px 0 110px;
}
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.about-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 36px 28px;
  border: 1.5px solid var(--card-border);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.about-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.about-card:hover::before { transform: scaleX(1); }
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow);
  border-color: var(--card-hover-border);
}
.card-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.card-icon svg { width: 42px; height: 42px; }
.about-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 10px; color: var(--text);
}
.about-card p {
  font-size: 1rem; color: var(--text-mid); line-height: 1.65;
}

/* ── Activities ── */
.activities {
  padding: 100px 0 110px;
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.activity-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--card-border);
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.activity-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--card-shadow);
  border-color: var(--card-hover-border);
}
.activity-card:hover .activity-visual svg {
  transform: scale(1.1) rotate(-3deg);
}
.activity-visual {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.activity-visual svg { width: 90px; height: 90px; transition: transform .4s cubic-bezier(.4,0,.2,1); stroke: var(--svg-stroke); }
.activity-visual svg circle[fill]:not([fill="none"]), .activity-visual svg circle:not([fill="none"]) { fill: var(--svg-stroke); }
.activity-info {
  padding: 28px;
}
.activity-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--orange);
  margin-bottom: 8px;
}
.activity-info h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 10px; color: var(--text);
}
.activity-info p {
  font-size: 1rem; color: var(--text-mid); line-height: 1.6;
}

/* ── Updates ── */
.updates {
  padding: 100px 0 60px;
}
.updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.update-card {
  background: var(--update-card-bg);
  border: 2px solid var(--update-card-border);
  border-radius: 20px;
  padding: 24px;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  cursor: pointer;
}
.update-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--card-shadow);
  border-color: var(--orange);
}
.update-card:hover .update-illust svg {
  transform: scale(1.1);
}
.update-top { margin-bottom: 16px; }
.update-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2px;
}
.update-club {
  font-size: .85rem; color: var(--text);
}
.update-club strong { font-weight: 800; }
.update-badge {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 4px 12px; border-radius: 999px;
  border: 1.5px solid var(--text); color: var(--text);
}
.badge-announce { border-color: var(--orange); color: var(--orange); }
.update-campus {
  font-size: .78rem; color: var(--text-light); font-weight: 500;
}
.update-illust {
  border-radius: 14px;
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.update-illust svg { width: 80px; height: 60px; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.update-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem; font-weight: 700;
  line-height: 1.2; margin-bottom: 10px;
  color: var(--text);
}
.update-desc {
  font-size: .95rem; color: var(--text-mid); line-height: 1.55;
}

/* ── Join CTA ── */
.join {
  padding: 40px 0 120px;
}
.join-card {
  position: relative;
  background: linear-gradient(160deg, #2D3046 0%, #1E2030 60%, #2A2D42 100%);
  border-radius: 28px;
  padding: 80px 48px;
  text-align: center;
  overflow: hidden;
}
.join-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: rgba(255,255,255,.92);
  line-height: 1.25;
  margin-bottom: 16px;
  position: relative;
}
.join-card > p {
  font-size: 1.05rem; color: rgba(255,255,255,.6);
  max-width: 480px; margin: 0 auto 36px;
  line-height: 1.6; position: relative;
}
.join-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  position: relative;
}
.join-sun {
  display: block; margin: 32px auto 0; position: relative;
}

/* ── Footer ── */
.footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--footer-border);
  background: var(--bg);
  transition: background .4s ease;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 48px; gap: 60px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p {
  font-size: .95rem; color: var(--text-light); line-height: 1.5;
}
.footer-cols { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-light); margin-bottom: 4px;
}
.footer-col a {
  font-size: .95rem; color: var(--text-mid); font-weight: 500;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--footer-border); padding-top: 20px;
  font-size: .82rem; color: var(--text-light);
}

/* ── Projects ── */
.projects { padding: 100px 0 80px; }
.projects-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 48px; flex-wrap: wrap; gap: 20px;
}
.projects-header .section-title { text-align: left; margin-bottom: 8px; }
.projects-header .section-desc  { text-align: left; margin: 0; }

/* ── Leaderboard ── */
.leaderboard {
  /* warm near-black — matches site's dark bg (#0F0F0F) with slight warm lift */
  background-color: #131210;
  /* molecule/network pattern — same visual language as the icon tiles */
  background-image: url("data:image/svg+xml,%3Csvg width='160' height='120' viewBox='0 0 160 120' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='24' cy='24' r='3' fill='%23D97757' fill-opacity='.13'/%3E%3Ccircle cx='80' cy='44' r='2.2' fill='%23D97757' fill-opacity='.09'/%3E%3Ccircle cx='136' cy='20' r='3' fill='%23D97757' fill-opacity='.11'/%3E%3Ccircle cx='48' cy='90' r='2.2' fill='%23D97757' fill-opacity='.08'/%3E%3Ccircle cx='116' cy='96' r='3' fill='%23D97757' fill-opacity='.1'/%3E%3Ccircle cx='152' cy='68' r='2' fill='%23D97757' fill-opacity='.07'/%3E%3Ccircle cx='8' cy='72' r='2' fill='%23D97757' fill-opacity='.07'/%3E%3Cline x1='24' y1='24' x2='80' y2='44' stroke='%23D97757' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='80' y1='44' x2='136' y2='20' stroke='%23D97757' stroke-opacity='.06' stroke-width='1'/%3E%3Cline x1='80' y1='44' x2='48' y2='90' stroke='%23D97757' stroke-opacity='.07' stroke-width='1'/%3E%3Cline x1='80' y1='44' x2='116' y2='96' stroke='%23D97757' stroke-opacity='.05' stroke-width='1'/%3E%3Cline x1='116' y1='96' x2='152' y2='68' stroke='%23D97757' stroke-opacity='.06' stroke-width='1'/%3E%3Cline x1='24' y1='24' x2='8' y2='72' stroke='%23D97757' stroke-opacity='.05' stroke-width='1'/%3E%3Cline x1='48' y1='90' x2='8' y2='72' stroke='%23D97757' stroke-opacity='.05' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  border-radius: 24px; overflow: hidden; margin-bottom: 48px;
  border: 1.5px solid rgba(217,119,87,.14);
  position: relative;
}
/* same rainbow stripe the navbar uses — intentional, not decorative */
.leaderboard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #D97757 0%, #C87B8A 33%, #8B9A6B 66%, #7B8FC0 100%);
  opacity: .8;
}
.lb-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 32px 36px 24px; border-bottom: 1px solid rgba(255,255,255,.05);
}
.lb-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.lb-live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  color: rgba(217,119,87,.9); background: rgba(217,119,87,.1);
  padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(217,119,87,.22);
}
.lb-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #D97757;
  animation: lb-pulse 2s ease-in-out infinite;
}
@keyframes lb-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}
.lb-prize-pill {
  font-size: .74rem; font-weight: 600; color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.05); padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.07);
}
.lb-title {
  font-family: var(--font-serif); font-size: 2rem; font-weight: 800;
  color: #F0EDE8; letter-spacing: -.025em; margin-bottom: 4px;
}
.lb-sub { font-size: .86rem; color: rgba(255,255,255,.3); font-weight: 500; }
.lb-trophy-wrap { flex-shrink: 0; padding-top: 4px; }
.lb-trophy { font-size: 2.4rem; display: block; }

/* LB rows */
.lb-body { padding: 20px 36px 28px; display: flex; flex-direction: column; gap: 10px; }
.lb-row {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.04); border-radius: 14px;
  padding: 16px 20px; border: 1.5px solid rgba(255,255,255,.05);
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.lb-row:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); transform: translateX(4px); }
.lb-row-empty { opacity: .45; cursor: pointer; }
.lb-row-empty:hover { opacity: .7; }
.lb-rank-gold  { border-color: rgba(255,215,0,.22) !important; }
.lb-rank-silver{ border-color: rgba(200,200,200,.18) !important; }
.lb-rank-bronze{ border-color: rgba(205,127,50,.22) !important; }
.lb-medal { font-size: 1.7rem; flex-shrink: 0; width: 40px; text-align: center; }
.lb-info { flex: 1; min-width: 0; }
.lb-proj-name {
  font-family: var(--font-serif); font-size: 1rem; font-weight: 700;
  color: #fff; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-proj-name.lb-tbd { color: rgba(255,255,255,.3); font-style: italic; font-family: var(--font); font-weight: 500; }
.lb-proj-author { font-size: .78rem; color: rgba(255,255,255,.38); margin-bottom: 10px; }
.lb-score-col { flex-shrink: 0; text-align: right; }
.lb-pts { display: block; font-size: 1.5rem; font-weight: 800; color: rgba(255,255,255,.25); line-height: 1; }
.lb-goodies-badge {
  display: inline-block; margin-top: 6px; font-size: .62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  color: #FFD700; background: rgba(255,215,0,.1);
  border: 1px solid rgba(255,215,0,.3); padding: 3px 9px; border-radius: 999px;
}
.lb-no-data {
  text-align: center; padding: 32px 0; color: rgba(255,255,255,.3); font-size: .95rem;
}

/* Claude Code pixel mascot in leaderboard bg */
.lb-mascot {
  position: absolute;
  bottom: 28px; right: 36px;
  width: 88px; height: auto;
  fill: #D97757;
  opacity: .07;
  pointer-events: none;
  animation: mascot-breathe 5s ease-in-out infinite;
}
@keyframes mascot-breathe {
  0%, 100% { opacity: .07; transform: translateY(0); }
  50%       { opacity: .11; transform: translateY(-5px); }
}

/* ── Empty state / Ghost grid ── */
.showcase-area { position: relative; }
.showcase-empty { position: relative; }
.ghost-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  filter: blur(7px); pointer-events: none; user-select: none;
}
.ghost-card {
  height: 290px; border-radius: 20px;
  border: 1.5px solid var(--card-border);
  background: linear-gradient(90deg, var(--card-bg) 25%, rgba(255,255,255,.05) 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: ghost-shimmer 2.2s ease-in-out infinite;
}
@keyframes ghost-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.ghost-card:nth-child(2) { animation-delay: .3s; }
.ghost-card:nth-child(3) { animation-delay: .6s; }
.empty-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; z-index: 10;
}
.empty-emoji { font-size: 3rem; margin-bottom: 16px; animation: emoji-float 3s ease-in-out infinite; }
@keyframes emoji-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.empty-overlay h3 {
  font-family: var(--font-serif); font-size: 1.9rem; font-weight: 800;
  color: var(--text); margin-bottom: 10px;
}
.empty-overlay p {
  color: var(--text-mid); font-size: 1rem; max-width: 360px;
  line-height: 1.65; margin-bottom: 28px;
}

/* ── Project Grid ── */
.project-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.project-card {
  border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.project-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 20px 48px rgba(0,0,0,.18); }
.project-card-body { flex: 1; }
.project-title {
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 800;
  color: var(--text); margin-bottom: 4px; line-height: 1.25;
}
.project-author { font-size: .8rem; color: var(--text-mid); font-weight: 600; margin-bottom: 12px; }
.project-desc { font-size: .93rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 16px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tag {
  font-size: .72rem; font-weight: 700; color: var(--text);
  background: rgba(255,255,255,.55); border: 1.5px solid rgba(0,0,0,.1);
  padding: 4px 13px; border-radius: 999px;
}
[data-theme="dark"] .project-tag { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); }
.project-card-footer { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.project-btn {
  flex: 1; text-align: center; padding: 10px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 700;
  background: rgba(255,255,255,.65); color: var(--text);
  border: 1.5px solid rgba(0,0,0,.1);
  transition: all .3s; font-family: var(--font); cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.project-btn:hover {
  background: rgba(255,255,255,.95); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
[data-theme="dark"] .project-btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.18); color: var(--text); }
[data-theme="dark"] .project-btn:hover { background: rgba(255,255,255,.24); }

/* ── Submit Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(10px);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card-bg); border-radius: 24px; padding: 48px;
  max-width: 560px; width: 100%; position: relative;
  transform: translateY(28px); transition: transform .35s cubic-bezier(.16,1,.3,1);
  max-height: 90vh; overflow-y: auto; border: 1.5px solid var(--card-border);
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--card-border); background: var(--bg);
  color: var(--text-mid); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .25s;
}
.modal-close:hover { border-color: var(--orange); color: var(--orange); transform: rotate(90deg); }
.modal-title {
  font-family: var(--font-serif); font-size: 1.8rem; font-weight: 800;
  color: var(--text); margin-bottom: 8px;
}
.modal-sub { color: var(--text-mid); margin-bottom: 32px; font-size: 1rem; }
.submit-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-mid);
}
.form-group input, .form-group textarea {
  padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid var(--card-border); background: var(--bg);
  color: var(--text); font-family: var(--font); font-size: .95rem;
  transition: border-color .2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 88px; }
.form-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-checkbox { display: none; }
.tag-label {
  font-size: .78rem; font-weight: 700; padding: 6px 16px;
  border-radius: 999px; border: 1.5px solid var(--card-border);
  color: var(--text-mid); cursor: pointer; transition: all .2s;
}
.tag-checkbox:checked + .tag-label { background: var(--orange); color: #fff; border-color: var(--orange); }
.form-submit { margin-top: 8px; width: 100%; justify-content: center; }
.form-success { display: none; text-align: center; padding: 32px 0; }
.form-success.visible { display: block; }
.submit-form.hidden { display: none; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(139,154,107,.15); border: 2px solid var(--olive);
  color: var(--olive); font-size: 1.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.form-success h4 {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 800;
  color: var(--text); margin-bottom: 10px;
}
.form-success p { color: var(--text-mid); font-size: 1rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-cards { grid-template-columns: 1fr 1fr; }
  .updates-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .ghost-grid { grid-template-columns: 1fr 1fr; }
  .ghost-card:nth-child(3) { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--nav-bg-scrolled);
    backdrop-filter: blur(20px);
    padding: 24px 32px; gap: 18px;
    border-bottom: 1px solid var(--nav-border);
  }
  .nav-actions.open {
    display: flex; flex-direction: column;
    position: absolute; top: 220px; left: 0; right: 0;
    background: var(--nav-bg-scrolled);
    padding: 0 32px 24px; gap: 10px;
  }

  .hero { padding: 130px 24px 80px; }
  .icon-tile { width: 80px; height: 80px; border-radius: 16px; }
  .icon-tile svg { width: 44px; height: 44px; }

  .about-cards { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .updates-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .ghost-grid { grid-template-columns: 1fr; }
  .ghost-card:nth-child(2), .ghost-card:nth-child(3) { display: none; }
  .projects-header { flex-direction: column; align-items: flex-start; }
  .lb-header { flex-direction: column; gap: 12px; padding: 24px 24px 18px; }
  .lb-trophy { font-size: 2rem; }
  .lb-body { padding: 14px 24px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .modal { padding: 36px 24px; }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .hero-icons { gap: 10px; }
  .icon-tile { width: 64px; height: 64px; border-radius: 14px; }
  .icon-tile svg { width: 36px; height: 36px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .join-card { padding: 56px 24px; }
  .join-actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}
