/*
  UNSW RoSoc – Roblox Society
  Vibe: colourful, bold, playful (2018 Roblox energy) with modern polish
*/

:root {
  --bg: #0c0b10;
  --bg-elev: #131125;
  --text: #f5f6fc;
  --muted: #b9bed6;
  --line: rgba(255,255,255,0.12);

  --brand-pink: #ff375f;
  --brand-orange: #ff9f1c;
  --brand-yellow: #ffd60a;
  --brand-cyan: #2de2e6;
  --brand-blue: #5b7cfa;
  --brand-lime: #6ee787;

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 8px 24px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.25);
  --shadow-2: 0 16px 48px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  --bg-opacity: 1;
  --bg-transform: translateY(0);
  --bg-image: url('assets/ROBLOX_Generic_Slide_Background.jpg');
  --bg-fade: 1;
  background:
    radial-gradient(1400px 900px at 15% -20%, rgba(91,124,250,0.22), transparent 60%),
    radial-gradient(1200px 800px at 120% -10%, rgba(255,55,95,0.22), transparent 55%),
    linear-gradient(180deg, rgba(11,11,21,0.95), rgba(12,11,16,0.98) 60%, rgba(11,11,21,0.95) 100%);
  background-attachment: fixed, fixed, fixed;
  background-size: auto, auto, auto;
  background-position: center top, center top, center top;
  background-repeat: no-repeat, no-repeat, no-repeat;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: calc(var(--bg-opacity, 1) * 0.2);
  transform: var(--bg-transform, translateY(0));
  z-index: -1;
  will-change: transform, opacity;
  mask: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(0,0,0,0.3) 10%, 
    rgba(0,0,0,0.7) 25%, 
    black 40%, 
    black 100%);
  -webkit-mask: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(0,0,0,0.3) 10%, 
    rgba(0,0,0,0.7) 25%, 
    black 40%, 
    black 100%);
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Floating color orbs in the far background */
.bg-orb {
  position: fixed; inset: -20vmax auto auto -20vmax; width: 40vmax; height: 40vmax;
  background: radial-gradient(circle at 30% 30%, rgba(45,226,230,0.28), transparent 60%);
  filter: blur(40px); opacity: 0.6; z-index: -2; animation: float 18s ease-in-out infinite;
}
.orb-2 { left: auto; right: -18vmax; top: -10vmax; background: radial-gradient(circle at 70% 40%, rgba(255,55,95,0.28), transparent 60%); animation-duration: 22s; }
.orb-3 { left: 10vmax; top: 60vh; background: radial-gradient(circle at 50% 50%, rgba(107,231,135,0.25), transparent 60%); animation-duration: 26s; }
@keyframes float { 0%,100%{ transform: translateY(-10px);} 50%{ transform: translateY(10px);} }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(12px, 3vw, 18px);
  background: rgba(12,11,16,0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: 0.2px; }
.brand-logo { width: 36px; height: 36px; border-radius: 8px; box-shadow: var(--shadow-1); }
.brand-text { font-family: 'Baloo 2', system-ui; font-size: 20px; }

.site-nav { display: flex; gap: clamp(10px, 3vw, 22px); align-items: center; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; opacity: 0.85; border-bottom: 2px solid transparent; padding: 6px 2px; }
.site-nav a:hover { opacity: 1; border-bottom-color: var(--brand-pink); }

/* Mute button */
.mute-btn { background: rgba(255,255,255,0.08); border: 1px solid var(--line); border-radius: 8px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; transition: background .2s ease, transform .1s ease; }
.mute-btn:hover { background: rgba(255,255,255,0.12); }
.mute-btn:active { transform: scale(0.95); }
.mute-btn.is-muted .mute-icon { opacity: 0.5; }

