/* ============================================================
   CHRONOVATE FOUNDATION — STYLESHEET v2
   Palette: Deep Navy (#0B1628) · Gold (#C9A84C) · Ivory (#F8F5EF)
   ============================================================ */

:root {
  --navy:       #0B1628;
  --navy-mid:   #112040;
  --navy-light: #1A3060;
  --gold:       #C9A84C;
  --gold-light: #E8C96A;
  --gold-pale:  #F5E9C8;
  --ivory:      #F8F5EF;
  --white:      #FFFFFF;
  --text:       #1E1E1E;
  --text-mid:   #4A4A4A;
  --text-light: #888;
  --border:     rgba(201,168,76,0.18);
  --border-dark: rgba(201,168,76,0.12);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --r:    12px;
  --r-lg: 20px;
  --sh:   0 4px 24px rgba(11,22,40,0.10);
  --sh-lg:0 16px 56px rgba(11,22,40,0.16);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── Typography ── */
h1,h2,h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.12; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
p  { line-height: 1.78; color: var(--text-mid); }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.pos-rel { position: relative; z-index: 1; }
section { padding: 110px 0; }

/* ── Section labels ── */
.section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.45);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.section-label.light { color: var(--gold-light); border-color: rgba(232,201,106,0.4); }

.section-title { margin-bottom: 0.9rem; }
.section-title.light { color: var(--white); }

.section-sub { font-size: 1.05rem; max-width: 540px; margin-bottom: 3rem; }
.section-sub.light { color: rgba(255,255,255,0.65); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  font-family: var(--font-sans); font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.03em; padding: 13px 28px; border-radius: 100px;
  text-decoration: none; transition: all 0.25s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,0.38); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,0.82);
  font-family: var(--font-sans); font-weight: 500; font-size: 0.875rem;
  padding: 13px 28px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.28);
  text-decoration: none; transition: all 0.25s;
}
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); transform: translateY(-2px); }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed { opacity: 1; transform: none; }

/* ════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 999; height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
#navbar.scrolled {
  background: rgba(11,22,40,0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(201,168,76,0.18);
}

.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; align-items: center; gap: 1.5rem;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo-img { width: 36px; height: 36px; flex-shrink: 0; }

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600;
  color: var(--white); letter-spacing: 0.01em;
}
.logo-sub { font-size: 0.62rem; color: rgba(255,255,255,0.45); letter-spacing: 0.07em; text-transform: uppercase; }

.nav-links { display: flex; list-style: none; gap: 0.15rem; margin-left: auto; }
.nav-links a {
  color: rgba(255,255,255,0.72); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; padding: 8px 16px;
  border-radius: 8px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--gold-light); background: rgba(255,255,255,0.05); }

.lang-toggle {
  background: transparent; border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.65); font-size: 0.76rem; font-weight: 500;
  padding: 6px 14px; border-radius: 100px; cursor: pointer;
  transition: all 0.2s; letter-spacing: 0.04em; font-family: var(--font-sans); white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }

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

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
#hero {
  min-height: 100vh; background: var(--navy);
  display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 0;
}

.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.orb1 { width: 800px; height: 800px; top: -300px; right: -150px;  background: radial-gradient(circle, rgba(201,168,76,0.10) 0%, transparent 60%); }
.orb2 { width: 500px; height: 500px; bottom: -100px; left: -80px; background: radial-gradient(circle, rgba(26,48,96,0.8) 0%, transparent 70%); }
.orb3 { width: 400px; height: 400px; top: 30%; left: 30%;         background: radial-gradient(circle, rgba(201,168,76,0.04) 0%, transparent 70%); }

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 0 3rem;
  width: 100%;
  display: grid; grid-template-columns: 1fr 460px;
  align-items: center; gap: 3rem;
  min-height: 100vh;
}

.hero-content { padding: 80px 0 60px; }

.hero-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(201,168,76,0.35);
  padding: 6px 18px; border-radius: 100px; margin-bottom: 2.25rem;
  background: rgba(201,168,76,0.05);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 7.5vw, 7rem);
  font-weight: 700; color: var(--white);
  line-height: 0.93; letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
  display: flex; flex-direction: column;
}
.hero-title-line1 { display: block; color: var(--white); }
.hero-title-line2 { display: block; color: var(--gold); }
.hero-title-zh    { display: none; font-size: clamp(2.8rem, 5.5vw, 5.2rem); color: var(--gold); letter-spacing: 0.05em; }

.hero-tagline {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: rgba(255,255,255,0.55); line-height: 1.82;
  margin-bottom: 2.75rem; max-width: 500px;
}

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

/* ── Hero right: emblem ── */
.hero-emblem {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; height: 460px;
}

