/* ===== Loading Screen ===== */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 1.5s ease-out;
}
.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}
.loading-content {
  text-align: center;
  z-index: 1;
}
.loading-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.loading-line {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.8s ease-out forwards;
}
.loading-line:nth-child(1) { animation-delay: 0.2s; }
.loading-line:nth-child(2) { animation-delay: 0.4s; }
.loading-line:nth-child(3) { animation-delay: 0.6s; }
.loading-line:nth-child(4) { animation-delay: 0.8s; }
.loading-line:nth-child(5) { animation-delay: 1.0s; }

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:root {
  --bg: #050508;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --text: #f5f5f5;
  --text-dim: #737373;
  --text-muted: #525252;
  --accent: #8b5cf6;
  --accent-2: #06b6d4;
  --accent-glow: rgba(139,92,246,0.35);
  --font-sans: 'Space Grotesk', sans-serif;
  --font-serif: 'Lora', serif;
  --font-mono: 'Ubuntu Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ===== Background Scene ===== */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  animation: drift 20s ease-in-out infinite alternate;
}
.orb-1 {
  width: 600px; height: 600px;
  left: 10%; top: 10%;
  background: radial-gradient(circle, rgba(91,33,182,0.55) 0%, transparent 70%);
  animation-duration: 22s;
}
.orb-2 {
  width: 500px; height: 500px;
  right: 5%; top: 5%;
  background: radial-gradient(circle, rgba(6,182,212,0.45) 0%, transparent 70%);
  filter: blur(100px);
  animation-duration: 18s;
  animation-delay: -8s;
}
.orb-3 {
  width: 700px; height: 700px;
  left: 40%; top: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.35) 0%, rgba(59,130,246,0.2) 40%, transparent 70%);
  filter: blur(150px);
  animation-duration: 26s;
  animation-delay: -14s;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

.stars {
  position: absolute;
  inset: 0;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(5,5,8,0.6) 0%, transparent 20%),
    linear-gradient(to top, rgba(5,5,8,0.7) 0%, transparent 20%),
    radial-gradient(75% 65%, transparent 0%, rgba(5,5,8,0.45) 100%);
}

/* ===== Nav ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s, backdrop-filter 0.4s;
}
#navbar.scrolled {
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.7; }

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .nav-divider {
  width: 1px;
  height: 1rem;
  background: var(--border);
  align-self: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 2rem 1.5rem;
  gap: 1rem;
  border-top: 1px solid var(--border);
  background: rgba(5,5,8,0.95);
  backdrop-filter: blur(16px);
}
.mobile-menu a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu.open { display: flex; }
.mobile-menu .nav-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0;
}
.section > .container {
  width: 100%;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section-label .line {
  display: block;
  height: 1px;
  width: 40px;
  background: var(--border-hover);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.hero-text { max-width: 600px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.eyebrow .line {
  height: 1px;
  width: 40px;
  background: rgba(212,212,212,0.3);
}
.eyebrow-text {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 600;
  line-height: 1.0;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.name-light { color: var(--text); }
.name-dim   { color: var(--text-dim); }

.hero-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-ghost {
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--border-hover);
  color: var(--text-dim);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }

/* Avatar */
.hero-avatar {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}
.avatar-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(20px);
  animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}
.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(139,92,246,0.3);
}
.avatar-inner {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(139,92,246,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-placeholder {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  color: rgba(139,92,246,0.7);
  user-select: none;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(139,92,246,0.08);
}
.avatar-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Scroll hint */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 5rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  animation: fade-bob 3s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--text-muted));
}
@keyframes fade-bob {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50%       { opacity: 0.8; transform: translateY(6px); }
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.stat-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.stat-icon { font-size: 1.5rem; display: flex; align-items: center; color: var(--accent); }
.stat-icon svg { flex-shrink: 0; }
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ===== Coding ===== */
.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}
.skill-tag {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  font-family: var(--font-mono);
  transition: border-color 0.2s, color 0.2s;
}
.skill-tag:hover { border-color: var(--accent); color: var(--text); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: background 0.2s, border-color 0.2s, transform 0.25s;
}
.project-card:hover {
  background: var(--surface-hover);
  border-color: rgba(139,92,246,0.3);
  transform: translateY(-4px);
}
.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.project-icon { font-size: 1.5rem; display: flex; align-items: center; color: var(--text-dim); }
.project-icon svg { flex-shrink: 0; }
.project-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
  background: rgba(139,92,246,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.project-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.project-card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.project-stack {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.project-stack span {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* ===== Fencing ===== */
.fencing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.fencing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  transition: background 0.2s, border-color 0.2s, transform 0.25s;
}
.fencing-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.highlight-card {
  border-color: rgba(139,92,246,0.3);
  background: rgba(139,92,246,0.06);
}
.fencing-card-icon { display: flex; align-items: center; margin-bottom: 1rem; color: var(--accent); }
.fencing-card-icon svg { flex-shrink: 0; }
.fencing-card h3 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
}
.fencing-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.fencing-note {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.fencing-quote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}
.fencing-quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dim);
}