/* Hero */
.hero { overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(18px, 4vw, 32px);
  align-items: center;
}
.hero-content h1 { margin: 0 0 10px; line-height: 1.1; }
.hero-content .tag { display: inline-block; background: linear-gradient(90deg, var(--brand-pink), var(--brand-orange)); color: white; padding: 6px 10px; border-radius: 999px; font-size: 12px; letter-spacing: 0.8px; text-transform: uppercase; font-weight: 800; }
.hero-content .line1 { display: block; font-size: clamp(38px, 6vw, 66px); font-weight: 800; font-family: 'Baloo 2', cursive; text-shadow: 0 4px 0 rgba(0,0,0,0.25); }
.hero-content .line2 { display: block; font-size: clamp(18px, 3.6vw, 28px); font-weight: 800; color: var(--brand-cyan); }
.lead { font-size: clamp(16px, 2vw, 18px); color: var(--muted); margin: 12px 0 20px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { appearance: none; border: 0; border-radius: 14px; padding: 12px 16px; font-weight: 800; letter-spacing: 0.2px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: transform .1s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary { color: #0a0a0f; background: linear-gradient(180deg, #fff, #d7f6ff); box-shadow: 0 6px 0 #2de2e6, var(--shadow-2); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { color: #0a0a0f; background: linear-gradient(180deg, #fff, #ffe8b5); box-shadow: 0 6px 0 #ffd60a, var(--shadow-2); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,0.08); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.hero-badges { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.badge {
  background: linear-gradient(90deg, rgba(255,55,95,0.25), rgba(45,226,230,0.25));
  border: 1px solid var(--line); color: var(--text);
  padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 12px;
}

.hero-visual { position: relative; min-height: 420px; padding-top: 12px; }
.hero-visual .hero-deco { position: relative; width: min(620px, 88%); margin-left: auto; }
.hero-visual .hero-image { position: relative; z-index: 2; }
.hero-visual .floating-cubes { z-index: 0; }
.floating-cubes { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 14px 24px rgba(0,0,0,0.35)) hue-rotate(var(--hue, 0deg)) saturate(1.07) brightness(1.06); }
.floating-cubes .cube { position: absolute; width: 28px; height: 28px; border-radius: 6px; transform: translateZ(0); opacity: 0.92; mix-blend-mode: screen; pointer-events: auto; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.floating-cubes .cube:hover { transform: translateZ(0) scale(0.8); filter: saturate(1.15) brightness(1.15); }

.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid rgba(255,255,255,0.12); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); box-shadow: var(--shadow-2); }
/* Subtle hero glow (tuned) */
.hero-image.frame { filter: drop-shadow(0 12px 24px rgba(91,124,250,0.32)) drop-shadow(0 28px 56px rgba(255,55,95,0.18)); }
.frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(160% 120% at 70% 10%, rgba(255,255,255,0.16), transparent 40%), radial-gradient(120% 140% at 10% 90%, rgba(91,124,250,0.12), transparent 50%); mix-blend-mode: overlay; pointer-events: none; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
/* Prevent accidental selection/drag of hero image during interactions */
.hero-image img { user-select: none; -webkit-user-drag: none; }


/* Sections */
.section { padding: clamp(40px, 7vw, 96px) 0; scroll-margin-top: 80px; position: relative; }
.section h2 { font-family: 'Baloo 2', cursive; font-size: clamp(28px, 4.5vw, 44px); margin: 0 0 8px; }
.section .sub { color: var(--muted); margin: 0 0 24px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(18px, 4vw, 36px); align-items: center; }
.checklist { margin: 16px 0; padding: 0 0 0 18px; }
.checklist li { margin: 8px 0; }
.mini-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; }
.polaroid { background: #fff; color: #111; border-radius: 12px; padding: 10px 10px 14px; box-shadow: 0 14px 0 #e0e6ff, var(--shadow-2); transform: rotate(-2deg); }
.polaroid img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; }
.polaroid span { display: block; text-align: center; font-weight: 800; margin-top: 8px; }
.tilt-left { transform: rotate(-5deg); }
.tilt-right { transform: rotate(4deg); }