/* Decorative spinning rings behind logo */
.he-outer-ring, .he-mid-ring {
  position: absolute; border-radius: 50%; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.he-outer-ring {
  width: 380px; height: 380px;
  border: 1px solid rgba(201,168,76,0.12);
  animation: spinSlow 50s linear infinite;
}
.he-mid-ring {
  width: 290px; height: 290px;
  border: 1px solid rgba(201,168,76,0.07);
  animation: spinSlow 35s linear infinite reverse;
}
@keyframes spinSlow {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}

.he-logo {
  width: 190px; height: 190px;
  position: relative; z-index: 2;
  filter: drop-shadow(0 0 40px rgba(201,168,76,0.25));
  margin-bottom: 1.75rem;
}

.he-label {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative; z-index: 2;
}
.he-label-en {
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 500;
  color: rgba(255,255,255,0.42); letter-spacing: 0.06em; text-align: center;
}
.he-label-zh { font-size: 0.85rem; color: rgba(201,168,76,0.52); letter-spacing: 0.12em; }

/* ── Scroll indicator ── */
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 2;
}
.hero-scroll span {
  display: block; width: 1px; height: 52px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.7), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity:0.2; transform:scaleY(0.35); transform-origin:top; }
  50%      { opacity:1;   transform:scaleY(1);    transform-origin:top; }
}

/* ════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════ */
#about { background: var(--white); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}

.about-text h2 { color: var(--navy); margin-bottom: 1.5rem; }
.about-text p  { margin-bottom: 1.25rem; font-size: 1.02rem; }

.about-stats {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; gap: 5px; }
.stat-num  { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-label{ font-size: 0.7rem; color: var(--text-light); letter-spacing: 0.04em; }
.stat-divider { width: 1px; height: 38px; background: var(--border); flex-shrink: 0; }

.about-cards { display: flex; flex-direction: column; gap: 1rem; }
.av-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--ivory); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.35rem 1.5rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.av-card:hover { transform: translateX(5px); box-shadow: var(--sh); border-color: rgba(201,168,76,0.4); }

.av-icon-wrap {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(201,168,76,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.av-icon { font-size: 1.2rem; line-height: 1; }
.av-body { display: flex; flex-direction: column; gap: 5px; }
.av-body strong { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.av-body span   { font-size: 0.84rem; color: var(--text-mid); line-height: 1.65; }

/* ════════════════════════════════════════════
   MISSION
════════════════════════════════════════════ */
#mission { background: var(--navy); position: relative; overflow: hidden; }
.mission-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

.mission-header { margin-bottom: 3rem; }

.mission-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.mission-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(201,168,76,0.13);
  border-radius: var(--r-lg); padding: 2rem 2rem 2.25rem;
  transition: background 0.25s, border-color 0.25s;
}
.mission-card:hover { background: rgba(201,168,76,0.065); border-color: rgba(201,168,76,0.32); }
.mc-num {
  font-family: var(--font-serif); font-size: 2.8rem; font-weight: 700;
  color: rgba(201,168,76,0.28); line-height: 1; margin-bottom: 0.75rem;
}
.mission-card h3 { color: var(--white); margin-bottom: 0.8rem; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.mission-card p  { font-size: 0.92rem; color: rgba(255,255,255,0.62); line-height: 1.8; }

/* ════════════════════════════════════════════
   PROGRAMS
════════════════════════════════════════════ */
#programs { background: var(--ivory); }

.programs-header { margin-bottom: 2.5rem; }

.program-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh);
}

.pc-header {
  background: var(--navy); padding: 1rem 1.75rem;
  display: flex; align-items: center; gap: 1rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.pc-badge-wrap { display: flex; align-items: center; gap: 1rem; }
.pc-badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy);
  background: var(--gold); padding: 5px 14px; border-radius: 100px;
}
.pc-status {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #5CE87A;
  border: 1px solid rgba(92,232,122,0.4); padding: 4px 12px; border-radius: 100px;
}

.pc-body {
  display: grid; grid-template-columns: 1fr 340px;
}

.pc-text { padding: 2.5rem 3rem; }
.pc-partner {
  display: flex; flex-direction: column; gap: 3px; margin-bottom: 1rem;
}
.pc-partner-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.pc-partner-name  { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--navy); line-height: 1; }