/* ===== Academic ===== */
.academic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.subject-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.2s, border-color 0.2s, transform 0.25s;
}
.subject-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.subject-icon { font-size: 1.75rem; display: flex; align-items: center; color: var(--accent-2); }
.subject-icon svg { flex-shrink: 0; }
.subject-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.subject-card p {
  font-size: 0.875rem;
  color: var(--text-dim);
}
.academic-note {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.mono { font-family: var(--font-mono); }

/* ===== Project card font variants ===== */
.project-title-synapse {
  font-family: 'Audiowide', var(--font-sans), sans-serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.project-title-newnews {
  font-family: 'Manufacturing Consent', var(--font-serif), serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.project-tag-synapse {
  color: #06b6d4;
  background: rgba(6,182,212,0.1);
}
.project-tag-newnews {
  color: #a78bfa;
  background: rgba(167,139,250,0.1);
}
.project-card-synapse { border-color: rgba(6,182,212,0.2); }
.project-card-synapse:hover { border-color: rgba(6,182,212,0.45); }
.project-card-newnews { border-color: rgba(167,139,250,0.2); }
.project-card-newnews:hover { border-color: rgba(167,139,250,0.45); }

/* ===== Feature section layout (Synapse / New News) ===== */
.project-feature-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.project-feature-layout-reverse {
  direction: rtl;
}
.project-feature-layout-reverse > * {
  direction: ltr;
}

.synapse-title {
  font-family: 'Audiowide', var(--font-sans), sans-serif;
  letter-spacing: -0.01em;
}
.newnews-title {
  font-family: 'Manufacturing Consent', var(--font-serif), serif;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.feature-pill {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-mono);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}
.feature-pill:hover { border-color: var(--accent); color: var(--text); }

.project-feature-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pfm-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.pfm-item svg { color: var(--accent); flex-shrink: 0; }

/* Feature card (decorative UI mockup) */
.project-feature-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.synapse-card {
  border-color: rgba(6,182,212,0.2);
  background: linear-gradient(135deg, rgba(6,182,212,0.05) 0%, rgba(5,5,8,0) 60%);
}
.newnews-card {
  border-color: rgba(167,139,250,0.2);
  background: linear-gradient(135deg, rgba(167,139,250,0.05) 0%, rgba(5,5,8,0) 60%);
}
.pfc-top { margin-bottom: 1.5rem; }
.pfc-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.synapse-label { color: var(--accent-2); }
.newnews-label { color: #a78bfa; }

.pfc-body { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.pfc-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
  width: 100%;
}
.pfc-line-short { width: 45%; }
.pfc-line-med   { width: 70%; }
.pfc-blocks {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.pfc-block {
  height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  flex: 1;
}
.pfc-block-wide { flex: 2; }
.pfc-icon {
  position: absolute;
  bottom: 1.5rem;
  right: 1.75rem;
  opacity: 0.12;
}
.synapse-card .pfc-icon { color: var(--accent-2); }
.newnews-card .pfc-icon { color: #a78bfa; }

/* New News stats */
.newnews-stat-row {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.newnews-stat { display: flex; flex-direction: column; gap: 0.2rem; }
.newnews-stat-num {
  font-family: 'Manufacturing Consent', var(--font-serif), serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.newnews-stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ===== Debate ===== */
.achievement-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(139,92,246,0.1) 0%, rgba(6,182,212,0.06) 100%);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
}
.achievement-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.achievement-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 0.3rem;
}
.achievement-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.achievement-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.debate-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.debate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: background 0.2s, border-color 0.2s, transform 0.25s;
}
.debate-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.debate-card-icon {
  color: var(--accent-2);
  margin-bottom: 1rem;
  display: flex;
}
.debate-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.debate-card p {
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* ===== Camp ===== */
.camp-title {
  font-family: 'Manufacturing Consent', var(--font-serif), serif;
  letter-spacing: 0.01em;
}
.camp-header {
  margin-bottom: 2.5rem;
}
.camp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.camp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.camp-badge svg { color: var(--accent); flex-shrink: 0; }
.camp-slides {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  align-items: flex-start;
}
.camp-slide {
  margin: 0;
  flex-shrink: 0;
}
.camp-slide img {
  display: block;
  height: 280px;
  width: auto;
  border-radius: 12px;
  border: 1px solid rgba(139,92,246,0.3);
}
.camp-slide figcaption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}

/* subject highlight */
.subject-card-highlight {
  border-color: rgba(6,182,212,0.3);
  background: rgba(6,182,212,0.05);
}
.subject-card-highlight strong { color: var(--text); }

/* ===== IELTS ===== */
.ielts-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.ielts-header .section-desc { margin-bottom: 0; }
.ielts-header strong { color: var(--text); }

.ielts-overall {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 1px solid rgba(139,92,246,0.35);
  background: rgba(139,92,246,0.08);
  gap: 0.15rem;
}
.ielts-overall-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.ielts-overall-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
}

.ielts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.ielts-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s, transform 0.25s;
}
.ielts-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.ielts-card-top {
  border-color: rgba(139,92,246,0.3);
  background: rgba(139,92,246,0.05);
}
.ielts-card-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.ielts-card-icon {
  color: var(--accent);
  display: flex;
  margin-bottom: 0.25rem;
}
.ielts-card-top .ielts-card-icon { color: var(--accent); }
.ielts-card h3 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.ielts-score {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.ielts-max {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}
.ielts-bar-wrap {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}
.ielts-bar {
  height: 100%;
  width: var(--w);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1s ease;
}
.ielts-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.ielts-note {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== Contact ===== */
.contact-center {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.contact-center .section-desc { margin: 0 auto 2.5rem; }
.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-links + .contact-links {
  margin-top: 1rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.contact-link:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(139,92,246,0.08);
  transform: translateY(-2px);
}
.contact-icon { font-size: 1rem; display: flex; align-items: center; color: var(--text-dim); }
.contact-icon svg { flex-shrink: 0; }

/* ===== Timeline / Journey ===== */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.55rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
  opacity: 0.35;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  align-items: start;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 0.2rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.timeline-item:hover .timeline-dot {
  background: rgba(139,92,246,0.22);
  border-color: var(--accent);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 0.35rem;
  white-space: nowrap;
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: background 0.2s, border-color 0.2s, transform 0.25s;
}
.timeline-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.timeline-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--accent-2);
  background: rgba(6,182,212,0.1);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.timeline-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.timeline-card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* WeChat non-link contact item */
.contact-wechat {
  cursor: pointer;
  position: relative;
}
.contact-wechat:hover,
.contact-wechat.qr-open {
  border-color: rgba(7,193,96,0.5);
  color: var(--text);
  background: rgba(7,193,96,0.07);
  transform: translateY(-2px);
}
.contact-wechat .contact-icon { color: #07c160; }

/* QR popup */
.wechat-qr-popup {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.95);
  background: rgba(12,12,16,0.97);
  border: 1px solid rgba(7,193,96,0.35);
  border-radius: 16px;
  padding: 1.25rem;
  width: 200px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(7,193,96,0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  backdrop-filter: blur(16px);
}
.wechat-qr-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: rgba(7,193,96,0.35);
}
.contact-wechat:hover .wechat-qr-popup,
.contact-wechat.qr-open .wechat-qr-popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.wechat-qr-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.wechat-qr-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #07c160;
  font-family: var(--font-mono);
}
.wechat-qr-img-wrap {
  width: 148px; height: 148px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wechat-qr-img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.wechat-qr-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%; height: 100%;
  color: rgba(7,193,96,0.5);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  text-align: center;
  padding: 0.5rem;
  background: rgba(7,193,96,0.05);
}
.wechat-qr-id {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .timeline { padding-left: 2rem; }
  .timeline-item { grid-template-columns: 2.75rem 1fr; gap: 0.75rem; }
  .timeline-dot { left: -2rem; width: 24px; height: 24px; }
}

/* ===== Footer ===== */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

/* ===== Fade-in animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  filter: blur(4px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-avatar { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .fencing-grid { grid-template-columns: 1fr 1fr; }
  .debate-cards { grid-template-columns: 1fr 1fr; }
  .camp-slides { grid-template-columns: 1fr 1fr; }
  .project-feature-layout { grid-template-columns: 1fr; gap: 3rem; }
  .project-feature-layout-reverse { direction: ltr; }
  .ielts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .fencing-grid { grid-template-columns: 1fr; }
  .ielts-grid { grid-template-columns: 1fr 1fr; }
  .debate-cards { grid-template-columns: 1fr; }
  .camp-slides { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .section { padding: 5rem 0; }
  .hero-name { font-size: clamp(3rem, 14vw, 5rem); }
  .achievement-banner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .newnews-stat-row { gap: 1.5rem; }
  .newnews-stat-num { font-size: 1.75rem; }
  .ielts-header { flex-direction: column; }
}