/* Events */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-1); }
.card h3 { margin: 6px 0 8px; }
.card p { color: var(--muted); margin: 0 0 10px; }
.card-emoji { font-size: 28px; }
.chip { display: inline-flex; align-items: center; padding: 8px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--text); text-decoration: none; font-weight: 700; border: 1px solid var(--line); }
.chip.is-muted { opacity: 0.8; cursor: default; }

/* Project */
.project-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(18px, 4vw, 34px); align-items: center; }
.project-visual { position: relative; display: block; }
.play-badge { position: absolute; right: 12px; bottom: 12px; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(180deg, #fff, #e6f7ff); color: #0a0a0f; display: grid; place-items: center; font-weight: 900; box-shadow: 0 8px 0 #2de2e6, var(--shadow-2); transition: transform .1s ease; }
.project-visual:hover .play-badge { transform: translateY(-2px); }

/* Team */
.team { position: relative; }
.avatar-belt { position: relative; margin: 8px 0 0; padding: 16px 0; overflow: hidden; }
.avatar-belt .ab-track { display: inline-flex; gap: 16px; align-items: center; white-space: nowrap; mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); will-change: transform; }
.avatar-card, .avatar-card * { white-space: normal; }
.avatar-card { flex: 0 0 auto; }
/* Edge fade fallback */
.avatar-belt::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgba(12,11,16,1), rgba(12,11,16,0) 10%, rgba(12,11,16,0) 90%, rgba(12,11,16,1)); z-index: 1; }
.avatar-card { display: inline-grid; justify-items: center; gap: 6px; text-align: center; width: 104px; flex-shrink: 0; }
.avatar-card img { width: 88px; height: 88px; aspect-ratio: 1 / 1 !important; object-fit: cover !important; border-radius: 999px !important; border: 3px solid rgba(255,255,255,0.25); box-shadow: var(--shadow-2); background: rgba(255,255,255,0.06); display: block; }
.avatar-card .name { font-weight: 800; font-size: 13px; }
.avatar-card .role { font-size: 12px; color: var(--muted); }

/* Role-based accents (by type) — subtle ring via border color */
.avatar-card img { border-color: rgba(255,255,255,0.18); }
.avatar-card[data-role*="Media"] img { border-color: rgba(255,55,95,0.55); box-shadow: var(--shadow-2); }
.avatar-card[data-role*="Dev"] img, .avatar-card[data-role*="Development"] img { border-color: rgba(91,124,250,0.55); box-shadow: var(--shadow-2); }
.avatar-card[data-role*="Events"] img { border-color: rgba(255,214,10,0.65); box-shadow: var(--shadow-2); }
.avatar-card[data-role*="Arc"] img, .avatar-card[data-role*="Delegate"] img { border-color: rgba(110,231,135,0.55); box-shadow: var(--shadow-2); }
.avatar-card[data-role*="Returning"] img { border-color: rgba(45,226,230,0.55); box-shadow: var(--shadow-2); }

.avatar-card:hover img { transform: scale(1.06); filter: saturate(1.06) brightness(1.04); transition: transform .25s ease, filter .25s ease; }

/* Gallery */

.feature-reel { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "prev track next" "dots dots dots"; align-items: center; gap: 8px 8px; margin-bottom: 14px; }
.fr-prev { grid-area: prev; }
.fr-track { grid-area: track; position: relative; overflow: hidden; height: 360px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); box-shadow: var(--shadow-1); }
.fr-next { grid-area: next; }
.fr-dots { grid-area: dots; }
.fr-track .fr-slide { position: absolute; inset: 0; opacity: 0; transform: translateX(6%); transition: opacity .4s ease, transform .4s ease; display: none; }
.fr-track .fr-slide.is-active { opacity: 1; transform: translateX(0); display: block; }
.fr-track img { width: 100%; height: 360px; object-fit: cover; display: block; }
.fr-cap { position: absolute; left: 12px; bottom: 10px; background: rgba(10,10,15,0.6); color: var(--text); padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; }
.fr-prev, .fr-next { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.06); color: var(--text); font-weight: 900; cursor: pointer; box-shadow: var(--shadow-1); }
.fr-prev:hover, .fr-next:hover { background: rgba(255,255,255,0.12); }