.pc-text h3 { color: var(--navy); font-size: clamp(1.3rem, 2.2vw, 1.8rem); margin-bottom: 1rem; }
.pc-text p  { font-size: 0.98rem; margin-bottom: 1rem; }

.pc-stats {
  display: flex; gap: 2rem; margin-top: 2rem;
  padding-top: 1.75rem; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.pc-stat { display: flex; flex-direction: column; gap: 4px; }
.pc-stat-num   { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; color: var(--navy); line-height: 1; }
.pc-stat-label { font-size: 0.68rem; color: var(--text-light); letter-spacing: 0.04em; }

.pc-visual {
  background: linear-gradient(145deg, #0e2144 0%, #0B1628 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem; position: relative; min-height: 300px;
  border-left: 1px solid rgba(201,168,76,0.1);
}
.pcv-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.pcv-inner {
  position: relative; display: flex; align-items: center;
  justify-content: center; width: 220px; height: 220px; z-index: 1;
}
.pcv-ring {
  position: absolute; border-radius: 50%;
}
.pcv-ring.r1 { width: 210px; height: 210px; border: 1px solid rgba(201,168,76,0.22); }
.pcv-ring.r2 { width: 162px; height: 162px; border: 1px solid rgba(201,168,76,0.12); }
.pcv-content {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; z-index: 1;
}
.pcv-fudan {
  font-family: var(--font-serif); font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1;
}
.pcv-times { font-size: 1.2rem; color: rgba(255,255,255,0.28); line-height: 1; }
.pcv-logo { width: 64px; height: 64px; }
.pcv-fund-name {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.35); text-align: center; max-width: 130px;
}
.pcv-year {
  position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.14em;
  color: rgba(201,168,76,0.45); text-transform: uppercase; white-space: nowrap; z-index: 1;
}

/* ════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════ */
#contact { background: var(--white); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}

.contact-text h2 { color: var(--navy); margin-bottom: 1rem; }
.contact-text > p { margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.cd-item { display: flex; gap: 1rem; align-items: flex-start; }
.cd-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 3px; }
.cd-content { display: flex; flex-direction: column; gap: 4px; }
.cd-content strong { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.cd-content span   { font-size: 0.92rem; color: var(--text-mid); line-height: 1.75; }

.contact-right { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-note {
  background: var(--ivory); border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--r); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.cn-header { display: flex; align-items: center; gap: 0.75rem; }
.cn-icon    { font-size: 1.4rem; }
.cn-header strong { font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); }
.contact-note p { font-size: 0.93rem; color: var(--text-mid); line-height: 1.75; }

.contact-principles {
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: 1.5rem; background: var(--ivory);
  border: 1px solid var(--border); border-radius: var(--r);
}
.cp-item { display: flex; align-items: flex-start; gap: 0.85rem; }
.cp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0; margin-top: 7px;
}
.cp-item span { font-size: 0.88rem; color: var(--text-mid); line-height: 1.65; }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
footer {
  background: var(--navy); padding: 3rem 0 2rem;
  border-top: 1px solid rgba(201,168,76,0.12);
}

.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo-img { width: 30px; height: 30px; opacity: 0.85; }
.footer-name { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: var(--white); }
.footer-reg  { font-size: 0.7rem; color: rgba(255,255,255,0.38); letter-spacing: 0.04em; margin-top: 2px; }

.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,0.45); font-size: 0.82rem; text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--gold-light); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom span { font-size: 0.76rem; color: rgba(255,255,255,0.3); }
.footer-lang { font-size: 0.76rem; color: rgba(255,255,255,0.38); cursor: pointer; transition: color 0.2s; }
.footer-lang:hover { color: var(--gold); }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-emblem { display: none; }
  .hero-content { padding: 120px 0 80px; max-width: 700px; }
  .hero-tagline { max-width: 100%; }
}

@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .mission-grid { grid-template-columns: 1fr; }
  .pc-body { grid-template-columns: 1fr; }
  .pc-visual { min-height: 220px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .lang-toggle { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(11,22,40,0.98); backdrop-filter: blur(12px);
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid rgba(201,168,76,0.15);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4); z-index: 998; gap: 0;
  }
  .nav-links.open li a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 1rem; }
}

@media (max-width: 600px) {
  section { padding: 80px 0; }
  .hero-inner { padding: 0 1.5rem; }
  .pc-text { padding: 1.75rem 1.5rem; }
  .pc-stats { gap: 1.25rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
