/* ===== 基礎變數 ===== */
:root {
  --bg-deep: #07141e;
  --bg-card: rgba(10, 22, 36, 0.7);
  --text: #e0eef5;
  --text-dim: #a4bccc;
  --accent: #b890ff;
  --accent-2: #00d4c8;
  --glass: rgba(100,180,220,0.04);
  --glass-border: rgba(100,180,220,0.1);
  --shadow: 0 8px 32px rgba(0,0,0,0.35);
  --gold: #f0c040;
  --gold-dim: #d4a843;
  --rose: #b890ff;
  --radius: 12px;
  --section-gap: 6rem;
}

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

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

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: "Microsoft JhengHei","PingFang TC",system-ui,sans-serif;
  line-height: 1.7; overflow-x: hidden;
}

/* ===== 星空背景 ===== */
#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.star { position: absolute; border-radius: 50%; will-change: opacity, transform; }

/* ===== 滑鼠光暈 ===== */
.cursor-glow {
  position: fixed; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,180,0.06) 0%, transparent 70%);
  pointer-events: none; z-index: 2; transform: translate(-50%,-50%);
  opacity: 0; transition: opacity 0.5s;
}

/* ===== WIP Banner ===== */
.wip-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 102;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 0.5rem 1rem; height: 34px;
  background: rgba(0,200,180,0.12);
  border-bottom: 1px solid rgba(0,200,180,0.2);
  backdrop-filter: blur(12px);
  font-size: 0.82rem; color: var(--accent-2);
  letter-spacing: 1px;
}
.wip-close {
  background: none; border: none; color: var(--accent-2);
  font-size: 1rem; cursor: pointer; opacity: 0.6;
  padding: 0 0.2rem; line-height: 1;
  transition: opacity 0.2s;
}
.wip-close:hover { opacity: 1; }