/* Reel indicators */
.fr-dots { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.fr-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); border: 1px solid var(--line); transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.fr-dot.is-active { transform: scale(1.6); background: var(--brand-cyan); box-shadow: 0 0 0 4px rgba(45,226,230,0.25), 0 0 12px rgba(45,226,230,0.35); }
.fr-dot.is-active::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; animation: dot-ripple 1s ease-out 1; }
@keyframes dot-ripple { 0% { box-shadow: 0 0 0 0 rgba(45,226,230,0.35); opacity: 1; } 100% { box-shadow: 0 0 0 10px rgba(45,226,230,0); opacity: 0; } }

/* Gallery expand/collapse */
.gallery-expand { text-align: center; margin: 16px 0; }
.expand-btn { background: rgba(255,255,255,0.08); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; color: var(--text); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s ease, transform .1s ease; }
.expand-btn:hover { background: rgba(255,255,255,0.12); }
.expand-btn:active { transform: scale(0.98); }
.expand-btn.expanded .expand-icon { transform: rotate(180deg); }
.expand-btn.expanded .expand-text::after { content: " (Collapse)"; }
.expand-icon { transition: transform .25s ease; }

.masonry { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.tile { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,0.04); box-shadow: var(--shadow-1); cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.tile:hover img { transform: scale(1.06); filter: saturate(1.04) brightness(1.03); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,10,15,0.84); display: none; align-items: center; justify-content: center; z-index: 120; }
.lightbox[aria-hidden="false"] { display: flex; }
.lb-stage { position: relative; width: min(90vw, 1100px); max-height: 88vh; display: grid; gap: 10px; }
#lb-img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: 14px; box-shadow: var(--shadow-2); }
.lb-caption { color: var(--muted); text-align: center; font-size: 14px; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,0.1); color: var(--text); border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; font-weight: 900; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-1); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.18); }

/* Prizes sparkle glint */
@keyframes glint { 0% { transform: translateX(-160%) rotate(18deg) scaleY(0.8); opacity: 0 } 15%{ opacity: .6 } 35%{ opacity: 1 } 100% { transform: translateX(180%) rotate(18deg) scaleY(1); opacity: 0 } }
.events .card:nth-child(3) h3 { position: relative; overflow: hidden; }
/* Trigger the glint when the card has been revealed (scroll-reveal adds .in) */
.events .card:nth-child(3).in h3::after { content: ""; position: absolute; top: -45%; bottom: -45%; left: -60%; width: 60%; background: linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,0.85), rgba(255,255,255,0)); filter: blur(1.5px) saturate(1.2); animation: glint 1.4s ease-out .0s 1 both; pointer-events: none; }

/* Gallery hover cue */
.tile { transition: transform .25s ease, box-shadow .25s ease; position: relative; }
.tile::after { content: "🔍"; position: absolute; right: 10px; bottom: 10px; width: 28px; height: 28px; display: grid; place-items: center; background: rgba(12,12,18,0.55); color: #fff; border-radius: 8px; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; border: 1px solid var(--line); }
.tile:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-2); }
.tile:hover::after { opacity: 1; transform: translateY(0); }