/* ===== Header ===== */
#site-header {
  position: fixed; top: 34px; left: 0; right: 0; z-index: 100;
  will-change: transform;
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 2rem;
  background: rgba(7,20,30,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.logo-link { text-decoration: none; }
.logo {
  font-size: 1.2rem; font-weight: 700; letter-spacing: 1px;
  background: linear-gradient(135deg,var(--gold),var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
nav ul { display: flex; gap: 1.5rem; list-style: none; }
nav a {
  color: var(--text-dim); text-decoration: none; font-size: 0.9rem;
  transition: color 0.25s; position: relative;
}
nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1.5px; background: var(--gold);
  transition: width 0.3s ease;
}
nav a:hover { color: var(--gold); }
nav a:hover::after { width: 100%; }
.menu-toggle {
  display: none; background: none; border: none;
  color: var(--text); font-size: 1.4rem; cursor: pointer;
}

/* ===== Section ===== */
main { position: relative; z-index: 1; }
.section { padding: var(--section-gap) 2rem; }
.section-alt { background: rgba(0,200,180,0.02); }
.section-container { max-width: 1120px; margin: 0 auto; }
.section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 1.2rem; text-align: center;
  background: linear-gradient(to right,#fff,var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc {
  max-width: 640px; margin: 0.5rem auto 3rem; text-align: center;
  color: var(--text-dim); font-size: 1rem; line-height: 1.8;
}

/* ===== Hero ===== */
.hero-section {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden; padding: 2rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 25% 15%, rgba(0,190,170,0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 75% 55%, rgba(140,60,240,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 90%, rgba(0,180,200,0.05) 0%, transparent 40%);
  pointer-events: none;
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(80,200,200,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,200,200,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; opacity: 0.5;
}
.hero-content { position: relative; max-width: 860px; z-index: 1; padding: 2rem; border-radius: 1rem; }
.hero-kicker {
  font-size: 0.9rem; letter-spacing: 3px; color: var(--accent);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(2.2rem, 7vw, 4.5rem); font-weight: 800;
  line-height: 1.35; margin-bottom: 1.9rem;
  background: linear-gradient(135deg,#fff 10%,var(--gold) 45%,#d4bbff 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  color: var(--text-dim); line-height: 2.2; margin-bottom: 2.5rem; margin-top: -2px;
}
.hero-subtitle .hl { color: var(--gold); font-weight: 600; }
.hero-actions { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.hero-btn {
  display: inline-flex; align-items: center; padding: 0.85rem 2.2rem;
  border-radius: 50px; font-size: 1rem; font-weight: 600;
  text-decoration: none; letter-spacing: 1px; cursor: pointer;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.hero-btn:hover { transform: translateY(-2px); }
.hero-btn-primary {
  background: linear-gradient(135deg,var(--gold),var(--accent));
  color: #0a0e17; box-shadow: 0 4px 24px rgba(0,200,180,0.3);
}
.hero-btn-primary:hover { box-shadow: 0 8px 40px rgba(0,200,180,0.5); }
.hero-btn-secondary {
  background: transparent; color: var(--text);
  border: 2px solid rgba(255,255,255,0.15);
}
.hero-btn-secondary:hover {
  border-color: var(--gold); color: var(--gold);
  box-shadow: 0 8px 25px rgba(0,200,180,0.12);
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
}
.hero-scroll span { display: inline-block; font-size: 1.4rem; color: var(--gold); opacity: 0; }

/* ===== Org Chart ===== */
.org-chart { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 2rem; }
.org-level { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.org-top { margin-bottom: 0.5rem; }
.org-mid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; max-width: 900px; }
.org-node {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  padding: 1rem 0.6rem; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--glass-border);
  min-width: 90px; transition: border-color 0.3s, box-shadow 0.3s;
}
.org-node:hover { border-color: var(--gold); box-shadow: 0 0 20px rgba(0,200,180,0.12); }
.org-node-human {
  border-color: var(--gold); min-width: 120px;
  box-shadow: 0 0 24px rgba(0,200,180,0.15);
}
.org-avatar { width: 40px; height: 40px; border-radius: 50%; opacity: 0.85; flex-shrink: 0; }
.org-avatar-ricky {
  width: 48px; height: 48px;
  background: conic-gradient(var(--gold),#fff,var(--gold));
  border-radius: 50%;
}
.org-name { font-size: 0.8rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.org-role { font-size: 0.7rem; color: var(--text-dim); white-space: nowrap; }
.org-connector { display: flex; align-items: center; gap: 1rem; margin: 0.4rem 0; }
.org-line {
  width: 40px; height: 1px;
  background: linear-gradient(90deg,transparent,rgba(0,200,180,0.5),transparent);
}
.org-badge { font-size: 0.75rem; color: var(--text-dim); letter-spacing: 1px; white-space: nowrap; }

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding-left: 2.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    rgba(100,120,140,0.15),
    rgba(80,140,200,0.35) 35%,
    rgba(0,180,200,0.5) 65%,
    var(--accent-2) 90%,
    rgba(0,220,200,0.8) 100%
  );
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 0.35rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid rgba(200,160,100,0.5);
  z-index: 1;
}
.timeline-marker-now {
  width: 20px; height: 20px;
  left: -2.8rem;
  top: 0.2rem;
  border-color: var(--accent-2);
  background: var(--accent-2);
  box-shadow: 0 0 18px rgba(0,212,200,0.6), 0 0 36px rgba(0,212,200,0.25);
}
.timeline-stage {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 0.15rem;
}
.timeline-body h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-weight: 700;
}
.timeline-body p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.75;
  font-weight: 300;
}

/* ===== Team Cards ===== */
.team-grid { display: flex; flex-direction: column; gap: 1.2rem; }
.team-card {
  position: relative; display: flex; gap: 1.5rem;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.4s, box-shadow 0.4s;
  overflow: hidden;
}
.team-card:hover { border-color: rgba(0,200,180,0.3); box-shadow: 0 0 30px rgba(0,200,180,0.1); }
.team-avatar { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; margin-top: 0.3rem; }
.team-avatar-richu { background: linear-gradient(135deg,#f0c040,#d4a843); box-shadow: 0 0 20px rgba(0,200,180,0.35); }
.team-avatar-dev { background: linear-gradient(135deg,#e8a87c,#c07050); box-shadow: 0 0 20px rgba(232,168,124,0.3); }
.team-avatar-art { background: linear-gradient(135deg,#c084fc,#e8a0f0); box-shadow: 0 0 20px rgba(200,132,252,0.3); }
.team-avatar-writer { background: linear-gradient(135deg,#f0a0b8,#e06080); box-shadow: 0 0 20px rgba(240,160,184,0.3); }
.team-avatar-qa { background: linear-gradient(135deg,#f08060,#e04040); box-shadow: 0 0 20px rgba(240,128,96,0.3); }
.team-avatar-gen { background: linear-gradient(135deg,#a0c8f0,#6088d0); box-shadow: 0 0 20px rgba(160,200,240,0.3); }
.team-avatar-edit { background: linear-gradient(135deg,#f0d060,#c8a030); box-shadow: 0 0 20px rgba(240,208,96,0.3); }
.team-avatar-intel { background: linear-gradient(135deg,#c8a0e8,#8868b8); box-shadow: 0 0 20px rgba(200,160,232,0.3); }
.team-info { flex: 1; min-width: 0; }
.team-name { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 0.1rem; }
.team-title { font-size: 0.8rem; color: var(--gold); letter-spacing: 1px; }
.team-bio { font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; margin: 0.6rem 0; }

/* ===== Flat Carousel ===== */
.portfolio-carousel { position: relative; }
.flat-slide {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.flat-slide.active { display: block; }
.flat-media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0a0a0a;
}
.flat-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.flat-media .video-embed {
  width: 100%; height: 100%;
}
.flat-media .video-embed iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
.flat-info {
  padding: 1.2rem 1.8rem;
}
.flat-heading {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.4rem;
}
.flat-credit {
  font-size: 0.78rem; color: var(--text-dim); font-weight: 400;
  margin-left: 0.5rem;
}
.flat-desc {
  color: var(--text-dim); font-size: 0.88rem; line-height: 1.7;
  margin-bottom: 0.6rem;
}
.flat-group-tag {
  font-size: 0.72rem; color: var(--gold); letter-spacing: 1px;
  opacity: 0.7;
}

/* Carousel arrows (keep) */
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 42px; height: 42px;
  border-radius: 50%; border: 1px solid rgba(200,160,100,0.3);
  background: rgba(10,20,30,0.75);
  backdrop-filter: blur(6px);
  color: rgba(220,180,120,0.8);
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.carousel-arrow:hover {
  border-color: rgba(220,170,100,0.7);
  color: rgba(240,180,90,0.95);
  background: rgba(10,20,30,0.9);
  box-shadow: 0 0 20px rgba(200,140,60,0.2);
}
.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }

.carousel-dots {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-top: 1.2rem;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(200,160,100,0.2);
  cursor: pointer; transition: all 0.3s ease;
}
.carousel-dot:hover { background: rgba(200,160,100,0.45); }
.carousel-dot.active {
  background: rgba(220,170,100,0.8);
  box-shadow: 0 0 8px rgba(200,140,60,0.4);
}

.flat-info-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.4rem; gap: 0.5rem;
}
.flat-info-actions {
  display: flex; align-items: center; gap: 0.4rem;
  flex-shrink: 0;
}
.carousel-mute {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(200,160,100,0.25);
  background: rgba(10,20,30,0.5); backdrop-filter: blur(4px);
  color: rgba(220,180,120,0.75); font-size: 0.75rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.25s; font-family: inherit; line-height: 1; padding: 0;
  flex-shrink: 0;
}
.carousel-mute:hover {
  border-color: rgba(220,170,100,0.7);
  color: rgba(240,180,90,0.95);
  box-shadow: 0 0 10px rgba(200,140,60,0.15);
}
.carousel-mute.muted { color: rgba(255,100,100,0.7); border-color: rgba(255,100,100,0.3); }

.carousel-autoplay {
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(200,160,100,0.25);
  background: rgba(10,20,30,0.5); backdrop-filter: blur(4px);
  color: rgba(220,180,120,0.75); font-size: 0.7rem;
  cursor: pointer; display: flex; align-items: center; gap: 0.2rem;
  transition: all 0.25s; font-family: inherit; line-height: 1.3; letter-spacing: 0.5px;
  flex-shrink: 0; white-space: nowrap;
}
.carousel-autoplay:hover {
  border-color: rgba(220,170,100,0.5);
  color: rgba(240,180,90,0.8);
  box-shadow: 0 0 10px rgba(200,140,60,0.15);
}
.carousel-autoplay.paused {
  color: rgba(220,180,120,0.6);
  border-color: rgba(200,160,100,0.12);
}

@media (max-width: 768px) {
  .flat-info { padding: 1rem 1.2rem; }
  .carousel-prev { left: 6px; }
  .carousel-next { right: 6px; }
  .carousel-arrow { width: 34px; height: 34px; font-size: 0.9rem; }
}

/* ===== Grad Project + Engine ===== */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 2.5rem 1.5rem; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); text-decoration: none;
  text-align: center; overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.3s;
}
.project-card:hover {
  border-color: rgba(0,200,180,0.35);
  box-shadow: 0 0 30px rgba(0,200,180,0.12);
  transform: translateY(-4px);
}
.project-card-glow {
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 160%;
  background: radial-gradient(ellipse, var(--glow) 0%, transparent 60%);
  pointer-events: none;
}
.project-icon { font-size: 2.5rem; margin-bottom: 0.8rem; z-index: 1; }
.project-card h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.5rem; z-index: 1;
}
.project-card p {
  font-size: 0.88rem; color: var(--text-dim); line-height: 1.6;
  margin-bottom: 0.8rem; z-index: 1;
}
.project-tag {
  font-size: 0.75rem; color: var(--gold); letter-spacing: 0.5px; z-index: 1;
  opacity: 0.8;
}

/* ===== Fleet Wall ===== */
.fleet-section { overflow: hidden; }
.fleet-wall {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem;
  max-width: 900px; margin: 0 auto;
}
.fleet-member-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1.2rem; border-radius: 14px;
  background: rgba(0,200,180,0.05); border: 1px solid rgba(0,200,180,0.1);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  min-width: 260px;
}
.fleet-member-card:hover {
  border-color: rgba(0,200,180,0.25); box-shadow: 0 0 18px rgba(0,200,180,0.1);
  transform: translateY(-2px);
}
.fleet-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-2); flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0,200,180,0.5);
}
.fleet-info { display: flex; flex-direction: column; gap: 0.15rem; }
.fleet-name { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.fleet-role { font-size: 0.78rem; color: var(--text-dim); }

/* ===== Stats ===== */
.stats-section {
  background: rgba(0,200,180,0.03);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  text-align: center;
}
.stat-item { padding: 2rem 1rem; }
.stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800;
  background: linear-gradient(135deg,#fff,var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; display: block; line-height: 1.2;
}
.stat-label {
  font-size: 0.9rem; color: var(--text-dim); letter-spacing: 2px;
  display: block; margin-top: 0.5rem;
}

/* ===== Closing ===== */
.closing-section { text-align: center; padding-top: 5rem; padding-bottom: 5rem; }
.closing-quote { max-width: 700px; margin: 0 auto; }
.closing-line {
  font-size: 1.1rem; color: var(--text-dim); line-height: 2;
  margin-bottom: 0.3rem;
}
.closing-kicker { color: var(--gold); font-weight: 600; margin-top: 2rem; }
.closing-slogan {
  font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; line-height: 1.3;
  margin: 1.5rem 0 1rem;
  background: linear-gradient(135deg,#fff 0%,var(--gold) 45%,#d4bbff 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.closing-sub { font-size: 1rem; color: var(--text-dim); line-height: 1.9; }

/* ===== Footer ===== */
footer {
  position: relative; z-index: 10; text-align: center;
  padding: 3rem 1.5rem; border-top: 1px solid var(--glass-border);
  background: rgba(7,20,30,0.95); color: var(--text-dim);
}
.footer-brand { margin-bottom: 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.footer-logo {
  font-size: 1.1rem; font-weight: 700;
  background: linear-gradient(135deg,var(--gold),var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-motto { font-size: 0.8rem; color: var(--text-dim); letter-spacing: 1px; }
.socials { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.social-link {
  color: var(--text-dim); text-decoration: none; font-size: 0.9rem;
  transition: color 0.25s;
}
.social-link:hover { color: var(--gold); }
.social-link.copied { color: var(--accent-2); }
footer > p { font-size: 0.8rem; }

/* ===== 實驗性功能方框 ===== */
.experimental-box {
  border: 1px solid rgba(200,160,100,0.18);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  background: rgba(10,22,36,0.35);
  backdrop-filter: blur(6px);
}

/* ===== 幻燈片投影機 ===== */
.projector-wrapper {
  display: flex; flex-direction: column; align-items: center;
  max-width: 720px; margin: 0 auto;
}

.projector-frame {
  position: relative; width: 100%; aspect-ratio: 4/3;
  border: 3px solid rgba(180,150,110,0.3);
  border-radius: 6px;
  background: #0a0a0a;
  box-shadow:
    0 0 60px rgba(200,140,60,0.08),
    0 0 120px rgba(200,140,60,0.04),
    inset 0 0 40px rgba(0,0,0,0.6);
  overflow: hidden;
}

.projector-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(10,8,6,0.65) 100%);
  pointer-events: none;
}

.projector-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 4;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.06) 0px,
    rgba(0,0,0,0.06) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

.projector-screen {
  position: absolute; inset: 0; z-index: 1;
  background: #0d0c0a;
}

.projector-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.2s ease;
}
.projector-slide.active { opacity: 1; z-index: 2; }

.projector-slide img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(0.15) brightness(0.95) contrast(1.02);
}

.projector-overlay {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,6,4,0.5);
  backdrop-filter: blur(2px);
  transition: opacity 0.5s ease;
}
.projector-overlay.hidden { opacity: 0; pointer-events: none; }

.projector-play-btn {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid rgba(220,160,80,0.6);
  background: rgba(0,0,0,0.5);
  color: rgba(220,160,80,0.9);
  font-size: 2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(200,140,60,0.2);
  backdrop-filter: blur(4px);
}

.projector-play-btn:hover {
  border-color: rgba(240,180,90,0.9);
  color: rgba(240,180,90,1);
  box-shadow: 0 0 50px rgba(200,140,60,0.35);
  transform: scale(1.06);
}

.projector-play-btn.playing .play-icon {
  transform: translateX(1px);
  opacity: 0.7;
}

.projector-caption {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
  padding: 1rem 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-size: 0.85rem; color: rgba(220,180,130,0.85);
  letter-spacing: 0.5px;
  opacity: 0; transition: opacity 0.8s ease;
  pointer-events: none;
}
.projector-caption.visible { opacity: 1; }

/* 投影機光柱 */
.projector-light-beam {
  position: absolute; z-index: 0;
  left: 50%; bottom: -2px; transform: translateX(-50%);
  width: 70%; height: 120px;
  background: linear-gradient(
    to top,
    rgba(200,140,60,0.08) 0%,
    rgba(200,140,60,0.03) 40%,
    transparent 100%
  );
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
  transition: opacity 0.6s;
}
.projector-light-beam.dim { opacity: 0.3; }

/* 灰塵微粒 */
.projector-dust {
  position: absolute; z-index: 2; inset: 0; pointer-events: none; overflow: hidden;
}
.projector-dust span {
  position: absolute; width: 2px; height: 2px;
  background: rgba(200,160,100,0.35);
  border-radius: 50%;
  animation: dust-float linear infinite;
}
@keyframes dust-float {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-400px) translateX(30px); opacity: 0; }
}

/* 進度指示器 */
.projector-dots {
  display: flex; gap: 0.5rem; margin-top: 1.2rem;
}
.projector-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(200,160,100,0.25);
  transition: background 0.4s, box-shadow 0.4s;
}
.projector-dot.active {
  background: rgba(220,170,100,0.8);
  box-shadow: 0 0 6px rgba(200,140,60,0.4);
}

/* 標籤 */
.projector-tag {
  display: inline-block; margin-bottom: 0.5rem;
  padding: 0.25rem 0.8rem;
  border: 1px solid rgba(200,140,60,0.25);
  border-radius: 20px;
  font-size: 0.72rem; letter-spacing: 2px;
  color: rgba(220,160,70,0.92);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .org-mid { grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
  .org-node { padding: 0.6rem 0.3rem; min-width: 60px; }
  .org-name { font-size: 0.7rem; }
  .org-role { font-size: 0.65rem; }
  .org-avatar { width: 32px; height: 32px; }
  .org-avatar-ricky { width: 36px; height: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .projector-play-btn { width: 60px; height: 60px; font-size: 1.5rem; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0.75rem 1.2rem; }
  nav ul {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; width: 100%;
    background: rgba(7,20,30,0.97); backdrop-filter: blur(16px);
    padding: 1rem; gap: 0.8rem; text-align: center;
    border-bottom: 1px solid var(--glass-border);
  }
  nav.active ul { display: flex; }
  .menu-toggle { display: block; }
  .section { padding: 3.5rem 1rem; }
  .section-title { font-size: 1.4rem; }
  .section-desc { font-size: 0.9rem; margin-bottom: 2rem; }
  .hero-section { min-height: 90vh; padding: 1rem; }
  .hero-title { letter-spacing: 0; }
  .hero-btn { width: 100%; max-width: 280px; justify-content: center; padding: 0.7rem 1.5rem; font-size: 0.9rem; }
  .org-mid { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
  .org-node { padding: 0.5rem 0.2rem; min-width: auto; }
  .org-name { font-size: 0.65rem; }
  .org-role { font-size: 0.6rem; }
  .org-avatar { width: 28px; height: 28px; }
  .org-avatar-ricky { width: 32px; height: 32px; }
  .org-badge { font-size: 0.65rem; }
  .team-card { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.2rem; }
  .team-avatar { width: 48px; height: 48px; }
  .gallery-grid, .projects-grid { grid-template-columns: 1fr; }
  .carousel-prev { left: 6px; }
  .carousel-next { right: 6px; }
  .carousel-arrow { width: 34px; height: 34px; font-size: 0.9rem; }
  .projector-frame { aspect-ratio: 3/2; }
  .projector-play-btn { width: 64px; height: 64px; font-size: 1.6rem; }
  .closing-section { padding: 3rem 1rem; }
}

@media (max-width: 480px) {
  .section { padding: 2.5rem 0.75rem; }
  .section-title { font-size: 1.2rem; }
  .org-mid { grid-template-columns: repeat(4, 1fr); gap: 0.3rem; }
  .org-node { padding: 0.4rem 0.15rem; border-radius: 6px; }
  .org-name { font-size: 0.6rem; }
  .org-role { font-size: 0.55rem; display: none; }
  .org-avatar { width: 22px; height: 22px; }
  .org-avatar-ricky { width: 26px; height: 26px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .stat-item { padding: 1rem 0.5rem; }
  .stat-number { font-size: 1.6rem; }
  .stat-label { font-size: 0.75rem; letter-spacing: 1px; }
}

/* ===== 墨水流體 Canvas ===== */
#fluid-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}

/* ===== 背景模式切換器 ===== */
.mode-switcher {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: 24px;
  background: rgba(7, 20, 30, 0.85);
  border: 1px solid rgba(100, 180, 220, 0.12);
  backdrop-filter: blur(14px);
  cursor: pointer; font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  user-select: none;
}
.mode-switcher:hover {
  border-color: rgba(0, 200, 180, 0.4);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(0, 200, 180, 0.1);
}
.mode-switcher:active {
  transform: scale(0.96);
}
.mode-icon {
  font-size: 0.9rem; opacity: 0.6;
  transition: opacity 0.3s;
}
.mode-switcher:hover .mode-icon { opacity: 0.9; }
.mode-label {
  font-weight: 500;
}

/* 實驗性功能靜音 */
.exp-mute {
  display: inline-block; margin-left: 12px; cursor: pointer;
  font-size: 0.9rem; opacity: 0.5; transition: opacity 0.25s;
  vertical-align: middle; color: var(--text-dim); -webkit-text-fill-color: var(--text-dim);
}
.exp-mute:hover { opacity: 0.9; }
.exp-mute.muted { opacity: 0.5; }
/* ===== 宇宙太陽 ===== */
#cosmic-sun {
  position: fixed;
  top: 6%;
  right: 6%;
  z-index: 0;
  pointer-events: none;
  width: 220px;
  height: 220px;
}
.sun-glow {
  position: absolute;
  inset: -50%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,200,60,0.25) 0%,
    rgba(255,150,30,0.1) 30%,
    rgba(255,100,10,0.03) 60%,
    transparent 75%);
}
.sun-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%,
    #ffffff 0%,
    #fffde0 8%,
    #ffe880 20%,
    #ffb830 45%,
    #f07820 70%,
    #d04810 90%,
    transparent 100%);
  box-shadow:
    0 0 40px rgba(255,200,40,0.55),
    0 0 100px rgba(255,150,20,0.25),
    0 0 180px rgba(255,80,10,0.1),
    0 0 300px rgba(255,60,5,0.04);
}

/* Supernova Overlay */
#supernova-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0;
}
.supernova-flash {
  position: absolute;
  inset: 0;
  background: #ffffff;
}
.supernova-afterglow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%,
    rgba(255,200,80,0.15) 0%,
    rgba(255,100,30,0.05) 40%,
    transparent 70%);
  opacity: 0;
}

/* Shockwave Ring */
.shockwave-ring {
  position: absolute;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 30px rgba(255,220,120,0.8), 0 0 80px rgba(255,180,60,0.4);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  #cosmic-sun {
    width: 140px;
    height: 140px;
    top: 4%;
    right: 3%;
  }
}