/* Project visual hover glow */
.project-visual { overflow: visible; }
.project-visual::before { content: ""; position: absolute; inset: -8%; background: radial-gradient(60% 60% at 60% 45%, rgba(93,126,250,0.22), transparent 60%), radial-gradient(50% 50% at 40% 60%, rgba(255,55,95,0.16), transparent 60%); filter: blur(18px); opacity: 0; transition: opacity .25s ease; z-index: 0; }
.project-visual:hover::before { opacity: 1; }
.project-visual img { transition: transform .25s ease, filter .25s ease; }
.project-visual:hover img { transform: scale(1.015); filter: saturate(1.05) brightness(1.02); }
.play-badge::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.35), rgba(45,226,230,0) 70%); opacity: 0; transition: opacity .25s ease, transform .25s ease; z-index: -1; }
.project-visual:hover .play-badge::before { opacity: 0.85; transform: scale(1.05); }

/* Aspect ratio utilities */
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-21x9 { aspect-ratio: 21 / 9; }

/* Join */
.join-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(18px, 4vw, 32px); align-items: center; }
.cta-stack { display: grid; gap: 10px; align-content: start; }
.cta-inline { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.link { color: var(--brand-cyan); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Make join section lively */
.join { position: relative; }
.join::before { content: ""; position: absolute; inset: -10% -5% -15% -5%; background: radial-gradient(60% 50% at 20% 20%, rgba(91,124,250,0.15), transparent 60%), radial-gradient(50% 70% at 80% 80%, rgba(255,55,95,0.10), transparent 65%); filter: blur(24px); opacity: 0.8; z-index: 0; }
.join .join-grid { position: relative; z-index: 1; }
.join .join-art img { transition: transform .35s ease, filter .35s ease; }
.join .join-art:hover img { transform: scale(1.03); filter: saturate(1.04) brightness(1.02); }

/* Discord presence */
.discord-presence { margin-top: 12px; display: grid; gap: 10px; }
.discord-presence .pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.06); color: var(--text); font-weight: 700; box-shadow: var(--shadow-1); }
.discord-presence .dot { width: 10px; height: 10px; border-radius: 50%; background: #ffd60a; box-shadow: 0 0 10px rgba(255,214,10,0.8); }
.discord-presence .embed iframe { width: 100%; min-height: 300px; border: 0; border-radius: 12px; box-shadow: var(--shadow-1); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; background: rgba(255,255,255,0.02); position: relative; z-index: 1; margin-top: clamp(28px, 6vw, 72px); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--text); }
.foot-brand { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.foot-brand img { width: 38px; height: 38px; border-radius: 8px; }
.muted { color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }

/* Spark particles */
.spark { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(255,255,255,0.2)); border-radius: 2px; filter: drop-shadow(0 0 6px rgba(255,255,255,0.6)); pointer-events: none; transform: translate(-50%, -50%); animation: spark-burst 800ms ease-out forwards; }
@keyframes spark-burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(0deg); } 10% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(1) rotate(180deg); } }

/* Confetti */
.confetti { position: absolute; left: 50%; top: 50%; width: 6px; height: 10px; border-radius: 2px; background: var(--c, #ffd60a); box-shadow: 0 4px 8px rgba(0,0,0,0.25); transform-origin: center; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); opacity: 0.95; pointer-events: none; animation: confetti-pop 900ms ease-out forwards; }
@keyframes confetti-pop { 0% { transform: translate(-50%, -50%) scale(1) rotate(var(--r)); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(calc(var(--r) + 140deg)); opacity: 0; } }

/* Lively accents */
.badge { background-size: 200% 200%; animation: badge-shimmer 6s linear infinite; animation-play-state: paused; }
.badge:hover { animation-play-state: running; }
@keyframes badge-shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.hero-content .tag { background-size: 200% 200%; animation: tag-shift 8s linear infinite; }
@keyframes tag-shift { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.btn { position: relative; overflow: visible; }

/* Responsive */
@media (max-width: 980px) {
  .hero, .about-grid, .project-grid, .join-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; }
  .site-nav { display: none; }
}
@media (max-width: 760px) {
  .card-grid { grid-template-columns: 1fr; }
}
